@chargetrip/types 1.52.0 → 1.53.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.
@@ -1932,7 +1932,9 @@ export declare type IsolineInput = {
1932
1932
  heat_pump?: Maybe<HeatPumpMode>;
1933
1933
  /** Vehicle cabin configuration. */
1934
1934
  cabin?: Maybe<IsolineCabinInput>;
1935
- /** Season to be taken into account when generating the isoline. */
1935
+ /** Weather configuration for the isoline. Defined by a preset or custom weather conditions. If not specified, defaults to real-time weather data. */
1936
+ weather?: Maybe<IsolineWeatherInput>;
1937
+ /** Season to be taken into account when generating the isoline. If not specified, defaults to real-time weather data. */
1936
1938
  season?: Maybe<RouteSeason>;
1937
1939
  /** Polygons precision quality. */
1938
1940
  quality?: Maybe<IsolineQuality>;
@@ -1973,8 +1975,13 @@ export declare type IsolineRequestInput = {
1973
1975
  heat_pump?: Maybe<HeatPumpMode>;
1974
1976
  /** Vehicle cabin configuration. */
1975
1977
  cabin?: Maybe<IsolineCabin>;
1976
- /** Season taken into account when isoline was generated. */
1978
+ /**
1979
+ * Season taken into account when isoline was generated.
1980
+ * @deprecated In favor of weather.
1981
+ */
1977
1982
  season?: Maybe<RouteSeason>;
1983
+ /** Weather configuration for the isoline. Defined by a preset or custom weather conditions. */
1984
+ weather?: Maybe<IsolineWeather>;
1978
1985
  /** Polygons precision quality. */
1979
1986
  quality?: Maybe<IsolineQuality>;
1980
1987
  /** Ferry connections. */
@@ -2007,6 +2014,34 @@ export declare enum IsolineStatus {
2007
2014
  /** There was an error while generating the isoline label. */
2008
2015
  ERROR = "error"
2009
2016
  }
2017
+ export declare type IsolineWeather = {
2018
+ /** Weather configuration applied to the isoline. */
2019
+ type: WeatherType;
2020
+ /** [BETA] Custom weather conditions applied to the isoline. Only present when 'type' is set to 'CUSTOM'. */
2021
+ custom?: Maybe<IsolineWeatherCustomConditions>;
2022
+ };
2023
+ export declare type IsolineWeatherCustomConditions = {
2024
+ /** Average ambient temperature estimated along the isoline. */
2025
+ temperature: Temperature;
2026
+ /** Atmospheric pressure along the isoline. */
2027
+ air_pressure: AirPressure;
2028
+ /** Solar irradiance along the isoline. */
2029
+ solar_irradiance: SolarIrradiance;
2030
+ };
2031
+ export declare type IsolineWeatherCustomConditionsInput = {
2032
+ /** Average ambient temperature estimated within the isoline. */
2033
+ temperature: TemperatureInput;
2034
+ /** Atmospheric pressure within the isoline. */
2035
+ air_pressure: AirPressureInput;
2036
+ /** Solar irradiance within the isoline. */
2037
+ solar_irradiance: SolarIrradianceInput;
2038
+ };
2039
+ export declare type IsolineWeatherInput = {
2040
+ /** Weather configuration applied within the isoline. */
2041
+ type?: Maybe<WeatherType>;
2042
+ /** [BETA] Custom weather conditions to apply within the isoline. Required only when 'type' is 'CUSTOM'. Must be omitted for other weather types. */
2043
+ custom?: Maybe<IsolineWeatherCustomConditionsInput>;
2044
+ };
2010
2045
  /** Types of a leg. */
2011
2046
  export declare enum LegType {
2012
2047
  /** This leg ends at a charging station and the vehicle must recharge. */
@@ -4130,6 +4165,12 @@ export declare enum RouteDetailsLegWarningCode {
4130
4165
  SEGMENT_UNAVOIDABLE = "segment_unavoidable",
4131
4166
  /** The charging station used in the leg has limited opening hours. */
4132
4167
  STATION_LIMITED_OPEN_HOURS = "station_limited_open_hours",
4168
+ /** The leg's charging station has unknown open hours. */
4169
+ STATION_UNKNOWN_OPEN_HOURS = "station_unknown_open_hours",
4170
+ /** The leg's charging station is closed at the estimated time of arrival. */
4171
+ STATION_CLOSED = "station_closed",
4172
+ /** The leg's charging station is closing within 45 minutes of the estimated time of arrival. */
4173
+ STATION_CLOSING_SOON = "station_closing_soon",
4133
4174
  /** The specified stop duration at the via charging station is insufficient to start a charging session. */
4134
4175
  VIA_INSUFFICIENT_CHARGING_TIME = "via_insufficient_charging_time"
4135
4176
  }
@@ -10249,15 +10249,27 @@
10249
10249
  "isDeprecated": false,
10250
10250
  "deprecationReason": null
10251
10251
  },
10252
+ {
10253
+ "name": "weather",
10254
+ "description": "Weather configuration for the isoline. Defined by a preset or custom weather conditions. If not specified, defaults to real-time weather data.",
10255
+ "type": {
10256
+ "kind": "INPUT_OBJECT",
10257
+ "name": "IsolineWeatherInput",
10258
+ "ofType": null
10259
+ },
10260
+ "defaultValue": null,
10261
+ "isDeprecated": false,
10262
+ "deprecationReason": null
10263
+ },
10252
10264
  {
10253
10265
  "name": "season",
10254
- "description": "Season to be taken into account when generating the isoline.",
10266
+ "description": "Season to be taken into account when generating the isoline. If not specified, defaults to real-time weather data.",
10255
10267
  "type": {
10256
10268
  "kind": "ENUM",
10257
10269
  "name": "RouteSeason",
10258
10270
  "ofType": null
10259
10271
  },
10260
- "defaultValue": "current",
10272
+ "defaultValue": null,
10261
10273
  "isDeprecated": false,
10262
10274
  "deprecationReason": null
10263
10275
  },
@@ -10517,6 +10529,18 @@
10517
10529
  "name": "RouteSeason",
10518
10530
  "ofType": null
10519
10531
  },
10532
+ "isDeprecated": true,
10533
+ "deprecationReason": "In favor of weather."
10534
+ },
10535
+ {
10536
+ "name": "weather",
10537
+ "description": "Weather configuration for the isoline. Defined by a preset or custom weather conditions.",
10538
+ "args": [],
10539
+ "type": {
10540
+ "kind": "OBJECT",
10541
+ "name": "IsolineWeather",
10542
+ "ofType": null
10543
+ },
10520
10544
  "isDeprecated": false,
10521
10545
  "deprecationReason": null
10522
10546
  },
@@ -10649,6 +10673,198 @@
10649
10673
  ],
10650
10674
  "possibleTypes": null
10651
10675
  },
10676
+ {
10677
+ "kind": "OBJECT",
10678
+ "name": "IsolineWeather",
10679
+ "description": null,
10680
+ "fields": [
10681
+ {
10682
+ "name": "type",
10683
+ "description": "Weather configuration applied to the isoline.",
10684
+ "args": [],
10685
+ "type": {
10686
+ "kind": "NON_NULL",
10687
+ "name": null,
10688
+ "ofType": {
10689
+ "kind": "ENUM",
10690
+ "name": "WeatherType",
10691
+ "ofType": null
10692
+ }
10693
+ },
10694
+ "isDeprecated": false,
10695
+ "deprecationReason": null
10696
+ },
10697
+ {
10698
+ "name": "custom",
10699
+ "description": "[BETA] Custom weather conditions applied to the isoline. Only present when 'type' is set to 'CUSTOM'.",
10700
+ "args": [],
10701
+ "type": {
10702
+ "kind": "OBJECT",
10703
+ "name": "IsolineWeatherCustomConditions",
10704
+ "ofType": null
10705
+ },
10706
+ "isDeprecated": false,
10707
+ "deprecationReason": null
10708
+ }
10709
+ ],
10710
+ "inputFields": null,
10711
+ "interfaces": [],
10712
+ "enumValues": null,
10713
+ "possibleTypes": null
10714
+ },
10715
+ {
10716
+ "kind": "OBJECT",
10717
+ "name": "IsolineWeatherCustomConditions",
10718
+ "description": null,
10719
+ "fields": [
10720
+ {
10721
+ "name": "temperature",
10722
+ "description": "Average ambient temperature estimated along the isoline.",
10723
+ "args": [],
10724
+ "type": {
10725
+ "kind": "NON_NULL",
10726
+ "name": null,
10727
+ "ofType": {
10728
+ "kind": "OBJECT",
10729
+ "name": "Temperature",
10730
+ "ofType": null
10731
+ }
10732
+ },
10733
+ "isDeprecated": false,
10734
+ "deprecationReason": null
10735
+ },
10736
+ {
10737
+ "name": "air_pressure",
10738
+ "description": "Atmospheric pressure along the isoline.",
10739
+ "args": [],
10740
+ "type": {
10741
+ "kind": "NON_NULL",
10742
+ "name": null,
10743
+ "ofType": {
10744
+ "kind": "OBJECT",
10745
+ "name": "AirPressure",
10746
+ "ofType": null
10747
+ }
10748
+ },
10749
+ "isDeprecated": false,
10750
+ "deprecationReason": null
10751
+ },
10752
+ {
10753
+ "name": "solar_irradiance",
10754
+ "description": "Solar irradiance along the isoline.",
10755
+ "args": [],
10756
+ "type": {
10757
+ "kind": "NON_NULL",
10758
+ "name": null,
10759
+ "ofType": {
10760
+ "kind": "OBJECT",
10761
+ "name": "SolarIrradiance",
10762
+ "ofType": null
10763
+ }
10764
+ },
10765
+ "isDeprecated": false,
10766
+ "deprecationReason": null
10767
+ }
10768
+ ],
10769
+ "inputFields": null,
10770
+ "interfaces": [],
10771
+ "enumValues": null,
10772
+ "possibleTypes": null
10773
+ },
10774
+ {
10775
+ "kind": "INPUT_OBJECT",
10776
+ "name": "IsolineWeatherCustomConditionsInput",
10777
+ "description": null,
10778
+ "fields": null,
10779
+ "inputFields": [
10780
+ {
10781
+ "name": "temperature",
10782
+ "description": "Average ambient temperature estimated within the isoline.",
10783
+ "type": {
10784
+ "kind": "NON_NULL",
10785
+ "name": null,
10786
+ "ofType": {
10787
+ "kind": "INPUT_OBJECT",
10788
+ "name": "TemperatureInput",
10789
+ "ofType": null
10790
+ }
10791
+ },
10792
+ "defaultValue": null,
10793
+ "isDeprecated": false,
10794
+ "deprecationReason": null
10795
+ },
10796
+ {
10797
+ "name": "air_pressure",
10798
+ "description": "Atmospheric pressure within the isoline.",
10799
+ "type": {
10800
+ "kind": "NON_NULL",
10801
+ "name": null,
10802
+ "ofType": {
10803
+ "kind": "INPUT_OBJECT",
10804
+ "name": "AirPressureInput",
10805
+ "ofType": null
10806
+ }
10807
+ },
10808
+ "defaultValue": null,
10809
+ "isDeprecated": false,
10810
+ "deprecationReason": null
10811
+ },
10812
+ {
10813
+ "name": "solar_irradiance",
10814
+ "description": "Solar irradiance within the isoline.",
10815
+ "type": {
10816
+ "kind": "NON_NULL",
10817
+ "name": null,
10818
+ "ofType": {
10819
+ "kind": "INPUT_OBJECT",
10820
+ "name": "SolarIrradianceInput",
10821
+ "ofType": null
10822
+ }
10823
+ },
10824
+ "defaultValue": null,
10825
+ "isDeprecated": false,
10826
+ "deprecationReason": null
10827
+ }
10828
+ ],
10829
+ "interfaces": null,
10830
+ "enumValues": null,
10831
+ "possibleTypes": null
10832
+ },
10833
+ {
10834
+ "kind": "INPUT_OBJECT",
10835
+ "name": "IsolineWeatherInput",
10836
+ "description": null,
10837
+ "fields": null,
10838
+ "inputFields": [
10839
+ {
10840
+ "name": "type",
10841
+ "description": "Weather configuration applied within the isoline.",
10842
+ "type": {
10843
+ "kind": "ENUM",
10844
+ "name": "WeatherType",
10845
+ "ofType": null
10846
+ },
10847
+ "defaultValue": "actual",
10848
+ "isDeprecated": false,
10849
+ "deprecationReason": null
10850
+ },
10851
+ {
10852
+ "name": "custom",
10853
+ "description": "[BETA] Custom weather conditions to apply within the isoline. Required only when 'type' is 'CUSTOM'. Must be omitted for other weather types.",
10854
+ "type": {
10855
+ "kind": "INPUT_OBJECT",
10856
+ "name": "IsolineWeatherCustomConditionsInput",
10857
+ "ofType": null
10858
+ },
10859
+ "defaultValue": null,
10860
+ "isDeprecated": false,
10861
+ "deprecationReason": null
10862
+ }
10863
+ ],
10864
+ "interfaces": null,
10865
+ "enumValues": null,
10866
+ "possibleTypes": null
10867
+ },
10652
10868
  {
10653
10869
  "kind": "SCALAR",
10654
10870
  "name": "JSON",
@@ -22470,6 +22686,24 @@
22470
22686
  "isDeprecated": false,
22471
22687
  "deprecationReason": null
22472
22688
  },
22689
+ {
22690
+ "name": "station_unknown_open_hours",
22691
+ "description": "The leg's charging station has unknown open hours.",
22692
+ "isDeprecated": false,
22693
+ "deprecationReason": null
22694
+ },
22695
+ {
22696
+ "name": "station_closed",
22697
+ "description": "The leg's charging station is closed at the estimated time of arrival.",
22698
+ "isDeprecated": false,
22699
+ "deprecationReason": null
22700
+ },
22701
+ {
22702
+ "name": "station_closing_soon",
22703
+ "description": "The leg's charging station is closing within 45 minutes of the estimated time of arrival.",
22704
+ "isDeprecated": false,
22705
+ "deprecationReason": null
22706
+ },
22473
22707
  {
22474
22708
  "name": "via_insufficient_charging_time",
22475
22709
  "description": "The specified stop duration at the via charging station is insufficient to start a charging session.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chargetrip/types",
3
- "version": "1.52.0",
3
+ "version": "1.53.0",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "chargetrip",
package/src/graphql.ts CHANGED
@@ -2054,7 +2054,9 @@ export type IsolineInput = {
2054
2054
  heat_pump?: Maybe<HeatPumpMode>;
2055
2055
  /** Vehicle cabin configuration. */
2056
2056
  cabin?: Maybe<IsolineCabinInput>;
2057
- /** Season to be taken into account when generating the isoline. */
2057
+ /** Weather configuration for the isoline. Defined by a preset or custom weather conditions. If not specified, defaults to real-time weather data. */
2058
+ weather?: Maybe<IsolineWeatherInput>;
2059
+ /** Season to be taken into account when generating the isoline. If not specified, defaults to real-time weather data. */
2058
2060
  season?: Maybe<RouteSeason>;
2059
2061
  /** Polygons precision quality. */
2060
2062
  quality?: Maybe<IsolineQuality>;
@@ -2097,8 +2099,13 @@ export type IsolineRequestInput = {
2097
2099
  heat_pump?: Maybe<HeatPumpMode>;
2098
2100
  /** Vehicle cabin configuration. */
2099
2101
  cabin?: Maybe<IsolineCabin>;
2100
- /** Season taken into account when isoline was generated. */
2102
+ /**
2103
+ * Season taken into account when isoline was generated.
2104
+ * @deprecated In favor of weather.
2105
+ */
2101
2106
  season?: Maybe<RouteSeason>;
2107
+ /** Weather configuration for the isoline. Defined by a preset or custom weather conditions. */
2108
+ weather?: Maybe<IsolineWeather>;
2102
2109
  /** Polygons precision quality. */
2103
2110
  quality?: Maybe<IsolineQuality>;
2104
2111
  /** Ferry connections. */
@@ -2137,6 +2144,38 @@ export enum IsolineStatus {
2137
2144
  ERROR = "error"
2138
2145
  }
2139
2146
 
2147
+ export type IsolineWeather = {
2148
+ /** Weather configuration applied to the isoline. */
2149
+ type: WeatherType;
2150
+ /** [BETA] Custom weather conditions applied to the isoline. Only present when 'type' is set to 'CUSTOM'. */
2151
+ custom?: Maybe<IsolineWeatherCustomConditions>;
2152
+ };
2153
+
2154
+ export type IsolineWeatherCustomConditions = {
2155
+ /** Average ambient temperature estimated along the isoline. */
2156
+ temperature: Temperature;
2157
+ /** Atmospheric pressure along the isoline. */
2158
+ air_pressure: AirPressure;
2159
+ /** Solar irradiance along the isoline. */
2160
+ solar_irradiance: SolarIrradiance;
2161
+ };
2162
+
2163
+ export type IsolineWeatherCustomConditionsInput = {
2164
+ /** Average ambient temperature estimated within the isoline. */
2165
+ temperature: TemperatureInput;
2166
+ /** Atmospheric pressure within the isoline. */
2167
+ air_pressure: AirPressureInput;
2168
+ /** Solar irradiance within the isoline. */
2169
+ solar_irradiance: SolarIrradianceInput;
2170
+ };
2171
+
2172
+ export type IsolineWeatherInput = {
2173
+ /** Weather configuration applied within the isoline. */
2174
+ type?: Maybe<WeatherType>;
2175
+ /** [BETA] Custom weather conditions to apply within the isoline. Required only when 'type' is 'CUSTOM'. Must be omitted for other weather types. */
2176
+ custom?: Maybe<IsolineWeatherCustomConditionsInput>;
2177
+ };
2178
+
2140
2179
  /** Types of a leg. */
2141
2180
  export enum LegType {
2142
2181
  /** This leg ends at a charging station and the vehicle must recharge. */
@@ -4473,6 +4512,12 @@ export enum RouteDetailsLegWarningCode {
4473
4512
  SEGMENT_UNAVOIDABLE = "segment_unavoidable",
4474
4513
  /** The charging station used in the leg has limited opening hours. */
4475
4514
  STATION_LIMITED_OPEN_HOURS = "station_limited_open_hours",
4515
+ /** The leg's charging station has unknown open hours. */
4516
+ STATION_UNKNOWN_OPEN_HOURS = "station_unknown_open_hours",
4517
+ /** The leg's charging station is closed at the estimated time of arrival. */
4518
+ STATION_CLOSED = "station_closed",
4519
+ /** The leg's charging station is closing within 45 minutes of the estimated time of arrival. */
4520
+ STATION_CLOSING_SOON = "station_closing_soon",
4476
4521
  /** The specified stop duration at the via charging station is insufficient to start a charging session. */
4477
4522
  VIA_INSUFFICIENT_CHARGING_TIME = "via_insufficient_charging_time"
4478
4523
  }