@golemio/pid 5.4.2-dev.2271590743 → 5.4.2-dev.2271726153

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 (22) hide show
  1. package/db/example/00_clear_test_data.sql +1 -0
  2. package/db/example/03_ropidgtfs_dump.sql +9 -0
  3. package/db/migrations/postgresql/20260114162847-add-gtfs-transfers.js +53 -0
  4. package/db/migrations/postgresql/sqls/20260114162847-add-gtfs-transfers-down.sql +85 -0
  5. package/db/migrations/postgresql/sqls/20260114162847-add-gtfs-transfers-up.sql +150 -0
  6. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.js +1 -0
  7. package/dist/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.js.map +1 -1
  8. package/dist/schema-definitions/ropid-gtfs/RopidGtfsSchedule.d.ts +9 -0
  9. package/dist/schema-definitions/ropid-gtfs/RopidGtfsSchedule.js +9 -0
  10. package/dist/schema-definitions/ropid-gtfs/RopidGtfsSchedule.js.map +1 -1
  11. package/dist/schema-definitions/ropid-gtfs/enums/TransferTypeEnum.d.ts +12 -0
  12. package/dist/schema-definitions/ropid-gtfs/enums/TransferTypeEnum.js +17 -0
  13. package/dist/schema-definitions/ropid-gtfs/enums/TransferTypeEnum.js.map +1 -0
  14. package/dist/schema-definitions/ropid-gtfs/interfaces/ITransferDto.d.ts +10 -0
  15. package/dist/schema-definitions/ropid-gtfs/interfaces/ITransferDto.js +3 -0
  16. package/dist/schema-definitions/ropid-gtfs/interfaces/ITransferDto.js.map +1 -0
  17. package/dist/schema-definitions/ropid-gtfs/models/TransferDto.d.ts +15 -0
  18. package/dist/schema-definitions/ropid-gtfs/models/TransferDto.js +93 -0
  19. package/dist/schema-definitions/ropid-gtfs/models/TransferDto.js.map +1 -0
  20. package/docs/assets/pid_scheduled_erd.png +0 -0
  21. package/docs/implementation_documentation.md +1 -1
  22. package/package.json +1 -1
@@ -15,6 +15,7 @@ TRUNCATE
15
15
  "ropidgtfs_shapes_actual",
16
16
  "ropidgtfs_stop_times_actual",
17
17
  "ropidgtfs_stops_actual",
18
+ "ropidgtfs_transfers_actual",
18
19
  "ropidgtfs_trips_actual",
19
20
  "ropidgtfs_run_numbers_actual",
20
21
  "ropidgtfs_metro_railtrack_gps",
@@ -67,6 +67,15 @@ INSERT INTO ropidgtfs_trips_actual (bikes_allowed, block_id, direction_id, excep
67
67
  INSERT INTO ropidgtfs_trips_actual (bikes_allowed, block_id, direction_id, exceptional, route_id, service_id, shape_id, trip_headsign, trip_id, wheelchair_accessible, create_batch_id, created_at, created_by, update_batch_id, updated_at, updated_by, trip_operation_type, trip_short_name) VALUES (1, '', 0, 0, 'L991', '1111111-1', 'L991V1', 'Nemocnice Motol', '991_1155_180709', 1, NULL, '2019-05-27 03:20:24.44+00', NULL, NULL, '2019-05-27 03:20:24.44+00', NULL, 1, '');
68
68
  INSERT INTO ropidgtfs_trips_actual (bikes_allowed, block_id, direction_id, exceptional, route_id, service_id, shape_id, trip_headsign, trip_id, wheelchair_accessible, create_batch_id, created_at, created_by, update_batch_id, updated_at, updated_by, trip_operation_type, trip_short_name) VALUES (1, '', 1, 0, 'L991', '1111111-1', 'L991V2', 'Depo Hostivař', '991_12_180709', 1, NULL, '2019-05-27 03:20:24.44+00', NULL, NULL, '2019-05-27 03:20:24.44+00', NULL, 1, '');
69
69
 
70
+ INSERT INTO ropidgtfs_transfers_actual (from_stop_id,to_stop_id,from_trip_id,to_trip_id,transfer_type,min_transfer_time,max_waiting_time,create_batch_id,created_at,created_by,update_batch_id,updated_at,updated_by) VALUES
71
+ ('U1383Z301','U1383Z301',NULL,NULL,'2'::ropidgtfs_transfer_type,120,0,NULL,'2026-01-19 14:26:06.239969+01',NULL,NULL,'2026-01-19 14:26:06.239969+01',NULL),
72
+ ('U458Z9P','U458Z301',NULL,NULL,'2'::ropidgtfs_transfer_type,180,0,NULL,'2026-01-19 14:26:06.239969+01',NULL,NULL,'2026-01-19 14:26:06.239969+01',NULL),
73
+ ('U651Z2P','U651Z5P','93_1656_251110','903_101_251112','1'::ropidgtfs_transfer_type,NULL,600,NULL,'2026-01-19 14:26:06.239969+01',NULL,NULL,'2026-01-19 14:26:06.239969+01',NULL),
74
+ ('U97Z1P','U97Z2P','109_1121_241216','163_1154_260101','1'::ropidgtfs_transfer_type,NULL,120,NULL,'2026-01-19 14:26:06.239969+01',NULL,NULL,'2026-01-19 14:26:06.239969+01',NULL),
75
+ ('U97Z1P','U97Z2P','109_241_251004','163_1154_260101','1'::ropidgtfs_transfer_type,NULL,120,NULL,'2026-01-19 14:26:06.239969+01',NULL,NULL,'2026-01-19 14:26:06.239969+01',NULL),
76
+ ('U28Z1P','U28Z1P','221_2169_260112','163_1154_260101','1'::ropidgtfs_transfer_type,NULL,180,NULL,'2026-01-19 14:26:06.239969+01',NULL,NULL,'2026-01-19 14:26:06.239969+01',NULL),
77
+ ('U1071Z3P','U1071Z3P','909_271_251110','916_175_260101','1'::ropidgtfs_transfer_type,NULL,180,NULL,'2026-01-19 14:26:06.239969+01',NULL,NULL,'2026-01-19 14:26:06.239969+01',NULL);
78
+
70
79
  WITH init_values AS (SELECT NOW()::DATE AS now_date)
71
80
  INSERT INTO ropidgtfs_calendar_dates_actual (date, exception_type, service_id, create_batch_id, created_at, created_by, update_batch_id, updated_at, updated_by)
72
81
  VALUES (TO_CHAR((SELECT now_date FROM init_values)+INTERVAL '2 days','YYYYMMDD'), 2, '1111111-1', NULL, NULL, NULL, NULL, NULL, NULL),
@@ -0,0 +1,53 @@
1
+ 'use strict';
2
+
3
+ var dbm;
4
+ var type;
5
+ var seed;
6
+ var fs = require('fs');
7
+ var path = require('path');
8
+ var Promise;
9
+
10
+ /**
11
+ * We receive the dbmigrate dependency from dbmigrate initially.
12
+ * This enables us to not have to rely on NODE_PATH.
13
+ */
14
+ exports.setup = function(options, seedLink) {
15
+ dbm = options.dbmigrate;
16
+ type = dbm.dataType;
17
+ seed = seedLink;
18
+ Promise = options.Promise;
19
+ };
20
+
21
+ exports.up = function(db) {
22
+ var filePath = path.join(__dirname, 'sqls', '20260114162847-add-gtfs-transfers-up.sql');
23
+ return new Promise( function( resolve, reject ) {
24
+ fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
25
+ if (err) return reject(err);
26
+ console.log('received data: ' + data);
27
+
28
+ resolve(data);
29
+ });
30
+ })
31
+ .then(function(data) {
32
+ return db.runSql(data);
33
+ });
34
+ };
35
+
36
+ exports.down = function(db) {
37
+ var filePath = path.join(__dirname, 'sqls', '20260114162847-add-gtfs-transfers-down.sql');
38
+ return new Promise( function( resolve, reject ) {
39
+ fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
40
+ if (err) return reject(err);
41
+ console.log('received data: ' + data);
42
+
43
+ resolve(data);
44
+ });
45
+ })
46
+ .then(function(data) {
47
+ return db.runSql(data);
48
+ });
49
+ };
50
+
51
+ exports._meta = {
52
+ "version": 1
53
+ };
@@ -0,0 +1,85 @@
1
+ -- Update procedures for working with tmp tables
2
+
3
+ CREATE OR REPLACE PROCEDURE ropidgtfs_preparetmptables()
4
+ LANGUAGE plpgsql
5
+ SET search_path from CURRENT
6
+ AS $procedure$
7
+ begin
8
+ CALL ropidgtfs_cleanTmpTables();
9
+ CALL ropidgtfs_cleanOldTables();
10
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_agency');
11
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_calendar');
12
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_calendar_dates');
13
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_shapes');
14
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_stop_times');
15
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_stops');
16
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_routes');
17
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_route_sub_agencies');
18
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_trips');
19
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_cis_stops');
20
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_cis_stop_groups');
21
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_run_numbers');
22
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_ois');
23
+ alter table ropidgtfs_stop_times_tmp drop computed_dwell_time_seconds;
24
+ alter table ropidgtfs_stop_times_tmp add computed_dwell_time_seconds int2 NOT NULL GENERATED ALWAYS AS (calculate_dwell_time_seconds(arrival_time, departure_time)) stored;
25
+ alter table ropidgtfs_stops_tmp drop column computed_cis_stop_id;
26
+ alter table ropidgtfs_stops_tmp add column computed_cis_stop_id text generated always as (asw_node_id::text || '/' || asw_stop_id::text) stored;
27
+ end
28
+ $procedure$
29
+ ;
30
+
31
+ CREATE OR REPLACE PROCEDURE ropidgtfs_cleanoldtables()
32
+ LANGUAGE plpgsql
33
+ SET search_path from CURRENT
34
+ AS $procedure$
35
+ begin
36
+ drop table if exists "ropidgtfs_agency_old";
37
+ drop table if exists "ropidgtfs_calendar_old";
38
+ drop table if exists "ropidgtfs_calendar_dates_old";
39
+ drop table if exists "ropidgtfs_shapes_old";
40
+ drop table if exists "ropidgtfs_stop_times_old";
41
+ drop table if exists "ropidgtfs_stops_old";
42
+ drop table if exists "ropidgtfs_routes_old";
43
+ drop table if exists "ropidgtfs_route_sub_agencies_old";
44
+ drop table if exists "ropidgtfs_trips_old";
45
+ drop table if exists "ropidgtfs_cis_stops_old";
46
+ drop table if exists "ropidgtfs_cis_stop_groups_old";
47
+ drop table if exists "ropidgtfs_run_numbers_old";
48
+ drop table if exists "ropidgtfs_ois_old";
49
+ drop table if exists "ropidgtfs_precomputed_services_calendar_old";
50
+ drop table if exists "ropidgtfs_precomputed_minmax_stop_sequences_old";
51
+ drop table if exists "ropidgtfs_precomputed_trip_schedule_old";
52
+ end
53
+ $procedure$
54
+ ;
55
+
56
+ CREATE OR REPLACE PROCEDURE ropidgtfs_cleantmptables()
57
+ LANGUAGE plpgsql
58
+ SET search_path from CURRENT
59
+ AS $procedure$
60
+ begin
61
+ drop table if exists "ropidgtfs_agency_tmp";
62
+ drop table if exists "ropidgtfs_calendar_tmp";
63
+ drop table if exists "ropidgtfs_calendar_dates_tmp";
64
+ drop table if exists "ropidgtfs_shapes_tmp";
65
+ drop table if exists "ropidgtfs_stop_times_tmp";
66
+ drop table if exists "ropidgtfs_stops_tmp";
67
+ drop table if exists "ropidgtfs_routes_tmp";
68
+ drop table if exists "ropidgtfs_route_sub_agencies_tmp";
69
+ drop table if exists "ropidgtfs_trips_tmp";
70
+ drop table if exists "ropidgtfs_cis_stops_tmp";
71
+ drop table if exists "ropidgtfs_cis_stop_groups_tmp";
72
+ drop table if exists "ropidgtfs_run_numbers_tmp";
73
+ drop table if exists "ropidgtfs_ois_tmp";
74
+ drop table if exists "ropidgtfs_precomputed_services_calendar_tmp";
75
+ drop table if exists "ropidgtfs_precomputed_minmax_stop_sequences_tmp";
76
+ drop table if exists "ropidgtfs_precomputed_trip_schedule_tmp";
77
+ end
78
+ $procedure$
79
+ ;
80
+
81
+ -- Drop created tables (along with their constraints and indexes) and types
82
+
83
+ DROP TABLE ropidgtfs_transfers_actual;
84
+ DROP TABLE ropidgtfs_transfers;
85
+ DROP TYPE ropidgtfs_transfer_type;
@@ -0,0 +1,150 @@
1
+ -- Create custom data types
2
+
3
+ CREATE TYPE ropidgtfs_transfer_type AS ENUM ('0', '1', '2', '3', '4', '5');
4
+
5
+ -- Create parent table for GTFS transfers with check constraints and indexes
6
+
7
+ CREATE TABLE ropidgtfs_transfers (
8
+ from_stop_id varchar(255) NULL,
9
+ to_stop_id varchar(255) NULL,
10
+ from_trip_id varchar(255) NULL,
11
+ to_trip_id varchar(255) NULL,
12
+ transfer_type ropidgtfs_transfer_type NOT NULL,
13
+ min_transfer_time int4 NULL,
14
+ max_waiting_time int4 NULL,
15
+ -- audit columns
16
+ create_batch_id int8 NULL,
17
+ created_at timestamptz NULL,
18
+ created_by varchar(150) NULL,
19
+ update_batch_id int8 NULL,
20
+ updated_at timestamptz NULL,
21
+ updated_by varchar(150) NULL,
22
+ -- constraints
23
+ CONSTRAINT ropidgtfs_transfers_unique_idx UNIQUE NULLS NOT DISTINCT (from_stop_id, to_stop_id, from_trip_id, to_trip_id),
24
+ CONSTRAINT ropidgtfs_transfers_from_stop_id_nonempty CHECK (char_length(from_stop_id) > 0),
25
+ CONSTRAINT ropidgtfs_transfers_to_stop_id_nonempty CHECK (char_length(to_stop_id) > 0),
26
+ CONSTRAINT ropidgtfs_transfers_from_trip_id_nonempty CHECK (char_length(from_trip_id) > 0),
27
+ CONSTRAINT ropidgtfs_transfers_to_trip_id_nonempty CHECK (char_length(to_trip_id) > 0),
28
+ CONSTRAINT ropidgtfs_transfers_min_transfer_time_nonnegative CHECK (min_transfer_time >= 0),
29
+ CONSTRAINT ropidgtfs_transfers_max_waiting_time_nonnegative CHECK (max_waiting_time >= 0),
30
+ CONSTRAINT ropidgtfs_transfers_conditionally_required_columns CHECK (
31
+ CASE WHEN transfer_type in ('1', '2', '3')
32
+ THEN from_stop_id IS NOT NULL AND to_stop_id IS NOT NULL
33
+ ELSE CASE WHEN transfer_type in ('4', '5')
34
+ THEN from_trip_id IS NOT NULL AND to_trip_id IS NOT NULL
35
+ ELSE TRUE
36
+ END
37
+ END
38
+ )
39
+ );
40
+
41
+ CREATE INDEX ropidgtfs_transfers_from_stop_id_to_stop_id_idx ON ropidgtfs_transfers USING btree (from_stop_id, to_stop_id);
42
+ CREATE INDEX ropidgtfs_transfers_from_trip_id_to_trip_id_idx ON ropidgtfs_transfers USING btree (from_trip_id, to_trip_id);
43
+ CREATE INDEX ropidgtfs_transfers_transfer_type_idx ON ropidgtfs_transfers USING btree (transfer_type);
44
+
45
+ COMMENT ON TABLE ropidgtfs_transfers IS '
46
+ GTFS information about guaranteed transfers (from the file `transfers.txt`).
47
+
48
+ See also GTFS Schedule Reference for `transfers.txt` at <https://gtfs.org/documentation/schedule/reference/#transferstxt>.
49
+ ';
50
+
51
+ COMMENT ON COLUMN ropidgtfs_transfers.max_waiting_time IS '
52
+ Maximum waiting time in seconds.
53
+
54
+ This is a custom extension to GTFS transfers to allow specifying a maximum waiting time for a transfer.
55
+ For instance a bus waits for a train, but at most 20 minutes. If the train is delayed more than 20 minutes,
56
+ the bus leaves and the passengers need to wait for the next bus.
57
+
58
+ If empty (`NULL`), the vehicle waits forever or the waiting time could not be specified.
59
+
60
+ See also feature request to add the column to GTFS at <https://github.com/google/transit/issues/372>.
61
+ ';
62
+
63
+ -- Create child (actual) table for GTFS transfers with check constraints and indexes
64
+
65
+ CREATE TABLE ropidgtfs_transfers_actual (
66
+ LIKE ropidgtfs_transfers INCLUDING ALL
67
+ ) INHERITS (ropidgtfs_transfers);
68
+
69
+ -- Update procedures for working with tmp tables
70
+
71
+ CREATE OR REPLACE PROCEDURE ropidgtfs_preparetmptables()
72
+ LANGUAGE plpgsql
73
+ SET search_path from CURRENT
74
+ AS $procedure$
75
+ begin
76
+ CALL ropidgtfs_cleanTmpTables();
77
+ CALL ropidgtfs_cleanOldTables();
78
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_agency');
79
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_calendar');
80
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_calendar_dates');
81
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_shapes');
82
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_stop_times');
83
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_stops');
84
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_routes');
85
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_route_sub_agencies');
86
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_transfers');
87
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_trips');
88
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_cis_stops');
89
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_cis_stop_groups');
90
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_run_numbers');
91
+ CALL ropidgtfs_prepareTmpTable('ropidgtfs_ois');
92
+ alter table ropidgtfs_stop_times_tmp drop computed_dwell_time_seconds;
93
+ alter table ropidgtfs_stop_times_tmp add computed_dwell_time_seconds int2 NOT NULL GENERATED ALWAYS AS (calculate_dwell_time_seconds(arrival_time, departure_time)) stored;
94
+ alter table ropidgtfs_stops_tmp drop column computed_cis_stop_id;
95
+ alter table ropidgtfs_stops_tmp add column computed_cis_stop_id text generated always as (asw_node_id::text || '/' || asw_stop_id::text) stored;
96
+ end
97
+ $procedure$
98
+ ;
99
+
100
+ CREATE OR REPLACE PROCEDURE ropidgtfs_cleanoldtables()
101
+ LANGUAGE plpgsql
102
+ SET search_path from CURRENT
103
+ AS $procedure$
104
+ begin
105
+ drop table if exists "ropidgtfs_agency_old";
106
+ drop table if exists "ropidgtfs_calendar_old";
107
+ drop table if exists "ropidgtfs_calendar_dates_old";
108
+ drop table if exists "ropidgtfs_shapes_old";
109
+ drop table if exists "ropidgtfs_stop_times_old";
110
+ drop table if exists "ropidgtfs_stops_old";
111
+ drop table if exists "ropidgtfs_routes_old";
112
+ drop table if exists "ropidgtfs_route_sub_agencies_old";
113
+ drop table if exists "ropidgtfs_transfers_old";
114
+ drop table if exists "ropidgtfs_trips_old";
115
+ drop table if exists "ropidgtfs_cis_stops_old";
116
+ drop table if exists "ropidgtfs_cis_stop_groups_old";
117
+ drop table if exists "ropidgtfs_run_numbers_old";
118
+ drop table if exists "ropidgtfs_ois_old";
119
+ drop table if exists "ropidgtfs_precomputed_services_calendar_old";
120
+ drop table if exists "ropidgtfs_precomputed_minmax_stop_sequences_old";
121
+ drop table if exists "ropidgtfs_precomputed_trip_schedule_old";
122
+ end
123
+ $procedure$
124
+ ;
125
+
126
+ CREATE OR REPLACE PROCEDURE ropidgtfs_cleantmptables()
127
+ LANGUAGE plpgsql
128
+ SET search_path from CURRENT
129
+ AS $procedure$
130
+ begin
131
+ drop table if exists "ropidgtfs_agency_tmp";
132
+ drop table if exists "ropidgtfs_calendar_tmp";
133
+ drop table if exists "ropidgtfs_calendar_dates_tmp";
134
+ drop table if exists "ropidgtfs_shapes_tmp";
135
+ drop table if exists "ropidgtfs_stop_times_tmp";
136
+ drop table if exists "ropidgtfs_stops_tmp";
137
+ drop table if exists "ropidgtfs_routes_tmp";
138
+ drop table if exists "ropidgtfs_route_sub_agencies_tmp";
139
+ drop table if exists "ropidgtfs_transfers_tmp";
140
+ drop table if exists "ropidgtfs_trips_tmp";
141
+ drop table if exists "ropidgtfs_cis_stops_tmp";
142
+ drop table if exists "ropidgtfs_cis_stop_groups_tmp";
143
+ drop table if exists "ropidgtfs_run_numbers_tmp";
144
+ drop table if exists "ropidgtfs_ois_tmp";
145
+ drop table if exists "ropidgtfs_precomputed_services_calendar_tmp";
146
+ drop table if exists "ropidgtfs_precomputed_minmax_stop_sequences_tmp";
147
+ drop table if exists "ropidgtfs_precomputed_trip_schedule_tmp";
148
+ end
149
+ $procedure$
150
+ ;
@@ -41,6 +41,7 @@ let RopidGtfsFactory = class RopidGtfsFactory {
41
41
  "stops.txt",
42
42
  "routes.txt",
43
43
  "route_sub_agencies.txt",
44
+ "transfers.txt",
44
45
  "trips.txt",
45
46
  ],
46
47
  encoding: "utf8",
@@ -1 +1 @@
1
- {"version":3,"file":"RopidGtfsFactory.js","sourceRoot":"","sources":["../../../../../../../src/integration-engine/ropid-gtfs/workers/timetables/tasks/helpers/RopidGtfsFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iEAAiE;AACjE,2CAA2D;AAC3D,qFAAqF;AACrF,iHAAiH;AACjH,uGAA8G;AAC9G,iGAAiG;AACjG,6HAA6H;AAC7H,gFAA8D;AAC9D,8EAM+C;AAC/C,uGAAoG;AACpG,mFAAkF;AAClF,iEAAgE;AAChE,+CAAuG;AAGhG,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAezB;QACI,aAAa;QACb,IAAI,CAAC,cAAc,GAA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AO,CAAC,CAAC,gBAAgB,KAAK,8BAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI;gBAC7G,IAAI,EAAE,SAAS,CAAC,IAAI;aACvB,CAAC,CAAC;QACP,CAAC;IACL,CAAC;CACJ,CAAA;AA7JY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,qBAAU,GAAE;;GACA,gBAAgB,CA6J5B"}
@@ -6,6 +6,7 @@ import { RouteSubAgencyDto } from "./models/RouteSubAgencyDto";
6
6
  import { ShapeDto } from "./models/ShapeDto";
7
7
  import { StopDto } from "./models/StopDto";
8
8
  import { StopTimesDto } from "./models/StopTimesDto";
9
+ import { TransferDto } from "./models/TransferDto";
9
10
  import { TripDto } from "./models/TripDto";
10
11
  export declare const RopidGTFSSchedule: {
11
12
  agency: {
@@ -72,6 +73,14 @@ export declare const RopidGTFSSchedule: {
72
73
  */
73
74
  outputSequelizeAttributes: import("sequelize/types/model").ModelAttributes<RouteSubAgencyDto, any>;
74
75
  };
76
+ transfers: {
77
+ name: string;
78
+ pgTableName: string;
79
+ /**
80
+ * @deprecated The property should not be used
81
+ */
82
+ outputSequelizeAttributes: import("sequelize/types/model").ModelAttributes<TransferDto, any>;
83
+ };
75
84
  trips: {
76
85
  name: string;
77
86
  pgTableName: string;
@@ -9,6 +9,7 @@ const RouteSubAgencyDto_1 = require("./models/RouteSubAgencyDto");
9
9
  const ShapeDto_1 = require("./models/ShapeDto");
10
10
  const StopDto_1 = require("./models/StopDto");
11
11
  const StopTimesDto_1 = require("./models/StopTimesDto");
12
+ const TransferDto_1 = require("./models/TransferDto");
12
13
  const TripDto_1 = require("./models/TripDto");
13
14
  exports.RopidGTFSSchedule = {
14
15
  agency: {
@@ -75,6 +76,14 @@ exports.RopidGTFSSchedule = {
75
76
  */
76
77
  outputSequelizeAttributes: RouteSubAgencyDto_1.RouteSubAgencyDto.attributeModel,
77
78
  },
79
+ transfers: {
80
+ name: "RopidGTFSTransfers",
81
+ pgTableName: "ropidgtfs_transfers",
82
+ /**
83
+ * @deprecated The property should not be used
84
+ */
85
+ outputSequelizeAttributes: TransferDto_1.TransferDto.attributeModel,
86
+ },
78
87
  trips: {
79
88
  name: "RopidGTFSTrips",
80
89
  pgTableName: "ropidgtfs_trips",
@@ -1 +1 @@
1
- {"version":3,"file":"RopidGtfsSchedule.js","sourceRoot":"","sources":["../../../src/schema-definitions/ropid-gtfs/RopidGtfsSchedule.ts"],"names":[],"mappings":";;;AAAA,kDAA+C;AAC/C,gEAA6D;AAC7D,sDAAmD;AACnD,gDAA6C;AAC7C,kEAA+D;AAC/D,gDAA6C;AAC7C,8CAA2C;AAC3C,wDAAqD;AACrD,8CAA2C;AAG9B,QAAA,iBAAiB,GAAG;IAC7B,MAAM,EAAE;QACJ,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE,kBAAkB;QAC/B;;WAEG;QACH,yBAAyB,EAAE,qBAAS,CAAC,cAAc;KACtD;IACD,QAAQ,EAAE;QACN,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,oBAAoB;QACjC;;WAEG;QACH,yBAAyB,EAAE,yBAAW,CAAC,cAAc;KACxD;IACD,cAAc,EAAE;QACZ,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,0BAA0B;QACvC;;WAEG;QACH,yBAAyB,EAAE,mCAAgB,CAAC,cAAc;KAC7D;IACD,MAAM,EAAE;QACJ,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE,kBAAkB;QAC/B;;WAEG;QACH,yBAAyB,EAAE,mBAAQ,CAAC,cAAc;KACrD;IACD,UAAU,EAAE;QACR,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE,sBAAsB;QACnC;;WAEG;QACH,yBAAyB,EAAE,2BAAY,CAAC,cAAc;KACzD;IACD,KAAK,EAAE;QACH,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,iBAAiB;QAC9B;;WAEG;QACH,yBAAyB,EAAE,iBAAO,CAAC,cAAc;KACpD;IACD,MAAM,EAAE;QACJ,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE,kBAAkB;QAC/B;;WAEG;QACH,yBAAyB,EAAE,mBAAQ,CAAC,cAAc;KACrD;IACD,kBAAkB,EAAE;QAChB,IAAI,EAAE,2BAA2B;QACjC,WAAW,EAAE,8BAA8B;QAC3C;;WAEG;QACH,yBAAyB,EAAE,qCAAiB,CAAC,cAAc;KAC9D;IACD,KAAK,EAAE;QACH,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,iBAAiB;QAC9B;;WAEG;QACH,yBAAyB,EAAE,iBAAO,CAAC,cAAc;KACpD;CACJ,CAAC"}
1
+ {"version":3,"file":"RopidGtfsSchedule.js","sourceRoot":"","sources":["../../../src/schema-definitions/ropid-gtfs/RopidGtfsSchedule.ts"],"names":[],"mappings":";;;AACA,kDAA+C;AAC/C,gEAA6D;AAC7D,sDAAmD;AACnD,gDAA6C;AAC7C,kEAA+D;AAC/D,gDAA6C;AAC7C,8CAA2C;AAC3C,wDAAqD;AACrD,sDAAmD;AACnD,8CAA2C;AAE9B,QAAA,iBAAiB,GAAG;IAC7B,MAAM,EAAE;QACJ,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE,kBAAkB;QAC/B;;WAEG;QACH,yBAAyB,EAAE,qBAAS,CAAC,cAAc;KACtD;IACD,QAAQ,EAAE;QACN,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,oBAAoB;QACjC;;WAEG;QACH,yBAAyB,EAAE,yBAAW,CAAC,cAAc;KACxD;IACD,cAAc,EAAE;QACZ,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,0BAA0B;QACvC;;WAEG;QACH,yBAAyB,EAAE,mCAAgB,CAAC,cAAc;KAC7D;IACD,MAAM,EAAE;QACJ,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE,kBAAkB;QAC/B;;WAEG;QACH,yBAAyB,EAAE,mBAAQ,CAAC,cAAc;KACrD;IACD,UAAU,EAAE;QACR,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE,sBAAsB;QACnC;;WAEG;QACH,yBAAyB,EAAE,2BAAY,CAAC,cAAc;KACzD;IACD,KAAK,EAAE;QACH,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,iBAAiB;QAC9B;;WAEG;QACH,yBAAyB,EAAE,iBAAO,CAAC,cAAc;KACpD;IACD,MAAM,EAAE;QACJ,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE,kBAAkB;QAC/B;;WAEG;QACH,yBAAyB,EAAE,mBAAQ,CAAC,cAAc;KACrD;IACD,kBAAkB,EAAE;QAChB,IAAI,EAAE,2BAA2B;QACjC,WAAW,EAAE,8BAA8B;QAC3C;;WAEG;QACH,yBAAyB,EAAE,qCAAiB,CAAC,cAAc;KAC9D;IACD,SAAS,EAAE;QACP,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE,qBAAqB;QAClC;;WAEG;QACH,yBAAyB,EAAE,yBAAW,CAAC,cAAc;KACxD;IACD,KAAK,EAAE;QACH,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,iBAAiB;QAC9B;;WAEG;QACH,yBAAyB,EAAE,iBAAO,CAAC,cAAc;KACpD;CACJ,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * GTFS `transfers.txt` `transfer_type`
3
+ * (see <https://gtfs.org/documentation/schedule/reference/#transferstxt>).
4
+ */
5
+ export declare enum GTFSTransferTypeEnum {
6
+ RECOMMENDED_POINT = "0",
7
+ TIMED_POINT = "1",
8
+ MIN_TIME_REQUIRED = "2",
9
+ NOT_POSSIBLE = "3",
10
+ IN_SEAT_TRANSFER = "4",
11
+ NO_IN_SEAT_TRANSFER = "5"
12
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GTFSTransferTypeEnum = void 0;
4
+ /**
5
+ * GTFS `transfers.txt` `transfer_type`
6
+ * (see <https://gtfs.org/documentation/schedule/reference/#transferstxt>).
7
+ */
8
+ var GTFSTransferTypeEnum;
9
+ (function (GTFSTransferTypeEnum) {
10
+ GTFSTransferTypeEnum["RECOMMENDED_POINT"] = "0";
11
+ GTFSTransferTypeEnum["TIMED_POINT"] = "1";
12
+ GTFSTransferTypeEnum["MIN_TIME_REQUIRED"] = "2";
13
+ GTFSTransferTypeEnum["NOT_POSSIBLE"] = "3";
14
+ GTFSTransferTypeEnum["IN_SEAT_TRANSFER"] = "4";
15
+ GTFSTransferTypeEnum["NO_IN_SEAT_TRANSFER"] = "5";
16
+ })(GTFSTransferTypeEnum || (exports.GTFSTransferTypeEnum = GTFSTransferTypeEnum = {}));
17
+ //# sourceMappingURL=TransferTypeEnum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransferTypeEnum.js","sourceRoot":"","sources":["../../../../src/schema-definitions/ropid-gtfs/enums/TransferTypeEnum.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAC5B,+CAAuB,CAAA;IACvB,yCAAiB,CAAA;IACjB,+CAAuB,CAAA;IACvB,0CAAkB,CAAA;IAClB,8CAAsB,CAAA;IACtB,iDAAyB,CAAA;AAC7B,CAAC,EAPW,oBAAoB,oCAApB,oBAAoB,QAO/B"}
@@ -0,0 +1,10 @@
1
+ import { GTFSTransferTypeEnum } from "../enums/TransferTypeEnum";
2
+ export interface ITransferDto {
3
+ from_stop_id: string | null;
4
+ to_stop_id: string | null;
5
+ from_trip_id: string | null;
6
+ to_trip_id: string | null;
7
+ transfer_type: GTFSTransferTypeEnum;
8
+ min_transfer_time: number | null;
9
+ max_waiting_time: number | null;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ITransferDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ITransferDto.js","sourceRoot":"","sources":["../../../../src/schema-definitions/ropid-gtfs/interfaces/ITransferDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
2
+ import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
3
+ import { GTFSTransferTypeEnum } from "../enums/TransferTypeEnum";
4
+ import { ITransferDto } from "../interfaces/ITransferDto";
5
+ export declare class TransferDto extends Model<ITransferDto> implements ITransferDto {
6
+ from_stop_id: string | null;
7
+ to_stop_id: string | null;
8
+ from_trip_id: string | null;
9
+ to_trip_id: string | null;
10
+ transfer_type: GTFSTransferTypeEnum;
11
+ min_transfer_time: number | null;
12
+ max_waiting_time: number | null;
13
+ static attributeModel: ModelAttributes<TransferDto>;
14
+ static jsonSchema: JSONSchemaType<ITransferDto[]>;
15
+ }
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransferDto = void 0;
4
+ const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
5
+ const TransferTypeEnum_1 = require("../enums/TransferTypeEnum");
6
+ class TransferDto extends sequelize_1.Model {
7
+ }
8
+ exports.TransferDto = TransferDto;
9
+ TransferDto.attributeModel = {
10
+ from_stop_id: {
11
+ type: sequelize_1.DataTypes.STRING(255),
12
+ allowNull: true,
13
+ primaryKey: true,
14
+ },
15
+ to_stop_id: {
16
+ type: sequelize_1.DataTypes.STRING(255),
17
+ allowNull: true,
18
+ primaryKey: true,
19
+ },
20
+ from_trip_id: {
21
+ type: sequelize_1.DataTypes.STRING(255),
22
+ allowNull: true,
23
+ primaryKey: true,
24
+ },
25
+ to_trip_id: {
26
+ type: sequelize_1.DataTypes.STRING(255),
27
+ allowNull: true,
28
+ primaryKey: true,
29
+ },
30
+ transfer_type: {
31
+ type: sequelize_1.DataTypes.ENUM,
32
+ values: Object.values(TransferTypeEnum_1.GTFSTransferTypeEnum),
33
+ allowNull: false,
34
+ },
35
+ min_transfer_time: {
36
+ type: sequelize_1.DataTypes.INTEGER,
37
+ allowNull: true,
38
+ },
39
+ max_waiting_time: {
40
+ type: sequelize_1.DataTypes.INTEGER,
41
+ allowNull: true,
42
+ },
43
+ };
44
+ TransferDto.jsonSchema = {
45
+ type: "array",
46
+ items: {
47
+ type: "object",
48
+ properties: {
49
+ from_stop_id: {
50
+ oneOf: [
51
+ { type: "string", minLength: 1 },
52
+ { type: "null", nullable: true },
53
+ ],
54
+ },
55
+ to_stop_id: {
56
+ oneOf: [
57
+ { type: "string", minLength: 1 },
58
+ { type: "null", nullable: true },
59
+ ],
60
+ },
61
+ from_trip_id: {
62
+ oneOf: [
63
+ { type: "string", minLength: 1 },
64
+ { type: "null", nullable: true },
65
+ ],
66
+ },
67
+ to_trip_id: {
68
+ oneOf: [
69
+ { type: "string", minLength: 1 },
70
+ { type: "null", nullable: true },
71
+ ],
72
+ },
73
+ transfer_type: {
74
+ type: "string",
75
+ enum: Object.values(TransferTypeEnum_1.GTFSTransferTypeEnum),
76
+ },
77
+ min_transfer_time: {
78
+ oneOf: [
79
+ { type: "integer", minimum: 0 },
80
+ { type: "null", nullable: true },
81
+ ],
82
+ },
83
+ max_waiting_time: {
84
+ oneOf: [
85
+ { type: "integer", minimum: 0 },
86
+ { type: "null", nullable: true },
87
+ ],
88
+ },
89
+ },
90
+ required: ["transfer_type"],
91
+ },
92
+ };
93
+ //# sourceMappingURL=TransferDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransferDto.js","sourceRoot":"","sources":["../../../../src/schema-definitions/ropid-gtfs/models/TransferDto.ts"],"names":[],"mappings":";;;AACA,mEAAwF;AACxF,gEAAiE;AAGjE,MAAa,WAAY,SAAQ,iBAAmB;;AAApD,kCA8FC;AArFiB,0BAAc,GAAiC;IACzD,YAAY,EAAE;QACV,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC;QAC3B,SAAS,EAAE,IAAI;QACf,UAAU,EAAE,IAAI;KAC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,CAAC,EAAE;oBAChC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;iBACnC;aACJ;YACD,UAAU,EAAE;gBACR,KAAK,EAAE;oBACH,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE;oBAChC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;iBACnC;aACJ;YACD,aAAa,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,uCAAoB,CAAC;aAC5C;YACD,iBAAiB,EAAE;gBACf,KAAK,EAAE;oBACH,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE;oBAC/B,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;iBACnC;aACJ;YACD,gBAAgB,EAAE;gBACd,KAAK,EAAE;oBACH,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE;oBAC/B,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;iBACnC;aACJ;SACJ;QACD,QAAQ,EAAE,CAAC,eAAe,CAAC;KAC9B;CACJ,CAAC"}
Binary file
@@ -39,7 +39,7 @@ Modul slouží k ukládání a poskytování informací o jízdních řádech a
39
39
  - zdroj dat
40
40
  - cesta: /GTFS (config.datasources.RopidGTFSPath)
41
41
  - soubory:
42
- - PID_GTFS.zip (config.datasources.RopidGTFSFilename) -> agency.txt, calendar.txt, calendar_dates.txt, shapes.txt, stop_times.txt, stops.txt, routes.txt, route_sub_agencies.txt, trips.txt
42
+ - PID_GTFS.zip (config.datasources.RopidGTFSFilename) -> agency.txt, calendar.txt, calendar_dates.txt, shapes.txt, stop_times.txt, stops.txt, routes.txt, route_sub_agencies.txt, transfers.txt, trips.txt
43
43
  - formát dat
44
44
  - protokol: ftp
45
45
  - datový typ: csv
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/pid",
3
- "version": "5.4.2-dev.2271590743",
3
+ "version": "5.4.2-dev.2271726153",
4
4
  "description": "Golemio PID Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",