@motis-project/motis-client 2.0.83 → 2.0.84

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-CAW6R2LI.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-CAW6R2LI.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,42 +1,86 @@
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 {
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';
2
26
  import * as _hey_api_client_fetch from '@hey-api/client-fetch';
3
27
  import { Options } from '@hey-api/client-fetch';
4
28
 
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
- }>;
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
+ >;
8
38
  /**
9
39
  * Computes optimal connections from one place to another.
10
40
  */
11
- declare const plan: <ThrowOnError extends boolean = false>(options: Options<PlanData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PlanResponse, unknown, ThrowOnError>;
41
+ declare const plan: <ThrowOnError extends boolean = false>(
42
+ options: Options<PlanData, ThrowOnError>
43
+ ) => _hey_api_client_fetch.RequestResult<PlanResponse, unknown, ThrowOnError>;
12
44
  /**
13
45
  * Street routing from one to many places or many to one.
14
46
  * The order in the response array corresponds to the order of coordinates of the \`many\` parameter in the query.
15
47
  *
16
48
  */
17
- declare const oneToMany: <ThrowOnError extends boolean = false>(options: Options<OneToManyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<OneToManyResponse, unknown, ThrowOnError>;
49
+ declare const oneToMany: <ThrowOnError extends boolean = false>(
50
+ options: Options<OneToManyData, ThrowOnError>
51
+ ) => _hey_api_client_fetch.RequestResult<OneToManyResponse, unknown, ThrowOnError>;
18
52
  /**
19
53
  * Computes all reachable locations from a given stop within a set duration.
20
54
  * Each result entry will contain the fastest travel duration and the number of connections used.
21
55
  *
22
56
  */
23
- declare const oneToAll: <ThrowOnError extends boolean = false>(options: Options<OneToAllData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Reachable, unknown, ThrowOnError>;
57
+ declare const oneToAll: <ThrowOnError extends boolean = false>(
58
+ options: Options<OneToAllData, ThrowOnError>
59
+ ) => _hey_api_client_fetch.RequestResult<Reachable, unknown, ThrowOnError>;
24
60
  /**
25
61
  * Translate coordinates to the closest address(es)/places/stops.
26
62
  */
27
- declare const reverseGeocode: <ThrowOnError extends boolean = false>(options: Options<ReverseGeocodeData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ReverseGeocodeResponse, unknown, ThrowOnError>;
63
+ declare const reverseGeocode: <ThrowOnError extends boolean = false>(
64
+ options: Options<ReverseGeocodeData, ThrowOnError>
65
+ ) => _hey_api_client_fetch.RequestResult<ReverseGeocodeResponse, unknown, ThrowOnError>;
28
66
  /**
29
67
  * Autocompletion & geocoding that resolves user input addresses including coordinates
30
68
  */
31
- declare const geocode: <ThrowOnError extends boolean = false>(options: Options<GeocodeData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GeocodeResponse, unknown, ThrowOnError>;
69
+ declare const geocode: <ThrowOnError extends boolean = false>(
70
+ options: Options<GeocodeData, ThrowOnError>
71
+ ) => _hey_api_client_fetch.RequestResult<GeocodeResponse, unknown, ThrowOnError>;
32
72
  /**
33
73
  * Get a trip as itinerary
34
74
  */
35
- declare const trip: <ThrowOnError extends boolean = false>(options: Options<TripData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Itinerary, unknown, ThrowOnError>;
75
+ declare const trip: <ThrowOnError extends boolean = false>(
76
+ options: Options<TripData, ThrowOnError>
77
+ ) => _hey_api_client_fetch.RequestResult<Itinerary, unknown, ThrowOnError>;
36
78
  /**
37
79
  * Get the next N departures or arrivals of a stop sorted by time
38
80
  */
39
- declare const stoptimes: <ThrowOnError extends boolean = false>(options: Options<StoptimesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StoptimesResponse, unknown, ThrowOnError>;
81
+ declare const stoptimes: <ThrowOnError extends boolean = false>(
82
+ options: Options<StoptimesData, ThrowOnError>
83
+ ) => _hey_api_client_fetch.RequestResult<StoptimesResponse, unknown, ThrowOnError>;
40
84
  /**
41
85
  * Given a area frame (box defined by top right and bottom left corner) and a time frame,
42
86
  * it returns all trips and their respective shapes that operate in this area + time frame.
@@ -44,22 +88,46 @@ declare const stoptimes: <ThrowOnError extends boolean = false>(options: Options
44
88
  * while on high zoom levels, also metros, buses and trams will be returned.
45
89
  *
46
90
  */
47
- declare const trips: <ThrowOnError extends boolean = false>(options: Options<TripsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<TripsResponse, unknown, ThrowOnError>;
91
+ declare const trips: <ThrowOnError extends boolean = false>(
92
+ options: Options<TripsData, ThrowOnError>
93
+ ) => _hey_api_client_fetch.RequestResult<TripsResponse, unknown, ThrowOnError>;
48
94
  /**
49
95
  * initial location to view the map at after loading based on where public transport should be visible
50
96
  */
51
- declare const initial: <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<InitialResponse, unknown, ThrowOnError>;
97
+ declare const initial: <ThrowOnError extends boolean = false>(
98
+ options?: Options<unknown, ThrowOnError>
99
+ ) => _hey_api_client_fetch.RequestResult<InitialResponse, unknown, ThrowOnError>;
52
100
  /**
53
101
  * Get all stops for a map section
54
102
  */
55
- declare const stops: <ThrowOnError extends boolean = false>(options: Options<StopsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StopsResponse, unknown, ThrowOnError>;
103
+ declare const stops: <ThrowOnError extends boolean = false>(
104
+ options: Options<StopsData, ThrowOnError>
105
+ ) => _hey_api_client_fetch.RequestResult<StopsResponse, unknown, ThrowOnError>;
56
106
  /**
57
107
  * Get all available levels for a map section
58
108
  */
59
- declare const levels: <ThrowOnError extends boolean = false>(options: Options<LevelsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<LevelsResponse, unknown, ThrowOnError>;
109
+ declare const levels: <ThrowOnError extends boolean = false>(
110
+ options: Options<LevelsData, ThrowOnError>
111
+ ) => _hey_api_client_fetch.RequestResult<LevelsResponse, unknown, ThrowOnError>;
60
112
  /**
61
113
  * Prints all transfers of a timetable location (track, bus stop, etc.)
62
114
  */
63
- declare const transfers: <ThrowOnError extends boolean = false>(options: Options<TransfersData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<TransfersResponse, unknown, ThrowOnError>;
115
+ declare const transfers: <ThrowOnError extends boolean = false>(
116
+ options: Options<TransfersData, ThrowOnError>
117
+ ) => _hey_api_client_fetch.RequestResult<TransfersResponse, unknown, ThrowOnError>;
64
118
 
65
- export { client, geocode, initial, levels, oneToAll, oneToMany, plan, reverseGeocode, stops, stoptimes, transfers, trip, trips };
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
+ };
@@ -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-VOTN5CAZ.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
  };