@chargetrip/types 1.57.0 → 1.59.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chargetrip/types",
3
- "version": "1.57.0",
3
+ "version": "1.59.0",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "chargetrip",
package/src/graphql.ts CHANGED
@@ -151,10 +151,7 @@ export enum Amenities {
151
151
 
152
152
  /** Amenity data. */
153
153
  export type Amenity = {
154
- /**
155
- * Unique amenity ID.
156
- * @deprecated Will be removed.
157
- */
154
+ /** Unique amenity ID. */
158
155
  id?: Maybe<Scalars["ID"]>;
159
156
  /**
160
157
  * ID provided by an amenity data source as the row ID.
@@ -1327,6 +1324,52 @@ export type CreateRouteInput = {
1327
1324
  traffic_aware?: Maybe<Scalars["Boolean"]>;
1328
1325
  };
1329
1326
 
1327
+ export type CreateTruckRoute = {
1328
+ /** Vehicle specific input. */
1329
+ vehicle: RouteTruckVehicle;
1330
+ /** Origin of a route. */
1331
+ origin: RouteTruckOriginFeaturePoint;
1332
+ /** Destination of a route. */
1333
+ destination: RouteDestinationFeaturePoint;
1334
+ /** Optional via points of a route. */
1335
+ via?: Maybe<Array<RouteTruckViaFeaturePoint>>;
1336
+ /** Prioritized operators for a route calculation. */
1337
+ operators?: Maybe<RouteOperatorPreferences>;
1338
+ /** Weather configuration for the route. Defined by a preset or custom weather conditions. */
1339
+ weather?: Maybe<RouteWeather>;
1340
+ /** Alternative stations along a route within a specified radius of 500 to 5000 meters, or the equivalent in another unit. If not specified, no alternative stations will be discovered. */
1341
+ alternative_station_radius?: Maybe<AlternativeStationRadius>;
1342
+ /** Route departure time. Used to calculate the expected arrival time and, if set in the past, to apply historical weather data. If not specified, defaults to the current request time. */
1343
+ departure_time?: Maybe<Scalars["DateTime"]>;
1344
+ /** 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. */
1345
+ avoid?: Maybe<Array<RouteTruckAvoid>>;
1346
+ /** Maximum speed to consider when generating the route. In the segments where legal speed is lower than this value, the legal speed will be used instead. */
1347
+ maximum_speed?: Maybe<MaximumSpeed>;
1348
+ };
1349
+
1350
+ export type CreateTruckRouteInput = {
1351
+ /** Vehicle specific input. */
1352
+ vehicle: RouteTruckVehicleInput;
1353
+ /** Origin of a route. */
1354
+ origin: RouteTruckOriginFeaturePointInput;
1355
+ /** Destination of a route. */
1356
+ destination: RouteDestinationFeaturePointInput;
1357
+ /** Optional via points of a route. */
1358
+ via?: Maybe<Array<RouteTruckViaFeaturePointInput>>;
1359
+ /** Prioritized operators for a route calculation. */
1360
+ operators?: Maybe<RouteOperatorPreferencesInput>;
1361
+ /** Weather configuration for the route. Defined by a preset or custom weather conditions. */
1362
+ weather?: Maybe<RouteWeatherInput>;
1363
+ /** Alternative stations along a route within a specified radius of 500 to 5000 meters, or the equivalent in another unit. If not specified, no alternative stations will be discovered. */
1364
+ alternative_station_radius?: Maybe<AlternativeStationRadiusInput>;
1365
+ /** Route departure time. Used to calculate the expected arrival time and, if set in the past, to apply historical weather data. If not specified, defaults to the current request time. */
1366
+ departure_time?: Maybe<Scalars["DateTime"]>;
1367
+ /** 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. */
1368
+ avoid?: Maybe<Array<RouteTruckAvoid>>;
1369
+ /** Maximum speed to consider when generating the route. In the segments where legal speed is lower than this value, the legal speed will be used instead. */
1370
+ maximum_speed?: Maybe<MaximumSpeedInput>;
1371
+ };
1372
+
1330
1373
  /** Currency in the ISO 4217 format. */
1331
1374
  export enum Currency {
1332
1375
  AED = "AED",
@@ -1673,6 +1716,13 @@ export enum DimensionUnit {
1673
1716
  MILE = "mile"
1674
1717
  }
1675
1718
 
1719
+ export type DimensionsInput = {
1720
+ /** Value of the dimension */
1721
+ value: Scalars["Float"];
1722
+ /** Dimension unit */
1723
+ type: MeasurementUnit;
1724
+ };
1725
+
1676
1726
  export type DistanceInput = {
1677
1727
  /** Value of the distance. */
1678
1728
  value: Scalars["Float"];
@@ -2278,6 +2328,8 @@ export type Mutation = {
2278
2328
  newRoute?: Maybe<Scalars["ID"]>;
2279
2329
  /** Create a new route from the route input. */
2280
2330
  createRoute: Scalars["ID"];
2331
+ /** [ALPHA] Create a new truck route from the route input and its ID. */
2332
+ createTruckRoute: Scalars["ID"];
2281
2333
  };
2282
2334
 
2283
2335
  export type MutationcreateConnectedVehicleArgs = {
@@ -2332,6 +2384,10 @@ export type MutationcreateRouteArgs = {
2332
2384
  input: CreateRouteInput;
2333
2385
  };
2334
2386
 
2387
+ export type MutationcreateTruckRouteArgs = {
2388
+ input: CreateTruckRouteInput;
2389
+ };
2390
+
2335
2391
  /** Navigation session data. */
2336
2392
  export type Navigation = {
2337
2393
  /** ID of the navigation session. */
@@ -3682,6 +3738,8 @@ export type Query = {
3682
3738
  getRoute: RouteResponse;
3683
3739
  /** [BETA] Search for stations with amenities within a specific time window and distance of a previously calculated route. */
3684
3740
  getRouteStationsWithAmenities: RouteStationsWithAmenitiesConnection;
3741
+ /** [ALPHA] Get a e-truck route by ID. */
3742
+ getTruckRoute: TruckRouteResponse;
3685
3743
  /** Get information about a station by its ID. */
3686
3744
  station?: Maybe<Station>;
3687
3745
  /** Get a full list of stations. */
@@ -3790,6 +3848,10 @@ export type QuerygetRouteStationsWithAmenitiesArgs = {
3790
3848
  after?: Maybe<Scalars["String"]>;
3791
3849
  };
3792
3850
 
3851
+ export type QuerygetTruckRouteArgs = {
3852
+ id: Scalars["ID"];
3853
+ };
3854
+
3793
3855
  export type QuerystationArgs = {
3794
3856
  id?: Maybe<Scalars["ID"]>;
3795
3857
  evse_id?: Maybe<Scalars["String"]>;
@@ -4414,7 +4476,7 @@ export type RouteDetails = {
4414
4476
  charges: Scalars["Int"];
4415
4477
  /** [BETA] Warnings that certain conditions specified in a route mutation are not respected. */
4416
4478
  warnings?: Maybe<Array<RouteWarning>>;
4417
- /** [BETA] Information regarding traffic conditions along the route. Available for routes created with traffic_aware set. */
4479
+ /** [BETA] Traffic conditions along the route. Only returns data if `traffic_aware` is set to true in the `createRoute` mutation. */
4418
4480
  traffic?: Maybe<RouteDetailsTraffic>;
4419
4481
  };
4420
4482
 
@@ -4454,7 +4516,7 @@ export type RouteDetailsDurations = {
4454
4516
  total: Scalars["Int"];
4455
4517
  /** Total charging duration, in seconds. */
4456
4518
  charging: Scalars["Int"];
4457
- /** Total driving duration, in seconds. */
4519
+ /** Total driving duration, in seconds. Takes into account traffic congestion when `traffic_aware` is set to true in the `createRoute` mutation. */
4458
4520
  driving: Scalars["Int"];
4459
4521
  /** Total duration stopped at a location via or at a station via, excluding charging time and charging penalty, in seconds. */
4460
4522
  stopover: Scalars["Int"];
@@ -4540,7 +4602,7 @@ export type RouteDetailsLeg = {
4540
4602
  sections: Array<RouteDetailsLegSection>;
4541
4603
  /** [BETA] Warnings that certain conditions specified in a route mutation are not respected. */
4542
4604
  warnings?: Maybe<Array<RouteDetailsLegWarning>>;
4543
- /** [BETA] Information regarding traffic conditions along the route's leg . Available for routes created with traffic_aware set to true. */
4605
+ /** [BETA] Traffic conditions along the leg. Only returns data if `traffic_aware` is set to true in the `createRoute` mutation. */
4544
4606
  traffic?: Maybe<RouteDetailsLegTraffic>;
4545
4607
  };
4546
4608
 
@@ -4774,7 +4836,13 @@ export enum RouteDetailsLegWarningCode {
4774
4836
  /** The leg's charging station is closing within 45 minutes of the estimated time of arrival. */
4775
4837
  STATION_CLOSING_SOON = "station_closing_soon",
4776
4838
  /** The specified stop duration at the via charging station is insufficient to start a charging session. */
4777
- VIA_INSUFFICIENT_CHARGING_TIME = "via_insufficient_charging_time"
4839
+ VIA_INSUFFICIENT_CHARGING_TIME = "via_insufficient_charging_time",
4840
+ /** The selected via station does not have compatible connectors that meet the minimum power threshold. The route still includes this charging stop, but charging will be slower than requested. */
4841
+ VIA_STATION_BELOW_MINIMUM_POWER = "via_station_below_minimum_power",
4842
+ /** The charging station at the destination does not have any connectors compatible with the selected vehicle. */
4843
+ DESTINATION_CHARGER_INCOMPATIBLE = "destination_charger_incompatible",
4844
+ /** The charging station at the destination is restricted to heavy-duty trucks. */
4845
+ DESTINATION_STATION_TRUCK_ONLY = "destination_station_truck_only"
4778
4846
  }
4779
4847
 
4780
4848
  export type RouteDetailsManeuver = {
@@ -6111,6 +6179,188 @@ export type RouteTimeWindow = {
6111
6179
  margin?: Maybe<Scalars["Int"]>;
6112
6180
  };
6113
6181
 
6182
+ /** Types of route features that can be avoided in truck routing. */
6183
+ export enum RouteTruckAvoid {
6184
+ TOLL_ROAD = "toll_road",
6185
+ FERRY = "ferry"
6186
+ }
6187
+
6188
+ export type RouteTruckOriginFeaturePoint = {
6189
+ /** ID of the feature. */
6190
+ id?: Maybe<Scalars["ID"]>;
6191
+ /** Feature type. */
6192
+ type: FeatureType;
6193
+ /** Geometry of the feature. */
6194
+ geometry: Point;
6195
+ /** Additional location and vehicle properties can be specified. */
6196
+ properties?: Maybe<RouteTruckOriginProperties>;
6197
+ };
6198
+
6199
+ export type RouteTruckOriginFeaturePointInput = {
6200
+ /** ID of the feature. */
6201
+ id?: Maybe<Scalars["ID"]>;
6202
+ /** Feature type. */
6203
+ type: FeatureType;
6204
+ /** Geometry of the feature. */
6205
+ geometry: PointInput;
6206
+ /** Additional location and vehicle properties can be specified. */
6207
+ properties?: Maybe<RouteTruckOriginPropertiesInput>;
6208
+ };
6209
+
6210
+ export type RouteTruckOriginProperties = {
6211
+ /** Data about the origin location. */
6212
+ location?: Maybe<RouteTruckPropertiesLocation>;
6213
+ /** Vehicle configuration at this point. Properties defined here are persistent and will be applied to all subsequent via points in the route unless explicitly overridden at a specific point. If not specified, assumes one occupant, with 80kg of mass and no trailers added */
6214
+ vehicle?: Maybe<RouteTruckPropertiesVehicle>;
6215
+ };
6216
+
6217
+ export type RouteTruckOriginPropertiesInput = {
6218
+ /** Data about the origin location. */
6219
+ location?: Maybe<RouteTruckPropertiesLocationInput>;
6220
+ /** Vehicle configuration at this point. Properties defined here are persistent and will be applied to all subsequent via points in the route unless explicitly overridden at a specific point. If not specified, assumes one occupant, with 80kg of mass and no trailers added */
6221
+ vehicle?: Maybe<RouteTruckPropertiesVehicleInput>;
6222
+ };
6223
+
6224
+ export type RouteTruckPropertiesLocation = {
6225
+ /** Name override for the choosen location. */
6226
+ name?: Maybe<Scalars["String"]>;
6227
+ };
6228
+
6229
+ export type RouteTruckPropertiesLocationInput = {
6230
+ /** Name override for the choosen location. */
6231
+ name?: Maybe<Scalars["String"]>;
6232
+ };
6233
+
6234
+ export type RouteTruckPropertiesVehicle = {
6235
+ /** Number of occupants in the vehicle. */
6236
+ occupants: Scalars["Int"];
6237
+ /** Combined weight of the all occupants. Defaults to 80kg if not specified. */
6238
+ total_occupant_weight?: Maybe<TotalOccupantWeight>;
6239
+ /** Total weight of all cargo in the vehicle, including the cargo in any attached trailers. */
6240
+ total_cargo_weight?: Maybe<TotalCargoWeight>;
6241
+ /** The number of axles of the main vehicle (e.g., rigid truck or tractor unit) in contact with the road. Excludes semi-trailer axles, those should be provided in trailer object. If not specified, it assumes main vehicle's all axles (liftable and rigid) are in use. */
6242
+ axles_in_use?: Maybe<Scalars["Int"]>;
6243
+ /** Configuration and dimensions for attached trailers. Required when the choosen vehicle is tractor unit. If not specified, no trailer configuration is set . */
6244
+ trailer?: Maybe<RouteTruckVehicleTrailer>;
6245
+ };
6246
+
6247
+ export type RouteTruckPropertiesVehicleInput = {
6248
+ /** Number of occupants in the vehicle. Defaults to 1 if not specified. */
6249
+ occupants?: Maybe<Scalars["Int"]>;
6250
+ /** Combined weight of the all occupants. Defaults to 80kg if not specified. */
6251
+ total_occupant_weight?: Maybe<TotalOccupantWeightInput>;
6252
+ /** Total weight of all cargo in the vehicle, including the cargo in any attached trailers. */
6253
+ total_cargo_weight?: Maybe<TotalCargoWeightInput>;
6254
+ /** The number of axles of the main vehicle (e.g., rigid truck or tractor unit) in contact with the road. Excludes semi-trailer axles, those should be provided in trailer object. If not specified, it assumes main vehicle's all axles (liftable and rigid) are in use. */
6255
+ axles_in_use?: Maybe<Scalars["Int"]>;
6256
+ /** Configuration and dimensions for attached trailers. Required when the choosen vehicle is tractor unit. If not specified, no trailer configuration is set . */
6257
+ trailer?: Maybe<RouteTruckVehicleTrailerInput>;
6258
+ };
6259
+
6260
+ export type RouteTruckVehicle = {
6261
+ /** ID of the vehicle. */
6262
+ id: Scalars["ID"];
6263
+ /** EV battery specific configuration. */
6264
+ battery: RouteVehicleBattery;
6265
+ /** Charging configuration. */
6266
+ charging: RouteVehicleCharging;
6267
+ /** Value of the auxiliary power consumption of the vehicle. */
6268
+ auxiliary_consumption: AuxiliaryConsumption;
6269
+ /** Flag indicating if climate control is on. */
6270
+ climate: Scalars["Boolean"];
6271
+ /** Vehicle Heat Pump configuration. */
6272
+ heat_pump: HeatPumpMode;
6273
+ /** Vehicle cabin configuration used for the route calculation. Applied only if vehicle.climate is set to true. */
6274
+ cabin: RouteVehicleCabin;
6275
+ /** Tire pressures of all wheels, ordered from front right to front left, then rear left to rear right. */
6276
+ tire_pressure: TirePressure;
6277
+ };
6278
+
6279
+ export type RouteTruckVehicleInput = {
6280
+ /** ID of the vehicle. */
6281
+ id: Scalars["ID"];
6282
+ /** EV battery specific configuration. */
6283
+ battery?: Maybe<RouteVehicleBatteryInput>;
6284
+ /** Charging configuration. */
6285
+ charging?: Maybe<RouteVehicleChargingInput>;
6286
+ /** Value of the auxiliary power consumption of the vehicle. */
6287
+ auxiliary_consumption?: Maybe<AuxiliaryConsumptionInput>;
6288
+ /** Flag indicating if climate control is on. */
6289
+ climate?: Maybe<Scalars["Boolean"]>;
6290
+ /** Vehicle Heat Pump configuration. */
6291
+ heat_pump?: Maybe<HeatPumpMode>;
6292
+ /** Vehicle cabin configuration used for the route calculation. Applied only if vehicle.climate is set to true. */
6293
+ cabin?: Maybe<RouteVehicleCabinInput>;
6294
+ /** Tire pressures of all wheels, ordered from front right to front left, then rear left to rear right. */
6295
+ tire_pressure?: Maybe<TirePressureInput>;
6296
+ };
6297
+
6298
+ export type RouteTruckVehicleTrailer = {
6299
+ /** Number of trailers. */
6300
+ count: Scalars["Int"];
6301
+ /** Number of axles of all attached trailers in contact with the road. This value does not include the main vehicle/tractor unit axles. Will be combined with the main vehicle's known number of axles. */
6302
+ axles_in_use: Scalars["Int"];
6303
+ /** Total unladen (empty) weight of all attached trailers. Will be combined with the main vehicle's known unladen weight. */
6304
+ unladen_weight: Scalars["Float"];
6305
+ /** Total physical dimensions of the vehicle combination of the main vehicle and trailers. */
6306
+ combined_vehicle_dimensions: TruckTrailerCombinedDimensions;
6307
+ };
6308
+
6309
+ export type RouteTruckVehicleTrailerunladen_weightArgs = {
6310
+ unit?: Maybe<WeightUnit>;
6311
+ };
6312
+
6313
+ export type RouteTruckVehicleTrailerInput = {
6314
+ /** Number of trailers. */
6315
+ count: Scalars["Int"];
6316
+ /** Number of axles of all attached trailers in contact with the road. This value does not include the main vehicle/tractor unit axles. Will be combined with the main vehicle's known number of axles. */
6317
+ axles_in_use: Scalars["Int"];
6318
+ /** Total unladen (empty) weight of all attached trailers. Will be combined with the main vehicle's known unladen weight. */
6319
+ unladen_weight: WeightInput;
6320
+ /** Total physical dimensions of the vehicle combination of the main vehicle and trailers. */
6321
+ combined_vehicle_dimensions: TruckTrailerCombinedDimensionsInput;
6322
+ };
6323
+
6324
+ export type RouteTruckViaFeaturePoint = {
6325
+ /** ID of the feature. */
6326
+ id?: Maybe<Scalars["ID"]>;
6327
+ /** Feature type. */
6328
+ type: FeatureType;
6329
+ /** Geometry of the feature. */
6330
+ geometry?: Maybe<Point>;
6331
+ /** Optional object where additional properties can be specified. */
6332
+ properties?: Maybe<RouteTruckViaProperties>;
6333
+ };
6334
+
6335
+ export type RouteTruckViaFeaturePointInput = {
6336
+ /** ID of the feature. */
6337
+ id?: Maybe<Scalars["ID"]>;
6338
+ /** Feature type. */
6339
+ type: FeatureType;
6340
+ /** Geometry of the feature. */
6341
+ geometry?: Maybe<PointInput>;
6342
+ /** Optional object where additional properties can be specified. */
6343
+ properties?: Maybe<RouteTruckViaPropertiesInput>;
6344
+ };
6345
+
6346
+ export type RouteTruckViaProperties = {
6347
+ /** Location data of the via point. */
6348
+ location?: Maybe<RoutePropertiesViaLocation>;
6349
+ /** Vehicle configuration at this point. Properties defined here override previous settings and persist for all subsequent segments of the route until changed again. If not specified, the vehicle state from the previous point remains in effect. */
6350
+ vehicle?: Maybe<RouteTruckPropertiesVehicle>;
6351
+ /** Station data of the via point. */
6352
+ station?: Maybe<RoutePropertiesStation>;
6353
+ };
6354
+
6355
+ export type RouteTruckViaPropertiesInput = {
6356
+ /** Location data of the via point. */
6357
+ location?: Maybe<RoutePropertiesViaLocationInput>;
6358
+ /** Vehicle configuration at this point. Properties defined here override previous settings and persist for all subsequent segments of the route until changed again. If not specified, the vehicle state from the previous point remains in effect. */
6359
+ vehicle?: Maybe<RouteTruckPropertiesVehicleInput>;
6360
+ /** Station data of the via point. */
6361
+ station?: Maybe<RoutePropertiesStationInput>;
6362
+ };
6363
+
6114
6364
  export type RouteVehicle = {
6115
6365
  /** ID of the vehicle. */
6116
6366
  id: Scalars["ID"];
@@ -6892,6 +7142,8 @@ export type Subscription = {
6892
7142
  routeUpdatedById?: Maybe<Route>;
6893
7143
  /** Subscribe to a specific route to receive system event updates. */
6894
7144
  route: RouteResponse;
7145
+ /** [ALPHA] Subscribe to e-truck route to receive system event updates. */
7146
+ truckRoute: TruckRouteResponse;
6895
7147
  /** [BETA] Subscribe to navigation session system event updates. We strongly recommend using this at all times to not miss any updates. */
6896
7148
  navigation?: Maybe<NavigationSubscription>;
6897
7149
  /** [BETA] Subscribe to a connected vehicle. */
@@ -6908,6 +7160,10 @@ export type SubscriptionrouteArgs = {
6908
7160
  id: Scalars["ID"];
6909
7161
  };
6910
7162
 
7163
+ export type SubscriptiontruckRouteArgs = {
7164
+ id: Scalars["ID"];
7165
+ };
7166
+
6911
7167
  export type SubscriptionnavigationArgs = {
6912
7168
  id: Scalars["ID"];
6913
7169
  };
@@ -7162,6 +7418,263 @@ export type TrafficCongestionInterval = {
7162
7418
  level: CongestionLevel;
7163
7419
  };
7164
7420
 
7421
+ export type TruckRouteDetails = {
7422
+ /** ID of a route computation. */
7423
+ id: Scalars["ID"];
7424
+ /** Total distance of a route. */
7425
+ distance: Scalars["Float"];
7426
+ /** Aggregation of all durations of a route. */
7427
+ durations: RouteDetailsDurations;
7428
+ /** Total energy used for a route in kilowatt hours. For HEVs and PHEVs this field will return null. */
7429
+ consumption?: Maybe<Scalars["Float"]>;
7430
+ /** Range available at the start of a trip. The ranges in kilometers and miles are estimates, calculated based on the Chargetrip range, current route conditions, weather scenario (current or seasonal), and the route input at the time of planning. For HEVs and PHEVs this field will return null. */
7431
+ range_at_origin?: Maybe<Scalars["Float"]>;
7432
+ /** Range available at the end of a trip. Note: The ranges in kilometers and miles are estimates, calculated based on the Chargetrip range, current route conditions, weather scenario (current or seasonal), and the route input at the time of planning. For HEVs and PHEVs this field will return null. */
7433
+ range_at_destination?: Maybe<Scalars["Float"]>;
7434
+ /** Polyline containing encoded coordinates. */
7435
+ polyline: Scalars["String"];
7436
+ /** Path elevation, distance, duration, consumption and speed values, grouped into 100 segments. */
7437
+ path_plot: Array<RouteDetailsPathSegment>;
7438
+ /** Details about elevation on a route. */
7439
+ elevation: RouteDetailsElevation;
7440
+ /** Money saving information. */
7441
+ savings?: Maybe<RouteDetailsSavings>;
7442
+ /** Legs of a route. */
7443
+ legs: Array<TruckRouteDetailsLeg>;
7444
+ /** Alternative stations along a route within a specified radius. Will only return stations if alternative_station_radius was specified in the createRoute mutation. */
7445
+ alternative_stations: Array<RouteDetailsAlternativeStation>;
7446
+ /** Aggregation of tags over the current RouteDetails. Tags are available on legs and further subdivided over individual sections and maneuvers. */
7447
+ tags: Array<RouteDetailsTag>;
7448
+ /** Number of charging stops required for this route. */
7449
+ charges: Scalars["Int"];
7450
+ };
7451
+
7452
+ export type TruckRouteDetailsdistanceArgs = {
7453
+ unit?: Maybe<DistanceUnit>;
7454
+ };
7455
+
7456
+ export type TruckRouteDetailsrange_at_originArgs = {
7457
+ unit?: Maybe<StateOfChargeUnit>;
7458
+ };
7459
+
7460
+ export type TruckRouteDetailsrange_at_destinationArgs = {
7461
+ unit?: Maybe<StateOfChargeUnit>;
7462
+ };
7463
+
7464
+ export type TruckRouteDetailspolylineArgs = {
7465
+ decimals?: Maybe<PolylineInputDecimals>;
7466
+ };
7467
+
7468
+ /** Leg of a route detail. */
7469
+ export type TruckRouteDetailsLeg = {
7470
+ /** Distance from the start to the end of a leg. */
7471
+ distance: Scalars["Float"];
7472
+ /** Aggregation of all durations of a route leg. */
7473
+ durations: RouteDetailsDurations;
7474
+ /** Total energy used in a leg in kilowatt hours. For HEVs and PHEVs this field will return null. */
7475
+ consumption?: Maybe<Scalars["Float"]>;
7476
+ /** Origin point location. */
7477
+ origin: TruckRouteDetailsLegFeaturePoint;
7478
+ /** Destination point location. */
7479
+ destination: TruckRouteDetailsLegFeaturePoint;
7480
+ /** Range at the start of a leg. The ranges in kilometers and miles are estimates, calculated based on the Chargetrip range, current route conditions, weather scenario (current or seasonal), and the route input at the time of planning. For HEVs and PHEVs this field will return null. */
7481
+ range_at_origin?: Maybe<Scalars["Float"]>;
7482
+ /** Range available at the end of a leg. The ranges in kilometers and miles are estimates, calculated based on the Chargetrip range, current route conditions, weather scenario (current or seasonal), and the route input at the time of planning. For HEVs and PHEVs this field will return null. */
7483
+ range_at_destination?: Maybe<Scalars["Float"]>;
7484
+ /** Range after charging on the leg. The ranges in kilometers and miles are estimates, calculated based on the Chargetrip range, current route conditions, weather scenario (current or seasonal), and the route input at the time of planning. For HEVs and PHEVs this field will return null. */
7485
+ range_after_charge?: Maybe<Scalars["Float"]>;
7486
+ /** Type of a leg. */
7487
+ type: RouteDetailsLegType;
7488
+ /** Information about the station at the destination of a leg. */
7489
+ station?: Maybe<RouteDetailsLegStation>;
7490
+ /** Polyline containing encoded coordinates. */
7491
+ polyline: Scalars["String"];
7492
+ /** Aggregation of tags over the current leg. Tags are further subdivided over individual sections and maneuvers. */
7493
+ tags: Array<RouteDetailsTag>;
7494
+ /** Maneuvers of a leg - used to generate turn-by-turn instructions. */
7495
+ maneuvers: Array<RouteDetailsManeuver>;
7496
+ /** Road sections of a leg - divided by means of transportation. */
7497
+ sections: Array<TruckRouteDetailsLegSection>;
7498
+ };
7499
+
7500
+ /** Leg of a route detail. */
7501
+ export type TruckRouteDetailsLegdistanceArgs = {
7502
+ unit?: Maybe<DistanceUnit>;
7503
+ };
7504
+
7505
+ /** Leg of a route detail. */
7506
+ export type TruckRouteDetailsLegrange_at_originArgs = {
7507
+ unit?: Maybe<StateOfChargeUnit>;
7508
+ };
7509
+
7510
+ /** Leg of a route detail. */
7511
+ export type TruckRouteDetailsLegrange_at_destinationArgs = {
7512
+ unit?: Maybe<StateOfChargeUnit>;
7513
+ };
7514
+
7515
+ /** Leg of a route detail. */
7516
+ export type TruckRouteDetailsLegrange_after_chargeArgs = {
7517
+ unit?: Maybe<StateOfChargeUnit>;
7518
+ };
7519
+
7520
+ /** Leg of a route detail. */
7521
+ export type TruckRouteDetailsLegpolylineArgs = {
7522
+ decimals?: Maybe<PolylineInputDecimals>;
7523
+ };
7524
+
7525
+ export type TruckRouteDetailsLegFeaturePoint = {
7526
+ /** ID of the feature. */
7527
+ id?: Maybe<Scalars["ID"]>;
7528
+ /** Feature type. */
7529
+ type: FeatureType;
7530
+ /** Geometry of the feature. */
7531
+ geometry: Point;
7532
+ /** Properties of the feature. */
7533
+ properties?: Maybe<TruckRouteDetailsLegFeatureProperties>;
7534
+ };
7535
+
7536
+ export type TruckRouteDetailsLegFeatureProperties = {
7537
+ /** Name of the location. */
7538
+ name?: Maybe<Scalars["String"]>;
7539
+ /** ID of the station. */
7540
+ station_id?: Maybe<Scalars["ID"]>;
7541
+ /** External ID of the station. */
7542
+ external_station_id?: Maybe<Scalars["ID"]>;
7543
+ /** Temperature at the location. */
7544
+ temperature?: Maybe<Scalars["Int"]>;
7545
+ /** Air pressure at the location. */
7546
+ air_pressure?: Maybe<Scalars["Float"]>;
7547
+ /** Solar irradiance at the location. */
7548
+ solar_irradiance?: Maybe<Scalars["Float"]>;
7549
+ /** Duration, in seconds, of time spent at this location. */
7550
+ duration?: Maybe<Scalars["Int"]>;
7551
+ /** Number of occupants present in the vehicle. */
7552
+ occupants: Scalars["Int"];
7553
+ /** Value of the combined weight of the occupants. */
7554
+ total_occupant_weight: Scalars["Float"];
7555
+ /** Value of the current weight of the cargo. */
7556
+ total_cargo_weight?: Maybe<Scalars["Float"]>;
7557
+ /** Number of trailers. */
7558
+ trailer_count: Scalars["Int"];
7559
+ };
7560
+
7561
+ export type TruckRouteDetailsLegFeaturePropertiestemperatureArgs = {
7562
+ unit?: Maybe<TemperatureUnit>;
7563
+ };
7564
+
7565
+ export type TruckRouteDetailsLegFeaturePropertiestotal_occupant_weightArgs = {
7566
+ unit?: Maybe<WeightUnit>;
7567
+ };
7568
+
7569
+ export type TruckRouteDetailsLegFeaturePropertiestotal_cargo_weightArgs = {
7570
+ unit?: Maybe<WeightUnit>;
7571
+ };
7572
+
7573
+ export type TruckRouteDetailsLegSection = {
7574
+ /** Section type. */
7575
+ type: RouteDetailsLegSectionType;
7576
+ /** Origin point. */
7577
+ origin: TruckRouteDetailsLegSectionFeaturePoint;
7578
+ /** Destination point. */
7579
+ destination: TruckRouteDetailsLegSectionFeaturePoint;
7580
+ /** Aggregation of tags over the current section. */
7581
+ tags: Array<RouteDetailsTag>;
7582
+ /** Polyline containing encoded coordinates. */
7583
+ polyline: Scalars["String"];
7584
+ /** Distance from the start to the end of a section. */
7585
+ distance: Scalars["Float"];
7586
+ /** Total duration of a section, in seconds. The value will be 0 for walking sections. */
7587
+ duration: Scalars["Float"];
7588
+ /** Total energy used in a section in kilowatt-hours. The value will be 0 for walking sections. */
7589
+ consumption?: Maybe<Scalars["Float"]>;
7590
+ };
7591
+
7592
+ export type TruckRouteDetailsLegSectionpolylineArgs = {
7593
+ decimals?: Maybe<PolylineInputDecimals>;
7594
+ };
7595
+
7596
+ export type TruckRouteDetailsLegSectiondistanceArgs = {
7597
+ unit?: Maybe<DistanceUnit>;
7598
+ };
7599
+
7600
+ export type TruckRouteDetailsLegSectionFeaturePoint = {
7601
+ /** ID of the feature. */
7602
+ id?: Maybe<Scalars["ID"]>;
7603
+ /** Feature type. */
7604
+ type: FeatureType;
7605
+ /** Geometry of the feature. */
7606
+ geometry: Point;
7607
+ /** Properties of the feature. */
7608
+ properties: TruckRouteDetailsLegSectionFeaturePointProperties;
7609
+ };
7610
+
7611
+ export type TruckRouteDetailsLegSectionFeaturePointProperties = {
7612
+ /** Number of occupants present in the vehicle. */
7613
+ occupants: Scalars["Int"];
7614
+ /** Value of the combined weight of the occupants. */
7615
+ total_occupant_weight?: Maybe<Scalars["Float"]>;
7616
+ /** Value of the current weight of the cargo. */
7617
+ total_cargo_weight?: Maybe<Scalars["Float"]>;
7618
+ /** Number of trailers. */
7619
+ trailer_count: Scalars["Int"];
7620
+ };
7621
+
7622
+ export type TruckRouteDetailsLegSectionFeaturePointPropertiestotal_occupant_weightArgs = {
7623
+ unit?: Maybe<WeightUnit>;
7624
+ };
7625
+
7626
+ export type TruckRouteDetailsLegSectionFeaturePointPropertiestotal_cargo_weightArgs = {
7627
+ unit?: Maybe<WeightUnit>;
7628
+ };
7629
+
7630
+ export type TruckRouteResponse = {
7631
+ /** ID of a route calculation. */
7632
+ id: Scalars["ID"];
7633
+ /** Status of a route. */
7634
+ status: RouteStatus;
7635
+ /** Recommended route. */
7636
+ recommended?: Maybe<TruckRouteDetails>;
7637
+ /** Meta data for a route. */
7638
+ meta: RouteMetadata;
7639
+ /** Route request. */
7640
+ request_input: CreateTruckRoute;
7641
+ };
7642
+
7643
+ /** Physical dimensions of the vehicle and trailers combination. */
7644
+ export type TruckTrailerCombinedDimensions = {
7645
+ /** Maximum height of the combination trailer and main vehicle combination (ground to highest vehicle point). */
7646
+ height: Scalars["Float"];
7647
+ /** Maximum width of the trailers and main vehicle combination. */
7648
+ width: Scalars["Float"];
7649
+ /** Total length of the trailers and main vehicle combination (bumper to bumper). */
7650
+ length: Scalars["Float"];
7651
+ };
7652
+
7653
+ /** Physical dimensions of the vehicle and trailers combination. */
7654
+ export type TruckTrailerCombinedDimensionsheightArgs = {
7655
+ unit?: Maybe<MeasurementUnit>;
7656
+ };
7657
+
7658
+ /** Physical dimensions of the vehicle and trailers combination. */
7659
+ export type TruckTrailerCombinedDimensionswidthArgs = {
7660
+ unit?: Maybe<MeasurementUnit>;
7661
+ };
7662
+
7663
+ /** Physical dimensions of the vehicle and trailers combination. */
7664
+ export type TruckTrailerCombinedDimensionslengthArgs = {
7665
+ unit?: Maybe<MeasurementUnit>;
7666
+ };
7667
+
7668
+ /** Physical dimensions of the vehicle and trailers combination. */
7669
+ export type TruckTrailerCombinedDimensionsInput = {
7670
+ /** Maximum height of the combination trailer and main vehicle combination (ground to highest vehicle point). */
7671
+ height: DimensionsInput;
7672
+ /** Maximum width of the trailers and main vehicle combination. */
7673
+ width: DimensionsInput;
7674
+ /** Total length of the trailers and main vehicle combination (bumper to bumper). */
7675
+ length: DimensionsInput;
7676
+ };
7677
+
7165
7678
  export enum TurningCircleUnit {
7166
7679
  /** Return the turning circle in meters. */
7167
7680
  METER = "meter",
@@ -7740,9 +8253,9 @@ export type VehiclePremiumBattery = {
7740
8253
  estimated_fields?: Maybe<VehicleBatteryFieldEstimations>;
7741
8254
  /** Battery thermal management system (active/passive, air/liquid). */
7742
8255
  thermal_management_system?: Maybe<Scalars["String"]>;
7743
- /** Duration of battery warranty. */
8256
+ /** Duration of battery warranty in years. */
7744
8257
  warranty_period?: Maybe<Scalars["Float"]>;
7745
- /** Mileage of battery warranty. */
8258
+ /** Mileage of battery warranty in kilometers. */
7746
8259
  warranty_mileage?: Maybe<Scalars["Float"]>;
7747
8260
  /** Chemistry of the battery. */
7748
8261
  chemistry?: Maybe<Scalars["String"]>;
@@ -8674,6 +9187,13 @@ export enum WeatherType {
8674
9187
  CUSTOM = "custom"
8675
9188
  }
8676
9189
 
9190
+ export type WeightInput = {
9191
+ /** Preferred unit for the weight */
9192
+ type: WeightUnit;
9193
+ /** Value of weight */
9194
+ value: Scalars["Float"];
9195
+ };
9196
+
8677
9197
  export enum WeightUnit {
8678
9198
  /** Return the weight in kilograms. */
8679
9199
  KILOGRAM = "kilogram",