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