Skip to content

Commit 1dfba32

Browse files
feat: regenerate GraphQL types
1 parent c075f7c commit 1dfba32

2 files changed

Lines changed: 283 additions & 4 deletions

File tree

graphql.schema.json

Lines changed: 236 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10249,15 +10249,27 @@
1024910249
"isDeprecated": false,
1025010250
"deprecationReason": null
1025110251
},
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+
},
1025210264
{
1025310265
"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.",
1025510267
"type": {
1025610268
"kind": "ENUM",
1025710269
"name": "RouteSeason",
1025810270
"ofType": null
1025910271
},
10260-
"defaultValue": "current",
10272+
"defaultValue": null,
1026110273
"isDeprecated": false,
1026210274
"deprecationReason": null
1026310275
},
@@ -10517,6 +10529,18 @@
1051710529
"name": "RouteSeason",
1051810530
"ofType": null
1051910531
},
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+
},
1052010544
"isDeprecated": false,
1052110545
"deprecationReason": null
1052210546
},
@@ -10649,6 +10673,198 @@
1064910673
],
1065010674
"possibleTypes": null
1065110675
},
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+
},
1065210868
{
1065310869
"kind": "SCALAR",
1065410870
"name": "JSON",
@@ -22470,6 +22686,24 @@
2247022686
"isDeprecated": false,
2247122687
"deprecationReason": null
2247222688
},
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+
},
2247322707
{
2247422708
"name": "via_insufficient_charging_time",
2247522709
"description": "The specified stop duration at the via charging station is insufficient to start a charging session.",

src/graphql.ts

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,7 +2054,9 @@ export type IsolineInput = {
20542054
heat_pump?: Maybe<HeatPumpMode>;
20552055
/** Vehicle cabin configuration. */
20562056
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. */
20582060
season?: Maybe<RouteSeason>;
20592061
/** Polygons precision quality. */
20602062
quality?: Maybe<IsolineQuality>;
@@ -2097,8 +2099,13 @@ export type IsolineRequestInput = {
20972099
heat_pump?: Maybe<HeatPumpMode>;
20982100
/** Vehicle cabin configuration. */
20992101
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+
*/
21012106
season?: Maybe<RouteSeason>;
2107+
/** Weather configuration for the isoline. Defined by a preset or custom weather conditions. */
2108+
weather?: Maybe<IsolineWeather>;
21022109
/** Polygons precision quality. */
21032110
quality?: Maybe<IsolineQuality>;
21042111
/** Ferry connections. */
@@ -2137,6 +2144,38 @@ export enum IsolineStatus {
21372144
ERROR = "error"
21382145
}
21392146

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+
21402179
/** Types of a leg. */
21412180
export enum LegType {
21422181
/** This leg ends at a charging station and the vehicle must recharge. */
@@ -4473,6 +4512,12 @@ export enum RouteDetailsLegWarningCode {
44734512
SEGMENT_UNAVOIDABLE = "segment_unavoidable",
44744513
/** The charging station used in the leg has limited opening hours. */
44754514
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",
44764521
/** The specified stop duration at the via charging station is insufficient to start a charging session. */
44774522
VIA_INSUFFICIENT_CHARGING_TIME = "via_insufficient_charging_time"
44784523
}

0 commit comments

Comments
 (0)