@motis-project/motis-client 2.1.2 → 2.7.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.
@@ -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,
@@ -18,15 +20,24 @@ import {
18
20
  LocationTypeSchema,
19
21
  MatchSchema,
20
22
  ModeSchema,
23
+ MultiPolygonSchema,
21
24
  PedestrianProfileSchema,
25
+ PedestrianSpeedSchema,
22
26
  PickupDropoffTypeSchema,
23
27
  PlaceSchema,
24
28
  ReachablePlaceSchema,
25
29
  ReachableSchema,
26
30
  RentalFormFactorSchema,
27
31
  RentalPropulsionTypeSchema,
32
+ RentalProviderGroupSchema,
33
+ RentalProviderSchema,
28
34
  RentalReturnConstraintSchema,
29
35
  RentalSchema,
36
+ RentalStationSchema,
37
+ RentalVehicleSchema,
38
+ RentalVehicleTypeSchema,
39
+ RentalZoneRestrictionsSchema,
40
+ RentalZoneSchema,
30
41
  RiderCategorySchema,
31
42
  StepInstructionSchema,
32
43
  StopTimeSchema,
@@ -36,17 +47,19 @@ import {
36
47
  TripInfoSchema,
37
48
  TripSegmentSchema,
38
49
  VertexTypeSchema
39
- } from "./chunk-7PIP6KRC.js";
50
+ } from "./chunk-UREEG3GO.js";
40
51
  export {
41
52
  AlertCauseSchema,
42
53
  AlertEffectSchema,
43
54
  AlertSchema,
44
55
  AlertSeverityLevelSchema,
45
56
  AreaSchema,
57
+ CyclingSpeedSchema,
46
58
  DirectionSchema,
47
59
  DurationSchema,
48
60
  ElevationCostsSchema,
49
61
  EncodedPolylineSchema,
62
+ ErrorSchema,
50
63
  FareMediaSchema,
51
64
  FareMediaTypeSchema,
52
65
  FareProductSchema,
@@ -57,15 +70,24 @@ export {
57
70
  LocationTypeSchema,
58
71
  MatchSchema,
59
72
  ModeSchema,
73
+ MultiPolygonSchema,
60
74
  PedestrianProfileSchema,
75
+ PedestrianSpeedSchema,
61
76
  PickupDropoffTypeSchema,
62
77
  PlaceSchema,
63
78
  ReachablePlaceSchema,
64
79
  ReachableSchema,
65
80
  RentalFormFactorSchema,
66
81
  RentalPropulsionTypeSchema,
82
+ RentalProviderGroupSchema,
83
+ RentalProviderSchema,
67
84
  RentalReturnConstraintSchema,
68
85
  RentalSchema,
86
+ RentalStationSchema,
87
+ RentalVehicleSchema,
88
+ RentalVehicleTypeSchema,
89
+ RentalZoneRestrictionsSchema,
90
+ RentalZoneSchema,
69
91
  RiderCategorySchema,
70
92
  StepInstructionSchema,
71
93
  StopTimeSchema,
@@ -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, RentalsData, RentalsResponse, 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, unknown, ThrowOnError>;
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, unknown, ThrowOnError>;
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, unknown, ThrowOnError>;
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, unknown, ThrowOnError>;
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, unknown, ThrowOnError>;
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, unknown, ThrowOnError>;
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,22 +44,42 @@ 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, unknown, ThrowOnError>;
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, unknown, ThrowOnError>;
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, unknown, ThrowOnError>;
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, unknown, ThrowOnError>;
59
+ declare const levels: <ThrowOnError extends boolean = false>(options: Options<LevelsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<LevelsResponse, Error, ThrowOnError>;
60
+ /**
61
+ * Get a list of rental providers or all rental stations and vehicles for
62
+ * a map section or provider
63
+ *
64
+ * If neither the map section (`min` and `max`) nor a provider filter
65
+ * (either `providerGroups` or `providers`) is provided, returns a list of
66
+ * all available rental providers, but no station, vehicle or zone data.
67
+ * Provide the `withProviders=false` parameter to retrieve only provider
68
+ * groups if detailed feed information is not required.
69
+ *
70
+ * Either the map section (`min` and `max`) or the provider filter
71
+ * (either `providerGroups` or `providers`)
72
+ * must be provided to retrieve station, vehicle and zone data.
73
+ *
74
+ * If only the map section is provided, all data in the area is returned.
75
+ * If only the provider filter is provided, all data for the given providers is returned.
76
+ * If both parameters are provided, only data for the given providers in the map section is returned.
77
+ *
78
+ */
79
+ declare const rentals: <ThrowOnError extends boolean = false>(options?: Options<RentalsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RentalsResponse, Error, ThrowOnError>;
60
80
  /**
61
81
  * Prints all transfers of a timetable location (track, bus stop, etc.)
62
82
  */
63
83
  declare const transfers: <ThrowOnError extends boolean = false>(options: Options<TransfersData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<TransfersResponse, unknown, ThrowOnError>;
64
84
 
65
- export { client, geocode, initial, levels, oneToAll, oneToMany, plan, reverseGeocode, stops, stoptimes, transfers, trip, trips };
85
+ export { client, geocode, initial, levels, oneToAll, oneToMany, plan, rentals, reverseGeocode, stops, stoptimes, transfers, trip, trips };
@@ -6,13 +6,14 @@ import {
6
6
  oneToAll,
7
7
  oneToMany,
8
8
  plan,
9
+ rentals,
9
10
  reverseGeocode,
10
11
  stops,
11
12
  stoptimes,
12
13
  transfers,
13
14
  trip,
14
15
  trips
15
- } from "./chunk-IHFNO6R3.js";
16
+ } from "./chunk-FDF4H3WD.js";
16
17
  export {
17
18
  client,
18
19
  geocode,
@@ -21,6 +22,7 @@ export {
21
22
  oneToAll,
22
23
  oneToMany,
23
24
  plan,
25
+ rentals,
24
26
  reverseGeocode,
25
27
  stops,
26
28
  stoptimes,