@tiducto/spider-sdk-typescript 1.2.0 → 1.3.1
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/contract/routing/DepartureBoard.d.ts +3 -3
- package/dist/contract/routing/DepartureBoard.d.ts.map +1 -1
- package/dist/contract/routing/DeparturesRequest.d.ts +3 -3
- package/dist/contract/routing/DeparturesRequest.d.ts.map +1 -1
- package/dist/contract/routing/DeparturesResponse.d.ts +2 -2
- package/dist/contract/routing/DeparturesResponse.d.ts.map +1 -1
- package/dist/contract/routing/ErrorResponse.d.ts +5 -4
- package/dist/contract/routing/ErrorResponse.d.ts.map +1 -1
- package/dist/contract/routing/Geometry.d.ts +1 -1
- package/dist/contract/routing/Geometry.d.ts.map +1 -1
- package/dist/contract/routing/Itinerary.d.ts +4 -4
- package/dist/contract/routing/Itinerary.d.ts.map +1 -1
- package/dist/contract/routing/Leg.d.ts +14 -13
- package/dist/contract/routing/Leg.d.ts.map +1 -1
- package/dist/contract/routing/LegTime.d.ts +1 -1
- package/dist/contract/routing/LegTime.d.ts.map +1 -1
- package/dist/contract/routing/Place.d.ts +3 -2
- package/dist/contract/routing/Place.d.ts.map +1 -1
- package/dist/contract/routing/PlanCoordinateInput.d.ts +2 -2
- package/dist/contract/routing/PlanCoordinateInput.d.ts.map +1 -1
- package/dist/contract/routing/PlanDateTimeInput.d.ts +1 -1
- package/dist/contract/routing/PlanDateTimeInput.d.ts.map +1 -1
- package/dist/contract/routing/PlanLocationInput.d.ts +1 -1
- package/dist/contract/routing/PlanLocationInput.d.ts.map +1 -1
- package/dist/contract/routing/PlanModesInput.d.ts +2 -2
- package/dist/contract/routing/PlanModesInput.d.ts.map +1 -1
- package/dist/contract/routing/PlanPageInfo.d.ts +8 -6
- package/dist/contract/routing/PlanPageInfo.d.ts.map +1 -1
- package/dist/contract/routing/PlanPassThroughViaLocationInput.d.ts +1 -1
- package/dist/contract/routing/PlanPassThroughViaLocationInput.d.ts.map +1 -1
- package/dist/contract/routing/PlanStreamDoneEvent.d.ts +1 -1
- package/dist/contract/routing/PlanStreamDoneEvent.d.ts.map +1 -1
- package/dist/contract/routing/PlanStreamPageInfoEvent.d.ts +8 -6
- package/dist/contract/routing/PlanStreamPageInfoEvent.d.ts.map +1 -1
- package/dist/contract/routing/PlanStreamRequest.d.ts +8 -8
- package/dist/contract/routing/PlanStreamRequest.d.ts.map +1 -1
- package/dist/contract/routing/PlanTripRequest.d.ts +7 -7
- package/dist/contract/routing/PlanTripRequest.d.ts.map +1 -1
- package/dist/contract/routing/PlanTripResponse.d.ts +3 -3
- package/dist/contract/routing/PlanTripResponse.d.ts.map +1 -1
- package/dist/contract/routing/PlanViaLocationInput.d.ts +1 -1
- package/dist/contract/routing/PlanViaLocationInput.d.ts.map +1 -1
- package/dist/contract/routing/PlanVisitViaLocationInput.d.ts +2 -2
- package/dist/contract/routing/PlanVisitViaLocationInput.d.ts.map +1 -1
- package/dist/contract/routing/RealTimeEstimate.d.ts +1 -1
- package/dist/contract/routing/RealTimeEstimate.d.ts.map +1 -1
- package/dist/contract/routing/Route.d.ts +6 -4
- package/dist/contract/routing/Route.d.ts.map +1 -1
- package/dist/contract/routing/RoutingError.d.ts +2 -2
- package/dist/contract/routing/RoutingError.d.ts.map +1 -1
- package/dist/contract/routing/RoutingErrorCode.d.ts +1 -1
- package/dist/contract/routing/RoutingErrorCode.d.ts.map +1 -1
- package/dist/contract/routing/Stop.d.ts +3 -3
- package/dist/contract/routing/Stop.d.ts.map +1 -1
- package/dist/contract/routing/StopDeparturesRoute.d.ts +7 -5
- package/dist/contract/routing/StopDeparturesRoute.d.ts.map +1 -1
- package/dist/contract/routing/StopDeparturesStop.d.ts +1 -1
- package/dist/contract/routing/StopDeparturesStop.d.ts.map +1 -1
- package/dist/contract/routing/StopDeparturesStoptime.d.ts +11 -10
- package/dist/contract/routing/StopDeparturesStoptime.d.ts.map +1 -1
- package/dist/contract/routing/StopDeparturesTrip.d.ts +2 -2
- package/dist/contract/routing/StopDeparturesTrip.d.ts.map +1 -1
- package/dist/contract/routing/Stoptime.d.ts +10 -10
- package/dist/contract/routing/Stoptime.d.ts.map +1 -1
- package/dist/contract/routing/TransitFilterInput.d.ts +1 -1
- package/dist/contract/routing/TransitFilterInput.d.ts.map +1 -1
- package/dist/contract/routing/TransitFilterSelectInput.d.ts +1 -1
- package/dist/contract/routing/TransitFilterSelectInput.d.ts.map +1 -1
- package/dist/contract/routing/Trip.d.ts +1 -1
- package/dist/contract/routing/Trip.d.ts.map +1 -1
- package/dist/contract/routing/TripGeometry.d.ts +2 -2
- package/dist/contract/routing/TripGeometry.d.ts.map +1 -1
- package/dist/contract/routing/TripRequest.d.ts +3 -3
- package/dist/contract/routing/TripRequest.d.ts.map +1 -1
- package/dist/contract/routing/TripResponse.d.ts +2 -2
- package/dist/contract/routing/TripResponse.d.ts.map +1 -1
- package/dist/contract/routing/TripRoute.d.ts +7 -5
- package/dist/contract/routing/TripRoute.d.ts.map +1 -1
- package/dist/contract/routing/TripStop.d.ts +5 -5
- package/dist/contract/routing/TripStop.d.ts.map +1 -1
- package/dist/contract/routing/TripTimetable.d.ts +9 -7
- package/dist/contract/routing/TripTimetable.d.ts.map +1 -1
- package/dist/contract/routing/WalkPreferencesInput.d.ts +1 -1
- package/dist/contract/routing/WalkPreferencesInput.d.ts.map +1 -1
- package/dist/contractVersion.d.ts +1 -1
- package/dist/contractVersion.js +1 -1
- package/dist/enums.d.ts +3 -1
- package/dist/enums.d.ts.map +1 -1
- package/dist/enums.js +1 -2
- package/dist/enums.js.map +1 -1
- package/dist/errors.d.ts +3 -4
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +0 -5
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/polling.d.ts +1 -2
- package/dist/polling.d.ts.map +1 -1
- package/dist/polling.js +2 -5
- package/dist/polling.js.map +1 -1
- package/dist/realtime.d.ts +20 -24
- package/dist/realtime.d.ts.map +1 -1
- package/dist/realtime.js +43 -42
- package/dist/realtime.js.map +1 -1
- package/dist/routing.d.ts +28 -25
- package/dist/routing.d.ts.map +1 -1
- package/dist/routing.js +78 -77
- package/dist/routing.js.map +1 -1
- package/dist/sdk.d.ts +1 -1
- package/dist/sdkVersion.d.ts +1 -1
- package/dist/sdkVersion.js +1 -1
- package/dist/stops.d.ts +2 -2
- package/dist/stops.d.ts.map +1 -1
- package/dist/stops.js +2 -2
- package/dist/stops.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { StopDeparturesStoptime } from './StopDeparturesStoptime.ts';
|
|
2
2
|
import type { WheelchairBoarding } from './WheelchairBoarding.ts';
|
|
3
|
-
/** Departures board for one platform (a stop id) or a whole station (a station id), realtime merged in. A trip's final stop
|
|
3
|
+
/** Departures board for one platform (a stop id) or a whole station (a station id), realtime merged in. A trip's final stop, a canceled departure and a departure that does not allow boarding give no row. */
|
|
4
4
|
export interface DepartureBoard {
|
|
5
5
|
gtfsId: string;
|
|
6
6
|
name: string;
|
|
7
7
|
/** Null on a station board. */
|
|
8
|
-
wheelchairBoarding
|
|
9
|
-
stoptimesWithoutPatterns
|
|
8
|
+
wheelchairBoarding: WheelchairBoarding | null;
|
|
9
|
+
stoptimesWithoutPatterns: StopDeparturesStoptime[];
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=DepartureBoard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepartureBoard.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/DepartureBoard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE
|
|
1
|
+
{"version":3,"file":"DepartureBoard.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/DepartureBoard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,+MAA+M;AAC/M,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,kBAAkB,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC9C,wBAAwB,EAAE,sBAAsB,EAAE,CAAC;CACpD"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/** POST body for `/routing/v1/departures`. A key not listed here is a 400 `<key> is not allowed
|
|
1
|
+
/** POST body for `/routing/v1/departures`. A key not listed here is a 400 `<key> is not allowed`, whatever its value, null included. Every bound is rejected, never clamped. `null` on an optional member means absent, and on a required member is a 400 `<path> is required`. */
|
|
2
2
|
export interface DeparturesRequest {
|
|
3
|
-
/** Feed-prefixed id (`<feedId>:<id>`) of a stop, for that platform's board, or of a station, for all its platforms. */
|
|
3
|
+
/** Feed-prefixed id (`<feedId>:<id>`) of a stop, for that platform's board, or of a station, for all its platforms. A bare or foreign-prefixed id resolves to nothing, and `stop` is null. */
|
|
4
4
|
id: string;
|
|
5
5
|
/** Most rows on the board: 1 up to the environment's limit; rejected, never clamped. */
|
|
6
6
|
numberOfDepartures: number;
|
|
7
|
-
/** Unix seconds the board starts at. Absent or 0 means now. */
|
|
7
|
+
/** Unix seconds the board starts at, from 0 to 4102444799 (2099-12-31T23:59:59Z). Absent or 0 means now. */
|
|
8
8
|
startTime?: number;
|
|
9
9
|
/** Seconds after `startTime` the board covers: 1 to 86400 (24 hours); rejected, never clamped. */
|
|
10
10
|
timeRange: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeparturesRequest.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/DeparturesRequest.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"DeparturesRequest.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/DeparturesRequest.ts"],"names":[],"mappings":"AAAA,mRAAmR;AACnR,MAAM,WAAW,iBAAiB;IAChC,8LAA8L;IAC9L,EAAE,EAAE,MAAM,CAAC;IACX,wFAAwF;IACxF,kBAAkB,EAAE,MAAM,CAAC;IAC3B,4GAA4G;IAC5G,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kGAAkG;IAClG,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DepartureBoard } from './DepartureBoard.ts';
|
|
2
|
-
/** `stop` is the board, or null for an id that
|
|
2
|
+
/** `stop` is the board, or null for an id that resolves to no stop or station. */
|
|
3
3
|
export interface DeparturesResponse {
|
|
4
|
-
stop
|
|
4
|
+
stop: DepartureBoard | null;
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=DeparturesResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeparturesResponse.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/DeparturesResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,
|
|
1
|
+
{"version":3,"file":"DeparturesResponse.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/DeparturesResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,kFAAkF;AAClF,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,cAAc,GAAG,IAAI,CAAC;CAC7B"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
/** Error body: a stable machine-readable `code
|
|
1
|
+
/** Error body: a stable machine-readable `code`, which names a state, and a human-readable `message`. */
|
|
2
2
|
export interface ErrorResponse {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/** One of `bad_request`, `key_missing`, `key_invalid`, `key_not_allowed`, `agreement_inactive`, `planning_limit_reached`, `not_found`, `method_not_allowed`, `length_required`, `payload_too_large`, `rate_limited`, `internal_error`, `upstream_unavailable`, `upstream_timeout`. New codes may be added. */
|
|
4
|
+
code: string;
|
|
5
|
+
/** For `bad_request`: `<field> is required|invalid|out of range|not allowed`, or `body is invalid` when the body is empty, not JSON or not an object. */
|
|
5
6
|
message: string;
|
|
6
|
-
/**
|
|
7
|
+
/** Present only on a 400 that names one member: its dot path from the body root, array positions omitted, or the query parameter's name. */
|
|
7
8
|
field?: string;
|
|
8
9
|
}
|
|
9
10
|
//# sourceMappingURL=ErrorResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorResponse.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/ErrorResponse.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"ErrorResponse.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/ErrorResponse.ts"],"names":[],"mappings":"AAAA,yGAAyG;AACzG,MAAM,WAAW,aAAa;IAC5B,8SAA8S;IAC9S,IAAI,EAAE,MAAM,CAAC;IACb,yJAAyJ;IACzJ,OAAO,EAAE,MAAM,CAAC;IAChB,4IAA4I;IAC5I,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Geometry.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Geometry.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,wCAAwC;IACxC,MAAM,
|
|
1
|
+
{"version":3,"file":"Geometry.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Geometry.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,wCAAwC;IACxC,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Leg } from './Leg.ts';
|
|
2
2
|
/** One journey, leg by leg. Times are in the feed's time zone. */
|
|
3
3
|
export interface Itinerary {
|
|
4
|
-
start
|
|
5
|
-
end
|
|
4
|
+
start: string;
|
|
5
|
+
end: string;
|
|
6
6
|
/** Seconds from `start` to `end`. */
|
|
7
|
-
duration
|
|
7
|
+
duration: number;
|
|
8
8
|
/** Seconds spent waiting at stops. */
|
|
9
|
-
waitingTime
|
|
9
|
+
waitingTime: number;
|
|
10
10
|
/** Changes between vehicles. Staying on board as the vehicle carries on as another trip (`interlineWithPreviousLeg`) is not counted. */
|
|
11
11
|
numberOfTransfers: number;
|
|
12
12
|
legs: Leg[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Itinerary.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Itinerary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAEpC,kEAAkE;AAClE,MAAM,WAAW,SAAS;IACxB,KAAK,
|
|
1
|
+
{"version":3,"file":"Itinerary.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Itinerary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAEpC,kEAAkE;AAClE,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,qCAAqC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,wIAAwI;IACxI,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,GAAG,EAAE,CAAC;CACb"}
|
|
@@ -7,29 +7,30 @@ import type { Route } from './Route.ts';
|
|
|
7
7
|
import type { Trip } from './Trip.ts';
|
|
8
8
|
/** One walk or ride. */
|
|
9
9
|
export interface Leg {
|
|
10
|
-
mode
|
|
10
|
+
mode: Mode;
|
|
11
11
|
start: LegTime;
|
|
12
12
|
end: LegTime;
|
|
13
|
-
/** Seconds of delay applied to this leg's arrival at the requested `reliability`: that trip's
|
|
14
|
-
typicalArrivalDelay
|
|
15
|
-
realtimeState
|
|
13
|
+
/** Seconds of delay applied to this leg's arrival at the requested `reliability`: that level's percentile (p50, p70 or p90) of the trip's recorded delay at the alighting stop on the service date's day type, from the environment's realtime history, never below 0 and never decreasing along the trip's pattern. Null when `reliability` is omitted, the trip has live realtime or there is no history, and on a walk leg. */
|
|
14
|
+
typicalArrivalDelay: number | null;
|
|
15
|
+
realtimeState: RealtimeState;
|
|
16
16
|
/** True when the leg's times include realtime. */
|
|
17
|
-
realTime
|
|
17
|
+
realTime: boolean;
|
|
18
18
|
/** The GTFS service date of the leg's trip, `YYYY-MM-DD`; null on a walk leg. */
|
|
19
|
-
serviceDate
|
|
19
|
+
serviceDate: string | null;
|
|
20
20
|
from: Place;
|
|
21
21
|
to: Place;
|
|
22
22
|
/** Null on a walk leg. */
|
|
23
|
-
route
|
|
24
|
-
|
|
23
|
+
route: Route | null;
|
|
24
|
+
/** Null on a walk leg and when the feed has none. */
|
|
25
|
+
headsign: string | null;
|
|
25
26
|
/** Metres. */
|
|
26
|
-
distance
|
|
27
|
+
distance: number;
|
|
27
28
|
/** Seconds. */
|
|
28
|
-
duration
|
|
29
|
+
duration: number;
|
|
29
30
|
/** Null on a walk leg. */
|
|
30
|
-
trip
|
|
31
|
+
trip: Trip | null;
|
|
31
32
|
/** True on a transit leg ridden in the same vehicle as the previous leg: the vehicle carries on as another trip, often under another line number, and the rider stays on board. That change is not counted in `numberOfTransfers`. False on every other leg. */
|
|
32
|
-
interlineWithPreviousLeg
|
|
33
|
-
legGeometry
|
|
33
|
+
interlineWithPreviousLeg: boolean;
|
|
34
|
+
legGeometry: Geometry;
|
|
34
35
|
}
|
|
35
36
|
//# sourceMappingURL=Leg.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Leg.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Leg.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,wBAAwB;AACxB,MAAM,WAAW,GAAG;IAClB,IAAI,
|
|
1
|
+
{"version":3,"file":"Leg.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Leg.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,wBAAwB;AACxB,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,OAAO,CAAC;IACb,kaAAka;IACla,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,aAAa,EAAE,aAAa,CAAC;IAC7B,kDAAkD;IAClD,QAAQ,EAAE,OAAO,CAAC;IAClB,iFAAiF;IACjF,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,KAAK,CAAC;IACZ,EAAE,EAAE,KAAK,CAAC;IACV,0BAA0B;IAC1B,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,qDAAqD;IACrD,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,cAAc;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,0BAA0B;IAC1B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,gQAAgQ;IAChQ,wBAAwB,EAAE,OAAO,CAAC;IAClC,WAAW,EAAE,QAAQ,CAAC;CACvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegTime.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/LegTime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,MAAM,WAAW,OAAO;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,6BAA6B;IAC7B,SAAS,
|
|
1
|
+
{"version":3,"file":"LegTime.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/LegTime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,MAAM,WAAW,OAAO;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,6BAA6B;IAC7B,SAAS,EAAE,gBAAgB,GAAG,IAAI,CAAC;CACpC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Stop } from './Stop.ts';
|
|
2
2
|
export interface Place {
|
|
3
|
-
name
|
|
3
|
+
/** The stop's name; `Origin` or `Destination` for a coordinate. */
|
|
4
|
+
name: string;
|
|
4
5
|
/** Null when the place is not a stop, as for an origin or destination coordinate. */
|
|
5
|
-
stop
|
|
6
|
+
stop: Stop | null;
|
|
6
7
|
}
|
|
7
8
|
//# sourceMappingURL=Place.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Place.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Place.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,WAAW,KAAK;IACpB,IAAI,
|
|
1
|
+
{"version":3,"file":"Place.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Place.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,WAAW,KAAK;IACpB,mEAAmE;IACnE,IAAI,EAAE,MAAM,CAAC;IACb,qFAAqF;IACrF,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;CACnB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** A WGS84 point. */
|
|
2
2
|
export interface PlanCoordinateInput {
|
|
3
|
-
/** Latitude in degrees. */
|
|
3
|
+
/** Latitude in degrees, -90 to 90; rejected, never clamped. */
|
|
4
4
|
latitude: number;
|
|
5
|
-
/** Longitude in degrees. */
|
|
5
|
+
/** Longitude in degrees, -180 to 180; rejected, never clamped. */
|
|
6
6
|
longitude: number;
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=PlanCoordinateInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanCoordinateInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanCoordinateInput.ts"],"names":[],"mappings":"AAAA,qBAAqB;AACrB,MAAM,WAAW,mBAAmB;IAClC
|
|
1
|
+
{"version":3,"file":"PlanCoordinateInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanCoordinateInput.ts"],"names":[],"mappings":"AAAA,qBAAqB;AACrB,MAAM,WAAW,mBAAmB;IAClC,+DAA+D;IAC/D,QAAQ,EAAE,MAAM,CAAC;IACjB,kEAAkE;IAClE,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Exactly one of `earliestDeparture`, `latestArrival`. Both are RFC 3339 date-times with an offset, e.g. `2026-10-07T08:00:00+02:00`. */
|
|
1
|
+
/** Exactly one of `earliestDeparture`, `latestArrival`; neither or both is a 400 `dateTime is invalid`. Both are RFC 3339 date-times with seconds and an offset, e.g. `2026-10-07T08:00:00+02:00`. */
|
|
2
2
|
export interface PlanDateTimeInput {
|
|
3
3
|
/** Depart at or after this time. */
|
|
4
4
|
earliestDeparture?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanDateTimeInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanDateTimeInput.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"PlanDateTimeInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanDateTimeInput.ts"],"names":[],"mappings":"AAAA,sMAAsM;AACtM,MAAM,WAAW,iBAAiB;IAChC,oCAAoC;IACpC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qCAAqC;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PlanCoordinateInput } from './PlanCoordinateInput.ts';
|
|
2
2
|
import type { PlanStopLocationInput } from './PlanStopLocationInput.ts';
|
|
3
|
-
/** Exactly one of `coordinate`, `stopLocation`. */
|
|
3
|
+
/** Exactly one of `coordinate`, `stopLocation`; neither or both is a 400 naming `origin.location` or `destination.location`. */
|
|
4
4
|
export interface PlanLocationInput {
|
|
5
5
|
/** A point; the journey walks between it and the stops. */
|
|
6
6
|
coordinate?: PlanCoordinateInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanLocationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanLocationInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE,
|
|
1
|
+
{"version":3,"file":"PlanLocationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanLocationInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE,gIAAgI;AAChI,MAAM,WAAW,iBAAiB;IAChC,2DAA2D;IAC3D,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,2BAA2B;IAC3B,YAAY,CAAC,EAAE,qBAAqB,CAAC;CACtC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PlanTransitModesInput } from './PlanTransitModesInput.ts';
|
|
2
|
-
/** Which modes the search may use. */
|
|
2
|
+
/** Which modes the search may use. `directOnly` and `transitOnly` together are a 400 `modes is invalid`. */
|
|
3
3
|
export interface PlanModesInput {
|
|
4
|
-
/** Only a direct walk, without transit. */
|
|
4
|
+
/** Only a direct walk, without transit. A direct-only plan has no pages: its cursors are null. */
|
|
5
5
|
directOnly?: boolean;
|
|
6
6
|
/** Never a journey without a transit leg. */
|
|
7
7
|
transitOnly?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanModesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanModesInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE,
|
|
1
|
+
{"version":3,"file":"PlanModesInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanModesInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE,4GAA4G;AAC5G,MAAM,WAAW,cAAc;IAC7B,kGAAkG;IAClG,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6CAA6C;IAC7C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,qBAAqB,CAAC;CACjC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export interface PlanPageInfo {
|
|
2
|
-
/** Send as `before` for the previous page; null when there is none. */
|
|
3
|
-
startCursor
|
|
4
|
-
/** Send as `after` for the next page; null when there is none. */
|
|
5
|
-
endCursor
|
|
2
|
+
/** Send as `before` for the previous page; null when there is none, as for a declined, direct-only or unroutable plan. */
|
|
3
|
+
startCursor: string | null;
|
|
4
|
+
/** Send as `after` for the next page; null when there is none, as for a declined, direct-only or unroutable plan. */
|
|
5
|
+
endCursor: string | null;
|
|
6
|
+
/** True exactly when `endCursor` is present. */
|
|
6
7
|
hasNextPage: boolean;
|
|
8
|
+
/** True exactly when `startCursor` is present. */
|
|
7
9
|
hasPreviousPage: boolean;
|
|
8
|
-
/** The window the search covered, as an ISO-8601 duration; null for a declined plan. */
|
|
9
|
-
searchWindowUsed
|
|
10
|
+
/** The window the search covered, as an ISO-8601 duration; null when no transit search ran, as for a declined, direct-only or unroutable plan. */
|
|
11
|
+
searchWindowUsed: string | null;
|
|
10
12
|
}
|
|
11
13
|
//# sourceMappingURL=PlanPageInfo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanPageInfo.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanPageInfo.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,
|
|
1
|
+
{"version":3,"file":"PlanPageInfo.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanPageInfo.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,0HAA0H;IAC1H,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,qHAAqH;IACrH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,gDAAgD;IAChD,WAAW,EAAE,OAAO,CAAC;IACrB,kDAAkD;IAClD,eAAe,EAAE,OAAO,CAAC;IACzB,kJAAkJ;IAClJ,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** A location the journey passes. */
|
|
2
2
|
export interface PlanPassThroughViaLocationInput {
|
|
3
|
-
/** 1 to 10 feed-prefixed stop or station ids; passing any one of them is enough.
|
|
3
|
+
/** 1 to 10 feed-prefixed stop or station ids; passing any one of them is enough. Absent is a 400 `via.passThrough.stopLocationIds is required`, and empty or more than 10 `via.passThrough.stopLocationIds is out of range`. */
|
|
4
4
|
stopLocationIds: string[];
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=PlanPassThroughViaLocationInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanPassThroughViaLocationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanPassThroughViaLocationInput.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,MAAM,WAAW,+BAA+B;IAC9C,
|
|
1
|
+
{"version":3,"file":"PlanPassThroughViaLocationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanPassThroughViaLocationInput.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,MAAM,WAAW,+BAA+B;IAC9C,gOAAgO;IAChO,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** The search work this stream used; ends the stream. `stoppedBy` is `targetResults` (enough itineraries sent), `maxWindow` (the whole window searched) or `rejected` (a declined plan); new values may be added. */
|
|
1
|
+
/** The search work this stream used; ends the stream. `stoppedBy` is `targetResults` (enough itineraries sent), `maxWindow` (the whole window searched), `directOnly` (a direct-only plan, which searches no transit) or `rejected` (a declined plan, one with no stops in range or no transit connection included); new values may be added. */
|
|
2
2
|
export interface PlanStreamDoneEvent {
|
|
3
3
|
/** Search iterations used. */
|
|
4
4
|
iterations: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanStreamDoneEvent.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanStreamDoneEvent.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"PlanStreamDoneEvent.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanStreamDoneEvent.ts"],"names":[],"mappings":"AAAA,iVAAiV;AACjV,MAAM,WAAW,mBAAmB;IAClC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,wBAAwB;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,8BAA8B;IAC9B,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import type { RoutingError } from './RoutingError.ts';
|
|
2
2
|
/** Sent once, after the last `chunk`. To continue, send `endCursor` as `after` or `startCursor` as `before` in a new request. */
|
|
3
3
|
export interface PlanStreamPageInfoEvent {
|
|
4
|
-
/** Send as `before` for earlier itineraries; null when there is none. */
|
|
5
|
-
startCursor
|
|
6
|
-
/** Send as `after` for later itineraries; null when there is none. */
|
|
7
|
-
endCursor
|
|
4
|
+
/** Send as `before` for earlier itineraries; null when there is none, as for a declined, direct-only or unroutable plan. */
|
|
5
|
+
startCursor: string | null;
|
|
6
|
+
/** Send as `after` for later itineraries; null when there is none, as for a declined, direct-only or unroutable plan. */
|
|
7
|
+
endCursor: string | null;
|
|
8
|
+
/** True exactly when `endCursor` is present. */
|
|
8
9
|
hasNextPage: boolean;
|
|
10
|
+
/** True exactly when `startCursor` is present. */
|
|
9
11
|
hasPreviousPage: boolean;
|
|
10
|
-
/** The window the stream searched, as an ISO-8601 duration; null for a declined plan. */
|
|
11
|
-
searchWindowUsed
|
|
12
|
+
/** The window the stream searched, as an ISO-8601 duration; null when no transit search ran, as for a declined, direct-only or unroutable plan. */
|
|
13
|
+
searchWindowUsed: string | null;
|
|
12
14
|
/** Why the plan was declined; empty when it was not. */
|
|
13
15
|
routingErrors: RoutingError[];
|
|
14
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanStreamPageInfoEvent.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanStreamPageInfoEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,iIAAiI;AACjI,MAAM,WAAW,uBAAuB;IACtC,
|
|
1
|
+
{"version":3,"file":"PlanStreamPageInfoEvent.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanStreamPageInfoEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,iIAAiI;AACjI,MAAM,WAAW,uBAAuB;IACtC,4HAA4H;IAC5H,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,yHAAyH;IACzH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,gDAAgD;IAChD,WAAW,EAAE,OAAO,CAAC;IACrB,kDAAkD;IAClD,eAAe,EAAE,OAAO,CAAC;IACzB,mJAAmJ;IACnJ,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,wDAAwD;IACxD,aAAa,EAAE,YAAY,EAAE,CAAC;CAC/B"}
|
|
@@ -4,24 +4,24 @@ import type { PlanModesInput } from './PlanModesInput.ts';
|
|
|
4
4
|
import type { PlanPreferencesInput } from './PlanPreferencesInput.ts';
|
|
5
5
|
import type { PlanViaLocationInput } from './PlanViaLocationInput.ts';
|
|
6
6
|
import type { Reliability } from './Reliability.ts';
|
|
7
|
-
/** POST body for `/routing/v1/plan-stream`: the Plan Trip search, streamed. Instead of a fixed window, the stream widens its search until it has sent `targetResults` itineraries or has searched `maxWindow`. To continue, send the `pageInfo` event's `endCursor` as `after` (later) or its `startCursor` as `before` (earlier); `before` and `after` are exclusive. A key not listed here, at any depth, is a 400 `<path> is not allowed
|
|
7
|
+
/** POST body for `/routing/v1/plan-stream`: the Plan Trip search, streamed. Instead of a fixed window, the stream widens its search until it has sent at least `targetResults` itineraries or has searched `maxWindow`. To continue, send the `pageInfo` event's `endCursor` as `after` (later) or its `startCursor` as `before` (earlier); `before` and `after` are exclusive. A cursor carries the search it continues: it overrides `dateTime` (whether `earliestDeparture` or `latestArrival`) and the sort; `dateTime` stays required and is still checked. A key not listed here, at any depth, is a 400 `<path> is not allowed`, whatever its value, null included. Every bound is rejected, never clamped. `null` on an optional member means absent, and on a required member is a 400 `<path> is required`. */
|
|
8
8
|
export interface PlanStreamRequest {
|
|
9
9
|
dateTime: PlanDateTimeInput;
|
|
10
|
-
/** Where the journey starts.
|
|
10
|
+
/** Where the journey starts. A stop id that resolves to no stop or station, a bare or foreign-prefixed one included, is a 200 with the `routingErrors` code `LOCATION_NOT_FOUND` on `FROM`. */
|
|
11
11
|
origin: PlanLabeledLocationInput;
|
|
12
|
-
/** Where the journey ends.
|
|
12
|
+
/** Where the journey ends. A stop id that resolves to no stop or station, a bare or foreign-prefixed one included, is a 200 with the `routingErrors` code `LOCATION_NOT_FOUND` on `TO`. */
|
|
13
13
|
destination: PlanLabeledLocationInput;
|
|
14
|
-
/** Locations the journey must visit or pass through, in the order given
|
|
14
|
+
/** Locations the journey must visit or pass through, in the order given, all of one kind: every entry `visit` or every entry `passThrough`; mixing them is a 400 `via is invalid`. How many a request takes is an environment setting, and an environment set to 0 has via turned off; more is a 400 `via is out of range`. A via stop id that resolves to no stop or station is a 200 with the `routingErrors` code `LOCATION_NOT_FOUND` on `VIA`. */
|
|
15
15
|
via?: PlanViaLocationInput[];
|
|
16
16
|
modes?: PlanModesInput;
|
|
17
17
|
preferences?: PlanPreferencesInput;
|
|
18
|
-
/** The stream stops once it has sent this many itineraries
|
|
18
|
+
/** The stream stops once it has sent at least this many itineraries; the final flush may send more. 1 up to the environment's itinerary limit; rejected, never clamped. */
|
|
19
19
|
targetResults: number;
|
|
20
|
-
/** The stream stops once it has searched this far past `dateTime` (before it, for `latestArrival`),
|
|
20
|
+
/** The stream stops once it has searched this far past `dateTime` (before it, for `latestArrival`), on every path, a cursor's included. An ISO-8601 duration in whole minutes: at least `PT2H` and at most the environment's search-window limit; a value that is not a whole number of minutes is a 400 `maxWindow is invalid`. Rejected, never clamped. */
|
|
21
21
|
maxWindow: string;
|
|
22
|
-
/** `pageInfo.startCursor` of a page, to fetch the page before it. Never with `after`. */
|
|
22
|
+
/** `pageInfo.startCursor` of a page, to fetch the page before it. Never with `after`. An `endCursor` here is a 400 `before is invalid`. */
|
|
23
23
|
before?: string;
|
|
24
|
-
/** `pageInfo.endCursor` of a page, to fetch the page after it. Never with `before`. */
|
|
24
|
+
/** `pageInfo.endCursor` of a page, to fetch the page after it. Never with `before`. A `startCursor` here is a 400 `after is invalid`. */
|
|
25
25
|
after?: string;
|
|
26
26
|
/** Delay-aware planning level; omitted or null plans on the timetable alone. */
|
|
27
27
|
reliability?: Reliability;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanStreamRequest.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanStreamRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,
|
|
1
|
+
{"version":3,"file":"PlanStreamRequest.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanStreamRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,yxBAAyxB;AACzxB,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,+LAA+L;IAC/L,MAAM,EAAE,wBAAwB,CAAC;IACjC,2LAA2L;IAC3L,WAAW,EAAE,wBAAwB,CAAC;IACtC,ubAAub;IACvb,GAAG,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,2KAA2K;IAC3K,aAAa,EAAE,MAAM,CAAC;IACtB,6VAA6V;IAC7V,SAAS,EAAE,MAAM,CAAC;IAClB,2IAA2I;IAC3I,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yIAAyI;IACzI,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gFAAgF;IAChF,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B"}
|
|
@@ -4,26 +4,26 @@ import type { PlanModesInput } from './PlanModesInput.ts';
|
|
|
4
4
|
import type { PlanPreferencesInput } from './PlanPreferencesInput.ts';
|
|
5
5
|
import type { PlanViaLocationInput } from './PlanViaLocationInput.ts';
|
|
6
6
|
import type { Reliability } from './Reliability.ts';
|
|
7
|
-
/** POST body for `/routing/v1/plan`: one page of itineraries. Paging: `before` and `after` are exclusive. Use `first` with `after` or with no cursor, and `last` only with `before`. The next page is the same body plus `after` (the page's `pageInfo.endCursor`), sized by `first`. The previous page is the same body without `first` and `after`, plus `before` (`pageInfo.startCursor`), sized by `last`. Any other pairing is a 400 naming the member that breaks it. A key not listed here, at any depth, is a 400 `<path> is not allowed
|
|
7
|
+
/** POST body for `/routing/v1/plan`: one page of itineraries. Paging: `before` and `after` are exclusive. Use `first` with `after` or with no cursor, and `last` only with `before`. The next page is the same body plus `after` (the page's `pageInfo.endCursor`), sized by `first`. The previous page is the same body without `first` and `after`, plus `before` (`pageInfo.startCursor`), sized by `last`. Any other pairing is a 400 naming the member that breaks it. A cursor carries the search it continues: it overrides `dateTime` (whether `earliestDeparture` or `latestArrival`), `searchWindow` and the sort, which stay required and are still checked. A key not listed here, at any depth, is a 400 `<path> is not allowed`, whatever its value, null included. Every bound is rejected, never clamped. `null` on an optional member means absent, and on a required member is a 400 `<path> is required`. */
|
|
8
8
|
export interface PlanTripRequest {
|
|
9
9
|
dateTime: PlanDateTimeInput;
|
|
10
|
-
/** Where the journey starts.
|
|
10
|
+
/** Where the journey starts. A stop id that resolves to no stop or station, a bare or foreign-prefixed one included, is a 200 with the `routingErrors` code `LOCATION_NOT_FOUND` on `FROM`. */
|
|
11
11
|
origin: PlanLabeledLocationInput;
|
|
12
|
-
/** Where the journey ends.
|
|
12
|
+
/** Where the journey ends. A stop id that resolves to no stop or station, a bare or foreign-prefixed one included, is a 200 with the `routingErrors` code `LOCATION_NOT_FOUND` on `TO`. */
|
|
13
13
|
destination: PlanLabeledLocationInput;
|
|
14
|
-
/** Locations the journey must visit or pass through, in the order given
|
|
14
|
+
/** Locations the journey must visit or pass through, in the order given, all of one kind: every entry `visit` or every entry `passThrough`; mixing them is a 400 `via is invalid`. How many a request takes is an environment setting, and an environment set to 0 has via turned off; more is a 400 `via is out of range`. A via stop id that resolves to no stop or station is a 200 with the `routingErrors` code `LOCATION_NOT_FOUND` on `VIA`. */
|
|
15
15
|
via?: PlanViaLocationInput[];
|
|
16
16
|
modes?: PlanModesInput;
|
|
17
17
|
preferences?: PlanPreferencesInput;
|
|
18
|
-
/** How much time after `dateTime` the search covers (before it, for `latestArrival`), as an ISO-8601 duration
|
|
18
|
+
/** How much time after `dateTime` the search covers (before it, for `latestArrival`), as an ISO-8601 duration: above zero and at most the environment's search-window limit; rejected, never clamped. A cursor overrides it. */
|
|
19
19
|
searchWindow: string;
|
|
20
20
|
/** Itineraries on this page: 1 up to the environment's itinerary limit; rejected, never clamped. Absent means the limit. With `after` or no cursor, never with `before`. */
|
|
21
21
|
first?: number;
|
|
22
22
|
/** Itineraries on the previous page: 1 up to the environment's itinerary limit; rejected, never clamped. Absent means the limit. Only with `before`. */
|
|
23
23
|
last?: number;
|
|
24
|
-
/** `pageInfo.startCursor` of a page, to fetch the page before it. Never with `after`. */
|
|
24
|
+
/** `pageInfo.startCursor` of a page, to fetch the page before it. Never with `after`. An `endCursor` here is a 400 `before is invalid`. */
|
|
25
25
|
before?: string;
|
|
26
|
-
/** `pageInfo.endCursor` of a page, to fetch the page after it. Never with `before`. */
|
|
26
|
+
/** `pageInfo.endCursor` of a page, to fetch the page after it. Never with `before`. A `startCursor` here is a 400 `after is invalid`. */
|
|
27
27
|
after?: string;
|
|
28
28
|
/** Delay-aware planning level; omitted or null plans on the timetable alone. */
|
|
29
29
|
reliability?: Reliability;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanTripRequest.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanTripRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,
|
|
1
|
+
{"version":3,"file":"PlanTripRequest.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanTripRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,g4BAAg4B;AACh4B,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,+LAA+L;IAC/L,MAAM,EAAE,wBAAwB,CAAC;IACjC,2LAA2L;IAC3L,WAAW,EAAE,wBAAwB,CAAC;IACtC,ubAAub;IACvb,GAAG,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,gOAAgO;IAChO,YAAY,EAAE,MAAM,CAAC;IACrB,4KAA4K;IAC5K,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wJAAwJ;IACxJ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2IAA2I;IAC3I,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yIAAyI;IACzI,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gFAAgF;IAChF,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { Itinerary } from './Itinerary.ts';
|
|
2
2
|
import type { PlanPageInfo } from './PlanPageInfo.ts';
|
|
3
3
|
import type { RoutingError } from './RoutingError.ts';
|
|
4
|
-
/** One page of itineraries. An empty `itineraries` with empty `routingErrors` means the search ran and found nothing in the window
|
|
4
|
+
/** One page of itineraries. An empty `itineraries` with empty `routingErrors` means the search ran and found nothing in the window. A plan the router declines has the reason in `routingErrors`; with `NO_STOPS_IN_RANGE` or `NO_TRANSIT_CONNECTION`, `itineraries` holds the direct walk when one exists, and is empty otherwise. */
|
|
5
5
|
export interface PlanTripResponse {
|
|
6
6
|
itineraries: Itinerary[];
|
|
7
7
|
pageInfo: PlanPageInfo;
|
|
8
8
|
/** Why the plan was declined; empty when it was not. */
|
|
9
9
|
routingErrors: RoutingError[];
|
|
10
|
-
/** The date-time the search started from. */
|
|
11
|
-
searchDateTime
|
|
10
|
+
/** The date-time the search started from; with a cursor, the cursor's. */
|
|
11
|
+
searchDateTime: string;
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=PlanTripResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanTripResponse.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanTripResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,
|
|
1
|
+
{"version":3,"file":"PlanTripResponse.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanTripResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,uUAAuU;AACvU,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,SAAS,EAAE,CAAC;IACzB,QAAQ,EAAE,YAAY,CAAC;IACvB,wDAAwD;IACxD,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,0EAA0E;IAC1E,cAAc,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PlanPassThroughViaLocationInput } from './PlanPassThroughViaLocationInput.ts';
|
|
2
2
|
import type { PlanVisitViaLocationInput } from './PlanVisitViaLocationInput.ts';
|
|
3
|
-
/** Exactly one of `passThrough`, `visit`. */
|
|
3
|
+
/** Exactly one of `passThrough`, `visit`; neither or both is a 400 `via is invalid`. */
|
|
4
4
|
export interface PlanViaLocationInput {
|
|
5
5
|
/** The journey passes the location, on board or by changing vehicles there. */
|
|
6
6
|
passThrough?: PlanPassThroughViaLocationInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanViaLocationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanViaLocationInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAC5F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAEhF,
|
|
1
|
+
{"version":3,"file":"PlanViaLocationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanViaLocationInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAC5F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAEhF,wFAAwF;AACxF,MAAM,WAAW,oBAAoB;IACnC,+EAA+E;IAC/E,WAAW,CAAC,EAAE,+BAA+B,CAAC;IAC9C,oGAAoG;IACpG,KAAK,CAAC,EAAE,yBAAyB,CAAC;CACnC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** A location the journey stops at. */
|
|
2
2
|
export interface PlanVisitViaLocationInput {
|
|
3
|
-
/** 1 to 10 feed-prefixed stop or station ids; visiting any one of them is enough. Absent
|
|
4
|
-
stopLocationIds
|
|
3
|
+
/** 1 to 10 feed-prefixed stop or station ids; visiting any one of them is enough. Absent is a 400 `via.visit.stopLocationIds is required`, and empty or more than 10 `via.visit.stopLocationIds is out of range`. */
|
|
4
|
+
stopLocationIds: string[];
|
|
5
5
|
/** Least time to stay at the location, as an ISO-8601 duration: `PT0S` to `PT1H`; rejected, never clamped. Absent means `PT0S`. */
|
|
6
6
|
minimumWaitTime?: string;
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanVisitViaLocationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanVisitViaLocationInput.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,MAAM,WAAW,yBAAyB;IACxC,
|
|
1
|
+
{"version":3,"file":"PlanVisitViaLocationInput.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/PlanVisitViaLocationInput.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,MAAM,WAAW,yBAAyB;IACxC,qNAAqN;IACrN,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,mIAAmI;IACnI,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface RealTimeEstimate {
|
|
2
2
|
time: string;
|
|
3
|
-
/** The difference from the schedule, as an ISO-8601 duration
|
|
3
|
+
/** The difference from the schedule, as an ISO-8601 duration such as `PT2M`; negative when early, such as `-PT1M`. */
|
|
4
4
|
delay: string;
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=RealTimeEstimate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RealTimeEstimate.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/RealTimeEstimate.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,
|
|
1
|
+
{"version":3,"file":"RealTimeEstimate.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/RealTimeEstimate.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,sHAAsH;IACtH,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export interface Route {
|
|
2
2
|
gtfsId: string;
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/** Null when the feed has none. */
|
|
4
|
+
shortName: string | null;
|
|
5
|
+
/** Null when the feed has none. */
|
|
6
|
+
longName: string | null;
|
|
5
7
|
/** Hex without `#`; null when the feed has none. */
|
|
6
|
-
color
|
|
8
|
+
color: string | null;
|
|
7
9
|
/** Hex without `#`; null when the feed has none. */
|
|
8
|
-
textColor
|
|
10
|
+
textColor: string | null;
|
|
9
11
|
}
|
|
10
12
|
//# sourceMappingURL=Route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Route.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Route.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,
|
|
1
|
+
{"version":3,"file":"Route.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/Route.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,mCAAmC;IACnC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,oDAAoD;IACpD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,oDAAoD;IACpD,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { InputField } from './InputField.ts';
|
|
2
2
|
import type { RoutingErrorCode } from './RoutingErrorCode.ts';
|
|
3
|
-
/** Why the router declined the plan
|
|
3
|
+
/** Why the router declined the plan or found no transit route. `LOCATION_NOT_FOUND`: a stop id resolves to no stop or station (`inputField` `FROM`, `TO` or `VIA`). `NO_STOPS_IN_RANGE`: no stop is in walking range of the origin (`FROM`) or the destination (`TO`). `NO_TRANSIT_CONNECTION`: the origin and the destination lie in parts of the transit network that no trip connects (`inputField` null). `WALKING_BETTER_THAN_TRANSIT`: the origin and destination are the same stop, a station and one of its own platforms, or coordinates that snap to the same street point (`inputField` null). `OUTSIDE_SERVICE_PERIOD`: the date is outside what the feed covers (`DATE_TIME`). New codes may be added. */
|
|
4
4
|
export interface RoutingError {
|
|
5
5
|
code: RoutingErrorCode;
|
|
6
6
|
description: string;
|
|
7
7
|
/** The request member at fault; null when it is none in particular. */
|
|
8
|
-
inputField
|
|
8
|
+
inputField: InputField | null;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=RoutingError.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoutingError.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/RoutingError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D
|
|
1
|
+
{"version":3,"file":"RoutingError.d.ts","sourceRoot":"","sources":["../../../src/contract/routing/RoutingError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,urBAAurB;AACvrB,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,gBAAgB,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;CAC/B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type RoutingErrorCode = 'LOCATION_NOT_FOUND' | 'NO_STOPS_IN_RANGE' | 'NO_TRANSIT_CONNECTION' | '
|
|
1
|
+
export type RoutingErrorCode = 'LOCATION_NOT_FOUND' | 'NO_STOPS_IN_RANGE' | 'NO_TRANSIT_CONNECTION' | 'OUTSIDE_SERVICE_PERIOD' | 'WALKING_BETTER_THAN_TRANSIT' | (string & {});
|
|
2
2
|
//# sourceMappingURL=RoutingErrorCode.d.ts.map
|