@chargetrip/types 1.50.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. */
@@ -5216,11 +5222,11 @@ export declare type RouteStationOperator = {
5216
5222
  preference_type: OperatorPreferenceType;
5217
5223
  };
5218
5224
  export declare type RouteStationPreferences = {
5219
- /** [BETA] Flag to prioritise charging stations located directly on the highway, avoiding exiting highways to charge. This preference is considered alongside final SOC and operator preferences, and may reduce their influence if they conflict. The preference's weight is configurable in project settings. */
5225
+ /** [BETA] Prioritises charging stations located directly on the highway, avoiding exiting highways to charge. It's considered alongside final SOC and operator preferences, and may reduce their influence if they conflict. */
5220
5226
  prefer_highway_charging?: Maybe<Scalars["Boolean"]>;
5221
5227
  };
5222
5228
  export declare type RouteStationPreferencesInput = {
5223
- /** [BETA] Flag to prioritise charging stations located directly on the highway, avoiding exiting highways to charge. This preference is considered alongside final SOC and operator preferences, and may reduce their influence if they conflict. The preference's weight is configurable in project settings. */
5229
+ /** [BETA] Prioritises charging stations located directly on the highway, avoiding exiting highways to charge. It's considered alongside final SOC and operator preferences, and may reduce their influence if they conflict. This logic may require additional client-specific tuning. Please contact Chargetrip if the behavior seems suboptimal. */
5224
5230
  prefer_highway_charging?: Maybe<Scalars["Boolean"]>;
5225
5231
  };
5226
5232
  export declare type RouteStationWithAmenities = {
@@ -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.",
@@ -28955,7 +28999,7 @@
28955
28999
  "fields": [
28956
29000
  {
28957
29001
  "name": "prefer_highway_charging",
28958
- "description": "[BETA] Flag to prioritise charging stations located directly on the highway, avoiding exiting highways to charge. This preference is considered alongside final SOC and operator preferences, and may reduce their influence if they conflict. The preference's weight is configurable in project settings.",
29002
+ "description": "[BETA] Prioritises charging stations located directly on the highway, avoiding exiting highways to charge. It's considered alongside final SOC and operator preferences, and may reduce their influence if they conflict.",
28959
29003
  "args": [],
28960
29004
  "type": {
28961
29005
  "kind": "SCALAR",
@@ -28979,13 +29023,13 @@
28979
29023
  "inputFields": [
28980
29024
  {
28981
29025
  "name": "prefer_highway_charging",
28982
- "description": "[BETA] Flag to prioritise charging stations located directly on the highway, avoiding exiting highways to charge. This preference is considered alongside final SOC and operator preferences, and may reduce their influence if they conflict. The preference's weight is configurable in project settings.",
29026
+ "description": "[BETA] Prioritises charging stations located directly on the highway, avoiding exiting highways to charge. It's considered alongside final SOC and operator preferences, and may reduce their influence if they conflict. This logic may require additional client-specific tuning. Please contact Chargetrip if the behavior seems suboptimal.",
28983
29027
  "type": {
28984
29028
  "kind": "SCALAR",
28985
29029
  "name": "Boolean",
28986
29030
  "ofType": null
28987
29031
  },
28988
- "defaultValue": "true",
29032
+ "defaultValue": "false",
28989
29033
  "isDeprecated": false,
28990
29034
  "deprecationReason": null
28991
29035
  }
@@ -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.50.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. */
@@ -5695,12 +5701,12 @@ export type RouteStationOperator = {
5695
5701
  };
5696
5702
 
5697
5703
  export type RouteStationPreferences = {
5698
- /** [BETA] Flag to prioritise charging stations located directly on the highway, avoiding exiting highways to charge. This preference is considered alongside final SOC and operator preferences, and may reduce their influence if they conflict. The preference's weight is configurable in project settings. */
5704
+ /** [BETA] Prioritises charging stations located directly on the highway, avoiding exiting highways to charge. It's considered alongside final SOC and operator preferences, and may reduce their influence if they conflict. */
5699
5705
  prefer_highway_charging?: Maybe<Scalars["Boolean"]>;
5700
5706
  };
5701
5707
 
5702
5708
  export type RouteStationPreferencesInput = {
5703
- /** [BETA] Flag to prioritise charging stations located directly on the highway, avoiding exiting highways to charge. This preference is considered alongside final SOC and operator preferences, and may reduce their influence if they conflict. The preference's weight is configurable in project settings. */
5709
+ /** [BETA] Prioritises charging stations located directly on the highway, avoiding exiting highways to charge. It's considered alongside final SOC and operator preferences, and may reduce their influence if they conflict. This logic may require additional client-specific tuning. Please contact Chargetrip if the behavior seems suboptimal. */
5704
5710
  prefer_highway_charging?: Maybe<Scalars["Boolean"]>;
5705
5711
  };
5706
5712
 
@@ -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 = {