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