@motis-project/motis-client 2.0.92 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,78 +1,78 @@
1
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
- ItinerarySchema,
17
- LegSchema,
18
- LocationTypeSchema,
19
- MatchSchema,
20
- ModeSchema,
21
- PedestrianProfileSchema,
22
- PickupDropoffTypeSchema,
23
- PlaceSchema,
24
- ReachablePlaceSchema,
25
- ReachableSchema,
26
- RentalFormFactorSchema,
27
- RentalPropulsionTypeSchema,
28
- RentalReturnConstraintSchema,
29
- RentalSchema,
30
- RiderCategorySchema,
31
- StepInstructionSchema,
32
- StopTimeSchema,
33
- TimeRangeSchema,
34
- TokenSchema,
35
- TransferSchema,
36
- TripInfoSchema,
37
- TripSegmentSchema,
38
- VertexTypeSchema
39
- } from './chunk-RM52T2X5.js';
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
+ ItinerarySchema,
17
+ LegSchema,
18
+ LocationTypeSchema,
19
+ MatchSchema,
20
+ ModeSchema,
21
+ PedestrianProfileSchema,
22
+ PickupDropoffTypeSchema,
23
+ PlaceSchema,
24
+ ReachablePlaceSchema,
25
+ ReachableSchema,
26
+ RentalFormFactorSchema,
27
+ RentalPropulsionTypeSchema,
28
+ RentalReturnConstraintSchema,
29
+ RentalSchema,
30
+ RiderCategorySchema,
31
+ StepInstructionSchema,
32
+ StopTimeSchema,
33
+ TimeRangeSchema,
34
+ TokenSchema,
35
+ TransferSchema,
36
+ TripInfoSchema,
37
+ TripSegmentSchema,
38
+ VertexTypeSchema
39
+ } from "./chunk-7PIP6KRC.js";
40
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
- ItinerarySchema,
56
- LegSchema,
57
- LocationTypeSchema,
58
- MatchSchema,
59
- ModeSchema,
60
- PedestrianProfileSchema,
61
- PickupDropoffTypeSchema,
62
- PlaceSchema,
63
- ReachablePlaceSchema,
64
- ReachableSchema,
65
- RentalFormFactorSchema,
66
- RentalPropulsionTypeSchema,
67
- RentalReturnConstraintSchema,
68
- RentalSchema,
69
- RiderCategorySchema,
70
- StepInstructionSchema,
71
- StopTimeSchema,
72
- TimeRangeSchema,
73
- TokenSchema,
74
- TransferSchema,
75
- TripInfoSchema,
76
- TripSegmentSchema,
77
- VertexTypeSchema
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
+ ItinerarySchema,
56
+ LegSchema,
57
+ LocationTypeSchema,
58
+ MatchSchema,
59
+ ModeSchema,
60
+ PedestrianProfileSchema,
61
+ PickupDropoffTypeSchema,
62
+ PlaceSchema,
63
+ ReachablePlaceSchema,
64
+ ReachableSchema,
65
+ RentalFormFactorSchema,
66
+ RentalPropulsionTypeSchema,
67
+ RentalReturnConstraintSchema,
68
+ RentalSchema,
69
+ RiderCategorySchema,
70
+ StepInstructionSchema,
71
+ StopTimeSchema,
72
+ TimeRangeSchema,
73
+ TokenSchema,
74
+ TransferSchema,
75
+ TripInfoSchema,
76
+ TripSegmentSchema,
77
+ VertexTypeSchema
78
78
  };
@@ -1,86 +1,42 @@
1
- import {
2
- PlanData,
3
- PlanResponse,
4
- OneToManyData,
5
- OneToManyResponse,
6
- OneToAllData,
7
- Reachable,
8
- ReverseGeocodeData,
9
- ReverseGeocodeResponse,
10
- GeocodeData,
11
- GeocodeResponse,
12
- TripData,
13
- Itinerary,
14
- StoptimesData,
15
- StoptimesResponse,
16
- TripsData,
17
- TripsResponse,
18
- InitialResponse,
19
- StopsData,
20
- StopsResponse,
21
- LevelsData,
22
- LevelsResponse,
23
- TransfersData,
24
- TransfersResponse
25
- } from './types.gen.js';
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';
26
2
  import * as _hey_api_client_fetch from '@hey-api/client-fetch';
27
3
  import { Options } from '@hey-api/client-fetch';
28
4
 
29
- declare const client: _hey_api_client_fetch.Client<
30
- Request,
31
- Response,
32
- unknown,
33
- _hey_api_client_fetch.RequestOptionsBase<false> &
34
- _hey_api_client_fetch.Config<false> & {
35
- headers: Headers;
36
- }
37
- >;
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
+ }>;
38
8
  /**
39
9
  * Computes optimal connections from one place to another.
40
10
  */
41
- declare const plan: <ThrowOnError extends boolean = false>(
42
- options: Options<PlanData, ThrowOnError>
43
- ) => _hey_api_client_fetch.RequestResult<PlanResponse, unknown, ThrowOnError>;
11
+ declare const plan: <ThrowOnError extends boolean = false>(options: Options<PlanData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PlanResponse, unknown, ThrowOnError>;
44
12
  /**
45
13
  * Street routing from one to many places or many to one.
46
14
  * The order in the response array corresponds to the order of coordinates of the \`many\` parameter in the query.
47
15
  *
48
16
  */
49
- declare const oneToMany: <ThrowOnError extends boolean = false>(
50
- options: Options<OneToManyData, ThrowOnError>
51
- ) => _hey_api_client_fetch.RequestResult<OneToManyResponse, unknown, ThrowOnError>;
17
+ declare const oneToMany: <ThrowOnError extends boolean = false>(options: Options<OneToManyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<OneToManyResponse, unknown, ThrowOnError>;
52
18
  /**
53
19
  * Computes all reachable locations from a given stop within a set duration.
54
20
  * Each result entry will contain the fastest travel duration and the number of connections used.
55
21
  *
56
22
  */
57
- declare const oneToAll: <ThrowOnError extends boolean = false>(
58
- options: Options<OneToAllData, ThrowOnError>
59
- ) => _hey_api_client_fetch.RequestResult<Reachable, unknown, ThrowOnError>;
23
+ declare const oneToAll: <ThrowOnError extends boolean = false>(options: Options<OneToAllData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Reachable, unknown, ThrowOnError>;
60
24
  /**
61
25
  * Translate coordinates to the closest address(es)/places/stops.
62
26
  */
63
- declare const reverseGeocode: <ThrowOnError extends boolean = false>(
64
- options: Options<ReverseGeocodeData, ThrowOnError>
65
- ) => _hey_api_client_fetch.RequestResult<ReverseGeocodeResponse, unknown, ThrowOnError>;
27
+ declare const reverseGeocode: <ThrowOnError extends boolean = false>(options: Options<ReverseGeocodeData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ReverseGeocodeResponse, unknown, ThrowOnError>;
66
28
  /**
67
29
  * Autocompletion & geocoding that resolves user input addresses including coordinates
68
30
  */
69
- declare const geocode: <ThrowOnError extends boolean = false>(
70
- options: Options<GeocodeData, ThrowOnError>
71
- ) => _hey_api_client_fetch.RequestResult<GeocodeResponse, unknown, ThrowOnError>;
31
+ declare const geocode: <ThrowOnError extends boolean = false>(options: Options<GeocodeData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GeocodeResponse, unknown, ThrowOnError>;
72
32
  /**
73
33
  * Get a trip as itinerary
74
34
  */
75
- declare const trip: <ThrowOnError extends boolean = false>(
76
- options: Options<TripData, ThrowOnError>
77
- ) => _hey_api_client_fetch.RequestResult<Itinerary, unknown, ThrowOnError>;
35
+ declare const trip: <ThrowOnError extends boolean = false>(options: Options<TripData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Itinerary, unknown, ThrowOnError>;
78
36
  /**
79
37
  * Get the next N departures or arrivals of a stop sorted by time
80
38
  */
81
- declare const stoptimes: <ThrowOnError extends boolean = false>(
82
- options: Options<StoptimesData, ThrowOnError>
83
- ) => _hey_api_client_fetch.RequestResult<StoptimesResponse, unknown, ThrowOnError>;
39
+ declare const stoptimes: <ThrowOnError extends boolean = false>(options: Options<StoptimesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StoptimesResponse, unknown, ThrowOnError>;
84
40
  /**
85
41
  * Given a area frame (box defined by top right and bottom left corner) and a time frame,
86
42
  * it returns all trips and their respective shapes that operate in this area + time frame.
@@ -88,46 +44,22 @@ declare const stoptimes: <ThrowOnError extends boolean = false>(
88
44
  * while on high zoom levels, also metros, buses and trams will be returned.
89
45
  *
90
46
  */
91
- declare const trips: <ThrowOnError extends boolean = false>(
92
- options: Options<TripsData, ThrowOnError>
93
- ) => _hey_api_client_fetch.RequestResult<TripsResponse, unknown, ThrowOnError>;
47
+ declare const trips: <ThrowOnError extends boolean = false>(options: Options<TripsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<TripsResponse, unknown, ThrowOnError>;
94
48
  /**
95
49
  * initial location to view the map at after loading based on where public transport should be visible
96
50
  */
97
- declare const initial: <ThrowOnError extends boolean = false>(
98
- options?: Options<unknown, ThrowOnError>
99
- ) => _hey_api_client_fetch.RequestResult<InitialResponse, unknown, ThrowOnError>;
51
+ declare const initial: <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<InitialResponse, unknown, ThrowOnError>;
100
52
  /**
101
53
  * Get all stops for a map section
102
54
  */
103
- declare const stops: <ThrowOnError extends boolean = false>(
104
- options: Options<StopsData, ThrowOnError>
105
- ) => _hey_api_client_fetch.RequestResult<StopsResponse, unknown, ThrowOnError>;
55
+ declare const stops: <ThrowOnError extends boolean = false>(options: Options<StopsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StopsResponse, unknown, ThrowOnError>;
106
56
  /**
107
57
  * Get all available levels for a map section
108
58
  */
109
- declare const levels: <ThrowOnError extends boolean = false>(
110
- options: Options<LevelsData, ThrowOnError>
111
- ) => _hey_api_client_fetch.RequestResult<LevelsResponse, unknown, ThrowOnError>;
59
+ declare const levels: <ThrowOnError extends boolean = false>(options: Options<LevelsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<LevelsResponse, unknown, ThrowOnError>;
112
60
  /**
113
61
  * Prints all transfers of a timetable location (track, bus stop, etc.)
114
62
  */
115
- declare const transfers: <ThrowOnError extends boolean = false>(
116
- options: Options<TransfersData, ThrowOnError>
117
- ) => _hey_api_client_fetch.RequestResult<TransfersResponse, unknown, ThrowOnError>;
63
+ declare const transfers: <ThrowOnError extends boolean = false>(options: Options<TransfersData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<TransfersResponse, unknown, ThrowOnError>;
118
64
 
119
- export {
120
- client,
121
- geocode,
122
- initial,
123
- levels,
124
- oneToAll,
125
- oneToMany,
126
- plan,
127
- reverseGeocode,
128
- stops,
129
- stoptimes,
130
- transfers,
131
- trip,
132
- trips
133
- };
65
+ export { client, geocode, initial, levels, oneToAll, oneToMany, plan, reverseGeocode, stops, stoptimes, transfers, trip, trips };
@@ -1,30 +1,30 @@
1
1
  import {
2
- client,
3
- geocode,
4
- initial,
5
- levels,
6
- oneToAll,
7
- oneToMany,
8
- plan,
9
- reverseGeocode,
10
- stops,
11
- stoptimes,
12
- transfers,
13
- trip,
14
- trips
15
- } from './chunk-IHFNO6R3.js';
2
+ client,
3
+ geocode,
4
+ initial,
5
+ levels,
6
+ oneToAll,
7
+ oneToMany,
8
+ plan,
9
+ reverseGeocode,
10
+ stops,
11
+ stoptimes,
12
+ transfers,
13
+ trip,
14
+ trips
15
+ } from "./chunk-IHFNO6R3.js";
16
16
  export {
17
- client,
18
- geocode,
19
- initial,
20
- levels,
21
- oneToAll,
22
- oneToMany,
23
- plan,
24
- reverseGeocode,
25
- stops,
26
- stoptimes,
27
- transfers,
28
- trip,
29
- trips
17
+ client,
18
+ geocode,
19
+ initial,
20
+ levels,
21
+ oneToAll,
22
+ oneToMany,
23
+ plan,
24
+ reverseGeocode,
25
+ stops,
26
+ stoptimes,
27
+ transfers,
28
+ trip,
29
+ trips
30
30
  };