corequery-gtfs 0.16.0 → 0.16.2
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/gtfs-system.d.ts +2 -2
- package/dist/gtfs-system.js.map +1 -1
- package/dist/parser/error-types.d.ts +314 -0
- package/dist/parser/error-types.js +515 -0
- package/dist/parser/error-types.js.map +1 -0
- package/dist/parser/gtfs-feed-parser.d.ts +1 -2
- package/dist/parser/gtfs-feed-parser.js +2 -2
- package/dist/parser/gtfs-feed-parser.js.map +1 -1
- package/dist/parser/gtfs-route-matcher.d.ts +1 -6
- package/dist/parser/gtfs-route-matcher.js +1 -7
- package/dist/parser/gtfs-route-matcher.js.map +1 -1
- package/dist/parser/realtime/gtfs-added-trip-update-parser.d.ts +2 -35
- package/dist/parser/realtime/gtfs-added-trip-update-parser.js +2 -49
- package/dist/parser/realtime/gtfs-added-trip-update-parser.js.map +1 -1
- package/dist/parser/realtime/gtfs-cancelled-trip-update-parser.d.ts +1 -2
- package/dist/parser/realtime/gtfs-cancelled-trip-update-parser.js +2 -1
- package/dist/parser/realtime/gtfs-cancelled-trip-update-parser.js.map +1 -1
- package/dist/parser/realtime/gtfs-realtime-data-parser.d.ts +1 -2
- package/dist/parser/realtime/gtfs-realtime-data-parser.js +1 -1
- package/dist/parser/realtime/gtfs-realtime-data-parser.js.map +1 -1
- package/dist/parser/realtime/gtfs-scheduled-trip-identifier.d.ts +2 -26
- package/dist/parser/realtime/gtfs-scheduled-trip-identifier.js +1 -37
- package/dist/parser/realtime/gtfs-scheduled-trip-identifier.js.map +1 -1
- package/dist/parser/realtime/gtfs-trip-update-parser.d.ts +1 -9
- package/dist/parser/realtime/gtfs-trip-update-parser.js +4 -10
- package/dist/parser/realtime/gtfs-trip-update-parser.js.map +1 -1
- package/dist/parser/realtime/gtfs-updated-trip-update-parser.d.ts +2 -65
- package/dist/parser/realtime/gtfs-updated-trip-update-parser.js +3 -95
- package/dist/parser/realtime/gtfs-updated-trip-update-parser.js.map +1 -1
- package/dist/parser/schedule/gtfs-calendar-parser.d.ts +2 -22
- package/dist/parser/schedule/gtfs-calendar-parser.js +1 -28
- package/dist/parser/schedule/gtfs-calendar-parser.js.map +1 -1
- package/dist/parser/schedule/gtfs-schedule-data-parser.d.ts +1 -3
- package/dist/parser/schedule/gtfs-schedule-data-parser.js +3 -2
- package/dist/parser/schedule/gtfs-schedule-data-parser.js.map +1 -1
- package/dist/parser/schedule/gtfs-stop-time-normaliser.d.ts +1 -11
- package/dist/parser/schedule/gtfs-stop-time-normaliser.js +1 -14
- package/dist/parser/schedule/gtfs-stop-time-normaliser.js.map +1 -1
- package/dist/parser/schedule/gtfs-transfer-parser.d.ts +2 -46
- package/dist/parser/schedule/gtfs-transfer-parser.js +1 -64
- package/dist/parser/schedule/gtfs-transfer-parser.js.map +1 -1
- package/dist/parser/schedule/gtfs-trip-parser.d.ts +2 -40
- package/dist/parser/schedule/gtfs-trip-parser.js +4 -52
- package/dist/parser/schedule/gtfs-trip-parser.js.map +1 -1
- package/package.json +1 -1
- package/dist/parser/realtime/gtfs-trip-update-parser-common-error-types.d.ts +0 -25
- package/dist/parser/realtime/gtfs-trip-update-parser-common-error-types.js +0 -37
- package/dist/parser/realtime/gtfs-trip-update-parser-common-error-types.js.map +0 -1
package/dist/gtfs-system.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { LineGtfsIdMapping } from "./data/ids/line-gtfs-id-mapping.js";
|
|
|
4
4
|
import { StopGtfsIdMapping } from "./data/ids/stop-gtfs-id-mapping.js";
|
|
5
5
|
import { BonusLinesMapping } from "./data/route/bonus-lines-mapping.js";
|
|
6
6
|
import { LineRoutesMapping } from "./data/route/line-routes-mapping.js";
|
|
7
|
-
import type { GtfsScheduleParsingError } from "./parser/
|
|
7
|
+
import type { GtfsScheduleParsingError } from "./parser/error-types.js";
|
|
8
8
|
import type { RealtimeDataJson } from "./data/raw/realtime-data-json.js";
|
|
9
9
|
import type { GtfsFeedCsv } from "./data/raw/schedule-csvs.js";
|
|
10
10
|
export declare class GtfsSystem {
|
|
@@ -16,7 +16,7 @@ export declare class GtfsSystem {
|
|
|
16
16
|
static build(config: GtfsConfig): GtfsSystem;
|
|
17
17
|
getFeed(): GtfsFeed | null;
|
|
18
18
|
requireFeed(): GtfsFeed;
|
|
19
|
-
get realtimeParsingErrors(): import("./parser/
|
|
19
|
+
get realtimeParsingErrors(): import("./parser/error-types.js").GtfsTripUpdateParsingError[];
|
|
20
20
|
get scheduleParsingErrors(): GtfsScheduleParsingError[];
|
|
21
21
|
onNewScheduleData(scheduleCsvs: GtfsFeedCsv, realtimeJson: RealtimeDataJson): void;
|
|
22
22
|
onNewRealtimeData(realtimeJson: RealtimeDataJson): void;
|
package/dist/gtfs-system.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gtfs-system.js","sourceRoot":"","sources":["../src/gtfs-system.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"gtfs-system.js","sourceRoot":"","sources":["../src/gtfs-system.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import type { StopTimeUpdateJson, TripDescriptorJson, TripUpdateJson, UpdatedTimeJson } from "../data/raw/realtime-data-json.js";
|
|
2
|
+
import type { CalendarCsvRow, CalendarDatesCsvRow, StopTimesCsv, StopTimesCsvRow, TransfersCsvRow, TripsCsvRow } from "../data/raw/schedule-csvs.js";
|
|
3
|
+
import type { GtfsScheduledTrip } from "../data/trip/scheduled/gtfs-scheduled-trip.js";
|
|
4
|
+
import type { GtfsUpdatedTripMovement } from "../data/trip/updated/types.js";
|
|
5
|
+
export type GtfsScheduleParsingError = GtfsCalendarParsingError | GtfsTripParsingError;
|
|
6
|
+
export type GtfsCalendarParsingError = DuplicateCalendarIdError | UnexpectedCalendarDateExceptionTypeError | InvalidCalendarDateRangeError | MultipleExceptionsForSameDateError;
|
|
7
|
+
export type GtfsTripParsingError = StopTimeReferencesNonExistentTripError | DuplicateTripIdError | TripReferencesNonExistentCalendarError | TripReferencesUnmappedRouteIdError | GtfsStopTimeNormalisationError | GtfsRouteMatchingError | GtfsTransferParsingError | StopTimeReferencesUnmappedStopIdError | UnexpectedPickupTypeError | UnexpectedDropOffTypeError;
|
|
8
|
+
export type GtfsStopTimeNormalisationError = InvalidStopSequenceError | MultipleStopSequencesError;
|
|
9
|
+
export type GtfsRouteMatchingError = NoMatchingRouteError;
|
|
10
|
+
export type GtfsTransferParsingError = TransferReferencesNonExistentTrip | TransferIsNotFromTerminusError | TransferIsNotToOriginError | TransferReferencesTripAlreadyConnectedError | TransferIsNotInSeatTransferError | TransferIsNotSameStopAndPositionError | TransferCrossesCalendarsError | TransferRequiresTimeTravelError;
|
|
11
|
+
export type GtfsRealtimeDataParsingError = GtfsTripUpdateParsingError;
|
|
12
|
+
export type GtfsTripUpdateParsingError = UnsupportedTripUpdateScheduleRelationshipError | GtfsUpdatedTripUpdateParsingError | GtfsCancelledTripUpdateParsingError | GtfsAddedTripUpdateParsingError;
|
|
13
|
+
export type GtfsUpdatedTripUpdateParsingError = GtfsScheduledTripIdentificationError | GtfsRouteMatchingError | NoStopTimeUpdateFieldGivenError | UnsupportedStopTimeUpdateEntryScheduleRelationshipError | NecessaryFieldNotInStopTimeUpdateEntryError | StopTimeUpdateEntryReferencesNonExistentStopSequenceError | MultipleStopTimeUpdateEntriesForSameMovementIndexError | StopTimeUpdateEntryReferencesUnmappedStopIdError | StopTimeUpdateEntryChangesStopError | NeitherTimeNorDelayGivenError | TimeAndDelayDisagreeWithEachOtherError | NeitherArrivalNorDepartureGivenError | KnownDepartureTimesEntailTimeTravelError | TooFewSurvivingServicingMovementsError;
|
|
14
|
+
export type GtfsCancelledTripUpdateParsingError = GtfsScheduledTripIdentificationError;
|
|
15
|
+
export type GtfsAddedTripUpdateParsingError = NecessaryFieldNotSuppliedForAddedTripError | AddedTripIdDuplicatesScheduledTripIdError | NoStopTimeUpdateFieldGivenError | UnsupportedStopTimeUpdateEntryScheduleRelationshipError | NecessaryFieldNotInStopTimeUpdateEntryError | StopTimeUpdateEntryReferencesUnmappedStopIdError | AddedTripStopTimeUpdateMissingTimeError | AddedTripReferencesUnmappedRouteIdError | GtfsRouteMatchingError | NonSequentialStopTimeUpdateEntryError;
|
|
16
|
+
export type GtfsScheduledTripIdentificationError = NecessaryFieldNotInTripDescriptorError | TripDescriptorReferencesNonExistentTripIdError | TripDoesNotOccurOnStartDateError | TripDescriptorStartTimeDoesNotMatchTripOriginStopTimeError;
|
|
17
|
+
export declare class DuplicateCalendarIdError {
|
|
18
|
+
readonly subsequentRowWithDuplicateId: CalendarCsvRow;
|
|
19
|
+
readonly type = "duplicate-calendar";
|
|
20
|
+
constructor(subsequentRowWithDuplicateId: CalendarCsvRow);
|
|
21
|
+
formatDebugMessage(): string;
|
|
22
|
+
}
|
|
23
|
+
export declare class InvalidCalendarDateRangeError {
|
|
24
|
+
readonly row: CalendarCsvRow;
|
|
25
|
+
readonly type = "invalid-calendar-date-range";
|
|
26
|
+
constructor(row: CalendarCsvRow);
|
|
27
|
+
formatDebugMessage(): string;
|
|
28
|
+
}
|
|
29
|
+
export declare class UnexpectedCalendarDateExceptionTypeError {
|
|
30
|
+
readonly row: CalendarDatesCsvRow;
|
|
31
|
+
readonly type = "unexpected-calendar-date-exception-type";
|
|
32
|
+
constructor(row: CalendarDatesCsvRow);
|
|
33
|
+
formatDebugMessage(): string;
|
|
34
|
+
}
|
|
35
|
+
export declare class MultipleExceptionsForSameDateError {
|
|
36
|
+
readonly subsequentRowForSameDate: CalendarDatesCsvRow;
|
|
37
|
+
readonly type = "multiple-exceptions-for-same-date";
|
|
38
|
+
constructor(subsequentRowForSameDate: CalendarDatesCsvRow);
|
|
39
|
+
formatDebugMessage(): string;
|
|
40
|
+
}
|
|
41
|
+
export declare class StopTimeReferencesNonExistentTripError {
|
|
42
|
+
readonly stopTime: StopTimesCsvRow;
|
|
43
|
+
readonly type = "stop-time-references-non-existent-trip";
|
|
44
|
+
constructor(stopTime: StopTimesCsvRow);
|
|
45
|
+
formatDebugMessage(): string;
|
|
46
|
+
}
|
|
47
|
+
export declare class DuplicateTripIdError {
|
|
48
|
+
readonly subsequentRowWithDuplicateId: TripsCsvRow;
|
|
49
|
+
readonly type = "duplicate-trip-id";
|
|
50
|
+
constructor(subsequentRowWithDuplicateId: TripsCsvRow);
|
|
51
|
+
formatDebugMessage(): string;
|
|
52
|
+
}
|
|
53
|
+
export declare class TripReferencesNonExistentCalendarError {
|
|
54
|
+
readonly trip: TripsCsvRow;
|
|
55
|
+
readonly type = "trip-references-non-existent-calendar";
|
|
56
|
+
constructor(trip: TripsCsvRow);
|
|
57
|
+
formatDebugMessage(): string;
|
|
58
|
+
}
|
|
59
|
+
export declare class TripReferencesUnmappedRouteIdError {
|
|
60
|
+
readonly trip: TripsCsvRow;
|
|
61
|
+
readonly type = "trip-references-unmapped-route-id";
|
|
62
|
+
constructor(trip: TripsCsvRow);
|
|
63
|
+
formatDebugMessage(): string;
|
|
64
|
+
}
|
|
65
|
+
export declare class StopTimeReferencesUnmappedStopIdError {
|
|
66
|
+
readonly stopTime: StopTimesCsvRow;
|
|
67
|
+
readonly type = "stop-time-references-unmapped-stop-id";
|
|
68
|
+
constructor(stopTime: StopTimesCsvRow);
|
|
69
|
+
formatDebugMessage(): string;
|
|
70
|
+
}
|
|
71
|
+
export declare class UnexpectedPickupTypeError {
|
|
72
|
+
readonly stopTime: StopTimesCsvRow;
|
|
73
|
+
readonly type = "unexpected-pickup-type";
|
|
74
|
+
constructor(stopTime: StopTimesCsvRow);
|
|
75
|
+
formatDebugMessage(): string;
|
|
76
|
+
}
|
|
77
|
+
export declare class UnexpectedDropOffTypeError {
|
|
78
|
+
readonly stopTime: StopTimesCsvRow;
|
|
79
|
+
readonly type = "unexpected-drop-off-type";
|
|
80
|
+
constructor(stopTime: StopTimesCsvRow);
|
|
81
|
+
formatDebugMessage(): string;
|
|
82
|
+
}
|
|
83
|
+
export declare class InvalidStopSequenceError {
|
|
84
|
+
readonly stopTimes: StopTimesCsv;
|
|
85
|
+
readonly type = "invalid-stop-sequence";
|
|
86
|
+
constructor(stopTimes: StopTimesCsv);
|
|
87
|
+
formatDebugMessage(): string;
|
|
88
|
+
}
|
|
89
|
+
export declare class MultipleStopSequencesError {
|
|
90
|
+
readonly stopTimes: StopTimesCsv;
|
|
91
|
+
readonly type = "multiple-stop-sequences";
|
|
92
|
+
constructor(stopTimes: StopTimesCsv);
|
|
93
|
+
formatDebugMessage(): string;
|
|
94
|
+
}
|
|
95
|
+
export declare class NoMatchingRouteError {
|
|
96
|
+
readonly stopIds: readonly number[];
|
|
97
|
+
readonly type = "no-matching-route";
|
|
98
|
+
constructor(stopIds: readonly number[]);
|
|
99
|
+
formatDebugMessage(): string;
|
|
100
|
+
}
|
|
101
|
+
export declare class TransferReferencesNonExistentTrip {
|
|
102
|
+
readonly transfer: TransfersCsvRow;
|
|
103
|
+
readonly field: "from_trip_id" | "to_trip_id";
|
|
104
|
+
readonly type = "transfer-references-non-existent-trip";
|
|
105
|
+
constructor(transfer: TransfersCsvRow, field: "from_trip_id" | "to_trip_id");
|
|
106
|
+
formatDebugMessage(): string;
|
|
107
|
+
}
|
|
108
|
+
export declare class TransferIsNotFromTerminusError {
|
|
109
|
+
readonly transfer: TransfersCsvRow;
|
|
110
|
+
readonly fromTrip: GtfsScheduledTrip;
|
|
111
|
+
readonly type = "transfer-is-not-from-terminus";
|
|
112
|
+
constructor(transfer: TransfersCsvRow, fromTrip: GtfsScheduledTrip);
|
|
113
|
+
formatDebugMessage(): string;
|
|
114
|
+
}
|
|
115
|
+
export declare class TransferIsNotToOriginError {
|
|
116
|
+
readonly transfer: TransfersCsvRow;
|
|
117
|
+
readonly toTrip: GtfsScheduledTrip;
|
|
118
|
+
readonly type = "transfer-is-not-to-origin";
|
|
119
|
+
constructor(transfer: TransfersCsvRow, toTrip: GtfsScheduledTrip);
|
|
120
|
+
formatDebugMessage(): string;
|
|
121
|
+
}
|
|
122
|
+
export declare class TransferReferencesTripAlreadyConnectedError {
|
|
123
|
+
readonly transfer: TransfersCsvRow;
|
|
124
|
+
readonly tripWithExistingConnection: GtfsScheduledTrip;
|
|
125
|
+
readonly type = "transfer-references-trip-already-connected";
|
|
126
|
+
constructor(transfer: TransfersCsvRow, tripWithExistingConnection: GtfsScheduledTrip);
|
|
127
|
+
formatDebugMessage(): string;
|
|
128
|
+
}
|
|
129
|
+
export declare class TransferIsNotInSeatTransferError {
|
|
130
|
+
readonly transfer: TransfersCsvRow;
|
|
131
|
+
readonly type = "transfer-is-not-in-seat-transfer";
|
|
132
|
+
constructor(transfer: TransfersCsvRow);
|
|
133
|
+
formatDebugMessage(): string;
|
|
134
|
+
}
|
|
135
|
+
export declare class TransferIsNotSameStopAndPositionError {
|
|
136
|
+
readonly transfer: TransfersCsvRow;
|
|
137
|
+
readonly type = "transfer-is-not-same-stop-and-position";
|
|
138
|
+
constructor(transfer: TransfersCsvRow);
|
|
139
|
+
formatDebugMessage(): string;
|
|
140
|
+
}
|
|
141
|
+
export declare class TransferCrossesCalendarsError {
|
|
142
|
+
readonly transfer: TransfersCsvRow;
|
|
143
|
+
readonly type = "transfer-crosses-calendars";
|
|
144
|
+
constructor(transfer: TransfersCsvRow);
|
|
145
|
+
formatDebugMessage(): string;
|
|
146
|
+
}
|
|
147
|
+
export declare class TransferRequiresTimeTravelError {
|
|
148
|
+
readonly transfer: TransfersCsvRow;
|
|
149
|
+
readonly type = "transfer-requires-time-travel";
|
|
150
|
+
constructor(transfer: TransfersCsvRow);
|
|
151
|
+
formatDebugMessage(): string;
|
|
152
|
+
}
|
|
153
|
+
export declare class NecessaryFieldNotSuppliedForAddedTripError {
|
|
154
|
+
readonly tripUpdate: TripUpdateJson;
|
|
155
|
+
readonly field: "tripId" | "routeId" | "startDate";
|
|
156
|
+
readonly type = "necessary-field-not-supplied-for-added-trip";
|
|
157
|
+
constructor(tripUpdate: TripUpdateJson, field: "tripId" | "routeId" | "startDate");
|
|
158
|
+
formatDebugMessage(): string;
|
|
159
|
+
}
|
|
160
|
+
export declare class AddedTripIdDuplicatesScheduledTripIdError {
|
|
161
|
+
readonly tripUpdate: TripUpdateJson;
|
|
162
|
+
readonly tripId: string;
|
|
163
|
+
readonly type = "added-trip-id-duplicates-scheduled-trip-id";
|
|
164
|
+
constructor(tripUpdate: TripUpdateJson, tripId: string);
|
|
165
|
+
formatDebugMessage(): string;
|
|
166
|
+
}
|
|
167
|
+
export declare class AddedTripStopTimeUpdateMissingTimeError {
|
|
168
|
+
readonly tripUpdate: TripUpdateJson;
|
|
169
|
+
readonly stopTimeUpdateEntry: StopTimeUpdateJson;
|
|
170
|
+
readonly type = "added-trip-stop-time-update-missing-time";
|
|
171
|
+
constructor(tripUpdate: TripUpdateJson, stopTimeUpdateEntry: StopTimeUpdateJson);
|
|
172
|
+
formatDebugMessage(): string;
|
|
173
|
+
}
|
|
174
|
+
export declare class AddedTripReferencesUnmappedRouteIdError {
|
|
175
|
+
readonly tripUpdate: TripUpdateJson;
|
|
176
|
+
readonly gtfsRouteId: string;
|
|
177
|
+
readonly type = "trip-references-unmapped-route-id";
|
|
178
|
+
constructor(tripUpdate: TripUpdateJson, gtfsRouteId: string);
|
|
179
|
+
formatDebugMessage(): string;
|
|
180
|
+
}
|
|
181
|
+
export declare class NonSequentialStopTimeUpdateEntryError {
|
|
182
|
+
readonly tripUpdate: TripUpdateJson;
|
|
183
|
+
readonly stopTimeUpdateEntry: StopTimeUpdateJson;
|
|
184
|
+
readonly expectedStopSequence: number;
|
|
185
|
+
readonly type = "non-sequential-stop-time-update-entry";
|
|
186
|
+
constructor(tripUpdate: TripUpdateJson, stopTimeUpdateEntry: StopTimeUpdateJson, expectedStopSequence: number);
|
|
187
|
+
formatDebugMessage(): string;
|
|
188
|
+
}
|
|
189
|
+
export declare class NoStopTimeUpdateFieldGivenError {
|
|
190
|
+
readonly tripUpdate: TripUpdateJson;
|
|
191
|
+
readonly type = "no-stop-time-update-field-given";
|
|
192
|
+
constructor(tripUpdate: TripUpdateJson);
|
|
193
|
+
formatDebugMessage(): string;
|
|
194
|
+
}
|
|
195
|
+
export declare class UnsupportedStopTimeUpdateEntryScheduleRelationshipError {
|
|
196
|
+
readonly tripUpdate: TripUpdateJson;
|
|
197
|
+
readonly stopTimeUpdateEntry: StopTimeUpdateJson;
|
|
198
|
+
readonly type = "unsupported-stop-time-update-entry-schedule-relationship";
|
|
199
|
+
constructor(tripUpdate: TripUpdateJson, stopTimeUpdateEntry: StopTimeUpdateJson);
|
|
200
|
+
formatDebugMessage(): string;
|
|
201
|
+
}
|
|
202
|
+
export declare class NecessaryFieldNotInStopTimeUpdateEntryError {
|
|
203
|
+
readonly tripUpdate: TripUpdateJson;
|
|
204
|
+
readonly stopTimeUpdateEntry: StopTimeUpdateJson;
|
|
205
|
+
readonly field: "stopSequence" | "stopId";
|
|
206
|
+
readonly type = "necessary-field-not-in-stop-time-update-entry";
|
|
207
|
+
constructor(tripUpdate: TripUpdateJson, stopTimeUpdateEntry: StopTimeUpdateJson, field: "stopSequence" | "stopId");
|
|
208
|
+
formatDebugMessage(): string;
|
|
209
|
+
}
|
|
210
|
+
export declare class StopTimeUpdateEntryReferencesUnmappedStopIdError {
|
|
211
|
+
readonly tripUpdate: TripUpdateJson;
|
|
212
|
+
readonly stopTimeUpdateEntry: StopTimeUpdateJson;
|
|
213
|
+
readonly type = "stop-time-update-entry-references-unmapped-stop-id";
|
|
214
|
+
constructor(tripUpdate: TripUpdateJson, stopTimeUpdateEntry: StopTimeUpdateJson);
|
|
215
|
+
formatDebugMessage(): string;
|
|
216
|
+
}
|
|
217
|
+
export declare class StopTimeUpdateEntryReferencesNonExistentStopSequenceError {
|
|
218
|
+
readonly tripUpdate: TripUpdateJson;
|
|
219
|
+
readonly stopTimeUpdateEntry: StopTimeUpdateJson;
|
|
220
|
+
readonly matchedTrip: GtfsScheduledTrip;
|
|
221
|
+
readonly type = "stop-time-update-entry-references-non-existent-stop-sequence";
|
|
222
|
+
constructor(tripUpdate: TripUpdateJson, stopTimeUpdateEntry: StopTimeUpdateJson, matchedTrip: GtfsScheduledTrip);
|
|
223
|
+
formatDebugMessage(): string;
|
|
224
|
+
}
|
|
225
|
+
export declare class MultipleStopTimeUpdateEntriesForSameMovementIndexError {
|
|
226
|
+
readonly tripUpdate: TripUpdateJson;
|
|
227
|
+
readonly stopTimeUpdateEntry: StopTimeUpdateJson;
|
|
228
|
+
readonly matchedTrip: GtfsScheduledTrip;
|
|
229
|
+
readonly matchedMovementIndex: number;
|
|
230
|
+
readonly type = "multiple-stop-time-update-entries-for-same-movement-index";
|
|
231
|
+
constructor(tripUpdate: TripUpdateJson, stopTimeUpdateEntry: StopTimeUpdateJson, matchedTrip: GtfsScheduledTrip, matchedMovementIndex: number);
|
|
232
|
+
formatDebugMessage(): string;
|
|
233
|
+
}
|
|
234
|
+
export declare class StopTimeUpdateEntryChangesStopError {
|
|
235
|
+
readonly tripUpdate: TripUpdateJson;
|
|
236
|
+
readonly stopTimeUpdateEntry: StopTimeUpdateJson;
|
|
237
|
+
readonly matchedTrip: GtfsScheduledTrip;
|
|
238
|
+
readonly matchedMovementIndex: number;
|
|
239
|
+
readonly type = "stop-time-update-entry-changes-stop";
|
|
240
|
+
constructor(tripUpdate: TripUpdateJson, stopTimeUpdateEntry: StopTimeUpdateJson, matchedTrip: GtfsScheduledTrip, matchedMovementIndex: number);
|
|
241
|
+
formatDebugMessage(): string;
|
|
242
|
+
}
|
|
243
|
+
export declare class NeitherTimeNorDelayGivenError {
|
|
244
|
+
readonly tripUpdate: TripUpdateJson;
|
|
245
|
+
readonly stopTimeUpdateEntry: StopTimeUpdateJson;
|
|
246
|
+
readonly updatedTime: UpdatedTimeJson;
|
|
247
|
+
readonly type = "neither-time-nor-delay-given";
|
|
248
|
+
constructor(tripUpdate: TripUpdateJson, stopTimeUpdateEntry: StopTimeUpdateJson, updatedTime: UpdatedTimeJson);
|
|
249
|
+
formatDebugMessage(): string;
|
|
250
|
+
}
|
|
251
|
+
export declare class TimeAndDelayDisagreeWithEachOtherError {
|
|
252
|
+
readonly tripUpdate: TripUpdateJson;
|
|
253
|
+
readonly stopTimeUpdateEntry: StopTimeUpdateJson;
|
|
254
|
+
readonly updatedTime: UpdatedTimeJson;
|
|
255
|
+
readonly parsedFromTime: Temporal.Instant;
|
|
256
|
+
readonly parsedFromDelay: Temporal.Instant;
|
|
257
|
+
readonly type = "time-and-delay-disagree-with-each-other";
|
|
258
|
+
constructor(tripUpdate: TripUpdateJson, stopTimeUpdateEntry: StopTimeUpdateJson, updatedTime: UpdatedTimeJson, parsedFromTime: Temporal.Instant, parsedFromDelay: Temporal.Instant);
|
|
259
|
+
formatDebugMessage(): string;
|
|
260
|
+
}
|
|
261
|
+
export declare class NeitherArrivalNorDepartureGivenError {
|
|
262
|
+
readonly tripUpdate: TripUpdateJson;
|
|
263
|
+
readonly stopTimeUpdateEntry: StopTimeUpdateJson;
|
|
264
|
+
readonly type = "neither-arrival-nor-departure-given";
|
|
265
|
+
constructor(tripUpdate: TripUpdateJson, stopTimeUpdateEntry: StopTimeUpdateJson);
|
|
266
|
+
formatDebugMessage(): string;
|
|
267
|
+
}
|
|
268
|
+
export declare class KnownDepartureTimesEntailTimeTravelError {
|
|
269
|
+
readonly tripUpdate: TripUpdateJson;
|
|
270
|
+
readonly movements: readonly GtfsUpdatedTripMovement[];
|
|
271
|
+
readonly type = "known-departure-times-entail-time-travel";
|
|
272
|
+
constructor(tripUpdate: TripUpdateJson, movements: readonly GtfsUpdatedTripMovement[]);
|
|
273
|
+
formatDebugMessage(): string;
|
|
274
|
+
}
|
|
275
|
+
export declare class TooFewSurvivingServicingMovementsError {
|
|
276
|
+
readonly tripUpdate: TripUpdateJson;
|
|
277
|
+
readonly survivingMovements: GtfsUpdatedTripMovement[];
|
|
278
|
+
readonly type = "too-few-surviving-servicing-movements";
|
|
279
|
+
constructor(tripUpdate: TripUpdateJson, survivingMovements: GtfsUpdatedTripMovement[]);
|
|
280
|
+
formatDebugMessage(): string;
|
|
281
|
+
}
|
|
282
|
+
export declare class NecessaryFieldNotInTripDescriptorError {
|
|
283
|
+
readonly tripDescriptor: TripDescriptorJson;
|
|
284
|
+
readonly field: "tripId" | "startDate";
|
|
285
|
+
readonly type = "necessary-field-not-in-trip-descriptor";
|
|
286
|
+
constructor(tripDescriptor: TripDescriptorJson, field: "tripId" | "startDate");
|
|
287
|
+
formatDebugMessage(): string;
|
|
288
|
+
}
|
|
289
|
+
export declare class TripDescriptorReferencesNonExistentTripIdError {
|
|
290
|
+
readonly tripDescriptor: TripDescriptorJson;
|
|
291
|
+
readonly type = "trip-descriptor-references-non-existent-trip-id";
|
|
292
|
+
constructor(tripDescriptor: TripDescriptorJson);
|
|
293
|
+
formatDebugMessage(): string;
|
|
294
|
+
}
|
|
295
|
+
export declare class TripDoesNotOccurOnStartDateError {
|
|
296
|
+
readonly tripDescriptor: TripDescriptorJson;
|
|
297
|
+
readonly trip: GtfsScheduledTrip;
|
|
298
|
+
readonly type = "trip-does-not-occur-on-start-date";
|
|
299
|
+
constructor(tripDescriptor: TripDescriptorJson, trip: GtfsScheduledTrip);
|
|
300
|
+
formatDebugMessage(): string;
|
|
301
|
+
}
|
|
302
|
+
export declare class TripDescriptorStartTimeDoesNotMatchTripOriginStopTimeError {
|
|
303
|
+
readonly tripDescriptor: TripDescriptorJson;
|
|
304
|
+
readonly trip: GtfsScheduledTrip;
|
|
305
|
+
readonly type = "trip-descriptor-start-time-does-not-match-trip-origin-stop-time";
|
|
306
|
+
constructor(tripDescriptor: TripDescriptorJson, trip: GtfsScheduledTrip);
|
|
307
|
+
formatDebugMessage(): string;
|
|
308
|
+
}
|
|
309
|
+
export declare class UnsupportedTripUpdateScheduleRelationshipError {
|
|
310
|
+
readonly tripUpdate: TripUpdateJson;
|
|
311
|
+
readonly type = "unsupported-trip-update-schedule-relationship";
|
|
312
|
+
constructor(tripUpdate: TripUpdateJson);
|
|
313
|
+
formatDebugMessage(): string;
|
|
314
|
+
}
|