@motis-project/motis-client 2.1.2 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-35GMB6DP.js +1232 -0
- package/dist/chunk-5QEG6DOF.js +1247 -0
- package/dist/chunk-7PIP6KRC.js +1055 -916
- package/dist/chunk-7UKCGCXT.js +1247 -0
- package/dist/chunk-EM7IAOVY.js +91 -0
- package/dist/chunk-IHFNO6R3.js +62 -62
- package/dist/chunk-RM52T2X5.js +1056 -917
- package/dist/chunk-ZSHHWD3H.js +91 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -2
- package/dist/schemas.gen.d.ts +83 -8
- package/dist/schemas.gen.js +7 -1
- package/dist/services.gen.d.ts +11 -11
- package/dist/services.gen.js +1 -1
- package/dist/types.gen.d.ts +127 -24
- package/package.json +1 -1
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// openapi/services.gen.ts
|
|
2
|
+
import { createClient, createConfig } from "@hey-api/client-fetch";
|
|
3
|
+
var client = createClient(createConfig());
|
|
4
|
+
var plan = (options) => {
|
|
5
|
+
return (options?.client ?? client).get({
|
|
6
|
+
...options,
|
|
7
|
+
url: "/api/v5/plan"
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var oneToMany = (options) => {
|
|
11
|
+
return (options?.client ?? client).get({
|
|
12
|
+
...options,
|
|
13
|
+
url: "/api/v1/one-to-many"
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
var oneToAll = (options) => {
|
|
17
|
+
return (options?.client ?? client).get({
|
|
18
|
+
...options,
|
|
19
|
+
url: "/api/v1/one-to-all"
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var reverseGeocode = (options) => {
|
|
23
|
+
return (options?.client ?? client).get({
|
|
24
|
+
...options,
|
|
25
|
+
url: "/api/v1/reverse-geocode"
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
var geocode = (options) => {
|
|
29
|
+
return (options?.client ?? client).get({
|
|
30
|
+
...options,
|
|
31
|
+
url: "/api/v1/geocode"
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
var trip = (options) => {
|
|
35
|
+
return (options?.client ?? client).get({
|
|
36
|
+
...options,
|
|
37
|
+
url: "/api/v5/trip"
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
var stoptimes = (options) => {
|
|
41
|
+
return (options?.client ?? client).get({
|
|
42
|
+
...options,
|
|
43
|
+
url: "/api/v5/stoptimes"
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
var trips = (options) => {
|
|
47
|
+
return (options?.client ?? client).get({
|
|
48
|
+
...options,
|
|
49
|
+
url: "/api/v5/map/trips"
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
var initial = (options) => {
|
|
53
|
+
return (options?.client ?? client).get({
|
|
54
|
+
...options,
|
|
55
|
+
url: "/api/v1/map/initial"
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
var stops = (options) => {
|
|
59
|
+
return (options?.client ?? client).get({
|
|
60
|
+
...options,
|
|
61
|
+
url: "/api/v1/map/stops"
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
var levels = (options) => {
|
|
65
|
+
return (options?.client ?? client).get({
|
|
66
|
+
...options,
|
|
67
|
+
url: "/api/v1/map/levels"
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
var transfers = (options) => {
|
|
71
|
+
return (options?.client ?? client).get({
|
|
72
|
+
...options,
|
|
73
|
+
url: "/api/debug/transfers"
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export {
|
|
78
|
+
client,
|
|
79
|
+
plan,
|
|
80
|
+
oneToMany,
|
|
81
|
+
oneToAll,
|
|
82
|
+
reverseGeocode,
|
|
83
|
+
geocode,
|
|
84
|
+
trip,
|
|
85
|
+
stoptimes,
|
|
86
|
+
trips,
|
|
87
|
+
initial,
|
|
88
|
+
stops,
|
|
89
|
+
levels,
|
|
90
|
+
transfers
|
|
91
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AlertCauseSchema, AlertEffectSchema, AlertSchema, AlertSeverityLevelSchema, AreaSchema, DirectionSchema, DurationSchema, ElevationCostsSchema, EncodedPolylineSchema, FareMediaSchema, FareMediaTypeSchema, FareProductSchema, FareTransferRuleSchema, FareTransferSchema, ItinerarySchema, LegSchema, LocationTypeSchema, MatchSchema, ModeSchema, PedestrianProfileSchema, PickupDropoffTypeSchema, PlaceSchema, ReachablePlaceSchema, ReachableSchema, RentalFormFactorSchema, RentalPropulsionTypeSchema, RentalReturnConstraintSchema, RentalSchema, RiderCategorySchema, StepInstructionSchema, StopTimeSchema, TimeRangeSchema, TokenSchema, TransferSchema, TripInfoSchema, TripSegmentSchema, VertexTypeSchema } from './schemas.gen.js';
|
|
1
|
+
export { AlertCauseSchema, AlertEffectSchema, AlertSchema, AlertSeverityLevelSchema, AreaSchema, CyclingSpeedSchema, DirectionSchema, DurationSchema, ElevationCostsSchema, EncodedPolylineSchema, ErrorSchema, FareMediaSchema, FareMediaTypeSchema, FareProductSchema, FareTransferRuleSchema, FareTransferSchema, ItinerarySchema, LegSchema, LocationTypeSchema, MatchSchema, ModeSchema, PedestrianProfileSchema, PedestrianSpeedSchema, PickupDropoffTypeSchema, PlaceSchema, ReachablePlaceSchema, ReachableSchema, RentalFormFactorSchema, RentalPropulsionTypeSchema, RentalReturnConstraintSchema, RentalSchema, RiderCategorySchema, StepInstructionSchema, StopTimeSchema, TimeRangeSchema, TokenSchema, TransferSchema, TripInfoSchema, TripSegmentSchema, VertexTypeSchema } from './schemas.gen.js';
|
|
2
2
|
export { client, geocode, initial, levels, oneToAll, oneToMany, plan, reverseGeocode, stops, stoptimes, transfers, trip, trips } from './services.gen.js';
|
|
3
|
-
export { Alert, AlertCause, AlertEffect, AlertSeverityLevel, Area, Direction, Duration, ElevationCosts, EncodedPolyline, FareMedia, FareMediaType, FareProduct, FareTransfer, FareTransferRule, GeocodeData, GeocodeError, GeocodeResponse, InitialError, InitialResponse, Itinerary, Leg, LevelsData, LevelsError, LevelsResponse, LocationType, Match, Mode, OneToAllData, OneToAllError, OneToAllResponse, OneToManyData, OneToManyError, OneToManyResponse, PedestrianProfile, PickupDropoffType, Place, PlanData, PlanError, PlanResponse, Reachable, ReachablePlace, Rental, RentalFormFactor, RentalPropulsionType, RentalReturnConstraint, ReverseGeocodeData, ReverseGeocodeError, ReverseGeocodeResponse, RiderCategory, StepInstruction, StopTime, StopsData, StopsError, StopsResponse, StoptimesData, StoptimesError, StoptimesResponse, TimeRange, Token, Transfer, TransfersData, TransfersError, TransfersResponse, TripData, TripError, TripInfo, TripResponse, TripSegment, TripsData, TripsError, TripsResponse, VertexType } from './types.gen.js';
|
|
3
|
+
export { Alert, AlertCause, AlertEffect, AlertSeverityLevel, Area, CyclingSpeed, Direction, Duration, ElevationCosts, EncodedPolyline, Error, FareMedia, FareMediaType, FareProduct, FareTransfer, FareTransferRule, GeocodeData, GeocodeError, GeocodeResponse, InitialError, InitialResponse, Itinerary, Leg, LevelsData, LevelsError, LevelsResponse, LocationType, Match, Mode, OneToAllData, OneToAllError, OneToAllResponse, OneToManyData, OneToManyError, OneToManyResponse, PedestrianProfile, PedestrianSpeed, PickupDropoffType, Place, PlanData, PlanError, PlanResponse, Reachable, ReachablePlace, Rental, RentalFormFactor, RentalPropulsionType, RentalReturnConstraint, ReverseGeocodeData, ReverseGeocodeError, ReverseGeocodeResponse, RiderCategory, StepInstruction, StopTime, StopsData, StopsError, StopsResponse, StoptimesData, StoptimesError, StoptimesResponse, TimeRange, Token, Transfer, TransfersData, TransfersError, TransfersResponse, TripData, TripError, TripInfo, TripResponse, TripSegment, TripsData, TripsError, TripsResponse, VertexType } from './types.gen.js';
|
|
4
4
|
import '@hey-api/client-fetch';
|
package/dist/index.js
CHANGED
|
@@ -4,10 +4,12 @@ import {
|
|
|
4
4
|
AlertSchema,
|
|
5
5
|
AlertSeverityLevelSchema,
|
|
6
6
|
AreaSchema,
|
|
7
|
+
CyclingSpeedSchema,
|
|
7
8
|
DirectionSchema,
|
|
8
9
|
DurationSchema,
|
|
9
10
|
ElevationCostsSchema,
|
|
10
11
|
EncodedPolylineSchema,
|
|
12
|
+
ErrorSchema,
|
|
11
13
|
FareMediaSchema,
|
|
12
14
|
FareMediaTypeSchema,
|
|
13
15
|
FareProductSchema,
|
|
@@ -19,6 +21,7 @@ import {
|
|
|
19
21
|
MatchSchema,
|
|
20
22
|
ModeSchema,
|
|
21
23
|
PedestrianProfileSchema,
|
|
24
|
+
PedestrianSpeedSchema,
|
|
22
25
|
PickupDropoffTypeSchema,
|
|
23
26
|
PlaceSchema,
|
|
24
27
|
ReachablePlaceSchema,
|
|
@@ -36,7 +39,7 @@ import {
|
|
|
36
39
|
TripInfoSchema,
|
|
37
40
|
TripSegmentSchema,
|
|
38
41
|
VertexTypeSchema
|
|
39
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-5QEG6DOF.js";
|
|
40
43
|
import {
|
|
41
44
|
client,
|
|
42
45
|
geocode,
|
|
@@ -51,7 +54,7 @@ import {
|
|
|
51
54
|
transfers,
|
|
52
55
|
trip,
|
|
53
56
|
trips
|
|
54
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-ZSHHWD3H.js";
|
|
55
58
|
import "./chunk-6DML7NNP.js";
|
|
56
59
|
export {
|
|
57
60
|
AlertCauseSchema,
|
|
@@ -59,10 +62,12 @@ export {
|
|
|
59
62
|
AlertSchema,
|
|
60
63
|
AlertSeverityLevelSchema,
|
|
61
64
|
AreaSchema,
|
|
65
|
+
CyclingSpeedSchema,
|
|
62
66
|
DirectionSchema,
|
|
63
67
|
DurationSchema,
|
|
64
68
|
ElevationCostsSchema,
|
|
65
69
|
EncodedPolylineSchema,
|
|
70
|
+
ErrorSchema,
|
|
66
71
|
FareMediaSchema,
|
|
67
72
|
FareMediaTypeSchema,
|
|
68
73
|
FareProductSchema,
|
|
@@ -74,6 +79,7 @@ export {
|
|
|
74
79
|
MatchSchema,
|
|
75
80
|
ModeSchema,
|
|
76
81
|
PedestrianProfileSchema,
|
|
82
|
+
PedestrianSpeedSchema,
|
|
77
83
|
PickupDropoffTypeSchema,
|
|
78
84
|
PlaceSchema,
|
|
79
85
|
ReachablePlaceSchema,
|
package/dist/schemas.gen.d.ts
CHANGED
|
@@ -194,10 +194,18 @@ declare const MatchSchema: {
|
|
|
194
194
|
readonly description: "house number";
|
|
195
195
|
readonly type: "string";
|
|
196
196
|
};
|
|
197
|
+
readonly country: {
|
|
198
|
+
readonly description: "ISO3166-1 country code from OpenStreetMap";
|
|
199
|
+
readonly type: "string";
|
|
200
|
+
};
|
|
197
201
|
readonly zip: {
|
|
198
202
|
readonly description: "zip code";
|
|
199
203
|
readonly type: "string";
|
|
200
204
|
};
|
|
205
|
+
readonly tz: {
|
|
206
|
+
readonly description: "timezone name (e.g. \"Europe/Berlin\")";
|
|
207
|
+
readonly type: "string";
|
|
208
|
+
};
|
|
201
209
|
readonly areas: {
|
|
202
210
|
readonly description: "list of areas";
|
|
203
211
|
readonly type: "array";
|
|
@@ -221,10 +229,18 @@ declare const PedestrianProfileSchema: {
|
|
|
221
229
|
readonly type: "string";
|
|
222
230
|
readonly enum: readonly ["FOOT", "WHEELCHAIR"];
|
|
223
231
|
};
|
|
232
|
+
declare const PedestrianSpeedSchema: {
|
|
233
|
+
readonly description: "Average speed for pedestrian routing in meters per second";
|
|
234
|
+
readonly type: "number";
|
|
235
|
+
};
|
|
236
|
+
declare const CyclingSpeedSchema: {
|
|
237
|
+
readonly description: "Average speed for bike routing in meters per second";
|
|
238
|
+
readonly type: "number";
|
|
239
|
+
};
|
|
224
240
|
declare const ModeSchema: {
|
|
225
|
-
readonly description: "# Street modes\n\n - `WALK`\n - `BIKE`\n - `RENTAL` Experimental. Expect unannounced breaking changes (without version bumps) for all parameters and returned structs.\n - `CAR`\n - `CAR_PARKING` Experimental. Expect unannounced breaking changes (without version bumps) for all parameters and returned structs.\n - `CAR_DROPOFF` Experimental. Expect unannounced breaking changes (without version bumps) for all perameters and returned structs.\n - `ODM` on-demand taxis from the Prima+ÖV Project\n - `FLEX` flexible transports\n\n# Transit modes\n\n - `TRANSIT`: translates to `RAIL,TRAM,BUS,FERRY,AIRPLANE,COACH,CABLE_CAR,FUNICULAR,AREAL_LIFT,OTHER`\n - `TRAM`: trams\n - `SUBWAY`: subway trains\n - `FERRY`: ferries\n - `AIRPLANE`: airline flights\n - `BUS`: short distance buses (does not include `COACH`)\n - `COACH`: long distance buses (does not include `BUS`)\n - `RAIL`: translates to `HIGHSPEED_RAIL,LONG_DISTANCE,NIGHT_RAIL,REGIONAL_RAIL,REGIONAL_FAST_RAIL,
|
|
241
|
+
readonly description: "# Street modes\n\n - `WALK`\n - `BIKE`\n - `RENTAL` Experimental. Expect unannounced breaking changes (without version bumps) for all parameters and returned structs.\n - `CAR`\n - `CAR_PARKING` Experimental. Expect unannounced breaking changes (without version bumps) for all parameters and returned structs.\n - `CAR_DROPOFF` Experimental. Expect unannounced breaking changes (without version bumps) for all perameters and returned structs.\n - `ODM` on-demand taxis from the Prima+ÖV Project\n - `FLEX` flexible transports\n\n# Transit modes\n\n - `TRANSIT`: translates to `RAIL,TRAM,BUS,FERRY,AIRPLANE,COACH,CABLE_CAR,FUNICULAR,AREAL_LIFT,OTHER`\n - `TRAM`: trams\n - `SUBWAY`: subway trains (Paris Metro, London Underground, but also NYC Subway, Hamburger Hochbahn, and other non-underground services)\n - `FERRY`: ferries\n - `AIRPLANE`: airline flights\n - `BUS`: short distance buses (does not include `COACH`)\n - `COACH`: long distance buses (does not include `BUS`)\n - `RAIL`: translates to `HIGHSPEED_RAIL,LONG_DISTANCE,NIGHT_RAIL,REGIONAL_RAIL,REGIONAL_FAST_RAIL,SUBURBAN,SUBWAY`\n - `SUBURBAN`: suburban trains (e.g. S-Bahn, RER, Elizabeth Line, ...)\n - `HIGHSPEED_RAIL`: long distance high speed trains (e.g. TGV)\n - `LONG_DISTANCE`: long distance inter city trains\n - `NIGHT_RAIL`: long distance night trains\n - `REGIONAL_FAST_RAIL`: regional express routes that skip low traffic stops to be faster\n - `REGIONAL_RAIL`: regional train\n - `CABLE_CAR`: Cable tram. Used for street-level rail cars where the cable runs beneath the vehicle (e.g., cable car in San Francisco).\n - `FUNICULAR`: Funicular. Any rail system designed for steep inclines.\n - `AERIAL_LIFT`: Aerial lift, suspended cable car (e.g., gondola lift, aerial tramway). Cable transport where cabins, cars, gondolas or open chairs are suspended by means of one or more cables.\n - `AREAL_LIFT`: deprecated\n - `METRO`: deprecated\n";
|
|
226
242
|
readonly type: "string";
|
|
227
|
-
readonly enum: readonly ["WALK", "BIKE", "RENTAL", "CAR", "CAR_PARKING", "CAR_DROPOFF", "ODM", "FLEX", "TRANSIT", "TRAM", "SUBWAY", "FERRY", "AIRPLANE", "
|
|
243
|
+
readonly enum: readonly ["WALK", "BIKE", "RENTAL", "CAR", "CAR_PARKING", "CAR_DROPOFF", "ODM", "FLEX", "TRANSIT", "TRAM", "SUBWAY", "FERRY", "AIRPLANE", "SUBURBAN", "BUS", "COACH", "RAIL", "HIGHSPEED_RAIL", "LONG_DISTANCE", "NIGHT_RAIL", "REGIONAL_FAST_RAIL", "REGIONAL_RAIL", "CABLE_CAR", "FUNICULAR", "AERIAL_LIFT", "OTHER", "AREAL_LIFT", "METRO"];
|
|
228
244
|
};
|
|
229
245
|
declare const VertexTypeSchema: {
|
|
230
246
|
readonly type: "string";
|
|
@@ -260,6 +276,10 @@ declare const PlaceSchema: {
|
|
|
260
276
|
readonly description: "level according to OpenStreetMap";
|
|
261
277
|
readonly type: "number";
|
|
262
278
|
};
|
|
279
|
+
readonly tz: {
|
|
280
|
+
readonly description: "timezone name (e.g. \"Europe/Berlin\")";
|
|
281
|
+
readonly type: "string";
|
|
282
|
+
};
|
|
263
283
|
readonly arrival: {
|
|
264
284
|
readonly description: "arrival time";
|
|
265
285
|
readonly type: "string";
|
|
@@ -372,7 +392,7 @@ declare const ReachableSchema: {
|
|
|
372
392
|
declare const StopTimeSchema: {
|
|
373
393
|
readonly description: "departure or arrival event at a stop";
|
|
374
394
|
readonly type: "object";
|
|
375
|
-
readonly required: readonly ["place", "mode", "realTime", "headsign", "agencyId", "agencyName", "agencyUrl", "tripId", "routeShortName", "pickupDropoffType", "cancelled", "tripCancelled", "source"];
|
|
395
|
+
readonly required: readonly ["place", "mode", "realTime", "headsign", "tripTo", "agencyId", "agencyName", "agencyUrl", "tripId", "routeShortName", "routeLongName", "tripShortName", "displayName", "pickupDropoffType", "cancelled", "tripCancelled", "source"];
|
|
376
396
|
readonly properties: {
|
|
377
397
|
readonly place: {
|
|
378
398
|
readonly $ref: "#/components/schemas/Place";
|
|
@@ -387,9 +407,13 @@ declare const StopTimeSchema: {
|
|
|
387
407
|
readonly type: "boolean";
|
|
388
408
|
};
|
|
389
409
|
readonly headsign: {
|
|
390
|
-
readonly description: "
|
|
410
|
+
readonly description: "The headsign of the bus or train being used.\nFor non-transit legs, null\n";
|
|
391
411
|
readonly type: "string";
|
|
392
412
|
};
|
|
413
|
+
readonly tripTo: {
|
|
414
|
+
readonly description: "final stop of this trip";
|
|
415
|
+
readonly $ref: "#/components/schemas/Place";
|
|
416
|
+
};
|
|
393
417
|
readonly agencyId: {
|
|
394
418
|
readonly type: "string";
|
|
395
419
|
};
|
|
@@ -408,9 +432,35 @@ declare const StopTimeSchema: {
|
|
|
408
432
|
readonly tripId: {
|
|
409
433
|
readonly type: "string";
|
|
410
434
|
};
|
|
435
|
+
readonly routeType: {
|
|
436
|
+
readonly type: "integer";
|
|
437
|
+
};
|
|
411
438
|
readonly routeShortName: {
|
|
412
439
|
readonly type: "string";
|
|
413
440
|
};
|
|
441
|
+
readonly routeLongName: {
|
|
442
|
+
readonly type: "string";
|
|
443
|
+
};
|
|
444
|
+
readonly tripShortName: {
|
|
445
|
+
readonly type: "string";
|
|
446
|
+
};
|
|
447
|
+
readonly displayName: {
|
|
448
|
+
readonly type: "string";
|
|
449
|
+
};
|
|
450
|
+
readonly previousStops: {
|
|
451
|
+
readonly type: "array";
|
|
452
|
+
readonly description: "Experimental. Expect unannounced breaking changes (without version bumps).\n\nStops on the trips before this stop. Returned only if `fetchStop` and `arriveBy` are `true`.\n";
|
|
453
|
+
readonly items: {
|
|
454
|
+
readonly $ref: "#/components/schemas/Place";
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
readonly nextStops: {
|
|
458
|
+
readonly type: "array";
|
|
459
|
+
readonly description: "Experimental. Expect unannounced breaking changes (without version bumps).\n\nStops on the trips after this stop. Returned only if `fetchStop` is `true` and `arriveBy` is `false`.\n";
|
|
460
|
+
readonly items: {
|
|
461
|
+
readonly $ref: "#/components/schemas/Place";
|
|
462
|
+
};
|
|
463
|
+
};
|
|
414
464
|
readonly pickupDropoffType: {
|
|
415
465
|
readonly description: "Type of pickup (for departures) or dropoff (for arrivals), may be disallowed either due to schedule, skipped stops or cancellations";
|
|
416
466
|
readonly $ref: "#/components/schemas/PickupDropoffType";
|
|
@@ -432,14 +482,18 @@ declare const StopTimeSchema: {
|
|
|
432
482
|
declare const TripInfoSchema: {
|
|
433
483
|
readonly description: "trip id and name";
|
|
434
484
|
readonly type: "object";
|
|
435
|
-
readonly required: readonly ["tripId"
|
|
485
|
+
readonly required: readonly ["tripId"];
|
|
436
486
|
readonly properties: {
|
|
437
487
|
readonly tripId: {
|
|
438
488
|
readonly description: "trip ID (dataset trip id prefixed with the dataset tag)";
|
|
439
489
|
readonly type: "string";
|
|
440
490
|
};
|
|
441
491
|
readonly routeShortName: {
|
|
442
|
-
readonly description: "trip display name";
|
|
492
|
+
readonly description: "trip display name (api version < 4)";
|
|
493
|
+
readonly type: "string";
|
|
494
|
+
};
|
|
495
|
+
readonly displayName: {
|
|
496
|
+
readonly description: "trip display name (api version >= 4)";
|
|
443
497
|
readonly type: "string";
|
|
444
498
|
};
|
|
445
499
|
};
|
|
@@ -707,6 +761,10 @@ declare const LegSchema: {
|
|
|
707
761
|
readonly description: "For transit legs, the headsign of the bus or train being used.\nFor non-transit legs, null\n";
|
|
708
762
|
readonly type: "string";
|
|
709
763
|
};
|
|
764
|
+
readonly tripTo: {
|
|
765
|
+
readonly description: "final stop of this trip (can differ from headsign)";
|
|
766
|
+
readonly $ref: "#/components/schemas/Place";
|
|
767
|
+
};
|
|
710
768
|
readonly routeColor: {
|
|
711
769
|
readonly type: "string";
|
|
712
770
|
};
|
|
@@ -714,7 +772,7 @@ declare const LegSchema: {
|
|
|
714
772
|
readonly type: "string";
|
|
715
773
|
};
|
|
716
774
|
readonly routeType: {
|
|
717
|
-
readonly type: "
|
|
775
|
+
readonly type: "integer";
|
|
718
776
|
};
|
|
719
777
|
readonly agencyName: {
|
|
720
778
|
readonly type: "string";
|
|
@@ -731,6 +789,15 @@ declare const LegSchema: {
|
|
|
731
789
|
readonly routeShortName: {
|
|
732
790
|
readonly type: "string";
|
|
733
791
|
};
|
|
792
|
+
readonly routeLongName: {
|
|
793
|
+
readonly type: "string";
|
|
794
|
+
};
|
|
795
|
+
readonly tripShortName: {
|
|
796
|
+
readonly type: "string";
|
|
797
|
+
};
|
|
798
|
+
readonly displayName: {
|
|
799
|
+
readonly type: "string";
|
|
800
|
+
};
|
|
734
801
|
readonly cancelled: {
|
|
735
802
|
readonly description: "Whether this trip is cancelled";
|
|
736
803
|
readonly type: "boolean";
|
|
@@ -951,5 +1018,13 @@ declare const TransferSchema: {
|
|
|
951
1018
|
};
|
|
952
1019
|
};
|
|
953
1020
|
};
|
|
1021
|
+
declare const ErrorSchema: {
|
|
1022
|
+
readonly type: "object";
|
|
1023
|
+
readonly properties: {
|
|
1024
|
+
readonly error: {
|
|
1025
|
+
readonly type: "string";
|
|
1026
|
+
};
|
|
1027
|
+
};
|
|
1028
|
+
};
|
|
954
1029
|
|
|
955
|
-
export { AlertCauseSchema, AlertEffectSchema, AlertSchema, AlertSeverityLevelSchema, AreaSchema, DirectionSchema, DurationSchema, ElevationCostsSchema, EncodedPolylineSchema, FareMediaSchema, FareMediaTypeSchema, FareProductSchema, FareTransferRuleSchema, FareTransferSchema, ItinerarySchema, LegSchema, LocationTypeSchema, MatchSchema, ModeSchema, PedestrianProfileSchema, PickupDropoffTypeSchema, PlaceSchema, ReachablePlaceSchema, ReachableSchema, RentalFormFactorSchema, RentalPropulsionTypeSchema, RentalReturnConstraintSchema, RentalSchema, RiderCategorySchema, StepInstructionSchema, StopTimeSchema, TimeRangeSchema, TokenSchema, TransferSchema, TripInfoSchema, TripSegmentSchema, VertexTypeSchema };
|
|
1030
|
+
export { AlertCauseSchema, AlertEffectSchema, AlertSchema, AlertSeverityLevelSchema, AreaSchema, CyclingSpeedSchema, DirectionSchema, DurationSchema, ElevationCostsSchema, EncodedPolylineSchema, ErrorSchema, FareMediaSchema, FareMediaTypeSchema, FareProductSchema, FareTransferRuleSchema, FareTransferSchema, ItinerarySchema, LegSchema, LocationTypeSchema, MatchSchema, ModeSchema, PedestrianProfileSchema, PedestrianSpeedSchema, PickupDropoffTypeSchema, PlaceSchema, ReachablePlaceSchema, ReachableSchema, RentalFormFactorSchema, RentalPropulsionTypeSchema, RentalReturnConstraintSchema, RentalSchema, RiderCategorySchema, StepInstructionSchema, StopTimeSchema, TimeRangeSchema, TokenSchema, TransferSchema, TripInfoSchema, TripSegmentSchema, VertexTypeSchema };
|
package/dist/schemas.gen.js
CHANGED
|
@@ -4,10 +4,12 @@ import {
|
|
|
4
4
|
AlertSchema,
|
|
5
5
|
AlertSeverityLevelSchema,
|
|
6
6
|
AreaSchema,
|
|
7
|
+
CyclingSpeedSchema,
|
|
7
8
|
DirectionSchema,
|
|
8
9
|
DurationSchema,
|
|
9
10
|
ElevationCostsSchema,
|
|
10
11
|
EncodedPolylineSchema,
|
|
12
|
+
ErrorSchema,
|
|
11
13
|
FareMediaSchema,
|
|
12
14
|
FareMediaTypeSchema,
|
|
13
15
|
FareProductSchema,
|
|
@@ -19,6 +21,7 @@ import {
|
|
|
19
21
|
MatchSchema,
|
|
20
22
|
ModeSchema,
|
|
21
23
|
PedestrianProfileSchema,
|
|
24
|
+
PedestrianSpeedSchema,
|
|
22
25
|
PickupDropoffTypeSchema,
|
|
23
26
|
PlaceSchema,
|
|
24
27
|
ReachablePlaceSchema,
|
|
@@ -36,17 +39,19 @@ import {
|
|
|
36
39
|
TripInfoSchema,
|
|
37
40
|
TripSegmentSchema,
|
|
38
41
|
VertexTypeSchema
|
|
39
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-5QEG6DOF.js";
|
|
40
43
|
export {
|
|
41
44
|
AlertCauseSchema,
|
|
42
45
|
AlertEffectSchema,
|
|
43
46
|
AlertSchema,
|
|
44
47
|
AlertSeverityLevelSchema,
|
|
45
48
|
AreaSchema,
|
|
49
|
+
CyclingSpeedSchema,
|
|
46
50
|
DirectionSchema,
|
|
47
51
|
DurationSchema,
|
|
48
52
|
ElevationCostsSchema,
|
|
49
53
|
EncodedPolylineSchema,
|
|
54
|
+
ErrorSchema,
|
|
50
55
|
FareMediaSchema,
|
|
51
56
|
FareMediaTypeSchema,
|
|
52
57
|
FareProductSchema,
|
|
@@ -58,6 +63,7 @@ export {
|
|
|
58
63
|
MatchSchema,
|
|
59
64
|
ModeSchema,
|
|
60
65
|
PedestrianProfileSchema,
|
|
66
|
+
PedestrianSpeedSchema,
|
|
61
67
|
PickupDropoffTypeSchema,
|
|
62
68
|
PlaceSchema,
|
|
63
69
|
ReachablePlaceSchema,
|
package/dist/services.gen.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PlanData, PlanResponse, OneToManyData, OneToManyResponse, OneToAllData, Reachable, ReverseGeocodeData, ReverseGeocodeResponse, GeocodeData, GeocodeResponse, TripData, Itinerary, StoptimesData, StoptimesResponse, TripsData, TripsResponse, InitialResponse, StopsData, StopsResponse, LevelsData, LevelsResponse, TransfersData, TransfersResponse } from './types.gen.js';
|
|
1
|
+
import { PlanData, PlanResponse, Error, OneToManyData, OneToManyResponse, OneToAllData, Reachable, ReverseGeocodeData, ReverseGeocodeResponse, GeocodeData, GeocodeResponse, TripData, Itinerary, StoptimesData, StoptimesResponse, TripsData, TripsResponse, InitialResponse, StopsData, StopsResponse, LevelsData, LevelsResponse, TransfersData, TransfersResponse } from './types.gen.js';
|
|
2
2
|
import * as _hey_api_client_fetch from '@hey-api/client-fetch';
|
|
3
3
|
import { Options } from '@hey-api/client-fetch';
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ declare const client: _hey_api_client_fetch.Client<Request, Response, unknown, _
|
|
|
8
8
|
/**
|
|
9
9
|
* Computes optimal connections from one place to another.
|
|
10
10
|
*/
|
|
11
|
-
declare const plan: <ThrowOnError extends boolean = false>(options: Options<PlanData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PlanResponse,
|
|
11
|
+
declare const plan: <ThrowOnError extends boolean = false>(options: Options<PlanData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PlanResponse, Error, ThrowOnError>;
|
|
12
12
|
/**
|
|
13
13
|
* Street routing from one to many places or many to one.
|
|
14
14
|
* The order in the response array corresponds to the order of coordinates of the \`many\` parameter in the query.
|
|
@@ -20,23 +20,23 @@ declare const oneToMany: <ThrowOnError extends boolean = false>(options: Options
|
|
|
20
20
|
* Each result entry will contain the fastest travel duration and the number of connections used.
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
declare const oneToAll: <ThrowOnError extends boolean = false>(options: Options<OneToAllData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Reachable,
|
|
23
|
+
declare const oneToAll: <ThrowOnError extends boolean = false>(options: Options<OneToAllData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Reachable, Error, ThrowOnError>;
|
|
24
24
|
/**
|
|
25
25
|
* Translate coordinates to the closest address(es)/places/stops.
|
|
26
26
|
*/
|
|
27
|
-
declare const reverseGeocode: <ThrowOnError extends boolean = false>(options: Options<ReverseGeocodeData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ReverseGeocodeResponse,
|
|
27
|
+
declare const reverseGeocode: <ThrowOnError extends boolean = false>(options: Options<ReverseGeocodeData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ReverseGeocodeResponse, Error, ThrowOnError>;
|
|
28
28
|
/**
|
|
29
29
|
* Autocompletion & geocoding that resolves user input addresses including coordinates
|
|
30
30
|
*/
|
|
31
|
-
declare const geocode: <ThrowOnError extends boolean = false>(options: Options<GeocodeData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GeocodeResponse,
|
|
31
|
+
declare const geocode: <ThrowOnError extends boolean = false>(options: Options<GeocodeData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GeocodeResponse, Error, ThrowOnError>;
|
|
32
32
|
/**
|
|
33
33
|
* Get a trip as itinerary
|
|
34
34
|
*/
|
|
35
|
-
declare const trip: <ThrowOnError extends boolean = false>(options: Options<TripData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Itinerary,
|
|
35
|
+
declare const trip: <ThrowOnError extends boolean = false>(options: Options<TripData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Itinerary, Error, ThrowOnError>;
|
|
36
36
|
/**
|
|
37
37
|
* Get the next N departures or arrivals of a stop sorted by time
|
|
38
38
|
*/
|
|
39
|
-
declare const stoptimes: <ThrowOnError extends boolean = false>(options: Options<StoptimesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StoptimesResponse,
|
|
39
|
+
declare const stoptimes: <ThrowOnError extends boolean = false>(options: Options<StoptimesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StoptimesResponse, Error, ThrowOnError>;
|
|
40
40
|
/**
|
|
41
41
|
* Given a area frame (box defined by top right and bottom left corner) and a time frame,
|
|
42
42
|
* it returns all trips and their respective shapes that operate in this area + time frame.
|
|
@@ -44,19 +44,19 @@ declare const stoptimes: <ThrowOnError extends boolean = false>(options: Options
|
|
|
44
44
|
* while on high zoom levels, also metros, buses and trams will be returned.
|
|
45
45
|
*
|
|
46
46
|
*/
|
|
47
|
-
declare const trips: <ThrowOnError extends boolean = false>(options: Options<TripsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<TripsResponse,
|
|
47
|
+
declare const trips: <ThrowOnError extends boolean = false>(options: Options<TripsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<TripsResponse, Error, ThrowOnError>;
|
|
48
48
|
/**
|
|
49
49
|
* initial location to view the map at after loading based on where public transport should be visible
|
|
50
50
|
*/
|
|
51
|
-
declare const initial: <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<InitialResponse,
|
|
51
|
+
declare const initial: <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<InitialResponse, Error, ThrowOnError>;
|
|
52
52
|
/**
|
|
53
53
|
* Get all stops for a map section
|
|
54
54
|
*/
|
|
55
|
-
declare const stops: <ThrowOnError extends boolean = false>(options: Options<StopsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StopsResponse,
|
|
55
|
+
declare const stops: <ThrowOnError extends boolean = false>(options: Options<StopsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StopsResponse, Error, ThrowOnError>;
|
|
56
56
|
/**
|
|
57
57
|
* Get all available levels for a map section
|
|
58
58
|
*/
|
|
59
|
-
declare const levels: <ThrowOnError extends boolean = false>(options: Options<LevelsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<LevelsResponse,
|
|
59
|
+
declare const levels: <ThrowOnError extends boolean = false>(options: Options<LevelsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<LevelsResponse, Error, ThrowOnError>;
|
|
60
60
|
/**
|
|
61
61
|
* Prints all transfers of a timetable location (track, bus stop, etc.)
|
|
62
62
|
*/
|