@motis-project/motis-client 2.8.2 → 2.9.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-3462JEGC.js → chunk-4T7SSETL.js} +517 -12
- package/dist/{chunk-FDF4H3WD.js → chunk-5NZGXSLW.js} +28 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +32 -2
- package/dist/schemas.gen.d.ts +354 -8
- package/dist/schemas.gen.js +23 -1
- package/dist/services.gen.d.ts +32 -4
- package/dist/services.gen.js +9 -1
- package/dist/types.gen.d.ts +696 -18
- package/package.json +1 -1
package/dist/schemas.gen.js
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
AlertSchema,
|
|
5
5
|
AlertSeverityLevelSchema,
|
|
6
6
|
AreaSchema,
|
|
7
|
+
CategorySchema,
|
|
7
8
|
CyclingSpeedSchema,
|
|
8
9
|
DirectionSchema,
|
|
9
10
|
DurationSchema,
|
|
@@ -21,7 +22,11 @@ import {
|
|
|
21
22
|
MatchSchema,
|
|
22
23
|
ModeSchema,
|
|
23
24
|
MultiPolygonSchema,
|
|
25
|
+
OneToManyIntermodalParamsSchema,
|
|
26
|
+
OneToManyIntermodalResponseSchema,
|
|
24
27
|
OneToManyParamsSchema,
|
|
28
|
+
ParetoSetEntrySchema,
|
|
29
|
+
ParetoSetSchema,
|
|
25
30
|
PedestrianProfileSchema,
|
|
26
31
|
PedestrianSpeedSchema,
|
|
27
32
|
PickupDropoffTypeSchema,
|
|
@@ -40,22 +45,29 @@ import {
|
|
|
40
45
|
RentalZoneRestrictionsSchema,
|
|
41
46
|
RentalZoneSchema,
|
|
42
47
|
RiderCategorySchema,
|
|
48
|
+
RouteColorSchema,
|
|
49
|
+
RouteInfoSchema,
|
|
50
|
+
RoutePathSourceSchema,
|
|
51
|
+
RoutePolylineSchema,
|
|
52
|
+
RouteSegmentSchema,
|
|
43
53
|
ServerConfigSchema,
|
|
44
54
|
StepInstructionSchema,
|
|
45
55
|
StopTimeSchema,
|
|
46
56
|
TimeRangeSchema,
|
|
47
57
|
TokenSchema,
|
|
48
58
|
TransferSchema,
|
|
59
|
+
TransitRouteInfoSchema,
|
|
49
60
|
TripInfoSchema,
|
|
50
61
|
TripSegmentSchema,
|
|
51
62
|
VertexTypeSchema
|
|
52
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-4T7SSETL.js";
|
|
53
64
|
export {
|
|
54
65
|
AlertCauseSchema,
|
|
55
66
|
AlertEffectSchema,
|
|
56
67
|
AlertSchema,
|
|
57
68
|
AlertSeverityLevelSchema,
|
|
58
69
|
AreaSchema,
|
|
70
|
+
CategorySchema,
|
|
59
71
|
CyclingSpeedSchema,
|
|
60
72
|
DirectionSchema,
|
|
61
73
|
DurationSchema,
|
|
@@ -73,7 +85,11 @@ export {
|
|
|
73
85
|
MatchSchema,
|
|
74
86
|
ModeSchema,
|
|
75
87
|
MultiPolygonSchema,
|
|
88
|
+
OneToManyIntermodalParamsSchema,
|
|
89
|
+
OneToManyIntermodalResponseSchema,
|
|
76
90
|
OneToManyParamsSchema,
|
|
91
|
+
ParetoSetEntrySchema,
|
|
92
|
+
ParetoSetSchema,
|
|
77
93
|
PedestrianProfileSchema,
|
|
78
94
|
PedestrianSpeedSchema,
|
|
79
95
|
PickupDropoffTypeSchema,
|
|
@@ -92,12 +108,18 @@ export {
|
|
|
92
108
|
RentalZoneRestrictionsSchema,
|
|
93
109
|
RentalZoneSchema,
|
|
94
110
|
RiderCategorySchema,
|
|
111
|
+
RouteColorSchema,
|
|
112
|
+
RouteInfoSchema,
|
|
113
|
+
RoutePathSourceSchema,
|
|
114
|
+
RoutePolylineSchema,
|
|
115
|
+
RouteSegmentSchema,
|
|
95
116
|
ServerConfigSchema,
|
|
96
117
|
StepInstructionSchema,
|
|
97
118
|
StopTimeSchema,
|
|
98
119
|
TimeRangeSchema,
|
|
99
120
|
TokenSchema,
|
|
100
121
|
TransferSchema,
|
|
122
|
+
TransitRouteInfoSchema,
|
|
101
123
|
TripInfoSchema,
|
|
102
124
|
TripSegmentSchema,
|
|
103
125
|
VertexTypeSchema
|
package/dist/services.gen.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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';
|
|
1
|
+
import { PlanData, PlanResponse, Error, OneToManyData, OneToManyResponse, OneToManyPostData, OneToManyPostResponse, OneToManyIntermodalData, OneToManyIntermodalResponse, OneToManyIntermodalPostData, OneToAllData, Reachable, ReverseGeocodeData, ReverseGeocodeResponse, GeocodeData, GeocodeResponse, TripData, Itinerary, StoptimesData, StoptimesResponse, TripsData, TripsResponse, InitialResponse, StopsData, StopsResponse, LevelsData, LevelsResponse, RoutesData, RoutesResponse, 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
|
|
|
@@ -14,7 +14,27 @@ declare const plan: <ThrowOnError extends boolean = false>(options: Options<Plan
|
|
|
14
14
|
* The order in the response array corresponds to the order of coordinates of the \`many\` parameter in the query.
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
17
|
-
declare const oneToMany: <ThrowOnError extends boolean = false>(options: Options<OneToManyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<OneToManyResponse,
|
|
17
|
+
declare const oneToMany: <ThrowOnError extends boolean = false>(options: Options<OneToManyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<OneToManyResponse, Error, ThrowOnError>;
|
|
18
|
+
/**
|
|
19
|
+
* Street routing from one to many places or many to one.
|
|
20
|
+
* The order in the response array corresponds to the order of coordinates of the \`many\` parameter in the request body.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
declare const oneToManyPost: <ThrowOnError extends boolean = false>(options: Options<OneToManyPostData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<OneToManyPostResponse, Error, ThrowOnError>;
|
|
24
|
+
/**
|
|
25
|
+
* One to many routing
|
|
26
|
+
* Computes the minimal duration from one place to many or vice versa.
|
|
27
|
+
* The order in the response array corresponds to the order of coordinates of the \`many\` parameter in the query.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
declare const oneToManyIntermodal: <ThrowOnError extends boolean = false>(options: Options<OneToManyIntermodalData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<OneToManyIntermodalResponse, Error, ThrowOnError>;
|
|
31
|
+
/**
|
|
32
|
+
* One to many routing
|
|
33
|
+
* Computes the minimal duration from one place to many or vice versa.
|
|
34
|
+
* The order in the response array corresponds to the order of coordinates of the \`many\` parameter in the request body.
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
declare const oneToManyIntermodalPost: <ThrowOnError extends boolean = false>(options: Options<OneToManyIntermodalPostData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<OneToManyIntermodalResponse, Error, ThrowOnError>;
|
|
18
38
|
/**
|
|
19
39
|
* Computes all reachable locations from a given stop within a set duration.
|
|
20
40
|
* Each result entry will contain the fastest travel duration and the number of connections used.
|
|
@@ -36,7 +56,7 @@ declare const trip: <ThrowOnError extends boolean = false>(options: Options<Trip
|
|
|
36
56
|
/**
|
|
37
57
|
* Get the next N departures or arrivals of a stop sorted by time
|
|
38
58
|
*/
|
|
39
|
-
declare const stoptimes: <ThrowOnError extends boolean = false>(options
|
|
59
|
+
declare const stoptimes: <ThrowOnError extends boolean = false>(options?: Options<StoptimesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StoptimesResponse, Error, ThrowOnError>;
|
|
40
60
|
/**
|
|
41
61
|
* Given a area frame (box defined by top right and bottom left corner) and a time frame,
|
|
42
62
|
* it returns all trips and their respective shapes that operate in this area + time frame.
|
|
@@ -57,6 +77,14 @@ declare const stops: <ThrowOnError extends boolean = false>(options: Options<Sto
|
|
|
57
77
|
* Get all available levels for a map section
|
|
58
78
|
*/
|
|
59
79
|
declare const levels: <ThrowOnError extends boolean = false>(options: Options<LevelsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<LevelsResponse, Error, ThrowOnError>;
|
|
80
|
+
/**
|
|
81
|
+
* Given an area frame (box defined by the top-right and bottom-left corners),
|
|
82
|
+
* it returns all routes and their respective shapes that operate within this area.
|
|
83
|
+
* Routes are filtered by zoom level. On low zoom levels, only long distance trains will be shown
|
|
84
|
+
* while on high zoom levels, also metros, buses and trams will be returned.
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
87
|
+
declare const routes: <ThrowOnError extends boolean = false>(options: Options<RoutesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RoutesResponse, Error, ThrowOnError>;
|
|
60
88
|
/**
|
|
61
89
|
* Get a list of rental providers or all rental stations and vehicles for
|
|
62
90
|
* a map section or provider
|
|
@@ -86,4 +114,4 @@ declare const rentals: <ThrowOnError extends boolean = false>(options?: Options<
|
|
|
86
114
|
*/
|
|
87
115
|
declare const transfers: <ThrowOnError extends boolean = false>(options: Options<TransfersData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<TransfersResponse, unknown, ThrowOnError>;
|
|
88
116
|
|
|
89
|
-
export { client, geocode, initial, levels, oneToAll, oneToMany, plan, rentals, reverseGeocode, stops, stoptimes, transfers, trip, trips };
|
|
117
|
+
export { client, geocode, initial, levels, oneToAll, oneToMany, oneToManyIntermodal, oneToManyIntermodalPost, oneToManyPost, plan, rentals, reverseGeocode, routes, stops, stoptimes, transfers, trip, trips };
|
package/dist/services.gen.js
CHANGED
|
@@ -5,15 +5,19 @@ import {
|
|
|
5
5
|
levels,
|
|
6
6
|
oneToAll,
|
|
7
7
|
oneToMany,
|
|
8
|
+
oneToManyIntermodal,
|
|
9
|
+
oneToManyIntermodalPost,
|
|
10
|
+
oneToManyPost,
|
|
8
11
|
plan,
|
|
9
12
|
rentals,
|
|
10
13
|
reverseGeocode,
|
|
14
|
+
routes,
|
|
11
15
|
stops,
|
|
12
16
|
stoptimes,
|
|
13
17
|
transfers,
|
|
14
18
|
trip,
|
|
15
19
|
trips
|
|
16
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-5NZGXSLW.js";
|
|
17
21
|
export {
|
|
18
22
|
client,
|
|
19
23
|
geocode,
|
|
@@ -21,9 +25,13 @@ export {
|
|
|
21
25
|
levels,
|
|
22
26
|
oneToAll,
|
|
23
27
|
oneToMany,
|
|
28
|
+
oneToManyIntermodal,
|
|
29
|
+
oneToManyIntermodalPost,
|
|
30
|
+
oneToManyPost,
|
|
24
31
|
plan,
|
|
25
32
|
rentals,
|
|
26
33
|
reverseGeocode,
|
|
34
|
+
routes,
|
|
27
35
|
stops,
|
|
28
36
|
stoptimes,
|
|
29
37
|
transfers,
|