@chargetrip/types 1.56.0 → 1.58.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.
@@ -4083,7 +4083,7 @@ export declare type RouteDetails = {
4083
4083
  charges: Scalars["Int"];
4084
4084
  /** [BETA] Warnings that certain conditions specified in a route mutation are not respected. */
4085
4085
  warnings?: Maybe<Array<RouteWarning>>;
4086
- /** [BETA] Information regarding traffic conditions along the route. Available for routes created with traffic_aware set. */
4086
+ /** [BETA] Traffic conditions along the route. Only returns data if `traffic_aware` is set to true in the `createRoute` mutation. */
4087
4087
  traffic?: Maybe<RouteDetailsTraffic>;
4088
4088
  };
4089
4089
  export declare type RouteDetailsdistanceArgs = {
@@ -4117,7 +4117,7 @@ export declare type RouteDetailsDurations = {
4117
4117
  total: Scalars["Int"];
4118
4118
  /** Total charging duration, in seconds. */
4119
4119
  charging: Scalars["Int"];
4120
- /** Total driving duration, in seconds. */
4120
+ /** Total driving duration, in seconds. Takes into account traffic congestion when `traffic_aware` is set to true in the `createRoute` mutation. */
4121
4121
  driving: Scalars["Int"];
4122
4122
  /** Total duration stopped at a location via or at a station via, excluding charging time and charging penalty, in seconds. */
4123
4123
  stopover: Scalars["Int"];
@@ -4194,7 +4194,7 @@ export declare type RouteDetailsLeg = {
4194
4194
  sections: Array<RouteDetailsLegSection>;
4195
4195
  /** [BETA] Warnings that certain conditions specified in a route mutation are not respected. */
4196
4196
  warnings?: Maybe<Array<RouteDetailsLegWarning>>;
4197
- /** [BETA] Information regarding traffic conditions along the route's leg . Available for routes created with traffic_aware set to true. */
4197
+ /** [BETA] Traffic conditions along the leg. Only returns data if `traffic_aware` is set to true in the `createRoute` mutation. */
4198
4198
  traffic?: Maybe<RouteDetailsLegTraffic>;
4199
4199
  };
4200
4200
  /** Leg of a route detail. */
@@ -4402,7 +4402,13 @@ export declare enum RouteDetailsLegWarningCode {
4402
4402
  /** The leg's charging station is closing within 45 minutes of the estimated time of arrival. */
4403
4403
  STATION_CLOSING_SOON = "station_closing_soon",
4404
4404
  /** The specified stop duration at the via charging station is insufficient to start a charging session. */
4405
- VIA_INSUFFICIENT_CHARGING_TIME = "via_insufficient_charging_time"
4405
+ VIA_INSUFFICIENT_CHARGING_TIME = "via_insufficient_charging_time",
4406
+ /** 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. */
4407
+ VIA_STATION_BELOW_MINIMUM_POWER = "via_station_below_minimum_power",
4408
+ /** The charging station at the destination does not have any connectors compatible with the selected vehicle. */
4409
+ DESTINATION_CHARGER_INCOMPATIBLE = "destination_charger_incompatible",
4410
+ /** The charging station at the destination is restricted to heavy-duty trucks. */
4411
+ DESTINATION_STATION_TRUCK_ONLY = "destination_station_truck_only"
4406
4412
  }
4407
4413
  export declare type RouteDetailsManeuver = {
4408
4414
  /** Type of instruction. */
@@ -5861,6 +5867,10 @@ export declare enum RouteWarningCode {
5861
5867
  OPERATOR_PREFERENCES_NOT_FOUND = "operator_preferences_not_found",
5862
5868
  /** Traffic data for this route is not available. */
5863
5869
  TRAFFIC_DATA_NOT_AVAILABLE = "traffic_data_not_available",
5870
+ /** Not possible to fetch weather data for a departure time further than 4 days in the future. Current weather used as alternative. */
5871
+ WEATHER_FORECAST_NOT_AVAILABLE = "weather_forecast_not_available",
5872
+ /** Not possible to fetch weather data for a departure time longer than 2 years ago. Current weather used as an alternative. */
5873
+ WEATHER_HISTORY_NOT_AVAILABLE = "weather_history_not_available",
5864
5874
  /** One or more preferred, excluded, or avoided operators have no active stations available and were ignored. */
5865
5875
  OPERATORS_IGNORED = "operators_ignored"
5866
5876
  }
@@ -7066,9 +7076,9 @@ export declare type VehiclePremiumBattery = {
7066
7076
  estimated_fields?: Maybe<VehicleBatteryFieldEstimations>;
7067
7077
  /** Battery thermal management system (active/passive, air/liquid). */
7068
7078
  thermal_management_system?: Maybe<Scalars["String"]>;
7069
- /** Duration of battery warranty. */
7079
+ /** Duration of battery warranty in years. */
7070
7080
  warranty_period?: Maybe<Scalars["Float"]>;
7071
- /** Mileage of battery warranty. */
7081
+ /** Mileage of battery warranty in kilometers. */
7072
7082
  warranty_mileage?: Maybe<Scalars["Float"]>;
7073
7083
  /** Chemistry of the battery. */
7074
7084
  chemistry?: Maybe<Scalars["String"]>;
@@ -22295,7 +22295,7 @@
22295
22295
  },
22296
22296
  {
22297
22297
  "name": "traffic",
22298
- "description": "[BETA] Information regarding traffic conditions along the route. Available for routes created with traffic_aware set.",
22298
+ "description": "[BETA] Traffic conditions along the route. Only returns data if `traffic_aware` is set to true in the `createRoute` mutation.",
22299
22299
  "args": [],
22300
22300
  "type": {
22301
22301
  "kind": "OBJECT",
@@ -22449,7 +22449,7 @@
22449
22449
  },
22450
22450
  {
22451
22451
  "name": "driving",
22452
- "description": "Total driving duration, in seconds.",
22452
+ "description": "Total driving duration, in seconds. Takes into account traffic congestion when `traffic_aware` is set to true in the `createRoute` mutation.",
22453
22453
  "args": [],
22454
22454
  "type": {
22455
22455
  "kind": "NON_NULL",
@@ -23065,7 +23065,7 @@
23065
23065
  },
23066
23066
  {
23067
23067
  "name": "traffic",
23068
- "description": "[BETA] Information regarding traffic conditions along the route's leg . Available for routes created with traffic_aware set to true.",
23068
+ "description": "[BETA] Traffic conditions along the leg. Only returns data if `traffic_aware` is set to true in the `createRoute` mutation.",
23069
23069
  "args": [],
23070
23070
  "type": {
23071
23071
  "kind": "OBJECT",
@@ -24130,6 +24130,24 @@
24130
24130
  "description": "The specified stop duration at the via charging station is insufficient to start a charging session.",
24131
24131
  "isDeprecated": false,
24132
24132
  "deprecationReason": null
24133
+ },
24134
+ {
24135
+ "name": "via_station_below_minimum_power",
24136
+ "description": "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.",
24137
+ "isDeprecated": false,
24138
+ "deprecationReason": null
24139
+ },
24140
+ {
24141
+ "name": "destination_charger_incompatible",
24142
+ "description": "The charging station at the destination does not have any connectors compatible with the selected vehicle.",
24143
+ "isDeprecated": false,
24144
+ "deprecationReason": null
24145
+ },
24146
+ {
24147
+ "name": "destination_station_truck_only",
24148
+ "description": "The charging station at the destination is restricted to heavy-duty trucks.",
24149
+ "isDeprecated": false,
24150
+ "deprecationReason": null
24133
24151
  }
24134
24152
  ],
24135
24153
  "possibleTypes": null
@@ -32946,6 +32964,18 @@
32946
32964
  "isDeprecated": false,
32947
32965
  "deprecationReason": null
32948
32966
  },
32967
+ {
32968
+ "name": "weather_forecast_not_available",
32969
+ "description": "Not possible to fetch weather data for a departure time further than 4 days in the future. Current weather used as alternative.",
32970
+ "isDeprecated": false,
32971
+ "deprecationReason": null
32972
+ },
32973
+ {
32974
+ "name": "weather_history_not_available",
32975
+ "description": "Not possible to fetch weather data for a departure time longer than 2 years ago. Current weather used as an alternative.",
32976
+ "isDeprecated": false,
32977
+ "deprecationReason": null
32978
+ },
32949
32979
  {
32950
32980
  "name": "operators_ignored",
32951
32981
  "description": "One or more preferred, excluded, or avoided operators have no active stations available and were ignored.",
@@ -39868,7 +39898,7 @@
39868
39898
  },
39869
39899
  {
39870
39900
  "name": "warranty_period",
39871
- "description": "Duration of battery warranty.",
39901
+ "description": "Duration of battery warranty in years.",
39872
39902
  "args": [],
39873
39903
  "type": {
39874
39904
  "kind": "SCALAR",
@@ -39880,7 +39910,7 @@
39880
39910
  },
39881
39911
  {
39882
39912
  "name": "warranty_mileage",
39883
- "description": "Mileage of battery warranty.",
39913
+ "description": "Mileage of battery warranty in kilometers.",
39884
39914
  "args": [],
39885
39915
  "type": {
39886
39916
  "kind": "SCALAR",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chargetrip/types",
3
- "version": "1.56.0",
3
+ "version": "1.58.0",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "chargetrip",
package/src/graphql.ts CHANGED
@@ -4414,7 +4414,7 @@ export type RouteDetails = {
4414
4414
  charges: Scalars["Int"];
4415
4415
  /** [BETA] Warnings that certain conditions specified in a route mutation are not respected. */
4416
4416
  warnings?: Maybe<Array<RouteWarning>>;
4417
- /** [BETA] Information regarding traffic conditions along the route. Available for routes created with traffic_aware set. */
4417
+ /** [BETA] Traffic conditions along the route. Only returns data if `traffic_aware` is set to true in the `createRoute` mutation. */
4418
4418
  traffic?: Maybe<RouteDetailsTraffic>;
4419
4419
  };
4420
4420
 
@@ -4454,7 +4454,7 @@ export type RouteDetailsDurations = {
4454
4454
  total: Scalars["Int"];
4455
4455
  /** Total charging duration, in seconds. */
4456
4456
  charging: Scalars["Int"];
4457
- /** Total driving duration, in seconds. */
4457
+ /** Total driving duration, in seconds. Takes into account traffic congestion when `traffic_aware` is set to true in the `createRoute` mutation. */
4458
4458
  driving: Scalars["Int"];
4459
4459
  /** Total duration stopped at a location via or at a station via, excluding charging time and charging penalty, in seconds. */
4460
4460
  stopover: Scalars["Int"];
@@ -4540,7 +4540,7 @@ export type RouteDetailsLeg = {
4540
4540
  sections: Array<RouteDetailsLegSection>;
4541
4541
  /** [BETA] Warnings that certain conditions specified in a route mutation are not respected. */
4542
4542
  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. */
4543
+ /** [BETA] Traffic conditions along the leg. Only returns data if `traffic_aware` is set to true in the `createRoute` mutation. */
4544
4544
  traffic?: Maybe<RouteDetailsLegTraffic>;
4545
4545
  };
4546
4546
 
@@ -4774,7 +4774,13 @@ export enum RouteDetailsLegWarningCode {
4774
4774
  /** The leg's charging station is closing within 45 minutes of the estimated time of arrival. */
4775
4775
  STATION_CLOSING_SOON = "station_closing_soon",
4776
4776
  /** 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"
4777
+ VIA_INSUFFICIENT_CHARGING_TIME = "via_insufficient_charging_time",
4778
+ /** 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. */
4779
+ VIA_STATION_BELOW_MINIMUM_POWER = "via_station_below_minimum_power",
4780
+ /** The charging station at the destination does not have any connectors compatible with the selected vehicle. */
4781
+ DESTINATION_CHARGER_INCOMPATIBLE = "destination_charger_incompatible",
4782
+ /** The charging station at the destination is restricted to heavy-duty trucks. */
4783
+ DESTINATION_STATION_TRUCK_ONLY = "destination_station_truck_only"
4778
4784
  }
4779
4785
 
4780
4786
  export type RouteDetailsManeuver = {
@@ -6406,6 +6412,10 @@ export enum RouteWarningCode {
6406
6412
  OPERATOR_PREFERENCES_NOT_FOUND = "operator_preferences_not_found",
6407
6413
  /** Traffic data for this route is not available. */
6408
6414
  TRAFFIC_DATA_NOT_AVAILABLE = "traffic_data_not_available",
6415
+ /** Not possible to fetch weather data for a departure time further than 4 days in the future. Current weather used as alternative. */
6416
+ WEATHER_FORECAST_NOT_AVAILABLE = "weather_forecast_not_available",
6417
+ /** Not possible to fetch weather data for a departure time longer than 2 years ago. Current weather used as an alternative. */
6418
+ WEATHER_HISTORY_NOT_AVAILABLE = "weather_history_not_available",
6409
6419
  /** One or more preferred, excluded, or avoided operators have no active stations available and were ignored. */
6410
6420
  OPERATORS_IGNORED = "operators_ignored"
6411
6421
  }
@@ -7736,9 +7746,9 @@ export type VehiclePremiumBattery = {
7736
7746
  estimated_fields?: Maybe<VehicleBatteryFieldEstimations>;
7737
7747
  /** Battery thermal management system (active/passive, air/liquid). */
7738
7748
  thermal_management_system?: Maybe<Scalars["String"]>;
7739
- /** Duration of battery warranty. */
7749
+ /** Duration of battery warranty in years. */
7740
7750
  warranty_period?: Maybe<Scalars["Float"]>;
7741
- /** Mileage of battery warranty. */
7751
+ /** Mileage of battery warranty in kilometers. */
7742
7752
  warranty_mileage?: Maybe<Scalars["Float"]>;
7743
7753
  /** Chemistry of the battery. */
7744
7754
  chemistry?: Maybe<Scalars["String"]>;