@chargetrip/types 1.51.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.
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.js +5 -1
- package/dist/node/index.js.map +1 -1
- package/dist/react-native/graphql.js +5 -1
- package/dist/react-native/graphql.js.map +1 -1
- package/dist/ts/graphql.d.ts +52 -3
- package/graphql.schema.json +286 -2
- package/package.json +1 -1
- package/src/graphql.ts +56 -3
package/dist/ts/graphql.d.ts
CHANGED
|
@@ -1207,6 +1207,8 @@ export declare type CreateRoute = {
|
|
|
1207
1207
|
season?: Maybe<RouteSeason>;
|
|
1208
1208
|
/** Alternative stations along a route within a specified radius of 500 to 5000 meters, or the equivalent in another unit. */
|
|
1209
1209
|
alternative_station_radius?: Maybe<AlternativeStationRadius>;
|
|
1210
|
+
/** [BETA] Number of alternative routes to request. */
|
|
1211
|
+
alternative_routes?: Maybe<Scalars["Int"]>;
|
|
1210
1212
|
/** Route departure time. Used to calculate the expected arrival time and, if set in the past, to apply historical weather data. */
|
|
1211
1213
|
departure_time: Scalars["DateTime"];
|
|
1212
1214
|
/** [BETA] List of route features to avoid in a route. This is a best-effort preference; depending on the available routes, some features may not be fully avoidable. */
|
|
@@ -1236,6 +1238,8 @@ export declare type CreateRouteInput = {
|
|
|
1236
1238
|
season?: Maybe<RouteSeason>;
|
|
1237
1239
|
/** Alternative stations along a route within a specified radius of 500 to 5000 meters, or the equivalent in another unit. */
|
|
1238
1240
|
alternative_station_radius?: Maybe<AlternativeStationRadiusInput>;
|
|
1241
|
+
/** [BETA] Additional alternative routes to calculate. Performed on a best-effort basis, it may return fewer than requested, or even none. Set to 0 to create only the recommended route. */
|
|
1242
|
+
alternative_routes?: Maybe<Scalars["Int"]>;
|
|
1239
1243
|
/** Route departure time. Used to calculate the expected arrival time and, if set in the past, to apply historical weather data. */
|
|
1240
1244
|
departure_time?: Maybe<Scalars["DateTime"]>;
|
|
1241
1245
|
/** [BETA] Optional list of route features to avoid in a route. This is a best-effort preference; depending on the available routes, some features may not be fully avoidable. */
|
|
@@ -1928,7 +1932,9 @@ export declare type IsolineInput = {
|
|
|
1928
1932
|
heat_pump?: Maybe<HeatPumpMode>;
|
|
1929
1933
|
/** Vehicle cabin configuration. */
|
|
1930
1934
|
cabin?: Maybe<IsolineCabinInput>;
|
|
1931
|
-
/**
|
|
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. */
|
|
1932
1938
|
season?: Maybe<RouteSeason>;
|
|
1933
1939
|
/** Polygons precision quality. */
|
|
1934
1940
|
quality?: Maybe<IsolineQuality>;
|
|
@@ -1969,8 +1975,13 @@ export declare type IsolineRequestInput = {
|
|
|
1969
1975
|
heat_pump?: Maybe<HeatPumpMode>;
|
|
1970
1976
|
/** Vehicle cabin configuration. */
|
|
1971
1977
|
cabin?: Maybe<IsolineCabin>;
|
|
1972
|
-
/**
|
|
1978
|
+
/**
|
|
1979
|
+
* Season taken into account when isoline was generated.
|
|
1980
|
+
* @deprecated In favor of weather.
|
|
1981
|
+
*/
|
|
1973
1982
|
season?: Maybe<RouteSeason>;
|
|
1983
|
+
/** Weather configuration for the isoline. Defined by a preset or custom weather conditions. */
|
|
1984
|
+
weather?: Maybe<IsolineWeather>;
|
|
1974
1985
|
/** Polygons precision quality. */
|
|
1975
1986
|
quality?: Maybe<IsolineQuality>;
|
|
1976
1987
|
/** Ferry connections. */
|
|
@@ -2003,6 +2014,34 @@ export declare enum IsolineStatus {
|
|
|
2003
2014
|
/** There was an error while generating the isoline label. */
|
|
2004
2015
|
ERROR = "error"
|
|
2005
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
|
+
};
|
|
2006
2045
|
/** Types of a leg. */
|
|
2007
2046
|
export declare enum LegType {
|
|
2008
2047
|
/** This leg ends at a charging station and the vehicle must recharge. */
|
|
@@ -4126,6 +4165,12 @@ export declare enum RouteDetailsLegWarningCode {
|
|
|
4126
4165
|
SEGMENT_UNAVOIDABLE = "segment_unavoidable",
|
|
4127
4166
|
/** The charging station used in the leg has limited opening hours. */
|
|
4128
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",
|
|
4129
4174
|
/** The specified stop duration at the via charging station is insufficient to start a charging session. */
|
|
4130
4175
|
VIA_INSUFFICIENT_CHARGING_TIME = "via_insufficient_charging_time"
|
|
4131
4176
|
}
|
|
@@ -5176,6 +5221,8 @@ export declare type RouteResponse = {
|
|
|
5176
5221
|
status: RouteStatus;
|
|
5177
5222
|
/** Recommended route. */
|
|
5178
5223
|
recommended?: Maybe<RouteDetails>;
|
|
5224
|
+
/** [BETA] Alternative routes. */
|
|
5225
|
+
alternatives?: Maybe<Array<RouteDetails>>;
|
|
5179
5226
|
/** Meta data for a route. */
|
|
5180
5227
|
meta: RouteMetadata;
|
|
5181
5228
|
/** Route request. */
|
|
@@ -5581,7 +5628,9 @@ export declare enum RouteWarningCode {
|
|
|
5581
5628
|
/** The set maximum speed is too low (below 50 km/h) and may result in an inefficient route. */
|
|
5582
5629
|
LOW_SPEED = "low_speed",
|
|
5583
5630
|
/** Operator preferences were ignored because they have not been configured for this project nor provided in the route create request. */
|
|
5584
|
-
OPERATOR_PREFERENCES_NOT_FOUND = "operator_preferences_not_found"
|
|
5631
|
+
OPERATOR_PREFERENCES_NOT_FOUND = "operator_preferences_not_found",
|
|
5632
|
+
/** Traffic data for this route is not available. */
|
|
5633
|
+
TRAFFIC_DATA_NOT_AVAILABLE = "traffic_data_not_available"
|
|
5585
5634
|
}
|
|
5586
5635
|
export declare type RouteWeather = {
|
|
5587
5636
|
/** Weather configuration applied to the route. */
|
package/graphql.schema.json
CHANGED
|
@@ -6084,6 +6084,18 @@
|
|
|
6084
6084
|
"isDeprecated": false,
|
|
6085
6085
|
"deprecationReason": null
|
|
6086
6086
|
},
|
|
6087
|
+
{
|
|
6088
|
+
"name": "alternative_routes",
|
|
6089
|
+
"description": "[BETA] Number of alternative routes to request.",
|
|
6090
|
+
"args": [],
|
|
6091
|
+
"type": {
|
|
6092
|
+
"kind": "SCALAR",
|
|
6093
|
+
"name": "Int",
|
|
6094
|
+
"ofType": null
|
|
6095
|
+
},
|
|
6096
|
+
"isDeprecated": false,
|
|
6097
|
+
"deprecationReason": null
|
|
6098
|
+
},
|
|
6087
6099
|
{
|
|
6088
6100
|
"name": "departure_time",
|
|
6089
6101
|
"description": "Route departure time. Used to calculate the expected arrival time and, if set in the past, to apply historical weather data.",
|
|
@@ -6284,6 +6296,18 @@
|
|
|
6284
6296
|
"isDeprecated": false,
|
|
6285
6297
|
"deprecationReason": null
|
|
6286
6298
|
},
|
|
6299
|
+
{
|
|
6300
|
+
"name": "alternative_routes",
|
|
6301
|
+
"description": "[BETA] Additional alternative routes to calculate. Performed on a best-effort basis, it may return fewer than requested, or even none. Set to 0 to create only the recommended route.",
|
|
6302
|
+
"type": {
|
|
6303
|
+
"kind": "SCALAR",
|
|
6304
|
+
"name": "Int",
|
|
6305
|
+
"ofType": null
|
|
6306
|
+
},
|
|
6307
|
+
"defaultValue": "0",
|
|
6308
|
+
"isDeprecated": false,
|
|
6309
|
+
"deprecationReason": null
|
|
6310
|
+
},
|
|
6287
6311
|
{
|
|
6288
6312
|
"name": "departure_time",
|
|
6289
6313
|
"description": "Route departure time. Used to calculate the expected arrival time and, if set in the past, to apply historical weather data.",
|
|
@@ -10225,15 +10249,27 @@
|
|
|
10225
10249
|
"isDeprecated": false,
|
|
10226
10250
|
"deprecationReason": null
|
|
10227
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
|
+
},
|
|
10228
10264
|
{
|
|
10229
10265
|
"name": "season",
|
|
10230
|
-
"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.",
|
|
10231
10267
|
"type": {
|
|
10232
10268
|
"kind": "ENUM",
|
|
10233
10269
|
"name": "RouteSeason",
|
|
10234
10270
|
"ofType": null
|
|
10235
10271
|
},
|
|
10236
|
-
"defaultValue":
|
|
10272
|
+
"defaultValue": null,
|
|
10237
10273
|
"isDeprecated": false,
|
|
10238
10274
|
"deprecationReason": null
|
|
10239
10275
|
},
|
|
@@ -10493,6 +10529,18 @@
|
|
|
10493
10529
|
"name": "RouteSeason",
|
|
10494
10530
|
"ofType": null
|
|
10495
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
|
+
},
|
|
10496
10544
|
"isDeprecated": false,
|
|
10497
10545
|
"deprecationReason": null
|
|
10498
10546
|
},
|
|
@@ -10625,6 +10673,198 @@
|
|
|
10625
10673
|
],
|
|
10626
10674
|
"possibleTypes": null
|
|
10627
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
|
+
},
|
|
10628
10868
|
{
|
|
10629
10869
|
"kind": "SCALAR",
|
|
10630
10870
|
"name": "JSON",
|
|
@@ -22446,6 +22686,24 @@
|
|
|
22446
22686
|
"isDeprecated": false,
|
|
22447
22687
|
"deprecationReason": null
|
|
22448
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
|
+
},
|
|
22449
22707
|
{
|
|
22450
22708
|
"name": "via_insufficient_charging_time",
|
|
22451
22709
|
"description": "The specified stop duration at the via charging station is insufficient to start a charging session.",
|
|
@@ -28724,6 +28982,26 @@
|
|
|
28724
28982
|
"isDeprecated": false,
|
|
28725
28983
|
"deprecationReason": null
|
|
28726
28984
|
},
|
|
28985
|
+
{
|
|
28986
|
+
"name": "alternatives",
|
|
28987
|
+
"description": "[BETA] Alternative routes.",
|
|
28988
|
+
"args": [],
|
|
28989
|
+
"type": {
|
|
28990
|
+
"kind": "LIST",
|
|
28991
|
+
"name": null,
|
|
28992
|
+
"ofType": {
|
|
28993
|
+
"kind": "NON_NULL",
|
|
28994
|
+
"name": null,
|
|
28995
|
+
"ofType": {
|
|
28996
|
+
"kind": "OBJECT",
|
|
28997
|
+
"name": "RouteDetails",
|
|
28998
|
+
"ofType": null
|
|
28999
|
+
}
|
|
29000
|
+
}
|
|
29001
|
+
},
|
|
29002
|
+
"isDeprecated": false,
|
|
29003
|
+
"deprecationReason": null
|
|
29004
|
+
},
|
|
28727
29005
|
{
|
|
28728
29006
|
"name": "meta",
|
|
28729
29007
|
"description": "Meta data for a route.",
|
|
@@ -31240,6 +31518,12 @@
|
|
|
31240
31518
|
"description": "Operator preferences were ignored because they have not been configured for this project nor provided in the route create request.",
|
|
31241
31519
|
"isDeprecated": false,
|
|
31242
31520
|
"deprecationReason": null
|
|
31521
|
+
},
|
|
31522
|
+
{
|
|
31523
|
+
"name": "traffic_data_not_available",
|
|
31524
|
+
"description": "Traffic data for this route is not available.",
|
|
31525
|
+
"isDeprecated": false,
|
|
31526
|
+
"deprecationReason": null
|
|
31243
31527
|
}
|
|
31244
31528
|
],
|
|
31245
31529
|
"possibleTypes": null
|
package/package.json
CHANGED
package/src/graphql.ts
CHANGED
|
@@ -1281,6 +1281,8 @@ export type CreateRoute = {
|
|
|
1281
1281
|
season?: Maybe<RouteSeason>;
|
|
1282
1282
|
/** Alternative stations along a route within a specified radius of 500 to 5000 meters, or the equivalent in another unit. */
|
|
1283
1283
|
alternative_station_radius?: Maybe<AlternativeStationRadius>;
|
|
1284
|
+
/** [BETA] Number of alternative routes to request. */
|
|
1285
|
+
alternative_routes?: Maybe<Scalars["Int"]>;
|
|
1284
1286
|
/** Route departure time. Used to calculate the expected arrival time and, if set in the past, to apply historical weather data. */
|
|
1285
1287
|
departure_time: Scalars["DateTime"];
|
|
1286
1288
|
/** [BETA] List of route features to avoid in a route. This is a best-effort preference; depending on the available routes, some features may not be fully avoidable. */
|
|
@@ -1311,6 +1313,8 @@ export type CreateRouteInput = {
|
|
|
1311
1313
|
season?: Maybe<RouteSeason>;
|
|
1312
1314
|
/** Alternative stations along a route within a specified radius of 500 to 5000 meters, or the equivalent in another unit. */
|
|
1313
1315
|
alternative_station_radius?: Maybe<AlternativeStationRadiusInput>;
|
|
1316
|
+
/** [BETA] Additional alternative routes to calculate. Performed on a best-effort basis, it may return fewer than requested, or even none. Set to 0 to create only the recommended route. */
|
|
1317
|
+
alternative_routes?: Maybe<Scalars["Int"]>;
|
|
1314
1318
|
/** Route departure time. Used to calculate the expected arrival time and, if set in the past, to apply historical weather data. */
|
|
1315
1319
|
departure_time?: Maybe<Scalars["DateTime"]>;
|
|
1316
1320
|
/** [BETA] Optional list of route features to avoid in a route. This is a best-effort preference; depending on the available routes, some features may not be fully avoidable. */
|
|
@@ -2050,7 +2054,9 @@ export type IsolineInput = {
|
|
|
2050
2054
|
heat_pump?: Maybe<HeatPumpMode>;
|
|
2051
2055
|
/** Vehicle cabin configuration. */
|
|
2052
2056
|
cabin?: Maybe<IsolineCabinInput>;
|
|
2053
|
-
/**
|
|
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. */
|
|
2054
2060
|
season?: Maybe<RouteSeason>;
|
|
2055
2061
|
/** Polygons precision quality. */
|
|
2056
2062
|
quality?: Maybe<IsolineQuality>;
|
|
@@ -2093,8 +2099,13 @@ export type IsolineRequestInput = {
|
|
|
2093
2099
|
heat_pump?: Maybe<HeatPumpMode>;
|
|
2094
2100
|
/** Vehicle cabin configuration. */
|
|
2095
2101
|
cabin?: Maybe<IsolineCabin>;
|
|
2096
|
-
/**
|
|
2102
|
+
/**
|
|
2103
|
+
* Season taken into account when isoline was generated.
|
|
2104
|
+
* @deprecated In favor of weather.
|
|
2105
|
+
*/
|
|
2097
2106
|
season?: Maybe<RouteSeason>;
|
|
2107
|
+
/** Weather configuration for the isoline. Defined by a preset or custom weather conditions. */
|
|
2108
|
+
weather?: Maybe<IsolineWeather>;
|
|
2098
2109
|
/** Polygons precision quality. */
|
|
2099
2110
|
quality?: Maybe<IsolineQuality>;
|
|
2100
2111
|
/** Ferry connections. */
|
|
@@ -2133,6 +2144,38 @@ export enum IsolineStatus {
|
|
|
2133
2144
|
ERROR = "error"
|
|
2134
2145
|
}
|
|
2135
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
|
+
|
|
2136
2179
|
/** Types of a leg. */
|
|
2137
2180
|
export enum LegType {
|
|
2138
2181
|
/** This leg ends at a charging station and the vehicle must recharge. */
|
|
@@ -4469,6 +4512,12 @@ export enum RouteDetailsLegWarningCode {
|
|
|
4469
4512
|
SEGMENT_UNAVOIDABLE = "segment_unavoidable",
|
|
4470
4513
|
/** The charging station used in the leg has limited opening hours. */
|
|
4471
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",
|
|
4472
4521
|
/** The specified stop duration at the via charging station is insufficient to start a charging session. */
|
|
4473
4522
|
VIA_INSUFFICIENT_CHARGING_TIME = "via_insufficient_charging_time"
|
|
4474
4523
|
}
|
|
@@ -5650,6 +5699,8 @@ export type RouteResponse = {
|
|
|
5650
5699
|
status: RouteStatus;
|
|
5651
5700
|
/** Recommended route. */
|
|
5652
5701
|
recommended?: Maybe<RouteDetails>;
|
|
5702
|
+
/** [BETA] Alternative routes. */
|
|
5703
|
+
alternatives?: Maybe<Array<RouteDetails>>;
|
|
5653
5704
|
/** Meta data for a route. */
|
|
5654
5705
|
meta: RouteMetadata;
|
|
5655
5706
|
/** Route request. */
|
|
@@ -6097,7 +6148,9 @@ export enum RouteWarningCode {
|
|
|
6097
6148
|
/** The set maximum speed is too low (below 50 km/h) and may result in an inefficient route. */
|
|
6098
6149
|
LOW_SPEED = "low_speed",
|
|
6099
6150
|
/** Operator preferences were ignored because they have not been configured for this project nor provided in the route create request. */
|
|
6100
|
-
OPERATOR_PREFERENCES_NOT_FOUND = "operator_preferences_not_found"
|
|
6151
|
+
OPERATOR_PREFERENCES_NOT_FOUND = "operator_preferences_not_found",
|
|
6152
|
+
/** Traffic data for this route is not available. */
|
|
6153
|
+
TRAFFIC_DATA_NOT_AVAILABLE = "traffic_data_not_available"
|
|
6101
6154
|
}
|
|
6102
6155
|
|
|
6103
6156
|
export type RouteWeather = {
|