@chargetrip/types 1.51.0 → 1.52.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.
@@ -1207,6 +1207,8 @@ export declare type CreateRoute = {
1207
1207
  season?: Maybe<RouteSeason>;
1208
1208
  /** Alternative stations along a route within a specified radius of 500 to 5000 meters, or the equivalent in another unit. */
1209
1209
  alternative_station_radius?: Maybe<AlternativeStationRadius>;
1210
+ /** [BETA] Number of alternative routes to request. */
1211
+ alternative_routes?: Maybe<Scalars["Int"]>;
1210
1212
  /** Route departure time. Used to calculate the expected arrival time and, if set in the past, to apply historical weather data. */
1211
1213
  departure_time: Scalars["DateTime"];
1212
1214
  /** [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. */
@@ -1236,6 +1238,8 @@ export declare type CreateRouteInput = {
1236
1238
  season?: Maybe<RouteSeason>;
1237
1239
  /** Alternative stations along a route within a specified radius of 500 to 5000 meters, or the equivalent in another unit. */
1238
1240
  alternative_station_radius?: Maybe<AlternativeStationRadiusInput>;
1241
+ /** [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. */
1242
+ alternative_routes?: Maybe<Scalars["Int"]>;
1239
1243
  /** Route departure time. Used to calculate the expected arrival time and, if set in the past, to apply historical weather data. */
1240
1244
  departure_time?: Maybe<Scalars["DateTime"]>;
1241
1245
  /** [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. */
@@ -5176,6 +5180,8 @@ export declare type RouteResponse = {
5176
5180
  status: RouteStatus;
5177
5181
  /** Recommended route. */
5178
5182
  recommended?: Maybe<RouteDetails>;
5183
+ /** [BETA] Alternative routes. */
5184
+ alternatives?: Maybe<Array<RouteDetails>>;
5179
5185
  /** Meta data for a route. */
5180
5186
  meta: RouteMetadata;
5181
5187
  /** Route request. */
@@ -5581,7 +5587,9 @@ export declare enum RouteWarningCode {
5581
5587
  /** The set maximum speed is too low (below 50 km/h) and may result in an inefficient route. */
5582
5588
  LOW_SPEED = "low_speed",
5583
5589
  /** Operator preferences were ignored because they have not been configured for this project nor provided in the route create request. */
5584
- OPERATOR_PREFERENCES_NOT_FOUND = "operator_preferences_not_found"
5590
+ OPERATOR_PREFERENCES_NOT_FOUND = "operator_preferences_not_found",
5591
+ /** Traffic data for this route is not available. */
5592
+ TRAFFIC_DATA_NOT_AVAILABLE = "traffic_data_not_available"
5585
5593
  }
5586
5594
  export declare type RouteWeather = {
5587
5595
  /** Weather configuration applied to the route. */
@@ -6084,6 +6084,18 @@
6084
6084
  "isDeprecated": false,
6085
6085
  "deprecationReason": null
6086
6086
  },
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
+ },
6087
6099
  {
6088
6100
  "name": "departure_time",
6089
6101
  "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 @@
6284
6296
  "isDeprecated": false,
6285
6297
  "deprecationReason": null
6286
6298
  },
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
+ },
6287
6311
  {
6288
6312
  "name": "departure_time",
6289
6313
  "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 @@
28724
28748
  "isDeprecated": false,
28725
28749
  "deprecationReason": null
28726
28750
  },
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
+ },
28727
28771
  {
28728
28772
  "name": "meta",
28729
28773
  "description": "Meta data for a route.",
@@ -31240,6 +31284,12 @@
31240
31284
  "description": "Operator preferences were ignored because they have not been configured for this project nor provided in the route create request.",
31241
31285
  "isDeprecated": false,
31242
31286
  "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
31243
31293
  }
31244
31294
  ],
31245
31295
  "possibleTypes": null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chargetrip/types",
3
- "version": "1.51.0",
3
+ "version": "1.52.0",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "chargetrip",
package/src/graphql.ts CHANGED
@@ -1281,6 +1281,8 @@ export type CreateRoute = {
1281
1281
  season?: Maybe<RouteSeason>;
1282
1282
  /** Alternative stations along a route within a specified radius of 500 to 5000 meters, or the equivalent in another unit. */
1283
1283
  alternative_station_radius?: Maybe<AlternativeStationRadius>;
1284
+ /** [BETA] Number of alternative routes to request. */
1285
+ alternative_routes?: Maybe<Scalars["Int"]>;
1284
1286
  /** Route departure time. Used to calculate the expected arrival time and, if set in the past, to apply historical weather data. */
1285
1287
  departure_time: Scalars["DateTime"];
1286
1288
  /** [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 = {
1311
1313
  season?: Maybe<RouteSeason>;
1312
1314
  /** Alternative stations along a route within a specified radius of 500 to 5000 meters, or the equivalent in another unit. */
1313
1315
  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"]>;
1314
1318
  /** Route departure time. Used to calculate the expected arrival time and, if set in the past, to apply historical weather data. */
1315
1319
  departure_time?: Maybe<Scalars["DateTime"]>;
1316
1320
  /** [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 = {
5650
5654
  status: RouteStatus;
5651
5655
  /** Recommended route. */
5652
5656
  recommended?: Maybe<RouteDetails>;
5657
+ /** [BETA] Alternative routes. */
5658
+ alternatives?: Maybe<Array<RouteDetails>>;
5653
5659
  /** Meta data for a route. */
5654
5660
  meta: RouteMetadata;
5655
5661
  /** Route request. */
@@ -6097,7 +6103,9 @@ export enum RouteWarningCode {
6097
6103
  /** The set maximum speed is too low (below 50 km/h) and may result in an inefficient route. */
6098
6104
  LOW_SPEED = "low_speed",
6099
6105
  /** 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"
6101
6109
  }
6102
6110
 
6103
6111
  export type RouteWeather = {