@golemio/pid 2.10.2 → 2.10.3-dev.1110978217

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 (53) hide show
  1. package/db/migrations/postgresql/20231207135833-vp-gtfs-direction-id.js +53 -0
  2. package/db/migrations/postgresql/20231208130901-run-number-int.js +53 -0
  3. package/db/migrations/postgresql/20231213075143-stop-time-origin-route-name.js +53 -0
  4. package/db/migrations/postgresql/sqls/20231207135833-vp-gtfs-direction-id-down.sql +36 -0
  5. package/db/migrations/postgresql/sqls/20231207135833-vp-gtfs-direction-id-up.sql +147 -0
  6. package/db/migrations/postgresql/sqls/20231208130901-run-number-int-down.sql +1 -0
  7. package/db/migrations/postgresql/sqls/20231208130901-run-number-int-up.sql +1 -0
  8. package/db/migrations/postgresql/sqls/20231213075143-stop-time-origin-route-name-down.sql +77 -0
  9. package/db/migrations/postgresql/sqls/20231213075143-stop-time-origin-route-name-up.sql +77 -0
  10. package/dist/integration-engine/ropid-gtfs/data-access/precomputed/TripScheduleRepository.js +4 -2
  11. package/dist/integration-engine/ropid-gtfs/data-access/precomputed/TripScheduleRepository.js.map +1 -1
  12. package/dist/integration-engine/vehicle-positions/workers/runs/interfaces/IMetroRunInputForProcessing.d.ts +1 -0
  13. package/dist/integration-engine/vehicle-positions/workers/runs/tasks/ProcessMetroRunMessagesTask.d.ts +1 -1
  14. package/dist/integration-engine/vehicle-positions/workers/runs/tasks/ProcessMetroRunMessagesTask.js +22 -12
  15. package/dist/integration-engine/vehicle-positions/workers/runs/tasks/ProcessMetroRunMessagesTask.js.map +1 -1
  16. package/dist/integration-engine/vehicle-positions/workers/runs/transformations/CommonRunsMessagesTransformation.js +1 -1
  17. package/dist/integration-engine/vehicle-positions/workers/runs/transformations/CommonRunsMessagesTransformation.js.map +1 -1
  18. package/dist/integration-engine/vehicle-positions/workers/runs/transformations/MetroRunsMessageProcessingTransformation.js +2 -2
  19. package/dist/integration-engine/vehicle-positions/workers/runs/transformations/MetroRunsMessageProcessingTransformation.js.map +1 -1
  20. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.d.ts +2 -2
  21. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/TripsRepository.js.map +1 -1
  22. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/RawQueryProvider.d.ts +0 -1
  23. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/RawQueryProvider.js +4 -3
  24. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/RawQueryProvider.js.map +1 -1
  25. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/TripsMapper.d.ts +2 -2
  26. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/TripsMapper.js +6 -4
  27. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/TripsMapper.js.map +1 -1
  28. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/interfaces/TripRepositoryInterfaces.d.ts +2 -0
  29. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/gtfs-trip-run/AbstractGTFSTripRunManager.js +10 -0
  30. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/gtfs-trip-run/AbstractGTFSTripRunManager.js.map +1 -1
  31. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/gtfs-trip-run/GTFSTripMetroRunManager.js +1 -0
  32. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/helpers/gtfs-trip-run/GTFSTripMetroRunManager.js.map +1 -1
  33. package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/interfaces/VPInterfaces.d.ts +1 -1
  34. package/dist/output-gateway/vehicle-positions/data-access/TripRepository.js +2 -1
  35. package/dist/output-gateway/vehicle-positions/data-access/TripRepository.js.map +1 -1
  36. package/dist/schema-definitions/ropid-gtfs/RopidGTFSPrecomputed.d.ts +3 -0
  37. package/dist/schema-definitions/ropid-gtfs/RopidGTFSPrecomputed.js +4 -0
  38. package/dist/schema-definitions/ropid-gtfs/RopidGTFSPrecomputed.js.map +1 -1
  39. package/dist/schema-definitions/vehicle-positions/models/CommonRunsModel.d.ts +1 -1
  40. package/dist/schema-definitions/vehicle-positions/models/CommonRunsModel.js +1 -1
  41. package/dist/schema-definitions/vehicle-positions/models/CommonRunsModel.js.map +1 -1
  42. package/dist/schema-definitions/vehicle-positions/models/VPTripsModel.d.ts +1 -0
  43. package/dist/schema-definitions/vehicle-positions/models/VPTripsModel.js +4 -0
  44. package/dist/schema-definitions/vehicle-positions/models/VPTripsModel.js.map +1 -1
  45. package/dist/schema-definitions/vehicle-positions/models/interfaces/ICommonRunsModel.d.ts +1 -1
  46. package/dist/schema-definitions/vehicle-positions/models/interfaces/IVPTripsModel.d.ts +1 -0
  47. package/dist/schema-definitions/vehicle-positions/redis/interfaces/IGtfsRunTripCacheDto.d.ts +1 -0
  48. package/dist/schema-definitions/vehicle-positions/redis/schemas/GtfsRunTripCacheDtoSchema.js +1 -0
  49. package/dist/schema-definitions/vehicle-positions/redis/schemas/GtfsRunTripCacheDtoSchema.js.map +1 -1
  50. package/docs/assets/pid_vp_st_hist_erd.png +0 -0
  51. package/docs/implementation_documentation.md +6 -5
  52. package/docs/openapi-output.yaml +7 -7
  53. package/package.json +2 -2
@@ -811,7 +811,7 @@ Worker má na starost zpracování a transformaci polohových dat, výpočet zpo
811
811
  - data modely
812
812
  - VPPositionsModel `vehiclepositions_positions`
813
813
  - VPTripsModel `vehiclepositions_trips`
814
- - (in-progress) o odmazání history modelů se stará historizační služba (parquet)
814
+ - (in-progress) o odmazání history modelů se stará historizační služba (parquet)
815
815
  - VPPositionsHistoryModel `vehiclepositions_positions_history`
816
816
  - VPTripsHistoryModel `vehiclepositions_trips_history`
817
817
 
@@ -849,7 +849,6 @@ Worker má na starost zpracování a transformaci polohových dat, výpočet zpo
849
849
  - VPPositionsModel `vehiclepositions_positions`
850
850
  - VPTripsModel `vehiclepositions_trips`
851
851
 
852
-
853
852
  ### _RunsWorker_
854
853
 
855
854
  Worker má na starost zpracování a transformaci TCP oběhů
@@ -1105,6 +1104,8 @@ Worker má na starost retenci dat tabulek Azure Table Storage
1105
1104
  ![pid vp diagram](./assets/pid_vp_erd.png)
1106
1105
  - Polohy vozů (views) <br/>
1107
1106
  ![pid vp view diagram](./assets/pid_vp_view_erd.png)
1107
+ - Polohy vozů (historie spojů podle projetých zastávek) <br/>
1108
+ ![pid vp stop time history diagram](./assets/pid_vp_st_hist_erd.png)
1108
1109
  - Popis vozidel<br/>
1109
1110
  ![pid vp desc diagram](./assets/pid_vp_desc_erd.png)
1110
1111
 
@@ -1261,6 +1262,6 @@ Worker má na starost retenci dat tabulek Azure Table Storage
1261
1262
 
1262
1263
  #### _/public/vehiclepositions_
1263
1264
 
1264
- - načte aktuální polohy vozidel z redisu a vrátí je ve formátu geojson
1265
- - možno filtrovat dle bouding box na straně redisu
1266
- - podle typu vozidla a gtfs route number na klientské straně
1265
+ - načte aktuální polohy vozidel z redisu a vrátí je ve formátu geojson
1266
+ - možno filtrovat dle bouding box na straně redisu
1267
+ - podle typu vozidla a gtfs route number na klientské straně
@@ -559,7 +559,7 @@ paths:
559
559
  required: false
560
560
  schema:
561
561
  type: string
562
- example: "Europe%2FPrague"
562
+ example: "Europe_Prague"
563
563
  - name: routeId
564
564
  in: query
565
565
  description: Filter result by route id
@@ -640,7 +640,7 @@ paths:
640
640
  required: false
641
641
  schema:
642
642
  type: string
643
- example: "Europe%2FPrague"
643
+ example: "Europe_Prague"
644
644
  responses:
645
645
  "200":
646
646
  description: successful operation
@@ -752,7 +752,7 @@ paths:
752
752
  example: "U458Z101P"
753
753
  - name: aswIds
754
754
  in: query
755
- description: Get result by ASW ID. First part of the number represents the whole node. Usually it groups the stops of the same name or all stops associated with a metro station. Also returns related train stations in the node. The second part of the number is optional and represents individual stops in the node. Use `_` instead of `/` as a separator or encode the slash sign with `%2F`. A list of ASW IDs can be found in [Prague Open data](//opendata.praha.eu/dataset/zastavky-a-oznacniky-pid).
755
+ description: "Get result by ASW ID. First part of the number represents the whole node. Usually it groups the stops of the same name or all stops associated with a metro station. Also returns related train stations in the node. The second part of the number is optional and represents individual stops in the node. Use `_` instead of `/` as a separator or encode the slash sign with `%2F`. A list of ASW IDs can be found in [Prague Open data](//opendata.praha.eu/dataset/zastavky-a-oznacniky-pid). ⚠️ Note: combination with `includeMetroTrains` is currently not supported, see [issue pid#222](https://gitlab.com/operator-ict/golemio/code/modules/pid/-/issues/222)."
756
756
  required: false
757
757
  schema:
758
758
  type: string
@@ -770,7 +770,7 @@ paths:
770
770
  required: false
771
771
  schema:
772
772
  type: string
773
- example: "Smíchovské"
773
+ example: "Smíchovské nádraží"
774
774
  - name: minutesBefore
775
775
  in: query
776
776
  description: Set the start of interval from which to retrieve departures. Positive numbers are set in past relative to the time of request or `timeFrom` timestamp, negative numbers set the start in the future. Use to compensate for walking distance to a stop. Default is set to 0. Maximum value is 30 because of implemented data retention.
@@ -794,7 +794,7 @@ paths:
794
794
  example: "2021-01-21T06:00:00"
795
795
  - name: includeMetroTrains
796
796
  in: query
797
- description: When selecting a node by `name`, when `true`, will include metro and/or train stops that are a member of the same node. I.e. when querying _Na Knížecí_, setting this to `true` will add the metro station _Anděl_ to results as well because both have the same ASW node number 1040.
797
+ description: "When selecting a node by `name`, when `true`, will include metro and/or train stops that are a member of the same node. I.e. when querying _Na Knížecí_, setting this to `true` will add the metro station _Anděl_ to results as well because both have the same ASW node number 1040. ⚠️ Note: combination with `aswIds` is currently not supported, see [issue pid#222](https://gitlab.com/operator-ict/golemio/code/modules/pid/-/issues/222)."
798
798
  required: false
799
799
  schema:
800
800
  type: boolean
@@ -813,7 +813,7 @@ paths:
813
813
  required: false
814
814
  schema:
815
815
  type: string
816
- example: "Europe%2FPrague"
816
+ example: "Europe_Prague"
817
817
  - name: mode
818
818
  in: query
819
819
  description: >-
@@ -1987,7 +1987,7 @@ components:
1987
1987
  type: object
1988
1988
  properties:
1989
1989
  gtfs_trip_id:
1990
- type: string
1990
+ type: string
1991
1991
  example: 705_735_231002
1992
1992
  gtfs_route_type:
1993
1993
  type: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/pid",
3
- "version": "2.10.2",
3
+ "version": "2.10.3-dev.1110978217",
4
4
  "description": "Golemio PID Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -77,7 +77,7 @@
77
77
  "@golemio/core": ">=1.7.0"
78
78
  },
79
79
  "dependencies": {
80
- "@golemio/ovapi-gtfs-realtime-bindings": "1.2.0",
80
+ "@golemio/ovapi-gtfs-realtime-bindings": "1.2.1-dev.943774882",
81
81
  "@turf/turf": "^6.5.0",
82
82
  "cheap-ruler": "^2.5.1",
83
83
  "csv-parser": "^3.0.0",