@motis-project/motis-client 2.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.
@@ -0,0 +1,78 @@
1
+ import {
2
+ AlertCauseSchema,
3
+ AlertEffectSchema,
4
+ AlertSchema,
5
+ AlertSeverityLevelSchema,
6
+ AreaSchema,
7
+ DirectionSchema,
8
+ DurationSchema,
9
+ ElevationCostsSchema,
10
+ EncodedPolylineSchema,
11
+ FareMediaSchema,
12
+ FareMediaTypeSchema,
13
+ FareProductSchema,
14
+ FareTransferRuleSchema,
15
+ FareTransferSchema,
16
+ FootpathSchema,
17
+ ItinerarySchema,
18
+ LegSchema,
19
+ LocationTypeSchema,
20
+ MatchSchema,
21
+ ModeSchema,
22
+ PedestrianProfileSchema,
23
+ PickupDropoffTypeSchema,
24
+ PlaceSchema,
25
+ ReachablePlaceSchema,
26
+ ReachableSchema,
27
+ RentalFormFactorSchema,
28
+ RentalPropulsionTypeSchema,
29
+ RentalReturnConstraintSchema,
30
+ RentalSchema,
31
+ RiderCategorySchema,
32
+ StepInstructionSchema,
33
+ StopTimeSchema,
34
+ TimeRangeSchema,
35
+ TokenSchema,
36
+ TripInfoSchema,
37
+ TripSegmentSchema,
38
+ VertexTypeSchema
39
+ } from "./chunk-IYBFZNEH.js";
40
+ export {
41
+ AlertCauseSchema,
42
+ AlertEffectSchema,
43
+ AlertSchema,
44
+ AlertSeverityLevelSchema,
45
+ AreaSchema,
46
+ DirectionSchema,
47
+ DurationSchema,
48
+ ElevationCostsSchema,
49
+ EncodedPolylineSchema,
50
+ FareMediaSchema,
51
+ FareMediaTypeSchema,
52
+ FareProductSchema,
53
+ FareTransferRuleSchema,
54
+ FareTransferSchema,
55
+ FootpathSchema,
56
+ ItinerarySchema,
57
+ LegSchema,
58
+ LocationTypeSchema,
59
+ MatchSchema,
60
+ ModeSchema,
61
+ PedestrianProfileSchema,
62
+ PickupDropoffTypeSchema,
63
+ PlaceSchema,
64
+ ReachablePlaceSchema,
65
+ ReachableSchema,
66
+ RentalFormFactorSchema,
67
+ RentalPropulsionTypeSchema,
68
+ RentalReturnConstraintSchema,
69
+ RentalSchema,
70
+ RiderCategorySchema,
71
+ StepInstructionSchema,
72
+ StopTimeSchema,
73
+ TimeRangeSchema,
74
+ TokenSchema,
75
+ TripInfoSchema,
76
+ TripSegmentSchema,
77
+ VertexTypeSchema
78
+ };
@@ -0,0 +1,65 @@
1
+ import { PlanData, PlanResponse, OneToManyData, OneToManyResponse, OneToAllData, Reachable, ReverseGeocodeData, ReverseGeocodeResponse, GeocodeData, GeocodeResponse, TripData, Itinerary, StoptimesData, StoptimesResponse, TripsData, TripsResponse, InitialResponse, StopsData, StopsResponse, LevelsData, LevelsResponse, FootpathsData, FootpathsResponse } from './types.gen.js';
2
+ import * as _hey_api_client_fetch from '@hey-api/client-fetch';
3
+ import { Options } from '@hey-api/client-fetch';
4
+
5
+ declare const client: _hey_api_client_fetch.Client<Request, Response, unknown, _hey_api_client_fetch.RequestOptionsBase<false> & _hey_api_client_fetch.Config<false> & {
6
+ headers: Headers;
7
+ }>;
8
+ /**
9
+ * Computes optimal connections from one place to another.
10
+ */
11
+ declare const plan: <ThrowOnError extends boolean = false>(options: Options<PlanData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PlanResponse, unknown, ThrowOnError>;
12
+ /**
13
+ * Street routing from one to many places or many to one.
14
+ * The order in the response array corresponds to the order of coordinates of the \`many\` parameter in the query.
15
+ *
16
+ */
17
+ declare const oneToMany: <ThrowOnError extends boolean = false>(options: Options<OneToManyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<OneToManyResponse, unknown, ThrowOnError>;
18
+ /**
19
+ * Computes all reachable locations from a given stop within a set duration.
20
+ * Each result entry will contain the fastest travel duration and the number of connections used.
21
+ *
22
+ */
23
+ declare const oneToAll: <ThrowOnError extends boolean = false>(options: Options<OneToAllData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Reachable, unknown, ThrowOnError>;
24
+ /**
25
+ * Translate coordinates to the closest address(es)/places/stops.
26
+ */
27
+ declare const reverseGeocode: <ThrowOnError extends boolean = false>(options: Options<ReverseGeocodeData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ReverseGeocodeResponse, unknown, ThrowOnError>;
28
+ /**
29
+ * Autocompletion & geocoding that resolves user input addresses including coordinates
30
+ */
31
+ declare const geocode: <ThrowOnError extends boolean = false>(options: Options<GeocodeData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GeocodeResponse, unknown, ThrowOnError>;
32
+ /**
33
+ * Get a trip as itinerary
34
+ */
35
+ declare const trip: <ThrowOnError extends boolean = false>(options: Options<TripData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Itinerary, unknown, ThrowOnError>;
36
+ /**
37
+ * Get the next N departures or arrivals of a stop sorted by time
38
+ */
39
+ declare const stoptimes: <ThrowOnError extends boolean = false>(options: Options<StoptimesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StoptimesResponse, unknown, ThrowOnError>;
40
+ /**
41
+ * Given a area frame (box defined by top right and bottom left corner) and a time frame,
42
+ * it returns all trips and their respective shapes that operate in this area + time frame.
43
+ * Trips are filtered by zoom level. On low zoom levels, only long distance trains will be shown
44
+ * while on high zoom levels, also metros, buses and trams will be returned.
45
+ *
46
+ */
47
+ declare const trips: <ThrowOnError extends boolean = false>(options: Options<TripsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<TripsResponse, unknown, ThrowOnError>;
48
+ /**
49
+ * initial location to view the map at after loading based on where public transport should be visible
50
+ */
51
+ declare const initial: <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<InitialResponse, unknown, ThrowOnError>;
52
+ /**
53
+ * Get all stops for a map section
54
+ */
55
+ declare const stops: <ThrowOnError extends boolean = false>(options: Options<StopsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StopsResponse, unknown, ThrowOnError>;
56
+ /**
57
+ * Get all available levels for a map section
58
+ */
59
+ declare const levels: <ThrowOnError extends boolean = false>(options: Options<LevelsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<LevelsResponse, unknown, ThrowOnError>;
60
+ /**
61
+ * Prints all footpaths of a timetable location (track, bus stop, etc.)
62
+ */
63
+ declare const footpaths: <ThrowOnError extends boolean = false>(options: Options<FootpathsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<FootpathsResponse, unknown, ThrowOnError>;
64
+
65
+ export { client, footpaths, geocode, initial, levels, oneToAll, oneToMany, plan, reverseGeocode, stops, stoptimes, trip, trips };
@@ -0,0 +1,30 @@
1
+ import {
2
+ client,
3
+ footpaths,
4
+ geocode,
5
+ initial,
6
+ levels,
7
+ oneToAll,
8
+ oneToMany,
9
+ plan,
10
+ reverseGeocode,
11
+ stops,
12
+ stoptimes,
13
+ trip,
14
+ trips
15
+ } from "./chunk-QM2K42W7.js";
16
+ export {
17
+ client,
18
+ footpaths,
19
+ geocode,
20
+ initial,
21
+ levels,
22
+ oneToAll,
23
+ oneToMany,
24
+ plan,
25
+ reverseGeocode,
26
+ stops,
27
+ stoptimes,
28
+ trip,
29
+ trips
30
+ };