@tmlmobilidade/import-gtfs 20251009.1435.7 → 20251010.751.17

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.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,15 @@
1
- import { type GtfsSQLTables, type ImportGtfsToDatabaseConfig } from './src/types.js';
2
- import { type Plan } from '@tmlmobilidade/types';
1
+ import { type GtfsSQLTables } from './src/types.js';
2
+ import { type OperationalDate, type Plan } from '@tmlmobilidade/types';
3
+ /**
4
+ * Configuration options for importing GTFS data into a database.
5
+ */
6
+ export interface ImportGtfsToDatabaseConfig {
7
+ date_range?: {
8
+ end: OperationalDate;
9
+ start: OperationalDate;
10
+ };
11
+ discrete_dates?: OperationalDate[];
12
+ }
3
13
  /**
4
14
  * Imports GTFS data into the database for a given plan.
5
15
  * @param plan The plan containing GTFS feed information.
@@ -1,4 +1,5 @@
1
- import { type ImportGtfsContext, type ImportGtfsToDatabaseConfig } from '../types.js';
1
+ import { type ImportGtfsContext } from '../types.js';
2
+ import { type ImportGtfsToDatabaseConfig } from '../../index.js';
2
3
  /**
3
4
  * Processes the calendar.txt file from the GTFS dataset.
4
5
  * It extracts service_ids that are valid between the given start_date and end_date,
@@ -1,4 +1,5 @@
1
- import { type ImportGtfsContext, type ImportGtfsToDatabaseConfig } from '../types.js';
1
+ import { type ImportGtfsContext } from '../types.js';
2
+ import { type ImportGtfsToDatabaseConfig } from '../../index.js';
2
3
  /**
3
4
  * Processes the calendar_dates.txt file from the GTFS dataset.
4
5
  * It extracts service_ids that are valid between the given start_date and end_date,
@@ -1,16 +1,6 @@
1
1
  import { SQLiteWriter } from '@tmlmobilidade/connectors';
2
2
  import { type GTFS_Route_Extended, type GTFS_Shape, type GTFS_Stop_Extended, type GTFS_StopTime, type GTFS_Trip_Extended, type Plan } from '@tmlmobilidade/types';
3
3
  import { type OperationalDate } from '@tmlmobilidade/types';
4
- /**
5
- * Configuration options for importing GTFS data into a database.
6
- */
7
- export interface ImportGtfsToDatabaseConfig {
8
- date_range?: {
9
- end: OperationalDate;
10
- start: OperationalDate;
11
- };
12
- discrete_dates?: OperationalDate[];
13
- }
14
4
  /**
15
5
  * Holds references to all GTFS-related SQL tables and writers.
16
6
  * Each property corresponds to a specific GTFS entity and is associated
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/import-gtfs",
3
- "version": "20251009.1435.7",
3
+ "version": "20251010.751.17",
4
4
  "author": "João de Vasconcelos & Jusi Monteiro",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "homepage": "https://github.com/tmlmobilidade/services#readme",