@chargetrip/types 1.48.0 → 1.50.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.
@@ -469,6 +469,16 @@ export declare enum ChargingBehaviourCode {
469
469
  /** Mainly morning charging, with some afternoon charging. */
470
470
  OFFICE_CHARGING = "OFFICE_CHARGING"
471
471
  }
472
+ export declare enum CongestionLevel {
473
+ /** Congestion level is unknown or could not be determined. */
474
+ UNKNOWN = "unknown",
475
+ /** Traffic is flowing freely with little to no delay. */
476
+ LOW = "low",
477
+ /** Increased traffic volume causing minor delays. */
478
+ MEDIUM = "medium",
479
+ /** Significant traffic volume causing heavy delays and potential standstills. */
480
+ HIGH = "high"
481
+ }
472
482
  export declare type Connect = {
473
483
  /** List of connectivity providers to which the vehicle can connect. This field returns null for free users. Please contact customer success for more information. */
474
484
  providers?: Maybe<Array<ConnectProvider>>;
@@ -1207,6 +1217,8 @@ export declare type CreateRoute = {
1207
1217
  weather?: Maybe<RouteWeather>;
1208
1218
  /** Charging stations preferences for route calculation. */
1209
1219
  station_preferences?: Maybe<RouteStationPreferences>;
1220
+ /** [BETA] Indicates whether current traffic conditions were considered during route calculation. This feature is disabled by default and requires explicit enablement for your project. Please contact Chargetrip support for more information. */
1221
+ traffic_aware?: Maybe<Scalars["Boolean"]>;
1210
1222
  };
1211
1223
  /** Input for the create route mutation. */
1212
1224
  export declare type CreateRouteInput = {
@@ -1234,6 +1246,8 @@ export declare type CreateRouteInput = {
1234
1246
  station_preferences?: Maybe<RouteStationPreferencesInput>;
1235
1247
  /** [BETA] Configuration options for the route's driving conditions. Includes factors to adjust average speed, set a maximum speed, and define a base driving style. If not specified, no adjustments are applied. */
1236
1248
  driving_preferences?: Maybe<RouteDrivingPreferencesInput>;
1249
+ /** [BETA] Route should consider current traffic conditions. This feature is disabled by default and requires explicit enablement for your project. Please contact Chargetrip support for more information. */
1250
+ traffic_aware?: Maybe<Scalars["Boolean"]>;
1237
1251
  };
1238
1252
  /** Currency in the ISO 4217 format. */
1239
1253
  export declare enum Currency {
@@ -1674,6 +1688,9 @@ export declare type EmissionsFactor = {
1674
1688
  /** The base regional emissions factor in CO2e/kWh. */
1675
1689
  value: Scalars["Float"];
1676
1690
  };
1691
+ export declare type EmissionsFactorvalueArgs = {
1692
+ unit?: Maybe<EmissionUnit>;
1693
+ };
1677
1694
  /** Emissions factor type. */
1678
1695
  export declare enum EmissionsFactorType {
1679
1696
  COUNTRY = "country",
@@ -3797,6 +3814,8 @@ export declare type RouteDetails = {
3797
3814
  charges: Scalars["Int"];
3798
3815
  /** [BETA] Warnings that certain conditions specified in a route mutation are not respected. */
3799
3816
  warnings?: Maybe<Array<RouteWarning>>;
3817
+ /** [BETA] Information regarding traffic conditions along the route. Available for routes created with traffic_aware set. */
3818
+ traffic?: Maybe<RouteDetailsTraffic>;
3800
3819
  };
3801
3820
  export declare type RouteDetailsdistanceArgs = {
3802
3821
  unit?: Maybe<DistanceUnit>;
@@ -3906,6 +3925,8 @@ export declare type RouteDetailsLeg = {
3906
3925
  sections: Array<RouteDetailsLegSection>;
3907
3926
  /** [BETA] Warnings that certain conditions specified in a route mutation are not respected. */
3908
3927
  warnings?: Maybe<Array<RouteDetailsLegWarning>>;
3928
+ /** [BETA] Information regarding traffic conditions along the route's leg . Available for routes created with traffic_aware set to true. */
3929
+ traffic?: Maybe<RouteDetailsLegTraffic>;
3909
3930
  };
3910
3931
  /** Leg of a route detail. */
3911
3932
  export declare type RouteDetailsLegdistanceArgs = {
@@ -4019,6 +4040,8 @@ export declare type RouteDetailsLegSection = {
4019
4040
  duration: Scalars["Float"];
4020
4041
  /** Total energy used in a section in kilowatt-hours. The value will be 0 for walking sections. */
4021
4042
  consumption?: Maybe<Scalars["Float"]>;
4043
+ /** [BETA] Information regarding traffic conditions along the leg's section. Available for routes created with traffic_aware set to true. */
4044
+ traffic?: Maybe<RouteDetailsLegSectionTraffic>;
4022
4045
  };
4023
4046
  export declare type RouteDetailsLegSectionpolylineArgs = {
4024
4047
  decimals?: Maybe<PolylineInputDecimals>;
@@ -4050,6 +4073,10 @@ export declare type RouteDetailsLegSectionFeaturePointPropertiestotal_occupant_w
4050
4073
  export declare type RouteDetailsLegSectionFeaturePointPropertiestotal_cargo_weightArgs = {
4051
4074
  unit?: Maybe<WeightUnit>;
4052
4075
  };
4076
+ export declare type RouteDetailsLegSectionTraffic = {
4077
+ /** [BETA] Traffic congestion intervals mapped to the polyline indices of the leg's section. */
4078
+ congestions: Array<TrafficCongestionInterval>;
4079
+ };
4053
4080
  /** Type of a route details leg section. */
4054
4081
  export declare enum RouteDetailsLegSectionType {
4055
4082
  DRIVING = "driving",
@@ -4064,6 +4091,10 @@ export declare type RouteDetailsLegStation = {
4064
4091
  /** ID of the connector that was selected in a route. */
4065
4092
  connector_id: Scalars["ID"];
4066
4093
  };
4094
+ export declare type RouteDetailsLegTraffic = {
4095
+ /** [BETA] Traffic congestion intervals mapped to the polyline indices of the leg. */
4096
+ congestions: Array<TrafficCongestionInterval>;
4097
+ };
4067
4098
  /** Type of a leg. */
4068
4099
  export declare enum RouteDetailsLegType {
4069
4100
  /** This leg ends at a charging station and the vehicle must recharge. */
@@ -4185,6 +4216,12 @@ export declare enum RouteDetailsTag {
4185
4216
  WALKING = "walking",
4186
4217
  CROSSBORDER = "crossborder"
4187
4218
  }
4219
+ export declare type RouteDetailsTraffic = {
4220
+ /** [BETA] Additional driving duration, in seconds, caused by traffic congestion compared to free-flow conditions. This value is already included in route total and driving durations. */
4221
+ delay: Scalars["Int"];
4222
+ /** [BETA] Traffic congestion intervals mapped to the polyline indices of the leg. */
4223
+ congestions: Array<Maybe<TrafficCongestionInterval>>;
4224
+ };
4188
4225
  export declare type RouteDrivingPreferences = {
4189
4226
  /** [BETA] Factor to adjust the route's calculated average speed. Accepts values between 0.80 and 1.20. 1.0 is neutral. Values below 1.0 reduce speed (e.g. 0.95 is -5%), values above increase it. If provided in combination with style, this overrides the speed factor implied by the selected 'style'. */
4190
4227
  speed_factor?: Maybe<Scalars["Float"]>;
@@ -4750,6 +4787,8 @@ export declare type RouteOperationalElectricityEmissionsIntensityinfrastructureA
4750
4787
  };
4751
4788
  /** Energy source models. */
4752
4789
  export declare enum RouteOperationalElectricityEnergySourceModel {
4790
+ /** The current energy mix of the charging station provided by the CPO was used. */
4791
+ OCPI_STATION_ENERGY_MIX = "ocpi_station_energy_mix",
4753
4792
  /** Historical average energy mix for the month. */
4754
4793
  GRID_MONTHLY_AVERAGE = "grid_monthly_average",
4755
4794
  /** Historical average energy mix for the month and hour. */
@@ -6214,6 +6253,14 @@ export declare type TotalOccupantWeightInput = {
6214
6253
  /** Source of inputted data, defaults to 'manual'. */
6215
6254
  source?: Maybe<TelemetryInputSource>;
6216
6255
  };
6256
+ export declare type TrafficCongestionInterval = {
6257
+ /** Starting index of this interval in the polyline. */
6258
+ start_index: Scalars["Int"];
6259
+ /** Ending index of this interval in the polyline. */
6260
+ end_index: Scalars["Int"];
6261
+ /** Congestion level for this specific interval. */
6262
+ level: CongestionLevel;
6263
+ };
6217
6264
  export declare enum TurningCircleUnit {
6218
6265
  /** Return the turning circle in meters. */
6219
6266
  METER = "meter",
@@ -2195,6 +2195,41 @@
2195
2195
  ],
2196
2196
  "possibleTypes": null
2197
2197
  },
2198
+ {
2199
+ "kind": "ENUM",
2200
+ "name": "CongestionLevel",
2201
+ "description": null,
2202
+ "fields": null,
2203
+ "inputFields": null,
2204
+ "interfaces": null,
2205
+ "enumValues": [
2206
+ {
2207
+ "name": "unknown",
2208
+ "description": "Congestion level is unknown or could not be determined.",
2209
+ "isDeprecated": false,
2210
+ "deprecationReason": null
2211
+ },
2212
+ {
2213
+ "name": "low",
2214
+ "description": "Traffic is flowing freely with little to no delay.",
2215
+ "isDeprecated": false,
2216
+ "deprecationReason": null
2217
+ },
2218
+ {
2219
+ "name": "medium",
2220
+ "description": "Increased traffic volume causing minor delays.",
2221
+ "isDeprecated": false,
2222
+ "deprecationReason": null
2223
+ },
2224
+ {
2225
+ "name": "high",
2226
+ "description": "Significant traffic volume causing heavy delays and potential standstills.",
2227
+ "isDeprecated": false,
2228
+ "deprecationReason": null
2229
+ }
2230
+ ],
2231
+ "possibleTypes": null
2232
+ },
2198
2233
  {
2199
2234
  "kind": "OBJECT",
2200
2235
  "name": "Connect",
@@ -6120,6 +6155,18 @@
6120
6155
  },
6121
6156
  "isDeprecated": false,
6122
6157
  "deprecationReason": null
6158
+ },
6159
+ {
6160
+ "name": "traffic_aware",
6161
+ "description": "[BETA] Indicates whether current traffic conditions were considered during route calculation. This feature is disabled by default and requires explicit enablement for your project. Please contact Chargetrip support for more information.",
6162
+ "args": [],
6163
+ "type": {
6164
+ "kind": "SCALAR",
6165
+ "name": "Boolean",
6166
+ "ofType": null
6167
+ },
6168
+ "isDeprecated": false,
6169
+ "deprecationReason": null
6123
6170
  }
6124
6171
  ],
6125
6172
  "inputFields": null,
@@ -6304,6 +6351,18 @@
6304
6351
  "defaultValue": null,
6305
6352
  "isDeprecated": false,
6306
6353
  "deprecationReason": null
6354
+ },
6355
+ {
6356
+ "name": "traffic_aware",
6357
+ "description": "[BETA] Route should consider current traffic conditions. This feature is disabled by default and requires explicit enablement for your project. Please contact Chargetrip support for more information.",
6358
+ "type": {
6359
+ "kind": "SCALAR",
6360
+ "name": "Boolean",
6361
+ "ofType": null
6362
+ },
6363
+ "defaultValue": "false",
6364
+ "isDeprecated": false,
6365
+ "deprecationReason": null
6307
6366
  }
6308
6367
  ],
6309
6368
  "interfaces": null,
@@ -8839,7 +8898,20 @@
8839
8898
  {
8840
8899
  "name": "value",
8841
8900
  "description": "The base regional emissions factor in CO2e/kWh.",
8842
- "args": [],
8901
+ "args": [
8902
+ {
8903
+ "name": "unit",
8904
+ "description": "Emission unit.",
8905
+ "type": {
8906
+ "kind": "ENUM",
8907
+ "name": "EmissionUnit",
8908
+ "ofType": null
8909
+ },
8910
+ "defaultValue": "gram",
8911
+ "isDeprecated": false,
8912
+ "deprecationReason": null
8913
+ }
8914
+ ],
8843
8915
  "type": {
8844
8916
  "kind": "NON_NULL",
8845
8917
  "name": null,
@@ -20559,6 +20631,18 @@
20559
20631
  },
20560
20632
  "isDeprecated": false,
20561
20633
  "deprecationReason": null
20634
+ },
20635
+ {
20636
+ "name": "traffic",
20637
+ "description": "[BETA] Information regarding traffic conditions along the route. Available for routes created with traffic_aware set.",
20638
+ "args": [],
20639
+ "type": {
20640
+ "kind": "OBJECT",
20641
+ "name": "RouteDetailsTraffic",
20642
+ "ofType": null
20643
+ },
20644
+ "isDeprecated": false,
20645
+ "deprecationReason": null
20562
20646
  }
20563
20647
  ],
20564
20648
  "inputFields": null,
@@ -21317,6 +21401,18 @@
21317
21401
  },
21318
21402
  "isDeprecated": false,
21319
21403
  "deprecationReason": null
21404
+ },
21405
+ {
21406
+ "name": "traffic",
21407
+ "description": "[BETA] Information regarding traffic conditions along the route's leg . Available for routes created with traffic_aware set to true.",
21408
+ "args": [],
21409
+ "type": {
21410
+ "kind": "OBJECT",
21411
+ "name": "RouteDetailsLegTraffic",
21412
+ "ofType": null
21413
+ },
21414
+ "isDeprecated": false,
21415
+ "deprecationReason": null
21320
21416
  }
21321
21417
  ],
21322
21418
  "inputFields": null,
@@ -21917,6 +22013,18 @@
21917
22013
  },
21918
22014
  "isDeprecated": false,
21919
22015
  "deprecationReason": null
22016
+ },
22017
+ {
22018
+ "name": "traffic",
22019
+ "description": "[BETA] Information regarding traffic conditions along the leg's section. Available for routes created with traffic_aware set to true.",
22020
+ "args": [],
22021
+ "type": {
22022
+ "kind": "OBJECT",
22023
+ "name": "RouteDetailsLegSectionTraffic",
22024
+ "ofType": null
22025
+ },
22026
+ "isDeprecated": false,
22027
+ "deprecationReason": null
21920
22028
  }
21921
22029
  ],
21922
22030
  "inputFields": null,
@@ -22072,6 +22180,41 @@
22072
22180
  "enumValues": null,
22073
22181
  "possibleTypes": null
22074
22182
  },
22183
+ {
22184
+ "kind": "OBJECT",
22185
+ "name": "RouteDetailsLegSectionTraffic",
22186
+ "description": null,
22187
+ "fields": [
22188
+ {
22189
+ "name": "congestions",
22190
+ "description": "[BETA] Traffic congestion intervals mapped to the polyline indices of the leg's section.",
22191
+ "args": [],
22192
+ "type": {
22193
+ "kind": "NON_NULL",
22194
+ "name": null,
22195
+ "ofType": {
22196
+ "kind": "LIST",
22197
+ "name": null,
22198
+ "ofType": {
22199
+ "kind": "NON_NULL",
22200
+ "name": null,
22201
+ "ofType": {
22202
+ "kind": "OBJECT",
22203
+ "name": "TrafficCongestionInterval",
22204
+ "ofType": null
22205
+ }
22206
+ }
22207
+ }
22208
+ },
22209
+ "isDeprecated": false,
22210
+ "deprecationReason": null
22211
+ }
22212
+ ],
22213
+ "inputFields": null,
22214
+ "interfaces": [],
22215
+ "enumValues": null,
22216
+ "possibleTypes": null
22217
+ },
22075
22218
  {
22076
22219
  "kind": "ENUM",
22077
22220
  "name": "RouteDetailsLegSectionType",
@@ -22156,6 +22299,41 @@
22156
22299
  "enumValues": null,
22157
22300
  "possibleTypes": null
22158
22301
  },
22302
+ {
22303
+ "kind": "OBJECT",
22304
+ "name": "RouteDetailsLegTraffic",
22305
+ "description": null,
22306
+ "fields": [
22307
+ {
22308
+ "name": "congestions",
22309
+ "description": "[BETA] Traffic congestion intervals mapped to the polyline indices of the leg.",
22310
+ "args": [],
22311
+ "type": {
22312
+ "kind": "NON_NULL",
22313
+ "name": null,
22314
+ "ofType": {
22315
+ "kind": "LIST",
22316
+ "name": null,
22317
+ "ofType": {
22318
+ "kind": "NON_NULL",
22319
+ "name": null,
22320
+ "ofType": {
22321
+ "kind": "OBJECT",
22322
+ "name": "TrafficCongestionInterval",
22323
+ "ofType": null
22324
+ }
22325
+ }
22326
+ }
22327
+ },
22328
+ "isDeprecated": false,
22329
+ "deprecationReason": null
22330
+ }
22331
+ ],
22332
+ "inputFields": null,
22333
+ "interfaces": [],
22334
+ "enumValues": null,
22335
+ "possibleTypes": null
22336
+ },
22159
22337
  {
22160
22338
  "kind": "ENUM",
22161
22339
  "name": "RouteDetailsLegType",
@@ -22762,6 +22940,53 @@
22762
22940
  ],
22763
22941
  "possibleTypes": null
22764
22942
  },
22943
+ {
22944
+ "kind": "OBJECT",
22945
+ "name": "RouteDetailsTraffic",
22946
+ "description": null,
22947
+ "fields": [
22948
+ {
22949
+ "name": "delay",
22950
+ "description": "[BETA] Additional driving duration, in seconds, caused by traffic congestion compared to free-flow conditions. This value is already included in route total and driving durations.",
22951
+ "args": [],
22952
+ "type": {
22953
+ "kind": "NON_NULL",
22954
+ "name": null,
22955
+ "ofType": {
22956
+ "kind": "SCALAR",
22957
+ "name": "Int",
22958
+ "ofType": null
22959
+ }
22960
+ },
22961
+ "isDeprecated": false,
22962
+ "deprecationReason": null
22963
+ },
22964
+ {
22965
+ "name": "congestions",
22966
+ "description": "[BETA] Traffic congestion intervals mapped to the polyline indices of the leg.",
22967
+ "args": [],
22968
+ "type": {
22969
+ "kind": "NON_NULL",
22970
+ "name": null,
22971
+ "ofType": {
22972
+ "kind": "LIST",
22973
+ "name": null,
22974
+ "ofType": {
22975
+ "kind": "OBJECT",
22976
+ "name": "TrafficCongestionInterval",
22977
+ "ofType": null
22978
+ }
22979
+ }
22980
+ },
22981
+ "isDeprecated": false,
22982
+ "deprecationReason": null
22983
+ }
22984
+ ],
22985
+ "inputFields": null,
22986
+ "interfaces": [],
22987
+ "enumValues": null,
22988
+ "possibleTypes": null
22989
+ },
22765
22990
  {
22766
22991
  "kind": "OBJECT",
22767
22992
  "name": "RouteDrivingPreferences",
@@ -26057,6 +26282,12 @@
26057
26282
  "inputFields": null,
26058
26283
  "interfaces": null,
26059
26284
  "enumValues": [
26285
+ {
26286
+ "name": "ocpi_station_energy_mix",
26287
+ "description": "The current energy mix of the charging station provided by the CPO was used.",
26288
+ "isDeprecated": false,
26289
+ "deprecationReason": null
26290
+ },
26060
26291
  {
26061
26292
  "name": "grid_monthly_average",
26062
26293
  "description": "Historical average energy mix for the month.",
@@ -34745,6 +34976,65 @@
34745
34976
  "enumValues": null,
34746
34977
  "possibleTypes": null
34747
34978
  },
34979
+ {
34980
+ "kind": "OBJECT",
34981
+ "name": "TrafficCongestionInterval",
34982
+ "description": null,
34983
+ "fields": [
34984
+ {
34985
+ "name": "start_index",
34986
+ "description": "Starting index of this interval in the polyline.",
34987
+ "args": [],
34988
+ "type": {
34989
+ "kind": "NON_NULL",
34990
+ "name": null,
34991
+ "ofType": {
34992
+ "kind": "SCALAR",
34993
+ "name": "Int",
34994
+ "ofType": null
34995
+ }
34996
+ },
34997
+ "isDeprecated": false,
34998
+ "deprecationReason": null
34999
+ },
35000
+ {
35001
+ "name": "end_index",
35002
+ "description": "Ending index of this interval in the polyline.",
35003
+ "args": [],
35004
+ "type": {
35005
+ "kind": "NON_NULL",
35006
+ "name": null,
35007
+ "ofType": {
35008
+ "kind": "SCALAR",
35009
+ "name": "Int",
35010
+ "ofType": null
35011
+ }
35012
+ },
35013
+ "isDeprecated": false,
35014
+ "deprecationReason": null
35015
+ },
35016
+ {
35017
+ "name": "level",
35018
+ "description": "Congestion level for this specific interval.",
35019
+ "args": [],
35020
+ "type": {
35021
+ "kind": "NON_NULL",
35022
+ "name": null,
35023
+ "ofType": {
35024
+ "kind": "ENUM",
35025
+ "name": "CongestionLevel",
35026
+ "ofType": null
35027
+ }
35028
+ },
35029
+ "isDeprecated": false,
35030
+ "deprecationReason": null
35031
+ }
35032
+ ],
35033
+ "inputFields": null,
35034
+ "interfaces": [],
35035
+ "enumValues": null,
35036
+ "possibleTypes": null
35037
+ },
34748
35038
  {
34749
35039
  "kind": "ENUM",
34750
35040
  "name": "TurningCircleUnit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chargetrip/types",
3
- "version": "1.48.0",
3
+ "version": "1.50.0",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "chargetrip",
package/src/graphql.ts CHANGED
@@ -507,6 +507,17 @@ export enum ChargingBehaviourCode {
507
507
  OFFICE_CHARGING = "OFFICE_CHARGING"
508
508
  }
509
509
 
510
+ export enum CongestionLevel {
511
+ /** Congestion level is unknown or could not be determined. */
512
+ UNKNOWN = "unknown",
513
+ /** Traffic is flowing freely with little to no delay. */
514
+ LOW = "low",
515
+ /** Increased traffic volume causing minor delays. */
516
+ MEDIUM = "medium",
517
+ /** Significant traffic volume causing heavy delays and potential standstills. */
518
+ HIGH = "high"
519
+ }
520
+
510
521
  export type Connect = {
511
522
  /** List of connectivity providers to which the vehicle can connect. This field returns null for free users. Please contact customer success for more information. */
512
523
  providers?: Maybe<Array<ConnectProvider>>;
@@ -1280,6 +1291,8 @@ export type CreateRoute = {
1280
1291
  weather?: Maybe<RouteWeather>;
1281
1292
  /** Charging stations preferences for route calculation. */
1282
1293
  station_preferences?: Maybe<RouteStationPreferences>;
1294
+ /** [BETA] Indicates whether current traffic conditions were considered during route calculation. This feature is disabled by default and requires explicit enablement for your project. Please contact Chargetrip support for more information. */
1295
+ traffic_aware?: Maybe<Scalars["Boolean"]>;
1283
1296
  };
1284
1297
 
1285
1298
  /** Input for the create route mutation. */
@@ -1308,6 +1321,8 @@ export type CreateRouteInput = {
1308
1321
  station_preferences?: Maybe<RouteStationPreferencesInput>;
1309
1322
  /** [BETA] Configuration options for the route's driving conditions. Includes factors to adjust average speed, set a maximum speed, and define a base driving style. If not specified, no adjustments are applied. */
1310
1323
  driving_preferences?: Maybe<RouteDrivingPreferencesInput>;
1324
+ /** [BETA] Route should consider current traffic conditions. This feature is disabled by default and requires explicit enablement for your project. Please contact Chargetrip support for more information. */
1325
+ traffic_aware?: Maybe<Scalars["Boolean"]>;
1311
1326
  };
1312
1327
 
1313
1328
  /** Currency in the ISO 4217 format. */
@@ -1763,6 +1778,10 @@ export type EmissionsFactor = {
1763
1778
  value: Scalars["Float"];
1764
1779
  };
1765
1780
 
1781
+ export type EmissionsFactorvalueArgs = {
1782
+ unit?: Maybe<EmissionUnit>;
1783
+ };
1784
+
1766
1785
  /** Emissions factor type. */
1767
1786
  export enum EmissionsFactorType {
1768
1787
  COUNTRY = "country",
@@ -4097,6 +4116,8 @@ export type RouteDetails = {
4097
4116
  charges: Scalars["Int"];
4098
4117
  /** [BETA] Warnings that certain conditions specified in a route mutation are not respected. */
4099
4118
  warnings?: Maybe<Array<RouteWarning>>;
4119
+ /** [BETA] Information regarding traffic conditions along the route. Available for routes created with traffic_aware set. */
4120
+ traffic?: Maybe<RouteDetailsTraffic>;
4100
4121
  };
4101
4122
 
4102
4123
  export type RouteDetailsdistanceArgs = {
@@ -4221,6 +4242,8 @@ export type RouteDetailsLeg = {
4221
4242
  sections: Array<RouteDetailsLegSection>;
4222
4243
  /** [BETA] Warnings that certain conditions specified in a route mutation are not respected. */
4223
4244
  warnings?: Maybe<Array<RouteDetailsLegWarning>>;
4245
+ /** [BETA] Information regarding traffic conditions along the route's leg . Available for routes created with traffic_aware set to true. */
4246
+ traffic?: Maybe<RouteDetailsLegTraffic>;
4224
4247
  };
4225
4248
 
4226
4249
  /** Leg of a route detail. */
@@ -4347,6 +4370,8 @@ export type RouteDetailsLegSection = {
4347
4370
  duration: Scalars["Float"];
4348
4371
  /** Total energy used in a section in kilowatt-hours. The value will be 0 for walking sections. */
4349
4372
  consumption?: Maybe<Scalars["Float"]>;
4373
+ /** [BETA] Information regarding traffic conditions along the leg's section. Available for routes created with traffic_aware set to true. */
4374
+ traffic?: Maybe<RouteDetailsLegSectionTraffic>;
4350
4375
  };
4351
4376
 
4352
4377
  export type RouteDetailsLegSectionpolylineArgs = {
@@ -4385,6 +4410,11 @@ export type RouteDetailsLegSectionFeaturePointPropertiestotal_cargo_weightArgs =
4385
4410
  unit?: Maybe<WeightUnit>;
4386
4411
  };
4387
4412
 
4413
+ export type RouteDetailsLegSectionTraffic = {
4414
+ /** [BETA] Traffic congestion intervals mapped to the polyline indices of the leg's section. */
4415
+ congestions: Array<TrafficCongestionInterval>;
4416
+ };
4417
+
4388
4418
  /** Type of a route details leg section. */
4389
4419
  export enum RouteDetailsLegSectionType {
4390
4420
  DRIVING = "driving",
@@ -4401,6 +4431,11 @@ export type RouteDetailsLegStation = {
4401
4431
  connector_id: Scalars["ID"];
4402
4432
  };
4403
4433
 
4434
+ export type RouteDetailsLegTraffic = {
4435
+ /** [BETA] Traffic congestion intervals mapped to the polyline indices of the leg. */
4436
+ congestions: Array<TrafficCongestionInterval>;
4437
+ };
4438
+
4404
4439
  /** Type of a leg. */
4405
4440
  export enum RouteDetailsLegType {
4406
4441
  /** This leg ends at a charging station and the vehicle must recharge. */
@@ -4538,6 +4573,13 @@ export enum RouteDetailsTag {
4538
4573
  CROSSBORDER = "crossborder"
4539
4574
  }
4540
4575
 
4576
+ export type RouteDetailsTraffic = {
4577
+ /** [BETA] Additional driving duration, in seconds, caused by traffic congestion compared to free-flow conditions. This value is already included in route total and driving durations. */
4578
+ delay: Scalars["Int"];
4579
+ /** [BETA] Traffic congestion intervals mapped to the polyline indices of the leg. */
4580
+ congestions: Array<Maybe<TrafficCongestionInterval>>;
4581
+ };
4582
+
4541
4583
  export type RouteDrivingPreferences = {
4542
4584
  /** [BETA] Factor to adjust the route's calculated average speed. Accepts values between 0.80 and 1.20. 1.0 is neutral. Values below 1.0 reduce speed (e.g. 0.95 is -5%), values above increase it. If provided in combination with style, this overrides the speed factor implied by the selected 'style'. */
4543
4585
  speed_factor?: Maybe<Scalars["Float"]>;
@@ -5172,6 +5214,8 @@ export type RouteOperationalElectricityEmissionsIntensityinfrastructureArgs = {
5172
5214
 
5173
5215
  /** Energy source models. */
5174
5216
  export enum RouteOperationalElectricityEnergySourceModel {
5217
+ /** The current energy mix of the charging station provided by the CPO was used. */
5218
+ OCPI_STATION_ENERGY_MIX = "ocpi_station_energy_mix",
5175
5219
  /** Historical average energy mix for the month. */
5176
5220
  GRID_MONTHLY_AVERAGE = "grid_monthly_average",
5177
5221
  /** Historical average energy mix for the month and hour. */
@@ -6796,6 +6840,15 @@ export type TotalOccupantWeightInput = {
6796
6840
  source?: Maybe<TelemetryInputSource>;
6797
6841
  };
6798
6842
 
6843
+ export type TrafficCongestionInterval = {
6844
+ /** Starting index of this interval in the polyline. */
6845
+ start_index: Scalars["Int"];
6846
+ /** Ending index of this interval in the polyline. */
6847
+ end_index: Scalars["Int"];
6848
+ /** Congestion level for this specific interval. */
6849
+ level: CongestionLevel;
6850
+ };
6851
+
6799
6852
  export enum TurningCircleUnit {
6800
6853
  /** Return the turning circle in meters. */
6801
6854
  METER = "meter",