@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chargetrip/types",
3
- "version": "1.47.2",
3
+ "version": "1.49.0",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "chargetrip",
package/src/graphql.ts CHANGED
@@ -146,7 +146,9 @@ export enum Amenities {
146
146
  BATHROOM = "bathroom",
147
147
  SUPERMARKET = "supermarket",
148
148
  PLAYGROUND = "playground",
149
- PHARMACY = "pharmacy"
149
+ PHARMACY = "pharmacy",
150
+ BAKERY = "bakery",
151
+ CONVENIENCE_STORE = "convenience_store"
150
152
  }
151
153
 
152
154
  /** Amenity data. */
@@ -164,7 +166,7 @@ export type Amenity = {
164
166
  /** ID provided by an amenity data source as the row ID. */
165
167
  external_id: Scalars["String"];
166
168
  /** Name of the amenity. */
167
- name?: Maybe<Scalars["String"]>;
169
+ name: Scalars["String"];
168
170
  /** Geo location coordinates. This is a GeoJSON Point. */
169
171
  location: Point;
170
172
  /** Address of the amenity. */
@@ -269,7 +271,9 @@ export enum AmenityType {
269
271
  BATHROOM = "bathroom",
270
272
  SUPERMARKET = "supermarket",
271
273
  PLAYGROUND = "playground",
272
- PHARMACY = "pharmacy"
274
+ PHARMACY = "pharmacy",
275
+ BAKERY = "bakery",
276
+ CONVENIENCE_STORE = "convenience_store"
273
277
  }
274
278
 
275
279
  /** Type of wheelchair accessibility at the amenity. */
@@ -503,6 +507,17 @@ export enum ChargingBehaviourCode {
503
507
  OFFICE_CHARGING = "OFFICE_CHARGING"
504
508
  }
505
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
+
506
521
  export type Connect = {
507
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. */
508
523
  providers?: Maybe<Array<ConnectProvider>>;
@@ -1276,6 +1291,8 @@ export type CreateRoute = {
1276
1291
  weather?: Maybe<RouteWeather>;
1277
1292
  /** Charging stations preferences for route calculation. */
1278
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"]>;
1279
1296
  };
1280
1297
 
1281
1298
  /** Input for the create route mutation. */
@@ -1304,6 +1321,8 @@ export type CreateRouteInput = {
1304
1321
  station_preferences?: Maybe<RouteStationPreferencesInput>;
1305
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. */
1306
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"]>;
1307
1326
  };
1308
1327
 
1309
1328
  /** Currency in the ISO 4217 format. */
@@ -3880,21 +3899,6 @@ export type ReviewTagsInput = {
3880
3899
  export type ReviewUser = {
3881
3900
  /** User full name. If a review was added by an anonymous user, this will be null. */
3882
3901
  name?: Maybe<Scalars["String"]>;
3883
- /**
3884
- * User ID.
3885
- * @deprecated Not sent back anymore, will be null
3886
- */
3887
- id?: Maybe<Scalars["ID"]>;
3888
- /**
3889
- * First name.
3890
- * @deprecated In favor of name.
3891
- */
3892
- firstName?: Maybe<Scalars["String"]>;
3893
- /**
3894
- * Last name.
3895
- * @deprecated In favor of name
3896
- */
3897
- lastName?: Maybe<Scalars["String"]>;
3898
3902
  };
3899
3903
 
3900
3904
  export type Route = {
@@ -4106,6 +4110,10 @@ export type RouteDetails = {
4106
4110
  tags: Array<RouteDetailsTag>;
4107
4111
  /** Number of charging stops required for this route. */
4108
4112
  charges: Scalars["Int"];
4113
+ /** [BETA] Warnings that certain conditions specified in a route mutation are not respected. */
4114
+ warnings?: Maybe<Array<RouteWarning>>;
4115
+ /** [BETA] Information regarding traffic conditions along the route. Available for routes created with traffic_aware set. */
4116
+ traffic?: Maybe<RouteDetailsTraffic>;
4109
4117
  };
4110
4118
 
4111
4119
  export type RouteDetailsdistanceArgs = {
@@ -4228,6 +4236,10 @@ export type RouteDetailsLeg = {
4228
4236
  maneuvers: Array<RouteDetailsManeuver>;
4229
4237
  /** Road sections of a leg - divided by means of transportation. */
4230
4238
  sections: Array<RouteDetailsLegSection>;
4239
+ /** [BETA] Warnings that certain conditions specified in a route mutation are not respected. */
4240
+ warnings?: Maybe<Array<RouteDetailsLegWarning>>;
4241
+ /** [BETA] Information regarding traffic conditions along the route's leg . Available for routes created with traffic_aware set to true. */
4242
+ traffic?: Maybe<RouteDetailsLegTraffic>;
4231
4243
  };
4232
4244
 
4233
4245
  /** Leg of a route detail. */
@@ -4354,6 +4366,8 @@ export type RouteDetailsLegSection = {
4354
4366
  duration: Scalars["Float"];
4355
4367
  /** Total energy used in a section in kilowatt-hours. The value will be 0 for walking sections. */
4356
4368
  consumption?: Maybe<Scalars["Float"]>;
4369
+ /** [BETA] Information regarding traffic conditions along the leg's section. Available for routes created with traffic_aware set to true. */
4370
+ traffic?: Maybe<RouteDetailsLegSectionTraffic>;
4357
4371
  };
4358
4372
 
4359
4373
  export type RouteDetailsLegSectionpolylineArgs = {
@@ -4392,6 +4406,11 @@ export type RouteDetailsLegSectionFeaturePointPropertiestotal_cargo_weightArgs =
4392
4406
  unit?: Maybe<WeightUnit>;
4393
4407
  };
4394
4408
 
4409
+ export type RouteDetailsLegSectionTraffic = {
4410
+ /** [BETA] Traffic congestion intervals mapped to the polyline indices of the leg's section. */
4411
+ congestions: Array<TrafficCongestionInterval>;
4412
+ };
4413
+
4395
4414
  /** Type of a route details leg section. */
4396
4415
  export enum RouteDetailsLegSectionType {
4397
4416
  DRIVING = "driving",
@@ -4408,6 +4427,11 @@ export type RouteDetailsLegStation = {
4408
4427
  connector_id: Scalars["ID"];
4409
4428
  };
4410
4429
 
4430
+ export type RouteDetailsLegTraffic = {
4431
+ /** [BETA] Traffic congestion intervals mapped to the polyline indices of the leg. */
4432
+ congestions: Array<TrafficCongestionInterval>;
4433
+ };
4434
+
4411
4435
  /** Type of a leg. */
4412
4436
  export enum RouteDetailsLegType {
4413
4437
  /** This leg ends at a charging station and the vehicle must recharge. */
@@ -4424,6 +4448,27 @@ export enum RouteDetailsLegType {
4424
4448
  FINAL = "final"
4425
4449
  }
4426
4450
 
4451
+ export type RouteDetailsLegWarning = {
4452
+ /** The code of the warning. */
4453
+ code: RouteDetailsLegWarningCode;
4454
+ };
4455
+
4456
+ /** Types of warnings that can be encountered in a route leg. */
4457
+ export enum RouteDetailsLegWarningCode {
4458
+ /** The via location cannot be reached by vehicle. */
4459
+ VIA_NOT_VEHICLE_ACCESSIBLE = "via_not_vehicle_accessible",
4460
+ /** The leg could not use stations from the preferred operator(s). */
4461
+ OPERATORS_PREFERRED_NOT_AVAILABLE = "operators_preferred_not_available",
4462
+ /** Vehicle's load may exceed the maximum supported weight of the vehicle. */
4463
+ MAXIMUM_WEIGHT_EXCEEDED = "maximum_weight_exceeded",
4464
+ /** The leg includes sections requested to be avoided. */
4465
+ SEGMENT_UNAVOIDABLE = "segment_unavoidable",
4466
+ /** The charging station used in the leg has limited opening hours. */
4467
+ STATION_LIMITED_OPEN_HOURS = "station_limited_open_hours",
4468
+ /** The specified stop duration at the via charging station is insufficient to start a charging session. */
4469
+ VIA_INSUFFICIENT_CHARGING_TIME = "via_insufficient_charging_time"
4470
+ }
4471
+
4427
4472
  export type RouteDetailsManeuver = {
4428
4473
  /** Type of instruction. */
4429
4474
  type: RouteDetailsLegManeuverType;
@@ -4524,6 +4569,13 @@ export enum RouteDetailsTag {
4524
4569
  CROSSBORDER = "crossborder"
4525
4570
  }
4526
4571
 
4572
+ export type RouteDetailsTraffic = {
4573
+ /** [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. */
4574
+ delay: Scalars["Int"];
4575
+ /** [BETA] Traffic congestion intervals mapped to the polyline indices of the leg. */
4576
+ congestions: Array<Maybe<TrafficCongestionInterval>>;
4577
+ };
4578
+
4527
4579
  export type RouteDrivingPreferences = {
4528
4580
  /** [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'. */
4529
4581
  speed_factor?: Maybe<Scalars["Float"]>;
@@ -5352,7 +5404,7 @@ export type RouteOperatorPreferencesRanking = {
5352
5404
  };
5353
5405
 
5354
5406
  export type RouteOperatorPreferencesRankingInput = {
5355
- /** Ranking enforcement type: preferred (applies ranking levels), required (routes only via ranked operators), or none (no ranking applied). */
5407
+ /** 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. */
5356
5408
  type: RouteOperatorsType;
5357
5409
  /** Priority levels for operator ranking. If not specified, applies the specified enforcement type to the project-configured operator ranking. */
5358
5410
  levels?: Maybe<RouteOperatorPreferencesRankingLevelsInput>;
@@ -6017,6 +6069,31 @@ export type RouteViaPropertiesInput = {
6017
6069
  station?: Maybe<RoutePropertiesStationInput>;
6018
6070
  };
6019
6071
 
6072
+ export type RouteWarning = {
6073
+ /** The code of the warning. */
6074
+ code: RouteWarningCode;
6075
+ };
6076
+
6077
+ /** Types of warnings that can be encountered in a route. */
6078
+ export enum RouteWarningCode {
6079
+ /** The selected vehicle model is unavailable on one or more regions along the route. */
6080
+ EV_UNAVAILABLE_IN_REGION = "ev_unavailable_in_region",
6081
+ /** Route excludes charging stations as a hybrid vehicle does not require external charging. */
6082
+ HEV_NO_CHARGING_STATIONS = "hev_no_charging_stations",
6083
+ /** Route is calculated using only the battery range of the extended-range vehicle. */
6084
+ EREV_BATTERY_ONLY_RANGE = "erev_battery_only_range",
6085
+ /** The origin location cannot be reached by vehicle and requires a walking section to reach the point. */
6086
+ ORIGIN_NOT_VEHICLE_ACCESSIBLE = "origin_not_vehicle_accessible",
6087
+ /** The destination location cannot be reached by vehicle and requires a walking section to reach the point. */
6088
+ DESTINATION_NOT_VEHICLE_ACCESSIBLE = "destination_not_vehicle_accessible",
6089
+ /** The requested final state of charge cannot be achieved. */
6090
+ FINAL_SOC_NOT_POSSIBLE = "final_soc_not_possible",
6091
+ /** The set maximum speed is too low (below 50 km/h) and may result in an inefficient route. */
6092
+ LOW_SPEED = "low_speed",
6093
+ /** Operator preferences were ignored because they have not been configured for this project nor provided in the route create request. */
6094
+ OPERATOR_PREFERENCES_NOT_FOUND = "operator_preferences_not_found"
6095
+ }
6096
+
6020
6097
  export type RouteWeather = {
6021
6098
  /** Weather configuration applied to the route. */
6022
6099
  type: WeatherType;
@@ -6207,18 +6284,8 @@ export type Station = {
6207
6284
  properties?: Maybe<Scalars["JSON"]>;
6208
6285
  /** A flag that indicates if a station has real-time information about the availability of its connectors. */
6209
6286
  realtime?: Maybe<Scalars["Boolean"]>;
6210
- /**
6211
- * A flag that indicates if a station is on private property.
6212
- * @deprecated In favor of access_type.
6213
- */
6214
- private?: Maybe<Scalars["Boolean"]>;
6215
6287
  /** Connectors grouped by power. */
6216
6288
  power?: Maybe<Scalars["JSON"]>;
6217
- /**
6218
- * Station availability.
6219
- * @deprecated predicted_availability, no value will be sent. Deprecated in favor of predicted_occupancy.
6220
- */
6221
- predicted_availability?: Maybe<Array<Maybe<StationPredictedAvailability>>>;
6222
6289
  /** Predicted station occupancy. */
6223
6290
  predicted_occupancy?: Maybe<Array<Maybe<StationPredictedOccupancy>>>;
6224
6291
  /** Charging speed for a station. */
@@ -6311,41 +6378,11 @@ export type StationAroundQuery = {
6311
6378
  };
6312
6379
 
6313
6380
  export type StationCustomProperties = {
6314
- /**
6315
- * List of eMSP cards accepted at a charging station.
6316
- * @deprecated In favor of station.roaming.
6317
- */
6318
- roaming?: Maybe<Array<Maybe<StationRoaming>>>;
6319
- /**
6320
- * Phone number for assistance at a charging station.
6321
- * @deprecated In favor of station.support_phone_number.
6322
- */
6323
- support_phone_number?: Maybe<Scalars["String"]>;
6324
- /**
6325
- * Charging behavior of a station.
6326
- * @deprecated In favor of station.charging_behaviour.
6327
- */
6328
- charging_behaviour?: Maybe<ChargingBehaviour>;
6329
6381
  /**
6330
6382
  * Shows how reliable a charging station is (1 to 5; 1 = unreliable, 5 = reliable), taking into account the charging behaviour history and error values.
6331
6383
  * @deprecated In favor of station.reliability_score.
6332
6384
  */
6333
6385
  reliability_score?: Maybe<Scalars["Int"]>;
6334
- /**
6335
- * List of available ad hoc payment methods.
6336
- * @deprecated In favor of station.adhoc_authorisation_payment_method.
6337
- */
6338
- adhoc_authorisation_method?: Maybe<Array<Maybe<AdhocAuthorisationMethod>>>;
6339
- /**
6340
- * Predicted station occupancy.
6341
- * @deprecated In favor of station.predicted_occupancy.
6342
- */
6343
- predicted_occupancy?: Maybe<Array<Maybe<StationPredictedOccupancy>>>;
6344
- /**
6345
- * Type of access to the charging station.
6346
- * @deprecated In favor of station.access_type.
6347
- */
6348
- access_type?: Maybe<AccessType>;
6349
6386
  /** Custom station properties for OICP databases such as the global Hubject database. Station databases that not follow the OICP standard return null values. */
6350
6387
  oicp?: Maybe<OICPStationCustomProperties>;
6351
6388
  };
@@ -6797,6 +6834,15 @@ export type TotalOccupantWeightInput = {
6797
6834
  source?: Maybe<TelemetryInputSource>;
6798
6835
  };
6799
6836
 
6837
+ export type TrafficCongestionInterval = {
6838
+ /** Starting index of this interval in the polyline. */
6839
+ start_index: Scalars["Int"];
6840
+ /** Ending index of this interval in the polyline. */
6841
+ end_index: Scalars["Int"];
6842
+ /** Congestion level for this specific interval. */
6843
+ level: CongestionLevel;
6844
+ };
6845
+
6800
6846
  export enum TurningCircleUnit {
6801
6847
  /** Return the turning circle in meters. */
6802
6848
  METER = "meter",
@@ -7327,11 +7373,6 @@ export type VehiclePremium = {
7327
7373
  body: VehiclePremiumBody;
7328
7374
  /** Availability of the vehicle. */
7329
7375
  availability: VehiclePremiumAvailability;
7330
- /**
7331
- * Pricing of the vehicle.
7332
- * @deprecated In favor of pricing.
7333
- */
7334
- price: VehiclePremiumPrice;
7335
7376
  /** 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. */
7336
7377
  pricing: VehiclePremiumPriceValueWithGrant;
7337
7378
  /** Drivetrain of the vehicle. */
@@ -7433,11 +7474,6 @@ export type VehiclePremiumBody = {
7433
7474
  weight_is_estimated?: Maybe<Scalars["Boolean"]>;
7434
7475
  /** Maximum payload allowed for the vehicle. */
7435
7476
  weight_max_payload?: Maybe<Scalars["Float"]>;
7436
- /**
7437
- * Gross Vehicle Weight (GVWR) - (max allowed vehicle weight with payload).
7438
- * @deprecated In favor of weight_gvwr.nominal
7439
- */
7440
- max_gross_vehicle_weight?: Maybe<Scalars["Float"]>;
7441
7477
  /** Standard luggage capacity. */
7442
7478
  boot_capacity?: Maybe<Scalars["Float"]>;
7443
7479
  /** Storage capacity of front trunk/under the hood (frunk). */
@@ -7500,10 +7536,6 @@ export type VehiclePremiumBodyweight_max_payloadArgs = {
7500
7536
  unit?: Maybe<WeightUnit>;
7501
7537
  };
7502
7538
 
7503
- export type VehiclePremiumBodymax_gross_vehicle_weightArgs = {
7504
- unit?: Maybe<WeightUnit>;
7505
- };
7506
-
7507
7539
  export type VehiclePremiumBodyboot_capacityArgs = {
7508
7540
  unit?: Maybe<VolumeUnit>;
7509
7541
  };
@@ -8090,42 +8122,12 @@ export type VehiclePremiumRoutingfuel_consumptionArgs = {
8090
8122
  export type VehiclePremiumRoutingConsumption = {
8091
8123
  /** The amount of energy, in kWh, used by the auxiliary systems of the vehicle in an hour, like media box, etc */
8092
8124
  auxiliary?: Maybe<Scalars["Float"]>;
8093
- /**
8094
- * Consumption, in kWh, of the auxiliaries.
8095
- * @deprecated In favor of auxiliary
8096
- */
8097
- aux?: Maybe<VehiclePremiumRoutingConsumptionValue>;
8098
- /**
8099
- * Consumption, in kWh, of the battery management system.
8100
- * @deprecated In favor of auxiliary
8101
- */
8102
- bms?: Maybe<VehiclePremiumRoutingConsumptionValue>;
8103
- /**
8104
- * Consumption, in kWh, of the vehicle in idle mode.
8105
- * @deprecated In favor of auxiliary
8106
- */
8107
- idle?: Maybe<VehiclePremiumRoutingConsumptionValue>;
8108
8125
  };
8109
8126
 
8110
8127
  export type VehiclePremiumRoutingConsumptionauxiliaryArgs = {
8111
8128
  unit?: Maybe<AuxiliaryConsumptionUnit>;
8112
8129
  };
8113
8130
 
8114
- export type VehiclePremiumRoutingConsumptionValue = {
8115
- /** Best (lowest) consumption in summer. */
8116
- best?: Maybe<Scalars["Float"]>;
8117
- /** Best (lowest) consumption in winter. */
8118
- worst?: Maybe<Scalars["Float"]>;
8119
- };
8120
-
8121
- export type VehiclePremiumRoutingConsumptionValuebestArgs = {
8122
- unit?: Maybe<ConsumptionUnit>;
8123
- };
8124
-
8125
- export type VehiclePremiumRoutingConsumptionValueworstArgs = {
8126
- unit?: Maybe<ConsumptionUnit>;
8127
- };
8128
-
8129
8131
  export type VehiclePremiumSafety = {
8130
8132
  /** Number of seats equipped with ISOFIX. */
8131
8133
  isofix_seats?: Maybe<Scalars["Int"]>;