@chargetrip/types 1.47.2 → 1.49.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.
@@ -142,7 +142,9 @@ export declare enum Amenities {
142
142
  BATHROOM = "bathroom",
143
143
  SUPERMARKET = "supermarket",
144
144
  PLAYGROUND = "playground",
145
- PHARMACY = "pharmacy"
145
+ PHARMACY = "pharmacy",
146
+ BAKERY = "bakery",
147
+ CONVENIENCE_STORE = "convenience_store"
146
148
  }
147
149
  /** Amenity data. */
148
150
  export declare type Amenity = {
@@ -159,7 +161,7 @@ export declare type Amenity = {
159
161
  /** ID provided by an amenity data source as the row ID. */
160
162
  external_id: Scalars["String"];
161
163
  /** Name of the amenity. */
162
- name?: Maybe<Scalars["String"]>;
164
+ name: Scalars["String"];
163
165
  /** Geo location coordinates. This is a GeoJSON Point. */
164
166
  location: Point;
165
167
  /** Address of the amenity. */
@@ -256,7 +258,9 @@ export declare enum AmenityType {
256
258
  BATHROOM = "bathroom",
257
259
  SUPERMARKET = "supermarket",
258
260
  PLAYGROUND = "playground",
259
- PHARMACY = "pharmacy"
261
+ PHARMACY = "pharmacy",
262
+ BAKERY = "bakery",
263
+ CONVENIENCE_STORE = "convenience_store"
260
264
  }
261
265
  /** Type of wheelchair accessibility at the amenity. */
262
266
  export declare enum AmenityWheelchairAccessibilityType {
@@ -465,6 +469,16 @@ export declare enum ChargingBehaviourCode {
465
469
  /** Mainly morning charging, with some afternoon charging. */
466
470
  OFFICE_CHARGING = "OFFICE_CHARGING"
467
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
+ }
468
482
  export declare type Connect = {
469
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. */
470
484
  providers?: Maybe<Array<ConnectProvider>>;
@@ -1203,6 +1217,8 @@ export declare type CreateRoute = {
1203
1217
  weather?: Maybe<RouteWeather>;
1204
1218
  /** Charging stations preferences for route calculation. */
1205
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"]>;
1206
1222
  };
1207
1223
  /** Input for the create route mutation. */
1208
1224
  export declare type CreateRouteInput = {
@@ -1230,6 +1246,8 @@ export declare type CreateRouteInput = {
1230
1246
  station_preferences?: Maybe<RouteStationPreferencesInput>;
1231
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. */
1232
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"]>;
1233
1251
  };
1234
1252
  /** Currency in the ISO 4217 format. */
1235
1253
  export declare enum Currency {
@@ -3594,21 +3612,6 @@ export declare type ReviewTagsInput = {
3594
3612
  export declare type ReviewUser = {
3595
3613
  /** User full name. If a review was added by an anonymous user, this will be null. */
3596
3614
  name?: Maybe<Scalars["String"]>;
3597
- /**
3598
- * User ID.
3599
- * @deprecated Not sent back anymore, will be null
3600
- */
3601
- id?: Maybe<Scalars["ID"]>;
3602
- /**
3603
- * First name.
3604
- * @deprecated In favor of name.
3605
- */
3606
- firstName?: Maybe<Scalars["String"]>;
3607
- /**
3608
- * Last name.
3609
- * @deprecated In favor of name
3610
- */
3611
- lastName?: Maybe<Scalars["String"]>;
3612
3615
  };
3613
3616
  export declare type Route = {
3614
3617
  /** Recommended route. */
@@ -3806,6 +3809,10 @@ export declare type RouteDetails = {
3806
3809
  tags: Array<RouteDetailsTag>;
3807
3810
  /** Number of charging stops required for this route. */
3808
3811
  charges: Scalars["Int"];
3812
+ /** [BETA] Warnings that certain conditions specified in a route mutation are not respected. */
3813
+ warnings?: Maybe<Array<RouteWarning>>;
3814
+ /** [BETA] Information regarding traffic conditions along the route. Available for routes created with traffic_aware set. */
3815
+ traffic?: Maybe<RouteDetailsTraffic>;
3809
3816
  };
3810
3817
  export declare type RouteDetailsdistanceArgs = {
3811
3818
  unit?: Maybe<DistanceUnit>;
@@ -3913,6 +3920,10 @@ export declare type RouteDetailsLeg = {
3913
3920
  maneuvers: Array<RouteDetailsManeuver>;
3914
3921
  /** Road sections of a leg - divided by means of transportation. */
3915
3922
  sections: Array<RouteDetailsLegSection>;
3923
+ /** [BETA] Warnings that certain conditions specified in a route mutation are not respected. */
3924
+ warnings?: Maybe<Array<RouteDetailsLegWarning>>;
3925
+ /** [BETA] Information regarding traffic conditions along the route's leg . Available for routes created with traffic_aware set to true. */
3926
+ traffic?: Maybe<RouteDetailsLegTraffic>;
3916
3927
  };
3917
3928
  /** Leg of a route detail. */
3918
3929
  export declare type RouteDetailsLegdistanceArgs = {
@@ -4026,6 +4037,8 @@ export declare type RouteDetailsLegSection = {
4026
4037
  duration: Scalars["Float"];
4027
4038
  /** Total energy used in a section in kilowatt-hours. The value will be 0 for walking sections. */
4028
4039
  consumption?: Maybe<Scalars["Float"]>;
4040
+ /** [BETA] Information regarding traffic conditions along the leg's section. Available for routes created with traffic_aware set to true. */
4041
+ traffic?: Maybe<RouteDetailsLegSectionTraffic>;
4029
4042
  };
4030
4043
  export declare type RouteDetailsLegSectionpolylineArgs = {
4031
4044
  decimals?: Maybe<PolylineInputDecimals>;
@@ -4057,6 +4070,10 @@ export declare type RouteDetailsLegSectionFeaturePointPropertiestotal_occupant_w
4057
4070
  export declare type RouteDetailsLegSectionFeaturePointPropertiestotal_cargo_weightArgs = {
4058
4071
  unit?: Maybe<WeightUnit>;
4059
4072
  };
4073
+ export declare type RouteDetailsLegSectionTraffic = {
4074
+ /** [BETA] Traffic congestion intervals mapped to the polyline indices of the leg's section. */
4075
+ congestions: Array<TrafficCongestionInterval>;
4076
+ };
4060
4077
  /** Type of a route details leg section. */
4061
4078
  export declare enum RouteDetailsLegSectionType {
4062
4079
  DRIVING = "driving",
@@ -4071,6 +4088,10 @@ export declare type RouteDetailsLegStation = {
4071
4088
  /** ID of the connector that was selected in a route. */
4072
4089
  connector_id: Scalars["ID"];
4073
4090
  };
4091
+ export declare type RouteDetailsLegTraffic = {
4092
+ /** [BETA] Traffic congestion intervals mapped to the polyline indices of the leg. */
4093
+ congestions: Array<TrafficCongestionInterval>;
4094
+ };
4074
4095
  /** Type of a leg. */
4075
4096
  export declare enum RouteDetailsLegType {
4076
4097
  /** This leg ends at a charging station and the vehicle must recharge. */
@@ -4086,6 +4107,25 @@ export declare enum RouteDetailsLegType {
4086
4107
  /** This leg ends at the destination, and is the last leg of the route. */
4087
4108
  FINAL = "final"
4088
4109
  }
4110
+ export declare type RouteDetailsLegWarning = {
4111
+ /** The code of the warning. */
4112
+ code: RouteDetailsLegWarningCode;
4113
+ };
4114
+ /** Types of warnings that can be encountered in a route leg. */
4115
+ export declare enum RouteDetailsLegWarningCode {
4116
+ /** The via location cannot be reached by vehicle. */
4117
+ VIA_NOT_VEHICLE_ACCESSIBLE = "via_not_vehicle_accessible",
4118
+ /** The leg could not use stations from the preferred operator(s). */
4119
+ OPERATORS_PREFERRED_NOT_AVAILABLE = "operators_preferred_not_available",
4120
+ /** Vehicle's load may exceed the maximum supported weight of the vehicle. */
4121
+ MAXIMUM_WEIGHT_EXCEEDED = "maximum_weight_exceeded",
4122
+ /** The leg includes sections requested to be avoided. */
4123
+ SEGMENT_UNAVOIDABLE = "segment_unavoidable",
4124
+ /** The charging station used in the leg has limited opening hours. */
4125
+ STATION_LIMITED_OPEN_HOURS = "station_limited_open_hours",
4126
+ /** The specified stop duration at the via charging station is insufficient to start a charging session. */
4127
+ VIA_INSUFFICIENT_CHARGING_TIME = "via_insufficient_charging_time"
4128
+ }
4089
4129
  export declare type RouteDetailsManeuver = {
4090
4130
  /** Type of instruction. */
4091
4131
  type: RouteDetailsLegManeuverType;
@@ -4173,6 +4213,12 @@ export declare enum RouteDetailsTag {
4173
4213
  WALKING = "walking",
4174
4214
  CROSSBORDER = "crossborder"
4175
4215
  }
4216
+ export declare type RouteDetailsTraffic = {
4217
+ /** [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. */
4218
+ delay: Scalars["Int"];
4219
+ /** [BETA] Traffic congestion intervals mapped to the polyline indices of the leg. */
4220
+ congestions: Array<Maybe<TrafficCongestionInterval>>;
4221
+ };
4176
4222
  export declare type RouteDrivingPreferences = {
4177
4223
  /** [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'. */
4178
4224
  speed_factor?: Maybe<Scalars["Float"]>;
@@ -4908,7 +4954,7 @@ export declare type RouteOperatorPreferencesRanking = {
4908
4954
  levels?: Maybe<RouteOperatorPreferencesRankingLevels>;
4909
4955
  };
4910
4956
  export declare type RouteOperatorPreferencesRankingInput = {
4911
- /** Ranking enforcement type: preferred (applies ranking levels), required (routes only via ranked operators), or none (no ranking applied). */
4957
+ /** Determines how operator preferences are applied to stations during route calculation. If no ranking is provided through 'levels' or project settings, no operator preference is applied. */
4912
4958
  type: RouteOperatorsType;
4913
4959
  /** Priority levels for operator ranking. If not specified, applies the specified enforcement type to the project-configured operator ranking. */
4914
4960
  levels?: Maybe<RouteOperatorPreferencesRankingLevelsInput>;
@@ -5509,6 +5555,29 @@ export declare type RouteViaPropertiesInput = {
5509
5555
  /** Specifies a charging station at the via. If a known station is provided, it will be used as charging stop. Any configured operator preferences are ignored for this stop. */
5510
5556
  station?: Maybe<RoutePropertiesStationInput>;
5511
5557
  };
5558
+ export declare type RouteWarning = {
5559
+ /** The code of the warning. */
5560
+ code: RouteWarningCode;
5561
+ };
5562
+ /** Types of warnings that can be encountered in a route. */
5563
+ export declare enum RouteWarningCode {
5564
+ /** The selected vehicle model is unavailable on one or more regions along the route. */
5565
+ EV_UNAVAILABLE_IN_REGION = "ev_unavailable_in_region",
5566
+ /** Route excludes charging stations as a hybrid vehicle does not require external charging. */
5567
+ HEV_NO_CHARGING_STATIONS = "hev_no_charging_stations",
5568
+ /** Route is calculated using only the battery range of the extended-range vehicle. */
5569
+ EREV_BATTERY_ONLY_RANGE = "erev_battery_only_range",
5570
+ /** The origin location cannot be reached by vehicle and requires a walking section to reach the point. */
5571
+ ORIGIN_NOT_VEHICLE_ACCESSIBLE = "origin_not_vehicle_accessible",
5572
+ /** The destination location cannot be reached by vehicle and requires a walking section to reach the point. */
5573
+ DESTINATION_NOT_VEHICLE_ACCESSIBLE = "destination_not_vehicle_accessible",
5574
+ /** The requested final state of charge cannot be achieved. */
5575
+ FINAL_SOC_NOT_POSSIBLE = "final_soc_not_possible",
5576
+ /** The set maximum speed is too low (below 50 km/h) and may result in an inefficient route. */
5577
+ LOW_SPEED = "low_speed",
5578
+ /** Operator preferences were ignored because they have not been configured for this project nor provided in the route create request. */
5579
+ OPERATOR_PREFERENCES_NOT_FOUND = "operator_preferences_not_found"
5580
+ }
5512
5581
  export declare type RouteWeather = {
5513
5582
  /** Weather configuration applied to the route. */
5514
5583
  type: WeatherType;
@@ -5686,18 +5755,8 @@ export declare type Station = {
5686
5755
  properties?: Maybe<Scalars["JSON"]>;
5687
5756
  /** A flag that indicates if a station has real-time information about the availability of its connectors. */
5688
5757
  realtime?: Maybe<Scalars["Boolean"]>;
5689
- /**
5690
- * A flag that indicates if a station is on private property.
5691
- * @deprecated In favor of access_type.
5692
- */
5693
- private?: Maybe<Scalars["Boolean"]>;
5694
5758
  /** Connectors grouped by power. */
5695
5759
  power?: Maybe<Scalars["JSON"]>;
5696
- /**
5697
- * Station availability.
5698
- * @deprecated predicted_availability, no value will be sent. Deprecated in favor of predicted_occupancy.
5699
- */
5700
- predicted_availability?: Maybe<Array<Maybe<StationPredictedAvailability>>>;
5701
5760
  /** Predicted station occupancy. */
5702
5761
  predicted_occupancy?: Maybe<Array<Maybe<StationPredictedOccupancy>>>;
5703
5762
  /** Charging speed for a station. */
@@ -5784,41 +5843,11 @@ export declare type StationAroundQuery = {
5784
5843
  amenities?: Maybe<Array<Maybe<Scalars["String"]>>>;
5785
5844
  };
5786
5845
  export declare type StationCustomProperties = {
5787
- /**
5788
- * List of eMSP cards accepted at a charging station.
5789
- * @deprecated In favor of station.roaming.
5790
- */
5791
- roaming?: Maybe<Array<Maybe<StationRoaming>>>;
5792
- /**
5793
- * Phone number for assistance at a charging station.
5794
- * @deprecated In favor of station.support_phone_number.
5795
- */
5796
- support_phone_number?: Maybe<Scalars["String"]>;
5797
- /**
5798
- * Charging behavior of a station.
5799
- * @deprecated In favor of station.charging_behaviour.
5800
- */
5801
- charging_behaviour?: Maybe<ChargingBehaviour>;
5802
5846
  /**
5803
5847
  * Shows how reliable a charging station is (1 to 5; 1 = unreliable, 5 = reliable), taking into account the charging behaviour history and error values.
5804
5848
  * @deprecated In favor of station.reliability_score.
5805
5849
  */
5806
5850
  reliability_score?: Maybe<Scalars["Int"]>;
5807
- /**
5808
- * List of available ad hoc payment methods.
5809
- * @deprecated In favor of station.adhoc_authorisation_payment_method.
5810
- */
5811
- adhoc_authorisation_method?: Maybe<Array<Maybe<AdhocAuthorisationMethod>>>;
5812
- /**
5813
- * Predicted station occupancy.
5814
- * @deprecated In favor of station.predicted_occupancy.
5815
- */
5816
- predicted_occupancy?: Maybe<Array<Maybe<StationPredictedOccupancy>>>;
5817
- /**
5818
- * Type of access to the charging station.
5819
- * @deprecated In favor of station.access_type.
5820
- */
5821
- access_type?: Maybe<AccessType>;
5822
5851
  /** Custom station properties for OICP databases such as the global Hubject database. Station databases that not follow the OICP standard return null values. */
5823
5852
  oicp?: Maybe<OICPStationCustomProperties>;
5824
5853
  };
@@ -6219,6 +6248,14 @@ export declare type TotalOccupantWeightInput = {
6219
6248
  /** Source of inputted data, defaults to 'manual'. */
6220
6249
  source?: Maybe<TelemetryInputSource>;
6221
6250
  };
6251
+ export declare type TrafficCongestionInterval = {
6252
+ /** Starting index of this interval in the polyline. */
6253
+ start_index: Scalars["Int"];
6254
+ /** Ending index of this interval in the polyline. */
6255
+ end_index: Scalars["Int"];
6256
+ /** Congestion level for this specific interval. */
6257
+ level: CongestionLevel;
6258
+ };
6222
6259
  export declare enum TurningCircleUnit {
6223
6260
  /** Return the turning circle in meters. */
6224
6261
  METER = "meter",
@@ -6698,11 +6735,6 @@ export declare type VehiclePremium = {
6698
6735
  body: VehiclePremiumBody;
6699
6736
  /** Availability of the vehicle. */
6700
6737
  availability: VehiclePremiumAvailability;
6701
- /**
6702
- * Pricing of the vehicle.
6703
- * @deprecated In favor of pricing.
6704
- */
6705
- price: VehiclePremiumPrice;
6706
6738
  /** Starting price in the currency defined in the field argument. If not defined, it will return the starting price in the currency returned in the currency field. */
6707
6739
  pricing: VehiclePremiumPriceValueWithGrant;
6708
6740
  /** Drivetrain of the vehicle. */
@@ -6800,11 +6832,6 @@ export declare type VehiclePremiumBody = {
6800
6832
  weight_is_estimated?: Maybe<Scalars["Boolean"]>;
6801
6833
  /** Maximum payload allowed for the vehicle. */
6802
6834
  weight_max_payload?: Maybe<Scalars["Float"]>;
6803
- /**
6804
- * Gross Vehicle Weight (GVWR) - (max allowed vehicle weight with payload).
6805
- * @deprecated In favor of weight_gvwr.nominal
6806
- */
6807
- max_gross_vehicle_weight?: Maybe<Scalars["Float"]>;
6808
6835
  /** Standard luggage capacity. */
6809
6836
  boot_capacity?: Maybe<Scalars["Float"]>;
6810
6837
  /** Storage capacity of front trunk/under the hood (frunk). */
@@ -6859,9 +6886,6 @@ export declare type VehiclePremiumBodyground_clearanceArgs = {
6859
6886
  export declare type VehiclePremiumBodyweight_max_payloadArgs = {
6860
6887
  unit?: Maybe<WeightUnit>;
6861
6888
  };
6862
- export declare type VehiclePremiumBodymax_gross_vehicle_weightArgs = {
6863
- unit?: Maybe<WeightUnit>;
6864
- };
6865
6889
  export declare type VehiclePremiumBodyboot_capacityArgs = {
6866
6890
  unit?: Maybe<VolumeUnit>;
6867
6891
  };
@@ -7368,37 +7392,10 @@ export declare type VehiclePremiumRoutingfuel_consumptionArgs = {
7368
7392
  export declare type VehiclePremiumRoutingConsumption = {
7369
7393
  /** The amount of energy, in kWh, used by the auxiliary systems of the vehicle in an hour, like media box, etc */
7370
7394
  auxiliary?: Maybe<Scalars["Float"]>;
7371
- /**
7372
- * Consumption, in kWh, of the auxiliaries.
7373
- * @deprecated In favor of auxiliary
7374
- */
7375
- aux?: Maybe<VehiclePremiumRoutingConsumptionValue>;
7376
- /**
7377
- * Consumption, in kWh, of the battery management system.
7378
- * @deprecated In favor of auxiliary
7379
- */
7380
- bms?: Maybe<VehiclePremiumRoutingConsumptionValue>;
7381
- /**
7382
- * Consumption, in kWh, of the vehicle in idle mode.
7383
- * @deprecated In favor of auxiliary
7384
- */
7385
- idle?: Maybe<VehiclePremiumRoutingConsumptionValue>;
7386
7395
  };
7387
7396
  export declare type VehiclePremiumRoutingConsumptionauxiliaryArgs = {
7388
7397
  unit?: Maybe<AuxiliaryConsumptionUnit>;
7389
7398
  };
7390
- export declare type VehiclePremiumRoutingConsumptionValue = {
7391
- /** Best (lowest) consumption in summer. */
7392
- best?: Maybe<Scalars["Float"]>;
7393
- /** Best (lowest) consumption in winter. */
7394
- worst?: Maybe<Scalars["Float"]>;
7395
- };
7396
- export declare type VehiclePremiumRoutingConsumptionValuebestArgs = {
7397
- unit?: Maybe<ConsumptionUnit>;
7398
- };
7399
- export declare type VehiclePremiumRoutingConsumptionValueworstArgs = {
7400
- unit?: Maybe<ConsumptionUnit>;
7401
- };
7402
7399
  export declare type VehiclePremiumSafety = {
7403
7400
  /** Number of seats equipped with ISOFIX. */
7404
7401
  isofix_seats?: Maybe<Scalars["Int"]>;