@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.
- package/LICENSE +21 -0
- package/README.md +19 -0
- package/dist/chunk-6DML7NNP.js +0 -0
- package/dist/chunk-IYBFZNEH.js +1093 -0
- package/dist/chunk-QM2K42W7.js +91 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +107 -0
- package/dist/schemas.gen.d.ts +904 -0
- package/dist/schemas.gen.js +78 -0
- package/dist/services.gen.d.ts +65 -0
- package/dist/services.gen.js +30 -0
- package/dist/types.gen.d.ts +1703 -0
- package/dist/types.gen.js +1 -0
- package/package.json +37 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// openapi/services.gen.ts
|
|
2
|
+
import { createClient, createConfig } from "@hey-api/client-fetch";
|
|
3
|
+
var client = createClient(createConfig());
|
|
4
|
+
var plan = (options) => {
|
|
5
|
+
return (options?.client ?? client).get({
|
|
6
|
+
...options,
|
|
7
|
+
url: "/api/v2/plan"
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var oneToMany = (options) => {
|
|
11
|
+
return (options?.client ?? client).get({
|
|
12
|
+
...options,
|
|
13
|
+
url: "/api/v1/one-to-many"
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
var oneToAll = (options) => {
|
|
17
|
+
return (options?.client ?? client).get({
|
|
18
|
+
...options,
|
|
19
|
+
url: "/api/experimental/one-to-all"
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var reverseGeocode = (options) => {
|
|
23
|
+
return (options?.client ?? client).get({
|
|
24
|
+
...options,
|
|
25
|
+
url: "/api/v1/reverse-geocode"
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
var geocode = (options) => {
|
|
29
|
+
return (options?.client ?? client).get({
|
|
30
|
+
...options,
|
|
31
|
+
url: "/api/v1/geocode"
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
var trip = (options) => {
|
|
35
|
+
return (options?.client ?? client).get({
|
|
36
|
+
...options,
|
|
37
|
+
url: "/api/v2/trip"
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
var stoptimes = (options) => {
|
|
41
|
+
return (options?.client ?? client).get({
|
|
42
|
+
...options,
|
|
43
|
+
url: "/api/v1/stoptimes"
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
var trips = (options) => {
|
|
47
|
+
return (options?.client ?? client).get({
|
|
48
|
+
...options,
|
|
49
|
+
url: "/api/v1/map/trips"
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
var initial = (options) => {
|
|
53
|
+
return (options?.client ?? client).get({
|
|
54
|
+
...options,
|
|
55
|
+
url: "/api/v1/map/initial"
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
var stops = (options) => {
|
|
59
|
+
return (options?.client ?? client).get({
|
|
60
|
+
...options,
|
|
61
|
+
url: "/api/v1/map/stops"
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
var levels = (options) => {
|
|
65
|
+
return (options?.client ?? client).get({
|
|
66
|
+
...options,
|
|
67
|
+
url: "/api/v1/map/levels"
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
var footpaths = (options) => {
|
|
71
|
+
return (options?.client ?? client).get({
|
|
72
|
+
...options,
|
|
73
|
+
url: "/api/debug/footpaths"
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export {
|
|
78
|
+
client,
|
|
79
|
+
plan,
|
|
80
|
+
oneToMany,
|
|
81
|
+
oneToAll,
|
|
82
|
+
reverseGeocode,
|
|
83
|
+
geocode,
|
|
84
|
+
trip,
|
|
85
|
+
stoptimes,
|
|
86
|
+
trips,
|
|
87
|
+
initial,
|
|
88
|
+
stops,
|
|
89
|
+
levels,
|
|
90
|
+
footpaths
|
|
91
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { AlertCauseSchema, AlertEffectSchema, AlertSchema, AlertSeverityLevelSchema, AreaSchema, DirectionSchema, DurationSchema, ElevationCostsSchema, EncodedPolylineSchema, FareMediaSchema, FareMediaTypeSchema, FareProductSchema, FareTransferRuleSchema, FareTransferSchema, FootpathSchema, ItinerarySchema, LegSchema, LocationTypeSchema, MatchSchema, ModeSchema, PedestrianProfileSchema, PickupDropoffTypeSchema, PlaceSchema, ReachablePlaceSchema, ReachableSchema, RentalFormFactorSchema, RentalPropulsionTypeSchema, RentalReturnConstraintSchema, RentalSchema, RiderCategorySchema, StepInstructionSchema, StopTimeSchema, TimeRangeSchema, TokenSchema, TripInfoSchema, TripSegmentSchema, VertexTypeSchema } from './schemas.gen.js';
|
|
2
|
+
export { client, footpaths, geocode, initial, levels, oneToAll, oneToMany, plan, reverseGeocode, stops, stoptimes, trip, trips } from './services.gen.js';
|
|
3
|
+
export { Alert, AlertCause, AlertEffect, AlertSeverityLevel, Area, Direction, Duration, ElevationCosts, EncodedPolyline, FareMedia, FareMediaType, FareProduct, FareTransfer, FareTransferRule, Footpath, FootpathsData, FootpathsError, FootpathsResponse, GeocodeData, GeocodeError, GeocodeResponse, InitialError, InitialResponse, Itinerary, Leg, LevelsData, LevelsError, LevelsResponse, LocationType, Match, Mode, OneToAllData, OneToAllError, OneToAllResponse, OneToManyData, OneToManyError, OneToManyResponse, PedestrianProfile, PickupDropoffType, Place, PlanData, PlanError, PlanResponse, Reachable, ReachablePlace, Rental, RentalFormFactor, RentalPropulsionType, RentalReturnConstraint, ReverseGeocodeData, ReverseGeocodeError, ReverseGeocodeResponse, RiderCategory, StepInstruction, StopTime, StopsData, StopsError, StopsResponse, StoptimesData, StoptimesError, StoptimesResponse, TimeRange, Token, TripData, TripError, TripInfo, TripResponse, TripSegment, TripsData, TripsError, TripsResponse, VertexType } from './types.gen.js';
|
|
4
|
+
import '@hey-api/client-fetch';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
import {
|
|
41
|
+
client,
|
|
42
|
+
footpaths,
|
|
43
|
+
geocode,
|
|
44
|
+
initial,
|
|
45
|
+
levels,
|
|
46
|
+
oneToAll,
|
|
47
|
+
oneToMany,
|
|
48
|
+
plan,
|
|
49
|
+
reverseGeocode,
|
|
50
|
+
stops,
|
|
51
|
+
stoptimes,
|
|
52
|
+
trip,
|
|
53
|
+
trips
|
|
54
|
+
} from "./chunk-QM2K42W7.js";
|
|
55
|
+
import "./chunk-6DML7NNP.js";
|
|
56
|
+
export {
|
|
57
|
+
AlertCauseSchema,
|
|
58
|
+
AlertEffectSchema,
|
|
59
|
+
AlertSchema,
|
|
60
|
+
AlertSeverityLevelSchema,
|
|
61
|
+
AreaSchema,
|
|
62
|
+
DirectionSchema,
|
|
63
|
+
DurationSchema,
|
|
64
|
+
ElevationCostsSchema,
|
|
65
|
+
EncodedPolylineSchema,
|
|
66
|
+
FareMediaSchema,
|
|
67
|
+
FareMediaTypeSchema,
|
|
68
|
+
FareProductSchema,
|
|
69
|
+
FareTransferRuleSchema,
|
|
70
|
+
FareTransferSchema,
|
|
71
|
+
FootpathSchema,
|
|
72
|
+
ItinerarySchema,
|
|
73
|
+
LegSchema,
|
|
74
|
+
LocationTypeSchema,
|
|
75
|
+
MatchSchema,
|
|
76
|
+
ModeSchema,
|
|
77
|
+
PedestrianProfileSchema,
|
|
78
|
+
PickupDropoffTypeSchema,
|
|
79
|
+
PlaceSchema,
|
|
80
|
+
ReachablePlaceSchema,
|
|
81
|
+
ReachableSchema,
|
|
82
|
+
RentalFormFactorSchema,
|
|
83
|
+
RentalPropulsionTypeSchema,
|
|
84
|
+
RentalReturnConstraintSchema,
|
|
85
|
+
RentalSchema,
|
|
86
|
+
RiderCategorySchema,
|
|
87
|
+
StepInstructionSchema,
|
|
88
|
+
StopTimeSchema,
|
|
89
|
+
TimeRangeSchema,
|
|
90
|
+
TokenSchema,
|
|
91
|
+
TripInfoSchema,
|
|
92
|
+
TripSegmentSchema,
|
|
93
|
+
VertexTypeSchema,
|
|
94
|
+
client,
|
|
95
|
+
footpaths,
|
|
96
|
+
geocode,
|
|
97
|
+
initial,
|
|
98
|
+
levels,
|
|
99
|
+
oneToAll,
|
|
100
|
+
oneToMany,
|
|
101
|
+
plan,
|
|
102
|
+
reverseGeocode,
|
|
103
|
+
stops,
|
|
104
|
+
stoptimes,
|
|
105
|
+
trip,
|
|
106
|
+
trips
|
|
107
|
+
};
|