Skip to content

Commit bfacaa2

Browse files
feat: regenerate GraphQL types
1 parent 77cd33f commit bfacaa2

2 files changed

Lines changed: 59 additions & 1 deletion

File tree

graphql.schema.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6084,6 +6084,18 @@
60846084
"isDeprecated": false,
60856085
"deprecationReason": null
60866086
},
6087+
{
6088+
"name": "alternative_routes",
6089+
"description": "[BETA] Number of alternative routes to request.",
6090+
"args": [],
6091+
"type": {
6092+
"kind": "SCALAR",
6093+
"name": "Int",
6094+
"ofType": null
6095+
},
6096+
"isDeprecated": false,
6097+
"deprecationReason": null
6098+
},
60876099
{
60886100
"name": "departure_time",
60896101
"description": "Route departure time. Used to calculate the expected arrival time and, if set in the past, to apply historical weather data.",
@@ -6284,6 +6296,18 @@
62846296
"isDeprecated": false,
62856297
"deprecationReason": null
62866298
},
6299+
{
6300+
"name": "alternative_routes",
6301+
"description": "[BETA] Additional alternative routes to calculate. Performed on a best-effort basis, it may return fewer than requested, or even none. Set to 0 to create only the recommended route.",
6302+
"type": {
6303+
"kind": "SCALAR",
6304+
"name": "Int",
6305+
"ofType": null
6306+
},
6307+
"defaultValue": "0",
6308+
"isDeprecated": false,
6309+
"deprecationReason": null
6310+
},
62876311
{
62886312
"name": "departure_time",
62896313
"description": "Route departure time. Used to calculate the expected arrival time and, if set in the past, to apply historical weather data.",
@@ -28724,6 +28748,26 @@
2872428748
"isDeprecated": false,
2872528749
"deprecationReason": null
2872628750
},
28751+
{
28752+
"name": "alternatives",
28753+
"description": "[BETA] Alternative routes.",
28754+
"args": [],
28755+
"type": {
28756+
"kind": "LIST",
28757+
"name": null,
28758+
"ofType": {
28759+
"kind": "NON_NULL",
28760+
"name": null,
28761+
"ofType": {
28762+
"kind": "OBJECT",
28763+
"name": "RouteDetails",
28764+
"ofType": null
28765+
}
28766+
}
28767+
},
28768+
"isDeprecated": false,
28769+
"deprecationReason": null
28770+
},
2872728771
{
2872828772
"name": "meta",
2872928773
"description": "Meta data for a route.",
@@ -31240,6 +31284,12 @@
3124031284
"description": "Operator preferences were ignored because they have not been configured for this project nor provided in the route create request.",
3124131285
"isDeprecated": false,
3124231286
"deprecationReason": null
31287+
},
31288+
{
31289+
"name": "traffic_data_not_available",
31290+
"description": "Traffic data for this route is not available.",
31291+
"isDeprecated": false,
31292+
"deprecationReason": null
3124331293
}
3124431294
],
3124531295
"possibleTypes": null

src/graphql.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,6 +1281,8 @@ export type CreateRoute = {
12811281
season?: Maybe<RouteSeason>;
12821282
/** Alternative stations along a route within a specified radius of 500 to 5000 meters, or the equivalent in another unit. */
12831283
alternative_station_radius?: Maybe<AlternativeStationRadius>;
1284+
/** [BETA] Number of alternative routes to request. */
1285+
alternative_routes?: Maybe<Scalars["Int"]>;
12841286
/** Route departure time. Used to calculate the expected arrival time and, if set in the past, to apply historical weather data. */
12851287
departure_time: Scalars["DateTime"];
12861288
/** [BETA] List of route features to avoid in a route. This is a best-effort preference; depending on the available routes, some features may not be fully avoidable. */
@@ -1311,6 +1313,8 @@ export type CreateRouteInput = {
13111313
season?: Maybe<RouteSeason>;
13121314
/** Alternative stations along a route within a specified radius of 500 to 5000 meters, or the equivalent in another unit. */
13131315
alternative_station_radius?: Maybe<AlternativeStationRadiusInput>;
1316+
/** [BETA] Additional alternative routes to calculate. Performed on a best-effort basis, it may return fewer than requested, or even none. Set to 0 to create only the recommended route. */
1317+
alternative_routes?: Maybe<Scalars["Int"]>;
13141318
/** Route departure time. Used to calculate the expected arrival time and, if set in the past, to apply historical weather data. */
13151319
departure_time?: Maybe<Scalars["DateTime"]>;
13161320
/** [BETA] Optional list of route features to avoid in a route. This is a best-effort preference; depending on the available routes, some features may not be fully avoidable. */
@@ -5650,6 +5654,8 @@ export type RouteResponse = {
56505654
status: RouteStatus;
56515655
/** Recommended route. */
56525656
recommended?: Maybe<RouteDetails>;
5657+
/** [BETA] Alternative routes. */
5658+
alternatives?: Maybe<Array<RouteDetails>>;
56535659
/** Meta data for a route. */
56545660
meta: RouteMetadata;
56555661
/** Route request. */
@@ -6097,7 +6103,9 @@ export enum RouteWarningCode {
60976103
/** The set maximum speed is too low (below 50 km/h) and may result in an inefficient route. */
60986104
LOW_SPEED = "low_speed",
60996105
/** Operator preferences were ignored because they have not been configured for this project nor provided in the route create request. */
6100-
OPERATOR_PREFERENCES_NOT_FOUND = "operator_preferences_not_found"
6106+
OPERATOR_PREFERENCES_NOT_FOUND = "operator_preferences_not_found",
6107+
/** Traffic data for this route is not available. */
6108+
TRAFFIC_DATA_NOT_AVAILABLE = "traffic_data_not_available"
61016109
}
61026110

61036111
export type RouteWeather = {

0 commit comments

Comments
 (0)