gtfs 4.13.3 → 4.14.0

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
@@ -2,6 +2,25 @@ import CsvParse from 'csv-parse';
2
2
  import Database from 'better-sqlite3';
3
3
  import { FeatureCollection } from 'geojson';
4
4
 
5
+ interface IAgency {
6
+ exclude?: string[];
7
+ url?: string;
8
+ path?: string;
9
+ headers?: Record<string, string>;
10
+ realtimeAlerts?: {
11
+ url: string;
12
+ headers?: Record<string, string>;
13
+ };
14
+ realtimeTripUpdates?: {
15
+ url: string;
16
+ headers?: Record<string, string>;
17
+ };
18
+ realtimeVehiclePositions?: {
19
+ url: string;
20
+ headers?: Record<string, string>;
21
+ };
22
+ prefix?: string;
23
+ }
5
24
  interface IConfig {
6
25
  db?: Database.Database;
7
26
  sqlitePath?: string;
@@ -11,15 +30,7 @@ interface IConfig {
11
30
  csvOptions?: CsvParse.Options;
12
31
  exportPath?: string;
13
32
  ignoreErrors?: boolean;
14
- agencies: {
15
- exclude?: string[];
16
- url?: string;
17
- path?: string;
18
- headers?: Record<string, string>;
19
- realtimeHeaders?: Record<string, string>;
20
- realtimeUrls?: string[];
21
- prefix?: string;
22
- }[];
33
+ agencies: IAgency[];
23
34
  verbose?: boolean;
24
35
  logFunction?: (message: string) => void;
25
36
  }
@@ -143,11 +154,11 @@ declare function getTripsDatedVehicleJourneys(query?: SqlWhere, fields?: SqlSele
143
154
 
144
155
  declare function getBoardAlights(query?: SqlWhere, fields?: SqlSelect, orderBy?: SqlOrderBy, options?: QueryOptions): SqlResults;
145
156
 
146
- declare function getRideFeedInfos(query?: SqlWhere, fields?: SqlSelect, orderBy?: SqlOrderBy, options?: QueryOptions): SqlResults;
157
+ declare function getRideFeedInfo(query?: SqlWhere, fields?: SqlSelect, orderBy?: SqlOrderBy, options?: QueryOptions): SqlResults;
147
158
 
148
159
  declare function getRiderTrips(query?: SqlWhere, fields?: SqlSelect, orderBy?: SqlOrderBy, options?: QueryOptions): SqlResults;
149
160
 
150
- declare function getRiderships(query?: SqlWhere, fields?: SqlSelect, orderBy?: SqlOrderBy, options?: QueryOptions): SqlResults;
161
+ declare function getRidership(query?: SqlWhere, fields?: SqlSelect, orderBy?: SqlOrderBy, options?: QueryOptions): SqlResults;
151
162
 
152
163
  declare function getTripCapacities(query?: SqlWhere, fields?: SqlSelect, orderBy?: SqlOrderBy, options?: QueryOptions): SqlResults;
153
164
 
@@ -169,4 +180,4 @@ declare function getRunEvents(query?: SqlWhere, fields?: SqlSelect, orderBy?: Sq
169
180
 
170
181
  declare function getRunsPieces(query?: SqlWhere, fields?: SqlSelect, orderBy?: SqlOrderBy, options?: QueryOptions): SqlResults;
171
182
 
172
- export { advancedQuery, closeDb, deleteDb, exportGtfs, getAgencies, getAreas, getAttributions, getBoardAlights, getBookingRules, getCalendarAttributes, getCalendarDates, getCalendars, getDeadheadTimes, getDeadheads, getDirections, getFareAttributes, getFareLegRules, getFareMedia, getFareProducts, getFareRules, getFareTransferRules, getFeedInfo, getFrequencies, getLevels, getLocationGroupStops, getLocationGroups, getLocations, getNetworks, getOpsLocations, getPathways, getRideFeedInfos, getRiderTrips, getRiderships, getRouteAttributes, getRouteNetworks, getRoutes, getRunEvents, getRunsPieces, getServiceAlerts, getShapes, getShapesAsGeoJSON, getStopAreas, getStopAttributes, getStopTimeUpdates, getStops, getStopsAsGeoJSON, getStoptimes, getTimeframes, getTimetableNotes, getTimetableNotesReferences, getTimetablePages, getTimetableStopOrders, getTimetables, getTransfers, getTranslations, getTripCapacities, getTripUpdates, getTrips, getTripsDatedVehicleJourneys, getVehiclePositions, importGtfs, openDb, updateGtfsRealtime };
183
+ export { advancedQuery, closeDb, deleteDb, exportGtfs, getAgencies, getAreas, getAttributions, getBoardAlights, getBookingRules, getCalendarAttributes, getCalendarDates, getCalendars, getDeadheadTimes, getDeadheads, getDirections, getFareAttributes, getFareLegRules, getFareMedia, getFareProducts, getFareRules, getFareTransferRules, getFeedInfo, getFrequencies, getLevels, getLocationGroupStops, getLocationGroups, getLocations, getNetworks, getOpsLocations, getPathways, getRideFeedInfo, getRiderTrips, getRidership, getRouteAttributes, getRouteNetworks, getRoutes, getRunEvents, getRunsPieces, getServiceAlerts, getShapes, getShapesAsGeoJSON, getStopAreas, getStopAttributes, getStopTimeUpdates, getStops, getStopsAsGeoJSON, getStoptimes, getTimeframes, getTimetableNotes, getTimetableNotesReferences, getTimetablePages, getTimetableStopOrders, getTimetables, getTransfers, getTranslations, getTripCapacities, getTripUpdates, getTrips, getTripsDatedVehicleJourneys, getVehiclePositions, importGtfs, openDb, updateGtfsRealtime };