@motis-project/motis-client 2.7.5 → 2.7.6
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-47ZS6OWZ.js → chunk-CIMYPNMP.js} +32 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -1
- package/dist/schemas.gen.d.ts +32 -1
- package/dist/schemas.gen.js +3 -1
- package/dist/types.gen.d.ts +28 -1
- package/package.json +1 -1
|
@@ -1688,6 +1688,37 @@ false = one to many
|
|
|
1688
1688
|
}
|
|
1689
1689
|
}
|
|
1690
1690
|
};
|
|
1691
|
+
var ServerConfigSchema = {
|
|
1692
|
+
Description: "server configuration",
|
|
1693
|
+
type: "object",
|
|
1694
|
+
required: ["hasElevation", "hasRoutedTransfers", "hasStreetRouting", "maxTravelTimeLimit", "maxPrePostTransitTimeLimit", "maxDirectTimeLimit"],
|
|
1695
|
+
properties: {
|
|
1696
|
+
hasElevation: {
|
|
1697
|
+
description: "true if elevation is loaded",
|
|
1698
|
+
type: "boolean"
|
|
1699
|
+
},
|
|
1700
|
+
hasRoutedTransfers: {
|
|
1701
|
+
description: "true if routed transfers available",
|
|
1702
|
+
type: "boolean"
|
|
1703
|
+
},
|
|
1704
|
+
hasStreetRouting: {
|
|
1705
|
+
description: "true if street routing is available",
|
|
1706
|
+
type: "boolean"
|
|
1707
|
+
},
|
|
1708
|
+
maxOneToAllTravelTimeLimit: {
|
|
1709
|
+
description: "limit for maxTravelTime API param in minutes",
|
|
1710
|
+
type: "number"
|
|
1711
|
+
},
|
|
1712
|
+
maxPrePostTransitTimeLimit: {
|
|
1713
|
+
description: "limit for maxPrePostTransitTime API param in seconds",
|
|
1714
|
+
type: "number"
|
|
1715
|
+
},
|
|
1716
|
+
maxDirectTimeLimit: {
|
|
1717
|
+
description: "limit for maxDirectTime API param in seconds",
|
|
1718
|
+
type: "number"
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
};
|
|
1691
1722
|
var ErrorSchema = {
|
|
1692
1723
|
type: "object",
|
|
1693
1724
|
properties: {
|
|
@@ -1746,5 +1777,6 @@ export {
|
|
|
1746
1777
|
ItinerarySchema,
|
|
1747
1778
|
TransferSchema,
|
|
1748
1779
|
OneToManyParamsSchema,
|
|
1780
|
+
ServerConfigSchema,
|
|
1749
1781
|
ErrorSchema
|
|
1750
1782
|
};
|
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, MultiPolygonSchema, OneToManyParamsSchema, 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';
|
|
1
|
+
export { AlertCauseSchema, AlertEffectSchema, AlertSchema, AlertSeverityLevelSchema, AreaSchema, CyclingSpeedSchema, DirectionSchema, DurationSchema, ElevationCostsSchema, EncodedPolylineSchema, ErrorSchema, FareMediaSchema, FareMediaTypeSchema, FareProductSchema, FareTransferRuleSchema, FareTransferSchema, ItinerarySchema, LegSchema, LocationTypeSchema, MatchSchema, ModeSchema, MultiPolygonSchema, OneToManyParamsSchema, PedestrianProfileSchema, PedestrianSpeedSchema, PickupDropoffTypeSchema, PlaceSchema, ReachablePlaceSchema, ReachableSchema, RentalFormFactorSchema, RentalPropulsionTypeSchema, RentalProviderGroupSchema, RentalProviderSchema, RentalReturnConstraintSchema, RentalSchema, RentalStationSchema, RentalVehicleSchema, RentalVehicleTypeSchema, RentalZoneRestrictionsSchema, RentalZoneSchema, RiderCategorySchema, ServerConfigSchema, StepInstructionSchema, StopTimeSchema, TimeRangeSchema, TokenSchema, TransferSchema, TripInfoSchema, TripSegmentSchema, VertexTypeSchema } from './schemas.gen.js';
|
|
2
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, OneToManyParams, 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';
|
|
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, OneToManyParams, 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, ServerConfig, 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';
|
package/dist/index.js
CHANGED
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
RentalZoneRestrictionsSchema,
|
|
41
41
|
RentalZoneSchema,
|
|
42
42
|
RiderCategorySchema,
|
|
43
|
+
ServerConfigSchema,
|
|
43
44
|
StepInstructionSchema,
|
|
44
45
|
StopTimeSchema,
|
|
45
46
|
TimeRangeSchema,
|
|
@@ -48,7 +49,7 @@ import {
|
|
|
48
49
|
TripInfoSchema,
|
|
49
50
|
TripSegmentSchema,
|
|
50
51
|
VertexTypeSchema
|
|
51
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-CIMYPNMP.js";
|
|
52
53
|
import {
|
|
53
54
|
client,
|
|
54
55
|
geocode,
|
|
@@ -108,6 +109,7 @@ export {
|
|
|
108
109
|
RentalZoneRestrictionsSchema,
|
|
109
110
|
RentalZoneSchema,
|
|
110
111
|
RiderCategorySchema,
|
|
112
|
+
ServerConfigSchema,
|
|
111
113
|
StepInstructionSchema,
|
|
112
114
|
StopTimeSchema,
|
|
113
115
|
TimeRangeSchema,
|
package/dist/schemas.gen.d.ts
CHANGED
|
@@ -1470,6 +1470,37 @@ declare const OneToManyParamsSchema: {
|
|
|
1470
1470
|
};
|
|
1471
1471
|
};
|
|
1472
1472
|
};
|
|
1473
|
+
declare const ServerConfigSchema: {
|
|
1474
|
+
readonly Description: "server configuration";
|
|
1475
|
+
readonly type: "object";
|
|
1476
|
+
readonly required: readonly ["hasElevation", "hasRoutedTransfers", "hasStreetRouting", "maxTravelTimeLimit", "maxPrePostTransitTimeLimit", "maxDirectTimeLimit"];
|
|
1477
|
+
readonly properties: {
|
|
1478
|
+
readonly hasElevation: {
|
|
1479
|
+
readonly description: "true if elevation is loaded";
|
|
1480
|
+
readonly type: "boolean";
|
|
1481
|
+
};
|
|
1482
|
+
readonly hasRoutedTransfers: {
|
|
1483
|
+
readonly description: "true if routed transfers available";
|
|
1484
|
+
readonly type: "boolean";
|
|
1485
|
+
};
|
|
1486
|
+
readonly hasStreetRouting: {
|
|
1487
|
+
readonly description: "true if street routing is available";
|
|
1488
|
+
readonly type: "boolean";
|
|
1489
|
+
};
|
|
1490
|
+
readonly maxOneToAllTravelTimeLimit: {
|
|
1491
|
+
readonly description: "limit for maxTravelTime API param in minutes";
|
|
1492
|
+
readonly type: "number";
|
|
1493
|
+
};
|
|
1494
|
+
readonly maxPrePostTransitTimeLimit: {
|
|
1495
|
+
readonly description: "limit for maxPrePostTransitTime API param in seconds";
|
|
1496
|
+
readonly type: "number";
|
|
1497
|
+
};
|
|
1498
|
+
readonly maxDirectTimeLimit: {
|
|
1499
|
+
readonly description: "limit for maxDirectTime API param in seconds";
|
|
1500
|
+
readonly type: "number";
|
|
1501
|
+
};
|
|
1502
|
+
};
|
|
1503
|
+
};
|
|
1473
1504
|
declare const ErrorSchema: {
|
|
1474
1505
|
readonly type: "object";
|
|
1475
1506
|
readonly properties: {
|
|
@@ -1479,4 +1510,4 @@ declare const ErrorSchema: {
|
|
|
1479
1510
|
};
|
|
1480
1511
|
};
|
|
1481
1512
|
|
|
1482
|
-
export { AlertCauseSchema, AlertEffectSchema, AlertSchema, AlertSeverityLevelSchema, AreaSchema, CyclingSpeedSchema, DirectionSchema, DurationSchema, ElevationCostsSchema, EncodedPolylineSchema, ErrorSchema, FareMediaSchema, FareMediaTypeSchema, FareProductSchema, FareTransferRuleSchema, FareTransferSchema, ItinerarySchema, LegSchema, LocationTypeSchema, MatchSchema, ModeSchema, MultiPolygonSchema, OneToManyParamsSchema, 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 };
|
|
1513
|
+
export { AlertCauseSchema, AlertEffectSchema, AlertSchema, AlertSeverityLevelSchema, AreaSchema, CyclingSpeedSchema, DirectionSchema, DurationSchema, ElevationCostsSchema, EncodedPolylineSchema, ErrorSchema, FareMediaSchema, FareMediaTypeSchema, FareProductSchema, FareTransferRuleSchema, FareTransferSchema, ItinerarySchema, LegSchema, LocationTypeSchema, MatchSchema, ModeSchema, MultiPolygonSchema, OneToManyParamsSchema, PedestrianProfileSchema, PedestrianSpeedSchema, PickupDropoffTypeSchema, PlaceSchema, ReachablePlaceSchema, ReachableSchema, RentalFormFactorSchema, RentalPropulsionTypeSchema, RentalProviderGroupSchema, RentalProviderSchema, RentalReturnConstraintSchema, RentalSchema, RentalStationSchema, RentalVehicleSchema, RentalVehicleTypeSchema, RentalZoneRestrictionsSchema, RentalZoneSchema, RiderCategorySchema, ServerConfigSchema, StepInstructionSchema, StopTimeSchema, TimeRangeSchema, TokenSchema, TransferSchema, TripInfoSchema, TripSegmentSchema, VertexTypeSchema };
|
package/dist/schemas.gen.js
CHANGED
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
RentalZoneRestrictionsSchema,
|
|
41
41
|
RentalZoneSchema,
|
|
42
42
|
RiderCategorySchema,
|
|
43
|
+
ServerConfigSchema,
|
|
43
44
|
StepInstructionSchema,
|
|
44
45
|
StopTimeSchema,
|
|
45
46
|
TimeRangeSchema,
|
|
@@ -48,7 +49,7 @@ import {
|
|
|
48
49
|
TripInfoSchema,
|
|
49
50
|
TripSegmentSchema,
|
|
50
51
|
VertexTypeSchema
|
|
51
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-CIMYPNMP.js";
|
|
52
53
|
export {
|
|
53
54
|
AlertCauseSchema,
|
|
54
55
|
AlertEffectSchema,
|
|
@@ -91,6 +92,7 @@ export {
|
|
|
91
92
|
RentalZoneRestrictionsSchema,
|
|
92
93
|
RentalZoneSchema,
|
|
93
94
|
RiderCategorySchema,
|
|
95
|
+
ServerConfigSchema,
|
|
94
96
|
StepInstructionSchema,
|
|
95
97
|
StopTimeSchema,
|
|
96
98
|
TimeRangeSchema,
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -1339,6 +1339,32 @@ type OneToManyParams = {
|
|
|
1339
1339
|
*/
|
|
1340
1340
|
arriveBy: boolean;
|
|
1341
1341
|
};
|
|
1342
|
+
type ServerConfig = {
|
|
1343
|
+
/**
|
|
1344
|
+
* true if elevation is loaded
|
|
1345
|
+
*/
|
|
1346
|
+
hasElevation: boolean;
|
|
1347
|
+
/**
|
|
1348
|
+
* true if routed transfers available
|
|
1349
|
+
*/
|
|
1350
|
+
hasRoutedTransfers: boolean;
|
|
1351
|
+
/**
|
|
1352
|
+
* true if street routing is available
|
|
1353
|
+
*/
|
|
1354
|
+
hasStreetRouting: boolean;
|
|
1355
|
+
/**
|
|
1356
|
+
* limit for maxTravelTime API param in minutes
|
|
1357
|
+
*/
|
|
1358
|
+
maxOneToAllTravelTimeLimit?: number;
|
|
1359
|
+
/**
|
|
1360
|
+
* limit for maxPrePostTransitTime API param in seconds
|
|
1361
|
+
*/
|
|
1362
|
+
maxPrePostTransitTimeLimit: number;
|
|
1363
|
+
/**
|
|
1364
|
+
* limit for maxDirectTime API param in seconds
|
|
1365
|
+
*/
|
|
1366
|
+
maxDirectTimeLimit: number;
|
|
1367
|
+
};
|
|
1342
1368
|
type Error = {
|
|
1343
1369
|
error?: string;
|
|
1344
1370
|
};
|
|
@@ -2388,6 +2414,7 @@ type InitialResponse = ({
|
|
|
2388
2414
|
* zoom level
|
|
2389
2415
|
*/
|
|
2390
2416
|
zoom: number;
|
|
2417
|
+
serverConfig?: ServerConfig;
|
|
2391
2418
|
});
|
|
2392
2419
|
type InitialError = (Error);
|
|
2393
2420
|
type StopsData = {
|
|
@@ -2503,4 +2530,4 @@ type TransfersResponse = ({
|
|
|
2503
2530
|
});
|
|
2504
2531
|
type TransfersError = unknown;
|
|
2505
2532
|
|
|
2506
|
-
export type { 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, OneToManyParams, 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 };
|
|
2533
|
+
export type { 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, OneToManyParams, 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, ServerConfig, StepInstruction, StopTime, StopsData, StopsError, StopsResponse, StoptimesData, StoptimesError, StoptimesResponse, TimeRange, Token, Transfer, TransfersData, TransfersError, TransfersResponse, TripData, TripError, TripInfo, TripResponse, TripSegment, TripsData, TripsError, TripsResponse, VertexType };
|