@motis-project/motis-client 2.5.0 → 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.
- package/README.md +3 -1
- package/dist/{chunk-ZSHHWD3H.js → chunk-FDF4H3WD.js} +7 -0
- package/dist/{chunk-5QEG6DOF.js → chunk-UREEG3GO.js} +469 -39
- package/dist/index.d.ts +3 -3
- package/dist/index.js +20 -2
- package/dist/schemas.gen.d.ts +404 -7
- package/dist/schemas.gen.js +17 -1
- package/dist/services.gen.d.ts +22 -2
- package/dist/services.gen.js +3 -1
- package/dist/types.gen.d.ts +481 -44
- package/package.json +3 -3
- package/dist/chunk-35GMB6DP.js +0 -1232
- package/dist/chunk-7PIP6KRC.js +0 -1300
- package/dist/chunk-7UKCGCXT.js +0 -1247
- package/dist/chunk-CAW6R2LI.js +0 -1285
- package/dist/chunk-EM7IAOVY.js +0 -91
- package/dist/chunk-IHFNO6R3.js +0 -91
- package/dist/chunk-IYBFZNEH.js +0 -1224
- package/dist/chunk-QM2K42W7.js +0 -91
- package/dist/chunk-RM52T2X5.js +0 -1293
- package/dist/chunk-VOTN5CAZ.js +0 -91
- package/dist/chunk-ZBHU6VX2.js +0 -1291
package/README.md
CHANGED
|
@@ -8,7 +8,9 @@ For example:
|
|
|
8
8
|
const response = await stoptimes({
|
|
9
9
|
throwOnError: true,
|
|
10
10
|
baseUrl: 'https://api.transitous.org',
|
|
11
|
-
|
|
11
|
+
headers = {
|
|
12
|
+
'User-Agent': 'my-user-agent'
|
|
13
|
+
},
|
|
12
14
|
query: {
|
|
13
15
|
stopId: 'de-DELFI_de:06412:7010:1:3',
|
|
14
16
|
n: 10,
|
|
@@ -67,6 +67,12 @@ var levels = (options) => {
|
|
|
67
67
|
url: "/api/v1/map/levels"
|
|
68
68
|
});
|
|
69
69
|
};
|
|
70
|
+
var rentals = (options) => {
|
|
71
|
+
return (options?.client ?? client).get({
|
|
72
|
+
...options,
|
|
73
|
+
url: "/api/v1/rentals"
|
|
74
|
+
});
|
|
75
|
+
};
|
|
70
76
|
var transfers = (options) => {
|
|
71
77
|
return (options?.client ?? client).get({
|
|
72
78
|
...options,
|
|
@@ -87,5 +93,6 @@ export {
|
|
|
87
93
|
initial,
|
|
88
94
|
stops,
|
|
89
95
|
levels,
|
|
96
|
+
rentals,
|
|
90
97
|
transfers
|
|
91
98
|
};
|
|
@@ -19,6 +19,7 @@ var TimeRangeSchema = {
|
|
|
19
19
|
The interval is considered active at time t if t is greater than or equal to the start time and less than the end time.
|
|
20
20
|
`,
|
|
21
21
|
type: "object",
|
|
22
|
+
required: ["start", "end"],
|
|
22
23
|
properties: {
|
|
23
24
|
start: {
|
|
24
25
|
description: `If missing, the interval starts at minus infinity.
|
|
@@ -185,6 +186,44 @@ var LocationTypeSchema = {
|
|
|
185
186
|
type: "string",
|
|
186
187
|
enum: ["ADDRESS", "PLACE", "STOP"]
|
|
187
188
|
};
|
|
189
|
+
var ModeSchema = {
|
|
190
|
+
description: `# Street modes
|
|
191
|
+
|
|
192
|
+
- \`WALK\`
|
|
193
|
+
- \`BIKE\`
|
|
194
|
+
- \`RENTAL\` Experimental. Expect unannounced breaking changes (without version bumps) for all parameters and returned structs.
|
|
195
|
+
- \`CAR\`
|
|
196
|
+
- \`CAR_PARKING\` Experimental. Expect unannounced breaking changes (without version bumps) for all parameters and returned structs.
|
|
197
|
+
- \`CAR_DROPOFF\` Experimental. Expect unannounced breaking changes (without version bumps) for all perameters and returned structs.
|
|
198
|
+
- \`ODM\` on-demand taxis from the Prima+\xD6V Project
|
|
199
|
+
- \`RIDE_SHARING\` ride sharing from the Prima+\xD6V Project
|
|
200
|
+
- \`FLEX\` flexible transports
|
|
201
|
+
|
|
202
|
+
# Transit modes
|
|
203
|
+
|
|
204
|
+
- \`TRANSIT\`: translates to \`RAIL,TRAM,BUS,FERRY,AIRPLANE,COACH,CABLE_CAR,FUNICULAR,AREAL_LIFT,OTHER\`
|
|
205
|
+
- \`TRAM\`: trams
|
|
206
|
+
- \`SUBWAY\`: subway trains (Paris Metro, London Underground, but also NYC Subway, Hamburger Hochbahn, and other non-underground services)
|
|
207
|
+
- \`FERRY\`: ferries
|
|
208
|
+
- \`AIRPLANE\`: airline flights
|
|
209
|
+
- \`BUS\`: short distance buses (does not include \`COACH\`)
|
|
210
|
+
- \`COACH\`: long distance buses (does not include \`BUS\`)
|
|
211
|
+
- \`RAIL\`: translates to \`HIGHSPEED_RAIL,LONG_DISTANCE,NIGHT_RAIL,REGIONAL_RAIL,REGIONAL_FAST_RAIL,SUBURBAN,SUBWAY\`
|
|
212
|
+
- \`SUBURBAN\`: suburban trains (e.g. S-Bahn, RER, Elizabeth Line, ...)
|
|
213
|
+
- \`HIGHSPEED_RAIL\`: long distance high speed trains (e.g. TGV)
|
|
214
|
+
- \`LONG_DISTANCE\`: long distance inter city trains
|
|
215
|
+
- \`NIGHT_RAIL\`: long distance night trains
|
|
216
|
+
- \`REGIONAL_FAST_RAIL\`: regional express routes that skip low traffic stops to be faster
|
|
217
|
+
- \`REGIONAL_RAIL\`: regional train
|
|
218
|
+
- \`CABLE_CAR\`: Cable tram. Used for street-level rail cars where the cable runs beneath the vehicle (e.g., cable car in San Francisco).
|
|
219
|
+
- \`FUNICULAR\`: Funicular. Any rail system designed for steep inclines.
|
|
220
|
+
- \`AERIAL_LIFT\`: Aerial lift, suspended cable car (e.g., gondola lift, aerial tramway). Cable transport where cabins, cars, gondolas or open chairs are suspended by means of one or more cables.
|
|
221
|
+
- \`AREAL_LIFT\`: deprecated
|
|
222
|
+
- \`METRO\`: deprecated
|
|
223
|
+
`,
|
|
224
|
+
type: "string",
|
|
225
|
+
enum: ["WALK", "BIKE", "RENTAL", "CAR", "CAR_PARKING", "CAR_DROPOFF", "ODM", "RIDE_SHARING", "FLEX", "TRANSIT", "TRAM", "SUBWAY", "FERRY", "AIRPLANE", "SUBURBAN", "BUS", "COACH", "RAIL", "HIGHSPEED_RAIL", "LONG_DISTANCE", "NIGHT_RAIL", "REGIONAL_FAST_RAIL", "REGIONAL_RAIL", "CABLE_CAR", "FUNICULAR", "AERIAL_LIFT", "OTHER", "AREAL_LIFT", "METRO"]
|
|
226
|
+
};
|
|
188
227
|
var MatchSchema = {
|
|
189
228
|
description: "GeoCoding match",
|
|
190
229
|
type: "object",
|
|
@@ -193,6 +232,14 @@ var MatchSchema = {
|
|
|
193
232
|
type: {
|
|
194
233
|
"$ref": "#/components/schemas/LocationType"
|
|
195
234
|
},
|
|
235
|
+
category: {
|
|
236
|
+
description: `Experimental. Type categories might be adjusted.
|
|
237
|
+
|
|
238
|
+
For OSM stop locations: the amenity type based on
|
|
239
|
+
https://wiki.openstreetmap.org/wiki/OpenStreetMap_Carto/Symbols
|
|
240
|
+
`,
|
|
241
|
+
type: "string"
|
|
242
|
+
},
|
|
196
243
|
tokens: {
|
|
197
244
|
description: "list of non-overlapping tokens that were matched",
|
|
198
245
|
type: "array",
|
|
@@ -252,6 +299,17 @@ var MatchSchema = {
|
|
|
252
299
|
score: {
|
|
253
300
|
description: "score according to the internal scoring system (the scoring algorithm might change in the future)",
|
|
254
301
|
type: "number"
|
|
302
|
+
},
|
|
303
|
+
modes: {
|
|
304
|
+
description: "available transport modes for stops",
|
|
305
|
+
type: "array",
|
|
306
|
+
items: {
|
|
307
|
+
"$ref": "#/components/schemas/Mode"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
importance: {
|
|
311
|
+
description: "importance of a stop, normalized from [0, 1]",
|
|
312
|
+
type: "number"
|
|
255
313
|
}
|
|
256
314
|
}
|
|
257
315
|
};
|
|
@@ -279,43 +337,6 @@ var CyclingSpeedSchema = {
|
|
|
279
337
|
description: "Average speed for bike routing in meters per second",
|
|
280
338
|
type: "number"
|
|
281
339
|
};
|
|
282
|
-
var ModeSchema = {
|
|
283
|
-
description: `# Street modes
|
|
284
|
-
|
|
285
|
-
- \`WALK\`
|
|
286
|
-
- \`BIKE\`
|
|
287
|
-
- \`RENTAL\` Experimental. Expect unannounced breaking changes (without version bumps) for all parameters and returned structs.
|
|
288
|
-
- \`CAR\`
|
|
289
|
-
- \`CAR_PARKING\` Experimental. Expect unannounced breaking changes (without version bumps) for all parameters and returned structs.
|
|
290
|
-
- \`CAR_DROPOFF\` Experimental. Expect unannounced breaking changes (without version bumps) for all perameters and returned structs.
|
|
291
|
-
- \`ODM\` on-demand taxis from the Prima+\xD6V Project
|
|
292
|
-
- \`FLEX\` flexible transports
|
|
293
|
-
|
|
294
|
-
# Transit modes
|
|
295
|
-
|
|
296
|
-
- \`TRANSIT\`: translates to \`RAIL,TRAM,BUS,FERRY,AIRPLANE,COACH,CABLE_CAR,FUNICULAR,AREAL_LIFT,OTHER\`
|
|
297
|
-
- \`TRAM\`: trams
|
|
298
|
-
- \`SUBWAY\`: subway trains (Paris Metro, London Underground, but also NYC Subway, Hamburger Hochbahn, and other non-underground services)
|
|
299
|
-
- \`FERRY\`: ferries
|
|
300
|
-
- \`AIRPLANE\`: airline flights
|
|
301
|
-
- \`BUS\`: short distance buses (does not include \`COACH\`)
|
|
302
|
-
- \`COACH\`: long distance buses (does not include \`BUS\`)
|
|
303
|
-
- \`RAIL\`: translates to \`HIGHSPEED_RAIL,LONG_DISTANCE,NIGHT_RAIL,REGIONAL_RAIL,REGIONAL_FAST_RAIL,SUBURBAN,SUBWAY\`
|
|
304
|
-
- \`SUBURBAN\`: suburban trains (e.g. S-Bahn, RER, Elizabeth Line, ...)
|
|
305
|
-
- \`HIGHSPEED_RAIL\`: long distance high speed trains (e.g. TGV)
|
|
306
|
-
- \`LONG_DISTANCE\`: long distance inter city trains
|
|
307
|
-
- \`NIGHT_RAIL\`: long distance night trains
|
|
308
|
-
- \`REGIONAL_FAST_RAIL\`: regional express routes that skip low traffic stops to be faster
|
|
309
|
-
- \`REGIONAL_RAIL\`: regional train
|
|
310
|
-
- \`CABLE_CAR\`: Cable tram. Used for street-level rail cars where the cable runs beneath the vehicle (e.g., cable car in San Francisco).
|
|
311
|
-
- \`FUNICULAR\`: Funicular. Any rail system designed for steep inclines.
|
|
312
|
-
- \`AERIAL_LIFT\`: Aerial lift, suspended cable car (e.g., gondola lift, aerial tramway). Cable transport where cabins, cars, gondolas or open chairs are suspended by means of one or more cables.
|
|
313
|
-
- \`AREAL_LIFT\`: deprecated
|
|
314
|
-
- \`METRO\`: deprecated
|
|
315
|
-
`,
|
|
316
|
-
type: "string",
|
|
317
|
-
enum: ["WALK", "BIKE", "RENTAL", "CAR", "CAR_PARKING", "CAR_DROPOFF", "ODM", "FLEX", "TRANSIT", "TRAM", "SUBWAY", "FERRY", "AIRPLANE", "SUBURBAN", "BUS", "COACH", "RAIL", "HIGHSPEED_RAIL", "LONG_DISTANCE", "NIGHT_RAIL", "REGIONAL_FAST_RAIL", "REGIONAL_RAIL", "CABLE_CAR", "FUNICULAR", "AERIAL_LIFT", "OTHER", "AREAL_LIFT", "METRO"]
|
|
318
|
-
};
|
|
319
340
|
var VertexTypeSchema = {
|
|
320
341
|
type: "string",
|
|
321
342
|
description: `- \`NORMAL\` - latitude / longitude coordinate or address
|
|
@@ -343,6 +364,10 @@ var PlaceSchema = {
|
|
|
343
364
|
description: "The ID of the stop. This is often something that users don't care about.",
|
|
344
365
|
type: "string"
|
|
345
366
|
},
|
|
367
|
+
importance: {
|
|
368
|
+
description: "The importance of the stop between 0-1.",
|
|
369
|
+
type: "number"
|
|
370
|
+
},
|
|
346
371
|
lat: {
|
|
347
372
|
description: "latitude",
|
|
348
373
|
type: "number"
|
|
@@ -762,8 +787,16 @@ var RentalReturnConstraintSchema = {
|
|
|
762
787
|
var RentalSchema = {
|
|
763
788
|
description: "Vehicle rental",
|
|
764
789
|
type: "object",
|
|
765
|
-
required: ["systemId"],
|
|
790
|
+
required: ["providerId", "providerGroupId", "systemId"],
|
|
766
791
|
properties: {
|
|
792
|
+
providerId: {
|
|
793
|
+
type: "string",
|
|
794
|
+
description: "Rental provider ID"
|
|
795
|
+
},
|
|
796
|
+
providerGroupId: {
|
|
797
|
+
type: "string",
|
|
798
|
+
description: "Rental provider group ID"
|
|
799
|
+
},
|
|
767
800
|
systemId: {
|
|
768
801
|
type: "string",
|
|
769
802
|
description: "Vehicle share system ID"
|
|
@@ -776,6 +809,12 @@ var RentalSchema = {
|
|
|
776
809
|
type: "string",
|
|
777
810
|
description: "URL of the vehicle share system"
|
|
778
811
|
},
|
|
812
|
+
color: {
|
|
813
|
+
type: "string",
|
|
814
|
+
description: `Color associated with this provider, in hexadecimal RGB format
|
|
815
|
+
(e.g. "#FF0000" for red). Can be empty.
|
|
816
|
+
`
|
|
817
|
+
},
|
|
779
818
|
stationName: {
|
|
780
819
|
type: "string",
|
|
781
820
|
description: "Name of the station"
|
|
@@ -811,6 +850,389 @@ var RentalSchema = {
|
|
|
811
850
|
}
|
|
812
851
|
}
|
|
813
852
|
};
|
|
853
|
+
var MultiPolygonSchema = {
|
|
854
|
+
type: "array",
|
|
855
|
+
description: `A multi-polygon contains a number of polygons, each containing a number
|
|
856
|
+
of rings, which are encoded as polylines (with precision 6).
|
|
857
|
+
|
|
858
|
+
For each polygon, the first ring is the outer ring, all subsequent rings
|
|
859
|
+
are inner rings (holes).
|
|
860
|
+
`,
|
|
861
|
+
items: {
|
|
862
|
+
type: "array",
|
|
863
|
+
items: {
|
|
864
|
+
"$ref": "#/components/schemas/EncodedPolyline"
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
};
|
|
868
|
+
var RentalZoneRestrictionsSchema = {
|
|
869
|
+
type: "object",
|
|
870
|
+
required: ["vehicleTypeIdxs", "rideStartAllowed", "rideEndAllowed", "rideThroughAllowed"],
|
|
871
|
+
properties: {
|
|
872
|
+
vehicleTypeIdxs: {
|
|
873
|
+
type: "array",
|
|
874
|
+
description: `List of vehicle types (as indices into the provider's vehicle types
|
|
875
|
+
array) to which these restrictions apply.
|
|
876
|
+
If empty, the restrictions apply to all vehicle types of the provider.
|
|
877
|
+
`,
|
|
878
|
+
items: {
|
|
879
|
+
type: "integer"
|
|
880
|
+
}
|
|
881
|
+
},
|
|
882
|
+
rideStartAllowed: {
|
|
883
|
+
type: "boolean",
|
|
884
|
+
description: "whether the ride is allowed to start in this zone"
|
|
885
|
+
},
|
|
886
|
+
rideEndAllowed: {
|
|
887
|
+
type: "boolean",
|
|
888
|
+
description: "whether the ride is allowed to end in this zone"
|
|
889
|
+
},
|
|
890
|
+
rideThroughAllowed: {
|
|
891
|
+
type: "boolean",
|
|
892
|
+
description: "whether the ride is allowed to pass through this zone"
|
|
893
|
+
},
|
|
894
|
+
stationParking: {
|
|
895
|
+
type: "boolean",
|
|
896
|
+
description: "whether vehicles can only be parked at stations in this zone"
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
};
|
|
900
|
+
var RentalVehicleTypeSchema = {
|
|
901
|
+
type: "object",
|
|
902
|
+
required: ["id", "formFactor", "propulsionType", "returnConstraint", "returnConstraintGuessed"],
|
|
903
|
+
properties: {
|
|
904
|
+
id: {
|
|
905
|
+
type: "string",
|
|
906
|
+
description: "Unique identifier of the vehicle type (unique within the provider)"
|
|
907
|
+
},
|
|
908
|
+
name: {
|
|
909
|
+
type: "string",
|
|
910
|
+
description: "Public name of the vehicle type (can be empty)"
|
|
911
|
+
},
|
|
912
|
+
formFactor: {
|
|
913
|
+
"$ref": "#/components/schemas/RentalFormFactor"
|
|
914
|
+
},
|
|
915
|
+
propulsionType: {
|
|
916
|
+
"$ref": "#/components/schemas/RentalPropulsionType"
|
|
917
|
+
},
|
|
918
|
+
returnConstraint: {
|
|
919
|
+
"$ref": "#/components/schemas/RentalReturnConstraint"
|
|
920
|
+
},
|
|
921
|
+
returnConstraintGuessed: {
|
|
922
|
+
type: "boolean",
|
|
923
|
+
description: "Whether the return constraint was guessed instead of being specified by the rental provider"
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
};
|
|
927
|
+
var RentalProviderSchema = {
|
|
928
|
+
type: "object",
|
|
929
|
+
required: ["id", "name", "groupId", "bbox", "vehicleTypes", "formFactors", "defaultRestrictions", "globalGeofencingRules"],
|
|
930
|
+
properties: {
|
|
931
|
+
id: {
|
|
932
|
+
type: "string",
|
|
933
|
+
description: "Unique identifier of the rental provider"
|
|
934
|
+
},
|
|
935
|
+
name: {
|
|
936
|
+
type: "string",
|
|
937
|
+
description: "Name of the provider to be displayed to customers"
|
|
938
|
+
},
|
|
939
|
+
groupId: {
|
|
940
|
+
type: "string",
|
|
941
|
+
description: "Id of the rental provider group this provider belongs to"
|
|
942
|
+
},
|
|
943
|
+
operator: {
|
|
944
|
+
type: "string",
|
|
945
|
+
description: "Name of the system operator"
|
|
946
|
+
},
|
|
947
|
+
url: {
|
|
948
|
+
type: "string",
|
|
949
|
+
description: "URL of the vehicle share system"
|
|
950
|
+
},
|
|
951
|
+
purchaseUrl: {
|
|
952
|
+
type: "string",
|
|
953
|
+
description: "URL where a customer can purchase a membership"
|
|
954
|
+
},
|
|
955
|
+
color: {
|
|
956
|
+
type: "string",
|
|
957
|
+
description: `Color associated with this provider, in hexadecimal RGB format
|
|
958
|
+
(e.g. "#FF0000" for red). Can be empty.
|
|
959
|
+
`
|
|
960
|
+
},
|
|
961
|
+
bbox: {
|
|
962
|
+
type: "array",
|
|
963
|
+
description: `Bounding box of the area covered by this rental provider,
|
|
964
|
+
[west, south, east, north] as [lon, lat, lon, lat]
|
|
965
|
+
`,
|
|
966
|
+
minItems: 4,
|
|
967
|
+
maxItems: 4,
|
|
968
|
+
items: {
|
|
969
|
+
type: "number"
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
vehicleTypes: {
|
|
973
|
+
type: "array",
|
|
974
|
+
items: {
|
|
975
|
+
"$ref": "#/components/schemas/RentalVehicleType"
|
|
976
|
+
}
|
|
977
|
+
},
|
|
978
|
+
formFactors: {
|
|
979
|
+
type: "array",
|
|
980
|
+
description: "List of form factors offered by this provider",
|
|
981
|
+
items: {
|
|
982
|
+
"$ref": "#/components/schemas/RentalFormFactor"
|
|
983
|
+
}
|
|
984
|
+
},
|
|
985
|
+
defaultRestrictions: {
|
|
986
|
+
"$ref": "#/components/schemas/RentalZoneRestrictions"
|
|
987
|
+
},
|
|
988
|
+
globalGeofencingRules: {
|
|
989
|
+
type: "array",
|
|
990
|
+
items: {
|
|
991
|
+
"$ref": "#/components/schemas/RentalZoneRestrictions"
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
};
|
|
996
|
+
var RentalProviderGroupSchema = {
|
|
997
|
+
type: "object",
|
|
998
|
+
required: ["id", "name", "providers", "formFactors"],
|
|
999
|
+
properties: {
|
|
1000
|
+
id: {
|
|
1001
|
+
type: "string",
|
|
1002
|
+
description: "Unique identifier of the rental provider group"
|
|
1003
|
+
},
|
|
1004
|
+
name: {
|
|
1005
|
+
type: "string",
|
|
1006
|
+
description: "Name of the provider group to be displayed to customers"
|
|
1007
|
+
},
|
|
1008
|
+
color: {
|
|
1009
|
+
type: "string",
|
|
1010
|
+
description: `Color associated with this provider group, in hexadecimal RGB format
|
|
1011
|
+
(e.g. "#FF0000" for red). Can be empty.
|
|
1012
|
+
`
|
|
1013
|
+
},
|
|
1014
|
+
providers: {
|
|
1015
|
+
type: "array",
|
|
1016
|
+
description: "List of rental provider IDs that belong to this group",
|
|
1017
|
+
items: {
|
|
1018
|
+
type: "string"
|
|
1019
|
+
}
|
|
1020
|
+
},
|
|
1021
|
+
formFactors: {
|
|
1022
|
+
type: "array",
|
|
1023
|
+
description: "List of form factors offered by this provider group",
|
|
1024
|
+
items: {
|
|
1025
|
+
"$ref": "#/components/schemas/RentalFormFactor"
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
};
|
|
1030
|
+
var RentalStationSchema = {
|
|
1031
|
+
type: "object",
|
|
1032
|
+
required: ["id", "providerId", "providerGroupId", "name", "lat", "lon", "isRenting", "isReturning", "numVehiclesAvailable", "formFactors", "vehicleTypesAvailable", "vehicleDocksAvailable", "bbox"],
|
|
1033
|
+
properties: {
|
|
1034
|
+
id: {
|
|
1035
|
+
type: "string",
|
|
1036
|
+
description: "Unique identifier of the rental station"
|
|
1037
|
+
},
|
|
1038
|
+
providerId: {
|
|
1039
|
+
type: "string",
|
|
1040
|
+
description: "Unique identifier of the rental provider"
|
|
1041
|
+
},
|
|
1042
|
+
providerGroupId: {
|
|
1043
|
+
type: "string",
|
|
1044
|
+
description: "Unique identifier of the rental provider group"
|
|
1045
|
+
},
|
|
1046
|
+
name: {
|
|
1047
|
+
type: "string",
|
|
1048
|
+
description: "Public name of the station"
|
|
1049
|
+
},
|
|
1050
|
+
lat: {
|
|
1051
|
+
description: "latitude",
|
|
1052
|
+
type: "number"
|
|
1053
|
+
},
|
|
1054
|
+
lon: {
|
|
1055
|
+
description: "longitude",
|
|
1056
|
+
type: "number"
|
|
1057
|
+
},
|
|
1058
|
+
address: {
|
|
1059
|
+
type: "string",
|
|
1060
|
+
description: "Address where the station is located"
|
|
1061
|
+
},
|
|
1062
|
+
crossStreet: {
|
|
1063
|
+
type: "string",
|
|
1064
|
+
description: "Cross street or landmark where the station is located"
|
|
1065
|
+
},
|
|
1066
|
+
rentalUriAndroid: {
|
|
1067
|
+
type: "string",
|
|
1068
|
+
description: "Rental URI for Android (deep link to the specific station)"
|
|
1069
|
+
},
|
|
1070
|
+
rentalUriIOS: {
|
|
1071
|
+
type: "string",
|
|
1072
|
+
description: "Rental URI for iOS (deep link to the specific station)"
|
|
1073
|
+
},
|
|
1074
|
+
rentalUriWeb: {
|
|
1075
|
+
type: "string",
|
|
1076
|
+
description: "Rental URI for web (deep link to the specific station)"
|
|
1077
|
+
},
|
|
1078
|
+
isRenting: {
|
|
1079
|
+
type: "boolean",
|
|
1080
|
+
description: "true if vehicles can be rented from this station, false if it is temporarily out of service"
|
|
1081
|
+
},
|
|
1082
|
+
isReturning: {
|
|
1083
|
+
type: "boolean",
|
|
1084
|
+
description: "true if vehicles can be returned to this station, false if it is temporarily out of service"
|
|
1085
|
+
},
|
|
1086
|
+
numVehiclesAvailable: {
|
|
1087
|
+
type: "integer",
|
|
1088
|
+
description: "Number of vehicles available for rental at this station"
|
|
1089
|
+
},
|
|
1090
|
+
formFactors: {
|
|
1091
|
+
type: "array",
|
|
1092
|
+
description: "List of form factors available for rental and/or return at this station",
|
|
1093
|
+
items: {
|
|
1094
|
+
"$ref": "#/components/schemas/RentalFormFactor"
|
|
1095
|
+
}
|
|
1096
|
+
},
|
|
1097
|
+
vehicleTypesAvailable: {
|
|
1098
|
+
type: "object",
|
|
1099
|
+
description: "List of vehicle types currently available at this station (vehicle type ID -> count)",
|
|
1100
|
+
additionalProperties: {
|
|
1101
|
+
type: "integer"
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
vehicleDocksAvailable: {
|
|
1105
|
+
type: "object",
|
|
1106
|
+
description: "List of vehicle docks currently available at this station (vehicle type ID -> count)",
|
|
1107
|
+
additionalProperties: {
|
|
1108
|
+
type: "integer"
|
|
1109
|
+
}
|
|
1110
|
+
},
|
|
1111
|
+
stationArea: {
|
|
1112
|
+
"$ref": "#/components/schemas/MultiPolygon"
|
|
1113
|
+
},
|
|
1114
|
+
bbox: {
|
|
1115
|
+
type: "array",
|
|
1116
|
+
description: `Bounding box of the area covered by this station,
|
|
1117
|
+
[west, south, east, north] as [lon, lat, lon, lat]
|
|
1118
|
+
`,
|
|
1119
|
+
minItems: 4,
|
|
1120
|
+
maxItems: 4,
|
|
1121
|
+
items: {
|
|
1122
|
+
type: "number"
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
};
|
|
1127
|
+
var RentalVehicleSchema = {
|
|
1128
|
+
type: "object",
|
|
1129
|
+
required: ["id", "providerId", "providerGroupId", "typeId", "lat", "lon", "formFactor", "propulsionType", "returnConstraint", "isReserved", "isDisabled"],
|
|
1130
|
+
properties: {
|
|
1131
|
+
id: {
|
|
1132
|
+
type: "string",
|
|
1133
|
+
description: "Unique identifier of the rental vehicle"
|
|
1134
|
+
},
|
|
1135
|
+
providerId: {
|
|
1136
|
+
type: "string",
|
|
1137
|
+
description: "Unique identifier of the rental provider"
|
|
1138
|
+
},
|
|
1139
|
+
providerGroupId: {
|
|
1140
|
+
type: "string",
|
|
1141
|
+
description: "Unique identifier of the rental provider group"
|
|
1142
|
+
},
|
|
1143
|
+
typeId: {
|
|
1144
|
+
type: "string",
|
|
1145
|
+
description: "Vehicle type ID (unique within the provider)"
|
|
1146
|
+
},
|
|
1147
|
+
lat: {
|
|
1148
|
+
description: "latitude",
|
|
1149
|
+
type: "number"
|
|
1150
|
+
},
|
|
1151
|
+
lon: {
|
|
1152
|
+
description: "longitude",
|
|
1153
|
+
type: "number"
|
|
1154
|
+
},
|
|
1155
|
+
formFactor: {
|
|
1156
|
+
"$ref": "#/components/schemas/RentalFormFactor"
|
|
1157
|
+
},
|
|
1158
|
+
propulsionType: {
|
|
1159
|
+
"$ref": "#/components/schemas/RentalPropulsionType"
|
|
1160
|
+
},
|
|
1161
|
+
returnConstraint: {
|
|
1162
|
+
"$ref": "#/components/schemas/RentalReturnConstraint"
|
|
1163
|
+
},
|
|
1164
|
+
stationId: {
|
|
1165
|
+
type: "string",
|
|
1166
|
+
description: "Station ID if the vehicle is currently at a station"
|
|
1167
|
+
},
|
|
1168
|
+
homeStationId: {
|
|
1169
|
+
type: "string",
|
|
1170
|
+
description: "Station ID where the vehicle must be returned, if applicable"
|
|
1171
|
+
},
|
|
1172
|
+
isReserved: {
|
|
1173
|
+
type: "boolean",
|
|
1174
|
+
description: "true if the vehicle is currently reserved by a customer, false otherwise"
|
|
1175
|
+
},
|
|
1176
|
+
isDisabled: {
|
|
1177
|
+
type: "boolean",
|
|
1178
|
+
description: "true if the vehicle is out of service, false otherwise"
|
|
1179
|
+
},
|
|
1180
|
+
rentalUriAndroid: {
|
|
1181
|
+
type: "string",
|
|
1182
|
+
description: "Rental URI for Android (deep link to the specific vehicle)"
|
|
1183
|
+
},
|
|
1184
|
+
rentalUriIOS: {
|
|
1185
|
+
type: "string",
|
|
1186
|
+
description: "Rental URI for iOS (deep link to the specific vehicle)"
|
|
1187
|
+
},
|
|
1188
|
+
rentalUriWeb: {
|
|
1189
|
+
type: "string",
|
|
1190
|
+
description: "Rental URI for web (deep link to the specific vehicle)"
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
};
|
|
1194
|
+
var RentalZoneSchema = {
|
|
1195
|
+
type: "object",
|
|
1196
|
+
required: ["providerId", "providerGroupId", "z", "bbox", "area", "rules"],
|
|
1197
|
+
properties: {
|
|
1198
|
+
providerId: {
|
|
1199
|
+
type: "string",
|
|
1200
|
+
description: "Unique identifier of the rental provider"
|
|
1201
|
+
},
|
|
1202
|
+
providerGroupId: {
|
|
1203
|
+
type: "string",
|
|
1204
|
+
description: "Unique identifier of the rental provider group"
|
|
1205
|
+
},
|
|
1206
|
+
name: {
|
|
1207
|
+
type: "string",
|
|
1208
|
+
description: "Public name of the geofencing zone"
|
|
1209
|
+
},
|
|
1210
|
+
z: {
|
|
1211
|
+
type: "integer",
|
|
1212
|
+
description: "Zone precedence / z-index (higher number = higher precedence)"
|
|
1213
|
+
},
|
|
1214
|
+
bbox: {
|
|
1215
|
+
type: "array",
|
|
1216
|
+
description: `Bounding box of the area covered by this zone,
|
|
1217
|
+
[west, south, east, north] as [lon, lat, lon, lat]
|
|
1218
|
+
`,
|
|
1219
|
+
minItems: 4,
|
|
1220
|
+
maxItems: 4,
|
|
1221
|
+
items: {
|
|
1222
|
+
type: "number"
|
|
1223
|
+
}
|
|
1224
|
+
},
|
|
1225
|
+
area: {
|
|
1226
|
+
"$ref": "#/components/schemas/MultiPolygon"
|
|
1227
|
+
},
|
|
1228
|
+
rules: {
|
|
1229
|
+
type: "array",
|
|
1230
|
+
items: {
|
|
1231
|
+
"$ref": "#/components/schemas/RentalZoneRestrictions"
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
};
|
|
814
1236
|
var LegSchema = {
|
|
815
1237
|
type: "object",
|
|
816
1238
|
required: ["mode", "startTime", "endTime", "scheduledStartTime", "scheduledEndTime", "realTime", "scheduled", "duration", "from", "to", "legGeometry"],
|
|
@@ -1213,12 +1635,12 @@ export {
|
|
|
1213
1635
|
AreaSchema,
|
|
1214
1636
|
TokenSchema,
|
|
1215
1637
|
LocationTypeSchema,
|
|
1638
|
+
ModeSchema,
|
|
1216
1639
|
MatchSchema,
|
|
1217
1640
|
ElevationCostsSchema,
|
|
1218
1641
|
PedestrianProfileSchema,
|
|
1219
1642
|
PedestrianSpeedSchema,
|
|
1220
1643
|
CyclingSpeedSchema,
|
|
1221
|
-
ModeSchema,
|
|
1222
1644
|
VertexTypeSchema,
|
|
1223
1645
|
PickupDropoffTypeSchema,
|
|
1224
1646
|
PlaceSchema,
|
|
@@ -1234,6 +1656,14 @@ export {
|
|
|
1234
1656
|
RentalPropulsionTypeSchema,
|
|
1235
1657
|
RentalReturnConstraintSchema,
|
|
1236
1658
|
RentalSchema,
|
|
1659
|
+
MultiPolygonSchema,
|
|
1660
|
+
RentalZoneRestrictionsSchema,
|
|
1661
|
+
RentalVehicleTypeSchema,
|
|
1662
|
+
RentalProviderSchema,
|
|
1663
|
+
RentalProviderGroupSchema,
|
|
1664
|
+
RentalStationSchema,
|
|
1665
|
+
RentalVehicleSchema,
|
|
1666
|
+
RentalZoneSchema,
|
|
1237
1667
|
LegSchema,
|
|
1238
1668
|
RiderCategorySchema,
|
|
1239
1669
|
FareMediaTypeSchema,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AlertCauseSchema, AlertEffectSchema, AlertSchema, AlertSeverityLevelSchema, AreaSchema, CyclingSpeedSchema, DirectionSchema, DurationSchema, ElevationCostsSchema, EncodedPolylineSchema, ErrorSchema, FareMediaSchema, FareMediaTypeSchema, FareProductSchema, FareTransferRuleSchema, FareTransferSchema, ItinerarySchema, LegSchema, LocationTypeSchema, MatchSchema, ModeSchema, PedestrianProfileSchema, PedestrianSpeedSchema, 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, CyclingSpeed, Direction, Duration, ElevationCosts, EncodedPolyline, Error, 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, PedestrianSpeed, 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 { AlertCauseSchema, AlertEffectSchema, AlertSchema, AlertSeverityLevelSchema, AreaSchema, CyclingSpeedSchema, DirectionSchema, DurationSchema, ElevationCostsSchema, EncodedPolylineSchema, ErrorSchema, FareMediaSchema, FareMediaTypeSchema, FareProductSchema, FareTransferRuleSchema, FareTransferSchema, ItinerarySchema, LegSchema, LocationTypeSchema, MatchSchema, ModeSchema, MultiPolygonSchema, PedestrianProfileSchema, PedestrianSpeedSchema, PickupDropoffTypeSchema, PlaceSchema, ReachablePlaceSchema, ReachableSchema, RentalFormFactorSchema, RentalPropulsionTypeSchema, RentalProviderGroupSchema, RentalProviderSchema, RentalReturnConstraintSchema, RentalSchema, RentalStationSchema, RentalVehicleSchema, RentalVehicleTypeSchema, RentalZoneRestrictionsSchema, RentalZoneSchema, RiderCategorySchema, StepInstructionSchema, StopTimeSchema, TimeRangeSchema, TokenSchema, TransferSchema, TripInfoSchema, TripSegmentSchema, VertexTypeSchema } from './schemas.gen.js';
|
|
2
|
+
export { client, geocode, initial, levels, oneToAll, oneToMany, plan, rentals, reverseGeocode, stops, stoptimes, transfers, trip, trips } from './services.gen.js';
|
|
3
|
+
export { Alert, AlertCause, AlertEffect, AlertSeverityLevel, Area, CyclingSpeed, Direction, Duration, ElevationCosts, EncodedPolyline, Error, FareMedia, FareMediaType, FareProduct, FareTransfer, FareTransferRule, GeocodeData, GeocodeError, GeocodeResponse, InitialError, InitialResponse, Itinerary, Leg, LevelsData, LevelsError, LevelsResponse, LocationType, Match, Mode, MultiPolygon, OneToAllData, OneToAllError, OneToAllResponse, OneToManyData, OneToManyError, OneToManyResponse, PedestrianProfile, PedestrianSpeed, PickupDropoffType, Place, PlanData, PlanError, PlanResponse, Reachable, ReachablePlace, Rental, RentalFormFactor, RentalPropulsionType, RentalProvider, RentalProviderGroup, RentalReturnConstraint, RentalStation, RentalVehicle, RentalVehicleType, RentalZone, RentalZoneRestrictions, RentalsData, RentalsError, RentalsResponse, 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';
|
|
4
4
|
import '@hey-api/client-fetch';
|