@chargetrip/types 1.60.0 → 1.62.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/src/graphql.ts CHANGED
@@ -358,9 +358,9 @@ export type CarConsumptionInput = {
358
358
 
359
359
  /** Charging mode used at charging stations. */
360
360
  export enum ChargeMode {
361
- /** Optimizes the charging time at each station, in order to decrease the total travel time. You will only charge up until the SOC you need in order to reach the next stop. */
361
+ /** Optimizes the charging time at each station, in order to decrease the total travel time. Charges the vehicle only to the SOC required to reach the next stop, without exceeding the configured 'maximum_state_of_charge'. */
362
362
  OPTIMIZE_TRAVEL_TIME = "OPTIMIZE_TRAVEL_TIME",
363
- /** Charge to the maximum capacity at every charging stop. The default maximum charging capacity is 80%. */
363
+ /** Charges up to the maximum configured state of charge (SoC) at each station. The maximum SoC is determined by 'maximum_state_of_charge'. */
364
364
  ALWAYS_TO_MAX_CHARGE = "ALWAYS_TO_MAX_CHARGE"
365
365
  }
366
366
 
@@ -3757,9 +3757,9 @@ export type Query = {
3757
3757
  /** Get a full list of vehicles. */
3758
3758
  vehicleList?: Maybe<Array<Maybe<VehicleList>>>;
3759
3759
  /** [BETA] Get a full list of vehicle makes. */
3760
- vehicleMakes: VehicleMakesConnection;
3760
+ vehicleMakes?: Maybe<VehicleMakesConnection>;
3761
3761
  /** [BETA] Get a full list of vehicle make models. */
3762
- vehicleModels: VehicleModelsConnection;
3762
+ vehicleModels?: Maybe<VehicleModelsConnection>;
3763
3763
  };
3764
3764
 
3765
3765
  export type QueryamenityListArgs = {
@@ -3902,6 +3902,9 @@ export type QueryvehicleListArgs = {
3902
3902
 
3903
3903
  export type QueryvehicleMakesArgs = {
3904
3904
  country?: Maybe<CountryCodeAlpha2>;
3905
+ filter?: Maybe<VehicleMakesFilter>;
3906
+ first?: Maybe<Scalars["Int"]>;
3907
+ after?: Maybe<Scalars["String"]>;
3905
3908
  };
3906
3909
 
3907
3910
  export type QueryvehicleModelsArgs = {
@@ -4842,7 +4845,11 @@ export enum RouteDetailsLegWarningCode {
4842
4845
  /** The charging station at the destination does not have any connectors compatible with the selected vehicle. */
4843
4846
  DESTINATION_CHARGER_INCOMPATIBLE = "destination_charger_incompatible",
4844
4847
  /** The charging station at the destination is restricted to heavy-duty trucks. */
4845
- DESTINATION_STATION_TRUCK_ONLY = "destination_station_truck_only"
4848
+ DESTINATION_STATION_TRUCK_ONLY = "destination_station_truck_only",
4849
+ /** Expected arrival state of charge for the leg is below the safety risk margin. */
4850
+ RISK_MARGIN_SOC_NOT_POSSIBLE = "risk_margin_soc_not_possible",
4851
+ /** Requested final state of charge value is below the specified safe risk margin. Safe risk margin is used instead. */
4852
+ FINAL_SOC_BELOW_RISK_MARGIN = "final_soc_below_risk_margin"
4846
4853
  }
4847
4854
 
4848
4855
  export type RouteDetailsManeuver = {
@@ -6393,11 +6400,11 @@ export type RouteVehicle = {
6393
6400
  };
6394
6401
 
6395
6402
  export type RouteVehicleBattery = {
6396
- /** Usable capacity of a battery used to compute a route. Value must be between 50% and 150%. If not provided, it defaults to the vehicle battery.usable_kwh. */
6403
+ /** Usable capacity of a battery used to compute a route. The value must be between 50% and 150% of a vehicle's baseline battery capacity. If not provided, the vehicle's full usable capacity by default. */
6397
6404
  capacity: StateOfCharge;
6398
- /** Current amount of energy in a battery. If not provided, it is assumed the battery is fully charged and equal to the vehicle battery.capacity. */
6405
+ /** Current amount of energy in a battery. If not provided, battery is assumed to be fully charged. */
6399
6406
  state_of_charge: StateOfCharge;
6400
- /** Desired final amount of energy in a battery at the and of a trip. The value must be between 0 and 60% of the vehicle battery.capacity. If not providedor if the specified value is below the safe risk marginthe safe risk margin is used by default. */
6407
+ /** Desired final amount of energy in a battery at the end of a trip. The value must be between 0 and 80% of the vehicle's battery capacity. If not provided, or if the specified value is below the safe risk margin, the safe risk margin is used by default. */
6401
6408
  final_state_of_charge: StateOfCharge;
6402
6409
  /** Temperature of the battery. */
6403
6410
  temperature?: Maybe<Temperature>;
@@ -6413,11 +6420,11 @@ export type RouteVehicleBattery = {
6413
6420
 
6414
6421
  /** EV battery specific configuration for a create route mutation. */
6415
6422
  export type RouteVehicleBatteryInput = {
6416
- /** Usable capacity of a battery used to compute a route. Value must be between 50% and 150%. If not provided, it defaults to the vehicle battery.usable_kwh. */
6423
+ /** Usable capacity of a battery used to compute a route. The value must be between 50% and 150% of a vehicle's baseline battery capacity. If not provided, the vehicle's full usable capacity by default. */
6417
6424
  capacity?: Maybe<StateOfChargeInput>;
6418
- /** Current amount of energy in a battery. If not provided, it is assumed the battery is fully charged and equal to the vehicle battery.capacity. */
6425
+ /** Current amount of energy in a battery. If not provided, battery is assumed to be fully charged. */
6419
6426
  state_of_charge?: Maybe<StateOfChargeInput>;
6420
- /** Desired final amount of energy in a battery at the and of a trip. The value must be between 0 and 60% of the vehicle battery.capacity. If not providedor if the specified value is below the safe risk marginthe safe risk margin is used by default. */
6427
+ /** Desired final amount of energy in a battery at the end of a trip. The value must be between 0 and 80% of the vehicle's battery capacity. If not provided, or if the specified value is below the safe risk margin, the safe risk margin is used by default. */
6421
6428
  final_state_of_charge?: Maybe<StateOfChargeInput>;
6422
6429
  /** Battery temperature. */
6423
6430
  temperature?: Maybe<TemperatureInput>;
@@ -6446,7 +6453,7 @@ export type RouteVehicleCabinInput = {
6446
6453
  };
6447
6454
 
6448
6455
  export type RouteVehicleCharging = {
6449
- /** Mode that indicates if the charging time is optimized or if always charged to the maximum capacity. */
6456
+ /** Mode that indicates if the charging time is optimized or if always charged to the maximum state of charge. */
6450
6457
  mode: ChargeMode;
6451
6458
  /** Minimum desired power of chargers, in kWh. */
6452
6459
  minimum_power: Scalars["Float"];
@@ -6456,6 +6463,8 @@ export type RouteVehicleCharging = {
6456
6463
  connectors: Array<RouteVehicleChargingConnector>;
6457
6464
  /** Supported adapters. If not specified, adapters will not be considered. */
6458
6465
  adapters: Array<RouteVehicleChargingConnector>;
6466
+ /** Maximum state of charge (%) the vehicle can reach at any charging stop. If not specified defaults to 80%. */
6467
+ maximum_state_of_charge: Scalars["Int"];
6459
6468
  };
6460
6469
 
6461
6470
  export type RouteVehicleChargingConnector = {
@@ -6473,7 +6482,7 @@ export type RouteVehicleChargingConnectorInput = {
6473
6482
  };
6474
6483
 
6475
6484
  export type RouteVehicleChargingInput = {
6476
- /** Mode that indicates if the charging time is optimized or if always charged to the maximum capacity. */
6485
+ /** Mode that indicates if the charging time is optimized or if always charged to the maximum state of charge. */
6477
6486
  mode?: Maybe<ChargeMode>;
6478
6487
  /** Minimum desired power of chargers, in kWh. */
6479
6488
  minimum_power?: Maybe<Scalars["Float"]>;
@@ -6483,6 +6492,8 @@ export type RouteVehicleChargingInput = {
6483
6492
  connectors?: Maybe<Array<RouteVehicleChargingConnectorInput>>;
6484
6493
  /** Supported adapters. If not specified, adapters will not be considered. */
6485
6494
  adapters?: Maybe<Array<RouteVehicleChargingConnectorInput>>;
6495
+ /** Maximum state of charge (%) the vehicle can reach at any charging stop. The value must be between 80 and 100. */
6496
+ maximum_state_of_charge?: Scalars["Int"];
6486
6497
  };
6487
6498
 
6488
6499
  export type RouteVehicleEmissions = {
@@ -6638,19 +6649,19 @@ export type RouteWarning = {
6638
6649
 
6639
6650
  /** Types of warnings that can be encountered in a route. */
6640
6651
  export enum RouteWarningCode {
6641
- /** The selected vehicle model is unavailable on one or more regions along the route. */
6652
+ /** Selected vehicle model is unavailable on one or more regions along the route. */
6642
6653
  EV_UNAVAILABLE_IN_REGION = "ev_unavailable_in_region",
6643
6654
  /** Route excludes charging stations as a hybrid vehicle does not require external charging. */
6644
6655
  HEV_NO_CHARGING_STATIONS = "hev_no_charging_stations",
6645
6656
  /** Route is calculated using only the battery range of the extended-range vehicle. */
6646
6657
  EREV_BATTERY_ONLY_RANGE = "erev_battery_only_range",
6647
- /** The origin location cannot be reached by vehicle and requires a walking section to reach the point. */
6658
+ /** Origin location cannot be reached by vehicle and requires a walking section to reach the point. */
6648
6659
  ORIGIN_NOT_VEHICLE_ACCESSIBLE = "origin_not_vehicle_accessible",
6649
- /** The destination location cannot be reached by vehicle and requires a walking section to reach the point. */
6660
+ /** Destination location cannot be reached by vehicle and requires a walking section to reach the point. */
6650
6661
  DESTINATION_NOT_VEHICLE_ACCESSIBLE = "destination_not_vehicle_accessible",
6651
- /** The requested final state of charge cannot be achieved. */
6662
+ /** Requested final state of charge cannot be achieved. */
6652
6663
  FINAL_SOC_NOT_POSSIBLE = "final_soc_not_possible",
6653
- /** The set maximum speed is too low (below 50 km/h) and may result in an inefficient route. */
6664
+ /** Set maximum speed is too low (below 50 km/h) and may result in an inefficient route. */
6654
6665
  LOW_SPEED = "low_speed",
6655
6666
  /** Operator preferences were ignored because they have not been configured for this project nor provided in the route create request. */
6656
6667
  OPERATOR_PREFERENCES_NOT_FOUND = "operator_preferences_not_found",
@@ -8032,7 +8043,7 @@ export type VehicleListFilter = {
8032
8043
  purpose?: Maybe<Array<VehiclePurpose>>;
8033
8044
  /** Type of vehicle. */
8034
8045
  type?: Maybe<Array<VehicleType>>;
8035
- /** [BETA] Make of vehicle. */
8046
+ /** ID of the vehicle make. */
8036
8047
  make?: Maybe<Scalars["String"]>;
8037
8048
  /** [BETA] Model of vehicle. */
8038
8049
  model?: Maybe<Scalars["String"]>;
@@ -8082,18 +8093,34 @@ export type VehicleListRouting = {
8082
8093
 
8083
8094
  /** Vehicle make data. */
8084
8095
  export type VehicleMake = {
8096
+ /** ID of the vehicle make. */
8097
+ id: Scalars["ID"];
8085
8098
  /** Vehicle make name. */
8086
8099
  name: Scalars["String"];
8087
8100
  /** Vehicle make image. */
8088
8101
  image: VehicleImage;
8102
+ /** Number of public and private unique models manufactured by the make. */
8103
+ model_count: Scalars["Int"];
8089
8104
  };
8090
8105
 
8091
8106
  /** Vehicle makes response object. */
8092
8107
  export type VehicleMakesConnection = {
8108
+ /** Total number of unique vehicle makes. */
8109
+ total_count: Scalars["Int"];
8110
+ /** Information about the current page. */
8111
+ page_info: PageInfo;
8093
8112
  /** List of vehicle makes. */
8094
8113
  nodes: Array<VehicleMake>;
8095
8114
  };
8096
8115
 
8116
+ /** Filter vehicle make list result. */
8117
+ export type VehicleMakesFilter = {
8118
+ /** Regions in which the Make has vehicles. */
8119
+ region?: Maybe<Array<VehicleRegion>>;
8120
+ /** Type of vehicle which the Make has vehicles. */
8121
+ type?: Maybe<Array<VehicleType>>;
8122
+ };
8123
+
8097
8124
  export type VehicleMedia = {
8098
8125
  /** Featured image of the vehicle from a 45-degree angle. */
8099
8126
  image: VehicleImage;
@@ -8126,6 +8153,8 @@ export enum VehicleMode {
8126
8153
  export type VehicleModel = {
8127
8154
  /** Vehicle model name. */
8128
8155
  name: Scalars["String"];
8156
+ /** Number of public and private vehicles associated to this model. */
8157
+ vehicle_count: Scalars["Int"];
8129
8158
  };
8130
8159
 
8131
8160
  /** Vehicle models response object. */
@@ -8141,7 +8170,7 @@ export type VehicleModelsConnection = {
8141
8170
  /** Filter vehicle model list result. */
8142
8171
  export type VehicleModelsFilter = {
8143
8172
  /** Vehicle make. */
8144
- make?: Maybe<Scalars["String"]>;
8173
+ make: Scalars["ID"];
8145
8174
  };
8146
8175
 
8147
8176
  export type VehicleNaming = {