gtfs 4.15.4 → 4.15.6
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/bin/gtfs-export.js +32 -54
- package/dist/bin/gtfs-export.js.map +1 -1
- package/dist/bin/gtfs-import.js +50 -63
- package/dist/bin/gtfs-import.js.map +1 -1
- package/dist/bin/gtfsrealtime-update.js +32 -55
- package/dist/bin/gtfsrealtime-update.js.map +1 -1
- package/dist/index.d.ts +332 -58
- package/dist/index.js +84 -69
- package/dist/index.js.map +1 -1
- package/package.json +6 -5
package/dist/index.d.ts
CHANGED
|
@@ -61,13 +61,14 @@ interface JoinOptions {
|
|
|
61
61
|
}
|
|
62
62
|
type SqlValue = undefined | null | string | number | boolean | Date | SqlValue[];
|
|
63
63
|
type SqlWhere = Record<string, null | SqlValue | SqlValue[]>;
|
|
64
|
-
type
|
|
64
|
+
type QueryResult<Base extends object, Select extends keyof Base> = [
|
|
65
|
+
Select
|
|
66
|
+
] extends [never] ? Base : Pick<Base, Select>;
|
|
65
67
|
type SqlOrderBy = Array<[string, 'ASC' | 'DESC']>;
|
|
66
68
|
interface QueryOptions {
|
|
67
69
|
db?: Database;
|
|
68
70
|
bounding_box_side_m?: number;
|
|
69
71
|
}
|
|
70
|
-
type SqlResults = Array<Record<string, any>>;
|
|
71
72
|
interface Agency {
|
|
72
73
|
agency_id?: string;
|
|
73
74
|
agency_name: string;
|
|
@@ -339,6 +340,279 @@ interface Trip {
|
|
|
339
340
|
wheelchair_accessible?: 0 | 1 | 2;
|
|
340
341
|
bikes_allowed?: 0 | 1 | 2;
|
|
341
342
|
}
|
|
343
|
+
interface Timetable {
|
|
344
|
+
timetable_id?: string;
|
|
345
|
+
route_id?: string;
|
|
346
|
+
direction_id?: 0 | 1;
|
|
347
|
+
start_date?: number;
|
|
348
|
+
end_date?: number;
|
|
349
|
+
monday?: 0 | 1;
|
|
350
|
+
tuesday?: 0 | 1;
|
|
351
|
+
wednesday?: 0 | 1;
|
|
352
|
+
thursday?: 0 | 1;
|
|
353
|
+
friday?: 0 | 1;
|
|
354
|
+
saturday?: 0 | 1;
|
|
355
|
+
sunday?: 0 | 1;
|
|
356
|
+
start_time?: string;
|
|
357
|
+
start_timestamp?: number;
|
|
358
|
+
end_time?: string;
|
|
359
|
+
end_timestamp?: number;
|
|
360
|
+
timetable_label?: string;
|
|
361
|
+
service_notes?: string;
|
|
362
|
+
orientation?: string;
|
|
363
|
+
timetable_page_id?: string;
|
|
364
|
+
timetable_sequence?: number;
|
|
365
|
+
direction_name?: string;
|
|
366
|
+
include_exceptions?: 0 | 1;
|
|
367
|
+
show_trip_continuation?: 0 | 1;
|
|
368
|
+
}
|
|
369
|
+
interface TimetableStopOrder {
|
|
370
|
+
timetable_id: string;
|
|
371
|
+
stop_id: string;
|
|
372
|
+
stop_sequence: number;
|
|
373
|
+
}
|
|
374
|
+
interface TimetableNote {
|
|
375
|
+
note_id: string;
|
|
376
|
+
symbol: string;
|
|
377
|
+
note: string;
|
|
378
|
+
}
|
|
379
|
+
interface TimetableNotesReference {
|
|
380
|
+
timetable_id: string;
|
|
381
|
+
route_id?: string;
|
|
382
|
+
trip_id?: string;
|
|
383
|
+
stop_id?: string;
|
|
384
|
+
stop_sequence?: number;
|
|
385
|
+
show_on_stoptime?: 0 | 1;
|
|
386
|
+
}
|
|
387
|
+
interface TimetablePage {
|
|
388
|
+
timetable_page_id: string;
|
|
389
|
+
timetable_page_label: string;
|
|
390
|
+
filename: string;
|
|
391
|
+
}
|
|
392
|
+
interface TripsDatedVehicleJourney {
|
|
393
|
+
trip_id: string;
|
|
394
|
+
operating_day_date: string;
|
|
395
|
+
dated_vehicle_journey_gid: string;
|
|
396
|
+
journey_number: number;
|
|
397
|
+
}
|
|
398
|
+
interface DeadheadTime {
|
|
399
|
+
deadhead_id: string;
|
|
400
|
+
arrival_time: string;
|
|
401
|
+
arrival_timestamp: number;
|
|
402
|
+
departure_time: string;
|
|
403
|
+
departure_timestamp: number;
|
|
404
|
+
ops_location_id?: string;
|
|
405
|
+
stop_id?: string;
|
|
406
|
+
location_sequence: number;
|
|
407
|
+
shape_dist_traveled?: number;
|
|
408
|
+
}
|
|
409
|
+
interface Deadhead {
|
|
410
|
+
deadhead_id: string;
|
|
411
|
+
service_id: string;
|
|
412
|
+
block_id: string;
|
|
413
|
+
shape_id?: string;
|
|
414
|
+
to_trip_id?: string;
|
|
415
|
+
from_trip_id?: string;
|
|
416
|
+
to_deadhead_id?: string;
|
|
417
|
+
from_deadhead_id?: string;
|
|
418
|
+
}
|
|
419
|
+
interface OpsLocation {
|
|
420
|
+
ops_location_id: string;
|
|
421
|
+
ops_location_code?: string;
|
|
422
|
+
ops_location_name: string;
|
|
423
|
+
ops_location_desc?: string;
|
|
424
|
+
ops_location_lat: number;
|
|
425
|
+
ops_location_lon: number;
|
|
426
|
+
}
|
|
427
|
+
interface RunEvent {
|
|
428
|
+
run_event_id: string;
|
|
429
|
+
piece_id: string;
|
|
430
|
+
event_type: number;
|
|
431
|
+
event_name?: string;
|
|
432
|
+
event_time: string;
|
|
433
|
+
event_duration: number;
|
|
434
|
+
event_from_location_type: 0 | 1;
|
|
435
|
+
event_from_location_id?: string;
|
|
436
|
+
event_to_location_type: 0 | 1;
|
|
437
|
+
event_to_location_id?: string;
|
|
438
|
+
}
|
|
439
|
+
interface RunPiece {
|
|
440
|
+
run_id: string;
|
|
441
|
+
piece_id: string;
|
|
442
|
+
start_type: 0 | 1 | 2;
|
|
443
|
+
start_trip_id: string;
|
|
444
|
+
start_trip_position?: number;
|
|
445
|
+
end_type: 0 | 1 | 2;
|
|
446
|
+
end_trip_id: string;
|
|
447
|
+
end_trip_position?: number;
|
|
448
|
+
}
|
|
449
|
+
interface ServiceAlert {
|
|
450
|
+
cause: number;
|
|
451
|
+
start_time: string;
|
|
452
|
+
end_time: string;
|
|
453
|
+
headline: string;
|
|
454
|
+
description: string;
|
|
455
|
+
created_timestamp: number;
|
|
456
|
+
expiration_timestamp: number;
|
|
457
|
+
}
|
|
458
|
+
interface StopTimeUpdate {
|
|
459
|
+
trip_id?: string;
|
|
460
|
+
trip_start_time?: string;
|
|
461
|
+
direction_id?: 0 | 1;
|
|
462
|
+
route_id?: string;
|
|
463
|
+
stop_id?: string;
|
|
464
|
+
stop_sequence?: number;
|
|
465
|
+
arrival_delay?: number;
|
|
466
|
+
departure_delay?: number;
|
|
467
|
+
departure_timestamp?: string;
|
|
468
|
+
arrival_timestamp?: string;
|
|
469
|
+
schedule_relationship?: string;
|
|
470
|
+
created_timestamp: number;
|
|
471
|
+
expiration_timestamp: number;
|
|
472
|
+
}
|
|
473
|
+
interface TripUpdate {
|
|
474
|
+
update_id: string;
|
|
475
|
+
vehicle_id?: string;
|
|
476
|
+
trip_id?: string;
|
|
477
|
+
trip_start_time?: string;
|
|
478
|
+
direction_id?: 0 | 1;
|
|
479
|
+
route_id?: string;
|
|
480
|
+
start_date?: number;
|
|
481
|
+
timestamp?: string;
|
|
482
|
+
schedule_relationship?: string;
|
|
483
|
+
created_timestamp: number;
|
|
484
|
+
expiration_timestamp: number;
|
|
485
|
+
}
|
|
486
|
+
interface VehiclePosition {
|
|
487
|
+
update_id: string;
|
|
488
|
+
bearing?: number;
|
|
489
|
+
latitude?: number;
|
|
490
|
+
longitude?: number;
|
|
491
|
+
speed?: number;
|
|
492
|
+
current_stop_sequence?: number;
|
|
493
|
+
trip_id?: string;
|
|
494
|
+
trip_start_date?: number;
|
|
495
|
+
trip_start_time?: string;
|
|
496
|
+
congestion_level?: string;
|
|
497
|
+
occupancy_status?: string;
|
|
498
|
+
occupancy_percentage?: number;
|
|
499
|
+
vehicle_stop_status?: string;
|
|
500
|
+
vehicle_id?: string;
|
|
501
|
+
vehicle_label?: string;
|
|
502
|
+
vehicle_license_plate?: string;
|
|
503
|
+
vehicle_wheelchair_accessible?: number;
|
|
504
|
+
timestamp?: string;
|
|
505
|
+
created_timestamp: number;
|
|
506
|
+
expiration_timestamp: number;
|
|
507
|
+
}
|
|
508
|
+
interface BoardAlight {
|
|
509
|
+
trip_id: string;
|
|
510
|
+
stop_id: string;
|
|
511
|
+
stop_sequence: number;
|
|
512
|
+
record_use: 0 | 1;
|
|
513
|
+
schedule_relationship?: number;
|
|
514
|
+
boardings?: number;
|
|
515
|
+
alightings?: number;
|
|
516
|
+
current_load?: number;
|
|
517
|
+
load_count?: number;
|
|
518
|
+
load_type?: number;
|
|
519
|
+
rack_down?: number;
|
|
520
|
+
bike_boardings?: number;
|
|
521
|
+
bike_alightings?: number;
|
|
522
|
+
ramp_used?: number;
|
|
523
|
+
ramp_boardings?: number;
|
|
524
|
+
ramp_alightings?: number;
|
|
525
|
+
service_date?: number;
|
|
526
|
+
service_arrival_time?: string;
|
|
527
|
+
service_arrival_timestamp?: number;
|
|
528
|
+
service_departure_time?: string;
|
|
529
|
+
service_departure_timestamp?: number;
|
|
530
|
+
source?: 0 | 1 | 2 | 3 | 4;
|
|
531
|
+
}
|
|
532
|
+
interface RideFeedInfo {
|
|
533
|
+
ride_files: number;
|
|
534
|
+
ride_start_date?: number;
|
|
535
|
+
ride_end_date?: number;
|
|
536
|
+
gtfs_feed_date?: number;
|
|
537
|
+
default_currency_type?: string;
|
|
538
|
+
ride_feed_version?: string;
|
|
539
|
+
}
|
|
540
|
+
interface RiderTrip {
|
|
541
|
+
rider_id: string;
|
|
542
|
+
agency_id?: string;
|
|
543
|
+
trip_id?: string;
|
|
544
|
+
boarding_stop_id?: string;
|
|
545
|
+
boarding_stop_sequence?: number;
|
|
546
|
+
alighting_stop_id?: string;
|
|
547
|
+
alighting_stop_sequence?: number;
|
|
548
|
+
service_date?: number;
|
|
549
|
+
boarding_time?: string;
|
|
550
|
+
boarding_timestamp?: number;
|
|
551
|
+
alighting_time?: string;
|
|
552
|
+
alighting_timestamp?: number;
|
|
553
|
+
rider_type?: number;
|
|
554
|
+
rider_type_description?: string;
|
|
555
|
+
fare_paid?: number;
|
|
556
|
+
transaction_type?: number;
|
|
557
|
+
fare_media?: number;
|
|
558
|
+
accompanying_device?: number;
|
|
559
|
+
transfer_status?: number;
|
|
560
|
+
}
|
|
561
|
+
interface Ridership {
|
|
562
|
+
total_boardings: number;
|
|
563
|
+
total_alightings: number;
|
|
564
|
+
ridership_start_date?: number;
|
|
565
|
+
ridership_end_date?: number;
|
|
566
|
+
ridership_start_time?: string;
|
|
567
|
+
ridership_start_timestamp?: number;
|
|
568
|
+
ridership_end_time?: string;
|
|
569
|
+
ridership_end_timestamp?: number;
|
|
570
|
+
service_id?: string;
|
|
571
|
+
monday?: 0 | 1;
|
|
572
|
+
tuesday?: 0 | 1;
|
|
573
|
+
wednesday?: 0 | 1;
|
|
574
|
+
thursday?: 0 | 1;
|
|
575
|
+
friday?: 0 | 1;
|
|
576
|
+
saturday?: 0 | 1;
|
|
577
|
+
sunday?: 0 | 1;
|
|
578
|
+
agency_id?: string;
|
|
579
|
+
route_id?: string;
|
|
580
|
+
direction_id?: 0 | 1;
|
|
581
|
+
trip_id?: string;
|
|
582
|
+
stop_id?: string;
|
|
583
|
+
}
|
|
584
|
+
interface TripCapacity {
|
|
585
|
+
agency_id?: string;
|
|
586
|
+
trip_id?: string;
|
|
587
|
+
service_date?: number;
|
|
588
|
+
vehicle_description?: string;
|
|
589
|
+
seated_capacity?: number;
|
|
590
|
+
standing_capacity?: number;
|
|
591
|
+
wheelchair_capacity?: number;
|
|
592
|
+
bike_capacity?: number;
|
|
593
|
+
}
|
|
594
|
+
interface CalendarAttribute {
|
|
595
|
+
service_id: string;
|
|
596
|
+
service_description: string;
|
|
597
|
+
}
|
|
598
|
+
interface Direction {
|
|
599
|
+
route_id: string;
|
|
600
|
+
direction_id?: 0 | 1;
|
|
601
|
+
direction: string;
|
|
602
|
+
}
|
|
603
|
+
interface RouteAttribute {
|
|
604
|
+
route_id: string;
|
|
605
|
+
category: number;
|
|
606
|
+
subcategory: number;
|
|
607
|
+
running_way: number;
|
|
608
|
+
}
|
|
609
|
+
interface StopAttribute {
|
|
610
|
+
stop_id: string;
|
|
611
|
+
accessibility_id?: number;
|
|
612
|
+
cardinal_direction?: string;
|
|
613
|
+
relative_position?: string;
|
|
614
|
+
stop_city?: string;
|
|
615
|
+
}
|
|
342
616
|
|
|
343
617
|
declare function importGtfs(initialConfig: Config): Promise<void>;
|
|
344
618
|
|
|
@@ -356,121 +630,121 @@ declare function deleteDb(db?: Database$1.Database | null): void;
|
|
|
356
630
|
declare function advancedQuery(table: string, advancedQueryOptions: {
|
|
357
631
|
db?: Database$1.Database;
|
|
358
632
|
query?: SqlWhere;
|
|
359
|
-
fields?:
|
|
633
|
+
fields?: string[];
|
|
360
634
|
orderBy?: SqlOrderBy;
|
|
361
635
|
join?: JoinOptions[];
|
|
362
636
|
options?: QueryOptions;
|
|
363
637
|
}): Array<Record<string, any>>;
|
|
364
638
|
|
|
365
|
-
declare function getAgencies(query?: SqlWhere, fields?:
|
|
639
|
+
declare function getAgencies<Fields extends keyof Agency>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<Agency, Fields>[];
|
|
366
640
|
|
|
367
|
-
declare function getAreas(query?: SqlWhere, fields?:
|
|
641
|
+
declare function getAreas<Fields extends keyof Area>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<Area, Fields>[];
|
|
368
642
|
|
|
369
|
-
declare function getAttributions(query?: SqlWhere, fields?:
|
|
643
|
+
declare function getAttributions<Fields extends keyof Attribution>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<Attribution, Fields>[];
|
|
370
644
|
|
|
371
|
-
declare function getBookingRules(query?: SqlWhere, fields?:
|
|
645
|
+
declare function getBookingRules<Fields extends keyof BookingRule>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<BookingRule, Fields>[];
|
|
372
646
|
|
|
373
|
-
declare function getCalendarDates(query?: SqlWhere, fields?:
|
|
647
|
+
declare function getCalendarDates<Fields extends keyof CalendarDate>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<CalendarDate, Fields>[];
|
|
374
648
|
|
|
375
|
-
declare function getCalendars(query?: SqlWhere, fields?:
|
|
649
|
+
declare function getCalendars<Fields extends keyof Calendar>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<Calendar, Fields>[];
|
|
376
650
|
declare function getServiceIdsByDate(date: number, options?: QueryOptions): string[];
|
|
377
651
|
|
|
378
|
-
declare function getFareAttributes(query?: SqlWhere, fields?:
|
|
652
|
+
declare function getFareAttributes<Fields extends keyof FareAttribute>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<FareAttribute, Fields>[];
|
|
379
653
|
|
|
380
|
-
declare function getFareLegRules(query?: SqlWhere, fields?:
|
|
654
|
+
declare function getFareLegRules<Fields extends keyof FareLegRule>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<FareLegRule, Fields>[];
|
|
381
655
|
|
|
382
|
-
declare function getFareMedia(query?: SqlWhere, fields?:
|
|
656
|
+
declare function getFareMedia<Fields extends keyof FareMedia>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<FareMedia, Fields>[];
|
|
383
657
|
|
|
384
|
-
declare function getFareProducts(query?: SqlWhere, fields?:
|
|
658
|
+
declare function getFareProducts<Fields extends keyof FareProduct>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<FareProduct, Fields>[];
|
|
385
659
|
|
|
386
|
-
declare function getFareRules(query?: SqlWhere, fields?:
|
|
660
|
+
declare function getFareRules<Fields extends keyof FareRule>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<FareRule, Fields>[];
|
|
387
661
|
|
|
388
|
-
declare function getFareTransferRules(query?: SqlWhere, fields?:
|
|
662
|
+
declare function getFareTransferRules<Fields extends keyof FareTransferRule>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<FareTransferRule, Fields>[];
|
|
389
663
|
|
|
390
|
-
declare function getFeedInfo(query?: SqlWhere, fields?:
|
|
664
|
+
declare function getFeedInfo<Fields extends keyof FeedInfo>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<FeedInfo, Fields>[];
|
|
391
665
|
|
|
392
|
-
declare function getFrequencies(query?: SqlWhere, fields?:
|
|
666
|
+
declare function getFrequencies<Fields extends keyof Frequency>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<Frequency, Fields>[];
|
|
393
667
|
|
|
394
|
-
declare function getLevels(query?: SqlWhere, fields?:
|
|
668
|
+
declare function getLevels<Fields extends keyof Level>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<Level, Fields>[];
|
|
395
669
|
|
|
396
|
-
declare function getLocationGroups(query?: SqlWhere, fields?:
|
|
670
|
+
declare function getLocationGroups<Fields extends keyof LocationGroup>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<LocationGroup, Fields>[];
|
|
397
671
|
|
|
398
|
-
declare function getLocationGroupStops(query?: SqlWhere, fields?:
|
|
672
|
+
declare function getLocationGroupStops<Fields extends keyof LocationGroupStop>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<LocationGroupStop, Fields>[];
|
|
399
673
|
|
|
400
|
-
declare function getLocations(query?: SqlWhere, fields?:
|
|
674
|
+
declare function getLocations<Fields extends keyof Location>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<Location, Fields>[];
|
|
401
675
|
|
|
402
|
-
declare function getNetworks(query?: SqlWhere, fields?:
|
|
676
|
+
declare function getNetworks<Fields extends keyof Network>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<Network, Fields>[];
|
|
403
677
|
|
|
404
|
-
declare function getPathways(query?: SqlWhere, fields?:
|
|
678
|
+
declare function getPathways<Fields extends keyof Pathway>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<Pathway, Fields>[];
|
|
405
679
|
|
|
406
|
-
declare function getRouteNetworks(query?: SqlWhere, fields?:
|
|
680
|
+
declare function getRouteNetworks<Fields extends keyof RouteNetwork>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<RouteNetwork, Fields>[];
|
|
407
681
|
|
|
408
|
-
declare function getRoutes(query?: SqlWhere, fields?:
|
|
682
|
+
declare function getRoutes<Fields extends keyof Route>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<Route, Fields>[];
|
|
409
683
|
|
|
410
|
-
declare function getShapes(query?: SqlWhere, fields?:
|
|
684
|
+
declare function getShapes<Fields extends keyof Shape>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<Shape, Fields>[];
|
|
411
685
|
declare function getShapesAsGeoJSON(query?: SqlWhere, options?: QueryOptions): FeatureCollection;
|
|
412
686
|
|
|
413
|
-
declare function getStopAreas(query?: SqlWhere, fields?:
|
|
687
|
+
declare function getStopAreas<Fields extends keyof StopArea>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<StopArea, Fields>[];
|
|
414
688
|
|
|
415
|
-
declare function getStops(query?: SqlWhere, fields?:
|
|
689
|
+
declare function getStops<Fields extends keyof Stop>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<Stop, Fields>[];
|
|
416
690
|
declare function getStopsAsGeoJSON(query?: SqlWhere, options?: QueryOptions): FeatureCollection;
|
|
417
691
|
|
|
418
|
-
declare function getStoptimes(query?: SqlWhere, fields?:
|
|
692
|
+
declare function getStoptimes<Fields extends keyof StopTime>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<StopTime, Fields>[];
|
|
419
693
|
|
|
420
|
-
declare function getTimeframes(query?: SqlWhere, fields?:
|
|
694
|
+
declare function getTimeframes<Fields extends keyof Timeframe>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<Timeframe, Fields>[];
|
|
421
695
|
|
|
422
|
-
declare function getTransfers(query?: SqlWhere, fields?:
|
|
696
|
+
declare function getTransfers<Fields extends keyof Transfer>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<Transfer, Fields>[];
|
|
423
697
|
|
|
424
|
-
declare function getTranslations(query?: SqlWhere, fields?:
|
|
698
|
+
declare function getTranslations<Fields extends keyof Translation>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<Translation, Fields>[];
|
|
425
699
|
|
|
426
|
-
declare function getTrips(query?: SqlWhere, fields?:
|
|
700
|
+
declare function getTrips<Fields extends keyof Trip>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<Trip, Fields>[];
|
|
427
701
|
|
|
428
|
-
declare function getCalendarAttributes(query?: SqlWhere, fields?:
|
|
702
|
+
declare function getCalendarAttributes<Fields extends keyof CalendarAttribute>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<CalendarAttribute, Fields>[];
|
|
429
703
|
|
|
430
|
-
declare function getDirections(query?: SqlWhere, fields?:
|
|
704
|
+
declare function getDirections<Fields extends keyof Direction>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<Direction, Fields>[];
|
|
431
705
|
|
|
432
|
-
declare function getRouteAttributes(query?: SqlWhere, fields?:
|
|
706
|
+
declare function getRouteAttributes<Fields extends keyof RouteAttribute>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<RouteAttribute, Fields>[];
|
|
433
707
|
|
|
434
|
-
declare function getStopAttributes(query?: SqlWhere, fields?:
|
|
708
|
+
declare function getStopAttributes<Fields extends keyof StopAttribute>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<StopAttribute, Fields>[];
|
|
435
709
|
|
|
436
|
-
declare function getTimetables(query?: SqlWhere, fields?:
|
|
710
|
+
declare function getTimetables<Fields extends keyof Timetable>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<Timetable, Fields>[];
|
|
437
711
|
|
|
438
|
-
declare function getTimetableStopOrders(query?: SqlWhere, fields?:
|
|
712
|
+
declare function getTimetableStopOrders<Fields extends keyof TimetableStopOrder>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<TimetableStopOrder, Fields>[];
|
|
439
713
|
|
|
440
|
-
declare function getTimetablePages(query?: SqlWhere, fields?:
|
|
714
|
+
declare function getTimetablePages<Fields extends keyof TimetablePage>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<TimetablePage, Fields>[];
|
|
441
715
|
|
|
442
|
-
declare function getTimetableNotes(query?: SqlWhere, fields?:
|
|
716
|
+
declare function getTimetableNotes<Fields extends keyof TimetableNote>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<TimetableNote, Fields>[];
|
|
443
717
|
|
|
444
|
-
declare function getTimetableNotesReferences(query?: SqlWhere, fields?:
|
|
718
|
+
declare function getTimetableNotesReferences<Fields extends keyof TimetableNotesReference>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<TimetableNotesReference, Fields>[];
|
|
445
719
|
|
|
446
|
-
declare function getTripsDatedVehicleJourneys(query?: SqlWhere, fields?:
|
|
720
|
+
declare function getTripsDatedVehicleJourneys<Fields extends keyof TripsDatedVehicleJourney>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<TripsDatedVehicleJourney, Fields>[];
|
|
447
721
|
|
|
448
|
-
declare function getBoardAlights(query?: SqlWhere, fields?:
|
|
722
|
+
declare function getBoardAlights<Fields extends keyof BoardAlight>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<BoardAlight, Fields>[];
|
|
449
723
|
|
|
450
|
-
declare function getRideFeedInfo(query?: SqlWhere, fields?:
|
|
724
|
+
declare function getRideFeedInfo<Fields extends keyof RideFeedInfo>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<RideFeedInfo, Fields>[];
|
|
451
725
|
|
|
452
|
-
declare function getRiderTrips(query?: SqlWhere, fields?:
|
|
726
|
+
declare function getRiderTrips<Fields extends keyof RiderTrip>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<RiderTrip, Fields>[];
|
|
453
727
|
|
|
454
|
-
declare function getRidership(query?: SqlWhere, fields?:
|
|
728
|
+
declare function getRidership<Fields extends keyof Ridership>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<Ridership, Fields>[];
|
|
455
729
|
|
|
456
|
-
declare function getTripCapacities(query?: SqlWhere, fields?:
|
|
730
|
+
declare function getTripCapacities<Fields extends keyof TripCapacity>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<TripCapacity, Fields>[];
|
|
457
731
|
|
|
458
|
-
declare function getStopTimeUpdates(query?: SqlWhere, fields?:
|
|
732
|
+
declare function getStopTimeUpdates<Fields extends keyof StopTimeUpdate>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<StopTimeUpdate, Fields>[];
|
|
459
733
|
|
|
460
|
-
declare function getTripUpdates(query?: SqlWhere, fields?:
|
|
734
|
+
declare function getTripUpdates<Fields extends keyof TripUpdate>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<TripUpdate, Fields>[];
|
|
461
735
|
|
|
462
|
-
declare function getVehiclePositions(query?: SqlWhere, fields?:
|
|
736
|
+
declare function getVehiclePositions<Fields extends keyof VehiclePosition>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<VehiclePosition, Fields>[];
|
|
463
737
|
|
|
464
|
-
declare function getServiceAlerts(query?: SqlWhere, fields?:
|
|
738
|
+
declare function getServiceAlerts<Fields extends keyof ServiceAlert>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<ServiceAlert, Fields>[];
|
|
465
739
|
|
|
466
|
-
declare function getDeadheads(query?: SqlWhere, fields?:
|
|
740
|
+
declare function getDeadheads<Fields extends keyof Deadhead>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<Deadhead, Fields>[];
|
|
467
741
|
|
|
468
|
-
declare function getDeadheadTimes(query?: SqlWhere, fields?:
|
|
742
|
+
declare function getDeadheadTimes<Fields extends keyof DeadheadTime>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<DeadheadTime, Fields>[];
|
|
469
743
|
|
|
470
|
-
declare function getOpsLocations(query?: SqlWhere, fields?:
|
|
744
|
+
declare function getOpsLocations<Fields extends keyof OpsLocation>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<OpsLocation, Fields>[];
|
|
471
745
|
|
|
472
|
-
declare function getRunEvents(query?: SqlWhere, fields?:
|
|
746
|
+
declare function getRunEvents<Fields extends keyof RunEvent>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<RunEvent, Fields>[];
|
|
473
747
|
|
|
474
|
-
declare function getRunsPieces(query?: SqlWhere, fields?:
|
|
748
|
+
declare function getRunsPieces<Fields extends keyof RunPiece>(query?: SqlWhere, fields?: Fields[], orderBy?: SqlOrderBy, options?: QueryOptions): QueryResult<RunPiece, Fields>[];
|
|
475
749
|
|
|
476
|
-
export { type Agency, type Area, type Attribution, type BookingRule, type Calendar, type CalendarDate, type Config, type ConfigAgency, type FareAttribute, type FareLegRule, type FareMedia, type FareProduct, type FareRule, type FareTransferRule, type FeedInfo, type Frequency, type JoinOptions, type Level, type Location, type LocationGroup, type LocationGroupStop, type Model, type ModelColumn, type Network, type Pathway, type QueryOptions, type Route, type RouteNetwork, type
|
|
750
|
+
export { type Agency, type Area, type Attribution, type BoardAlight, type BookingRule, type Calendar, type CalendarAttribute, type CalendarDate, type Config, type ConfigAgency, type Deadhead, type DeadheadTime, type Direction, type FareAttribute, type FareLegRule, type FareMedia, type FareProduct, type FareRule, type FareTransferRule, type FeedInfo, type Frequency, type JoinOptions, type Level, type Location, type LocationGroup, type LocationGroupStop, type Model, type ModelColumn, type Network, type OpsLocation, type Pathway, type QueryOptions, type QueryResult, type RideFeedInfo, type RiderTrip, type Ridership, type Route, type RouteAttribute, type RouteNetwork, type RunEvent, type RunPiece, type ServiceAlert, type Shape, type SqlOrderBy, type SqlValue, type SqlWhere, type Stop, type StopArea, type StopAttribute, type StopTime, type StopTimeUpdate, type Timeframe, type Timetable, type TimetableNote, type TimetableNotesReference, type TimetablePage, type TimetableStopOrder, type Transfer, type Translation, type Trip, type TripCapacity, type TripUpdate, type TripsDatedVehicleJourney, type VehiclePosition, 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, getServiceIdsByDate, getShapes, getShapesAsGeoJSON, getStopAreas, getStopAttributes, getStopTimeUpdates, getStops, getStopsAsGeoJSON, getStoptimes, getTimeframes, getTimetableNotes, getTimetableNotesReferences, getTimetablePages, getTimetableStopOrders, getTimetables, getTransfers, getTranslations, getTripCapacities, getTripUpdates, getTrips, getTripsDatedVehicleJourneys, getVehiclePositions, importGtfs, openDb, updateGtfsRealtime };
|