@chargetrip/types 1.23.0 → 1.26.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/src/graphql.ts CHANGED
@@ -19,6 +19,8 @@ export type Scalars = {
19
19
  JSON: { [key: string]: number | string | boolean | null | Scalars["JSON"] };
20
20
  /** The File Upload scalar */
21
21
  Upload: any;
22
+ /** Void custom scalar */
23
+ Void: any;
22
24
  };
23
25
 
24
26
  /** Information about an address */
@@ -43,6 +45,20 @@ export type Address = {
43
45
  formattedAddress?: Maybe<Array<Maybe<Scalars["String"]>>>;
44
46
  };
45
47
 
48
+ /** Amenities available near a station */
49
+ export enum Amenities {
50
+ PARK = "park",
51
+ RESTAURANT = "restaurant",
52
+ MUSEUM = "museum",
53
+ COFFEE = "coffee",
54
+ HOTEL = "hotel",
55
+ SHOPPING = "shopping",
56
+ BATHROOM = "bathroom",
57
+ SUPERMARKET = "supermarket",
58
+ PLAYGROUND = "playground",
59
+ PHARMACY = "pharmacy"
60
+ }
61
+
46
62
  /** The amenity model */
47
63
  export type Amenity = {
48
64
  /** Unique amenity ID */
@@ -82,7 +98,7 @@ export enum BatteryInputType {
82
98
  KWH = "kwh",
83
99
  KM = "km",
84
100
  MILES = "miles",
85
- PERCENTAGE = "percentage",
101
+ PERCENTAGE = "percentage"
86
102
  }
87
103
 
88
104
  /** Output of a car query */
@@ -145,7 +161,7 @@ export type Car = {
145
161
  */
146
162
  chargetripRange?: Maybe<ChargetripRange>;
147
163
  /**
148
- * Cars that support fast charging have a minimum charging speed of 43 Kwh. Cars without support for fast charging used in a newRoute mutation will return an error
164
+ * Cars that support fast charging have a minimum charging speed of 43 kWh
149
165
  * @deprecated In favor of routing.fast_charging_support
150
166
  */
151
167
  fastChargingSupport?: Maybe<Scalars["Boolean"]>;
@@ -280,7 +296,7 @@ export enum CarBatteryFieldEstimations {
280
296
  /** None of the battery kWh fields are estimations */
281
297
  N = "N",
282
298
  /** usable_kwh field is estimated */
283
- U = "U",
299
+ U = "U"
284
300
  }
285
301
 
286
302
  export type CarBody = {
@@ -315,7 +331,7 @@ export enum CarDrivetrain {
315
331
  /** Battery Electric Car */
316
332
  BEV = "BEV",
317
333
  /** Extended Range Electric Car */
318
- EREV = "EREV",
334
+ EREV = "EREV"
319
335
  }
320
336
 
321
337
  /** Deprecated */
@@ -341,7 +357,7 @@ export type CarExtraConsumption = {
341
357
  /** Fuel type */
342
358
  export enum CarFuel {
343
359
  /** Electricity only. Full electric car */
344
- E = "E",
360
+ E = "E"
345
361
  }
346
362
 
347
363
  export type CarImage = {
@@ -386,13 +402,13 @@ export enum CarImageType {
386
402
  /** Full-sized brand (maker) logo at 768x432 px */
387
403
  BRAND = "brand",
388
404
  /** Thumbnail of a full-sized brand logo at 56x24 px */
389
- BRAND_THUMBNAIL = "brand_thumbnail",
405
+ BRAND_THUMBNAIL = "brand_thumbnail"
390
406
  }
391
407
 
392
408
  /** When uploading images to a car, you can select one of this types. The rest of the types are automatically generated by the system */
393
409
  export enum CarImageTypeUploadable {
394
410
  /** Full size image with a resolution at least 1536x864 px */
395
- IMAGE = "image",
411
+ IMAGE = "image"
396
412
  }
397
413
 
398
414
  /** The output element of the carList query */
@@ -453,7 +469,7 @@ export type CarList = {
453
469
  */
454
470
  chargetripRange?: Maybe<ChargetripRange>;
455
471
  /**
456
- * Cars that support fast charging have a minimum charging speed of 43 Kwh. Cars without support for fast charging used in a newRoute mutation will return an error
472
+ * Cars that support fast charging have a minimum charging speed of 43 kWh
457
473
  * @deprecated In favor of routing.fast_charging_support
458
474
  */
459
475
  fastChargingSupport?: Maybe<Scalars["Boolean"]>;
@@ -621,10 +637,7 @@ export type CarListRange = {
621
637
  };
622
638
 
623
639
  export type CarListRouting = {
624
- /**
625
- * EVs that support fast charging have a minimum charging speed of 43 Kwh.
626
- * EVs without support for fast charging used in a newRoute mutation will return an error.
627
- */
640
+ /** Cars that support fast charging have a minimum charging speed of 43 kWh */
628
641
  fast_charging_support?: Maybe<Scalars["Boolean"]>;
629
642
  };
630
643
 
@@ -655,7 +668,7 @@ export enum CarMode {
655
668
  /** Car is in production and has been released */
656
669
  PRODUCTION = "production",
657
670
  /** Future releases of a car, a concept of the car, specs may change over time */
658
- CONCEPT = "concept",
671
+ CONCEPT = "concept"
659
672
  }
660
673
 
661
674
  export type CarNaming = {
@@ -1176,10 +1189,7 @@ export type CarPremiumRangeValue = {
1176
1189
  };
1177
1190
 
1178
1191
  export type CarPremiumRouting = {
1179
- /**
1180
- * EVs that support fast charging have a minimum charging speed of 43 Kwh.
1181
- * EVs without support for fast charging used in a newRoute mutation will return an error.
1182
- */
1192
+ /** Cars that support fast charging have a minimum charging speed of 43 kWh */
1183
1193
  fast_charging_support?: Maybe<Scalars["Boolean"]>;
1184
1194
  /** Drag coefficient */
1185
1195
  drag_coefficient?: Maybe<Scalars["Float"]>;
@@ -1236,7 +1246,7 @@ export enum CarPropulsion {
1236
1246
  /** Front-wheel drive car */
1237
1247
  FRONT = "Front",
1238
1248
  /** Rear-wheel drive car */
1239
- REAR = "Rear",
1249
+ REAR = "Rear"
1240
1250
  }
1241
1251
 
1242
1252
  export type CarRange = {
@@ -1264,10 +1274,7 @@ export type CarRangeValue = {
1264
1274
  };
1265
1275
 
1266
1276
  export type CarRouting = {
1267
- /**
1268
- * EVs that support fast charging have a minimum charging speed of 43 Kwh.
1269
- * EVs without support for fast charging used in a newRoute mutation will return an error.
1270
- */
1277
+ /** Cars that support fast charging have a minimum charging speed of 43 kWh */
1271
1278
  fast_charging_support?: Maybe<Scalars["Boolean"]>;
1272
1279
  };
1273
1280
 
@@ -1280,7 +1287,7 @@ export enum CarStatus {
1280
1287
  /** Is public and can be used by a customer */
1281
1288
  PUBLIC = "public",
1282
1289
  /** Is removed and can not be used */
1283
- REMOVED = "removed",
1290
+ REMOVED = "removed"
1284
1291
  }
1285
1292
 
1286
1293
  export type CarVideo = {
@@ -1295,7 +1302,7 @@ export enum ChargeMode {
1295
1302
  /** Optimizes the charging time at each station, in order to decrease the total travel time. You will only charge up until the SOC you need in order to reach the next stop */
1296
1303
  OPTIMIZE_TRAVEL_TIME = "OPTIMIZE_TRAVEL_TIME",
1297
1304
  /** Charge to the maximum capacity at every charging stop. The default maximum charging capacity is 80% */
1298
- ALWAYS_TO_MAX_CHARGE = "ALWAYS_TO_MAX_CHARGE",
1305
+ ALWAYS_TO_MAX_CHARGE = "ALWAYS_TO_MAX_CHARGE"
1299
1306
  }
1300
1307
 
1301
1308
  /** A groupped representation of EVSEs */
@@ -1322,7 +1329,7 @@ export enum ChargerStatus {
1322
1329
  /** The charger is unknown */
1323
1330
  UNKNOWN = "unknown",
1324
1331
  /** The charger has an error */
1325
- ERROR = "error",
1332
+ ERROR = "error"
1326
1333
  }
1327
1334
 
1328
1335
  /** Groupping by status of the chargers */
@@ -1464,7 +1471,7 @@ export enum ConnectorType {
1464
1471
  /** The connector type is NEMA 14-30, 3 pins, rating of 30 A */
1465
1472
  NEMA_14_30 = "NEMA_14_30",
1466
1473
  /** The connector type is NEMA 14-50, 3 pins, rating of 50 A */
1467
- NEMA_14_50 = "NEMA_14_50",
1474
+ NEMA_14_50 = "NEMA_14_50"
1468
1475
  }
1469
1476
 
1470
1477
  /** The complete contact information */
@@ -1717,7 +1724,7 @@ export enum CountryCodeAlpha2 {
1717
1724
  UY = "UY",
1718
1725
  UZ = "UZ",
1719
1726
  VA = "VA",
1720
- VC = "VC",
1727
+ VC = "VC"
1721
1728
  }
1722
1729
 
1723
1730
  /** EVSE data which extends OCPI EVSE */
@@ -1781,7 +1788,15 @@ export type FeaturePointInput = {
1781
1788
 
1782
1789
  /** GeoJSON Feature type */
1783
1790
  export enum FeatureType {
1784
- FEATURE = "Feature",
1791
+ FEATURE = "Feature"
1792
+ }
1793
+
1794
+ /** Navigation service providers available */
1795
+ export enum InstructionsFormat {
1796
+ /** Chargetrip raw instructions */
1797
+ CHARGETRIP = "Chargetrip",
1798
+ /** Mapbox instructions mapping */
1799
+ MAPBOXV5 = "MapboxV5"
1785
1800
  }
1786
1801
 
1787
1802
  /** Types of a leg */
@@ -1795,21 +1810,32 @@ export enum LegType {
1795
1810
  /** This leg ends at the destination, and is the last leg of the route */
1796
1811
  FINAL = "final",
1797
1812
  /** This leg ends at the destination which is a charging station, and is the last leg of the route */
1798
- STATIONFINAL = "stationFinal",
1813
+ STATIONFINAL = "stationFinal"
1799
1814
  }
1800
1815
 
1801
1816
  /** Preferred language for the mapping */
1802
1817
  export enum MappingLanguage {
1803
- EN = "en",
1818
+ /** English(US) */
1819
+ EN = "en"
1804
1820
  }
1805
1821
 
1806
1822
  /** Navigation service providers available */
1807
1823
  export enum MappingProvider {
1808
- /** Mapbox Navigation */
1809
- MAPBOXV5 = "MapboxV5",
1824
+ /** Chargetrip raw instructions */
1825
+ CHARGETRIP = "Chargetrip",
1826
+ /** Mapbox instructions mapping */
1827
+ MAPBOXV5 = "MapboxV5"
1810
1828
  }
1811
1829
 
1812
1830
  export type Mutation = {
1831
+ /** [BETA] Start a new navigation session on top of an existing route */
1832
+ startNavigation?: Maybe<Scalars["ID"]>;
1833
+ /** [BETA] Update the navigation session */
1834
+ updateNavigation?: Maybe<Scalars["Void"]>;
1835
+ /** [BETA] Recalculate the current navigation route */
1836
+ recalculateNavigation?: Maybe<Scalars["Void"]>;
1837
+ /** [BETA] End a navigation session */
1838
+ finishNavigation?: Maybe<Scalars["Void"]>;
1813
1839
  /**
1814
1840
  * Add a new review.
1815
1841
  * If the `x-token` header is send for a valid user, the review will belong to it, otherwise will be added for an anonymouse user
@@ -1827,6 +1853,22 @@ export type Mutation = {
1827
1853
  newRoute?: Maybe<Scalars["ID"]>;
1828
1854
  };
1829
1855
 
1856
+ export type MutationstartNavigationArgs = {
1857
+ input: NavigationStartInput;
1858
+ };
1859
+
1860
+ export type MutationupdateNavigationArgs = {
1861
+ input: NavigationUpdateInput;
1862
+ };
1863
+
1864
+ export type MutationrecalculateNavigationArgs = {
1865
+ input: NavigationRecalculateInput;
1866
+ };
1867
+
1868
+ export type MutationfinishNavigationArgs = {
1869
+ input: NavigationFinishInput;
1870
+ };
1871
+
1830
1872
  export type MutationaddReviewArgs = {
1831
1873
  review: ReviewAdd;
1832
1874
  };
@@ -1839,6 +1881,137 @@ export type MutationnewRouteArgs = {
1839
1881
  input?: Maybe<RequestInput>;
1840
1882
  };
1841
1883
 
1884
+ /** The navigation session data */
1885
+ export type Navigation = {
1886
+ /** ID of the navigation session */
1887
+ id: Scalars["ID"];
1888
+ /** The current route used for navigation */
1889
+ route_id?: Maybe<Scalars["String"]>;
1890
+ /** The current route alternative used for navigation */
1891
+ route_alternative_id?: Maybe<Scalars["String"]>;
1892
+ /** The state of a navigation session. The status can be driving, charging, finished, or error */
1893
+ state?: Maybe<NavigationState>;
1894
+ /** State of charge at the last known location */
1895
+ state_of_charge?: Maybe<Scalars["Float"]>;
1896
+ /** Last known location */
1897
+ last_known_location?: Maybe<Point>;
1898
+ /** Next charging station */
1899
+ next_station?: Maybe<NavigationStation>;
1900
+ /** A set of alternative charging stations to next station */
1901
+ alternative_stations?: Maybe<Array<Maybe<NavigationStation>>>;
1902
+ /** Navigation instructions */
1903
+ instructions?: Maybe<Scalars["JSON"]>;
1904
+ };
1905
+
1906
+ /** The navigation session data */
1907
+ export type NavigationinstructionsArgs = {
1908
+ instructions_format: InstructionsFormat;
1909
+ language?: Maybe<MappingLanguage>;
1910
+ precision?: Maybe<Scalars["Int"]>;
1911
+ };
1912
+
1913
+ /** Input for the navigation recalculate */
1914
+ export type NavigationFinishInput = {
1915
+ /** ID of the navigation session */
1916
+ id: Scalars["ID"];
1917
+ /** Current coordinates */
1918
+ current_location: PointInput;
1919
+ };
1920
+
1921
+ /** Input for the navigation recalculate */
1922
+ export type NavigationRecalculateInput = {
1923
+ /** ID of the navigation session */
1924
+ id: Scalars["ID"];
1925
+ /** State of charge at origin */
1926
+ state_of_charge?: Maybe<Scalars["Float"]>;
1927
+ /** Origin location of a new route */
1928
+ current_location: PointInput;
1929
+ /** Via points of a new route. If this field is not sent, the original via points will be used */
1930
+ via?: Maybe<Array<Maybe<FeaturePointInput>>>;
1931
+ /** Heading of a vehicle, in degrees */
1932
+ heading?: Maybe<Scalars["Float"]>;
1933
+ };
1934
+
1935
+ /** Input for the navigation start */
1936
+ export type NavigationStartInput = {
1937
+ /** ID of the route of the navigation session */
1938
+ route_id: Scalars["String"];
1939
+ /** ID of the route alternative of the navigation session */
1940
+ route_alternative_id?: Maybe<Scalars["String"]>;
1941
+ /** Current coordinates */
1942
+ current_location: PointInput;
1943
+ };
1944
+
1945
+ /** State of navigation session */
1946
+ export enum NavigationState {
1947
+ /** Vehicle is driving */
1948
+ DRIVING = "driving",
1949
+ /** Vehicle is charging */
1950
+ CHARGING = "charging",
1951
+ /** Navigation session is completed (either manually or automatically 48 hours after the last update) */
1952
+ FINISHED = "finished",
1953
+ /** Failed to update navigation session due to route error or not found */
1954
+ ERROR = "error"
1955
+ }
1956
+
1957
+ /** Navigation session station type */
1958
+ export type NavigationStation = {
1959
+ /** The ID as string of the charging station */
1960
+ station_id?: Maybe<Scalars["String"]>;
1961
+ /** GPS location of the charging station */
1962
+ station_location?: Maybe<Point>;
1963
+ /** An array with all GPS locations of via points until the next charging station */
1964
+ via?: Maybe<Array<Maybe<Point>>>;
1965
+ /** Estimated state of charge, in kWh, at arrival on the next charging station */
1966
+ estimated_state_of_charge?: Maybe<Scalars["Float"]>;
1967
+ /** Estimated consumption, in kWh, from last the known location until the next charging station */
1968
+ estimated_consumption?: Maybe<Scalars["Float"]>;
1969
+ /** Estimated duration, in seconds, from the last known location until the next charging station */
1970
+ estimated_duration?: Maybe<Scalars["Int"]>;
1971
+ };
1972
+
1973
+ /** Input for the navigation session update telemetry data */
1974
+ export type NavigationTelemetryUpdateInput = {
1975
+ /** State of charge at the last known location */
1976
+ state_of_charge?: Maybe<Scalars["Float"]>;
1977
+ /** Indicates if a vehicle is charging */
1978
+ is_charging?: Maybe<Scalars["Boolean"]>;
1979
+ /** Tire pressure. This information should come from telemetry */
1980
+ tire_pressure?: Maybe<Scalars["Float"]>;
1981
+ };
1982
+
1983
+ /** Input for the navigation update */
1984
+ export type NavigationUpdateInput = {
1985
+ /** ID of the navigation session */
1986
+ id: Scalars["ID"];
1987
+ /** Heading of a vehicle, in degrees */
1988
+ heading?: Maybe<Scalars["Float"]>;
1989
+ /** A list of locations that were collected since the last update */
1990
+ locations_data: Array<NavigationUpdateLocationsInput>;
1991
+ /** Telemetry data input */
1992
+ telemetry?: Maybe<NavigationTelemetryUpdateInput>;
1993
+ };
1994
+
1995
+ /** Properties of the location */
1996
+ export type NavigationUpdateLocationPropertiesInput = {
1997
+ /** Current route leg index corresponding to a location */
1998
+ route_leg: Scalars["Int"];
1999
+ /** Speed at a location, in km/h */
2000
+ speed: Scalars["Float"];
2001
+ /** UNIX timestamp at location, in seconds */
2002
+ timestamp: Scalars["Int"];
2003
+ /** Altitude information, in meters. This is optional */
2004
+ altitude?: Maybe<Scalars["Int"]>;
2005
+ };
2006
+
2007
+ /** Input for the navigation update locations */
2008
+ export type NavigationUpdateLocationsInput = {
2009
+ /** GPS location */
2010
+ geometry: PointInput;
2011
+ /** Extra information about the location */
2012
+ properties: NavigationUpdateLocationPropertiesInput;
2013
+ };
2014
+
1842
2015
  /** This class defines an additional geo location that is relevant for the Charge Point. The geodetic system to be used is WGS 84. */
1843
2016
  export type OCPIAdditionalGeoLocation = {
1844
2017
  /** Latitude of the point in decimal degree. Example: 50.770774. Decimal separator: "." Regex: -?[0-9]{1,2}\.[0-9]{5,7} */
@@ -1876,7 +2049,7 @@ export enum OCPICapability {
1876
2049
  /** Connectors have a mechanical lock that can be requested by the eMSP to be unlocked. */
1877
2050
  UNLOCK_CAPABLE = "UNLOCK_CAPABLE",
1878
2051
  /** When a StartSession is sent to this EVSE, the MSP is required to add the optional connector_id field in the StartSession object. */
1879
- START_SESSION_CONNECTOR_REQUIRED = "START_SESSION_CONNECTOR_REQUIRED",
2052
+ START_SESSION_CONNECTOR_REQUIRED = "START_SESSION_CONNECTOR_REQUIRED"
1880
2053
  }
1881
2054
 
1882
2055
  /** The format of the connector, whether it is a socket or a plug. */
@@ -1884,7 +2057,7 @@ export enum OCPIConnectorFormat {
1884
2057
  /** The connector is a socket; the EV user needs to bring a fitting plug. */
1885
2058
  SOCKET = "SOCKET",
1886
2059
  /** The connector is an attached cable; the EV users car needs to have a fitting inlet. */
1887
- CABLE = "CABLE",
2060
+ CABLE = "CABLE"
1888
2061
  }
1889
2062
 
1890
2063
  /** Deprecated: Please use ConnectorType instead */
@@ -1966,7 +2139,7 @@ export enum OCPIConnectorType {
1966
2139
  /** The connector type is NEMA 14-30, 3 pins, rating of 30 A */
1967
2140
  NEMA_14_30 = "NEMA_14_30",
1968
2141
  /** The connector type is NEMA 14-50, 3 pins, rating of 50 A */
1969
- NEMA_14_50 = "NEMA_14_50",
2142
+ NEMA_14_50 = "NEMA_14_50"
1970
2143
  }
1971
2144
 
1972
2145
  export enum OCPIDayOfWeek {
@@ -1976,7 +2149,7 @@ export enum OCPIDayOfWeek {
1976
2149
  THURSDAY = "THURSDAY",
1977
2150
  FRIDAY = "FRIDAY",
1978
2151
  SATURDAY = "SATURDAY",
1979
- SUNDAY = "SUNDAY",
2152
+ SUNDAY = "SUNDAY"
1980
2153
  }
1981
2154
 
1982
2155
  export type OCPIDisplayText = {
@@ -2024,7 +2197,7 @@ export enum OCPIEnergySourceCategory {
2024
2197
  /** Regenerative power from wind turbines. */
2025
2198
  WIND = "WIND",
2026
2199
  /** Regenerative power from water turbines. */
2027
- WATER = "WATER",
2200
+ WATER = "WATER"
2028
2201
  }
2029
2202
 
2030
2203
  /** Amount of waste produced/emitted per kWh. */
@@ -2040,7 +2213,7 @@ export enum OCPIEnvironmentalImpactCategory {
2040
2213
  /** Produced nuclear waste in grams per kilowatthour. */
2041
2214
  NUCLEAR_WASTE = "NUCLEAR_WASTE",
2042
2215
  /** Exhausted carbon dioxide in grams per kilowatthour. */
2043
- CARBON_DIOXIDE = "CARBON_DIOXIDE",
2216
+ CARBON_DIOXIDE = "CARBON_DIOXIDE"
2044
2217
  }
2045
2218
 
2046
2219
  /** Specifies one exceptional period for opening or access hours. */
@@ -2091,7 +2264,7 @@ export enum OCPIFacility {
2091
2264
  /** A Fuel station. */
2092
2265
  FUEL_STATION = "FUEL_STATION",
2093
2266
  /** Wifi or other type of internet available. */
2094
- WIFI = "WIFI",
2267
+ WIFI = "WIFI"
2095
2268
  }
2096
2269
 
2097
2270
  /** This class defines the geo location of the Charge Point. The geodetic system to be used is WGS 84. */
@@ -2144,7 +2317,7 @@ export enum OCPIImageCategory {
2144
2317
  /** Other */
2145
2318
  OTHER = "OTHER",
2146
2319
  /** Logo of the charge point owner, for example a local store, to be displayed in the EVSEs detailed information view. */
2147
- OWNER = "OWNER",
2320
+ OWNER = "OWNER"
2148
2321
  }
2149
2322
 
2150
2323
  /** This value, if provided, represents the restriction to the parking spot for different purposes. */
@@ -2158,7 +2331,7 @@ export enum OCPIParkingRestriction {
2158
2331
  /** Parking spot for customers/guests only, for example in case of a hotel or shop. */
2159
2332
  CUSTOMERS = "CUSTOMERS",
2160
2333
  /** Parking spot only suitable for (electric) motorcycles or scooters. */
2161
- MOTORCYCLES = "MOTORCYCLES",
2334
+ MOTORCYCLES = "MOTORCYCLES"
2162
2335
  }
2163
2336
 
2164
2337
  /** Reflects the general type of the charge point’s location. May be used for user information. */
@@ -2174,7 +2347,7 @@ export enum OCPIParkingType {
2174
2347
  /** Parking in public space along a street. */
2175
2348
  ON_STREET = "ON_STREET",
2176
2349
  /** Multistorey car park, mainly underground. */
2177
- UNDERGROUND_GARAGE = "UNDERGROUND_GARAGE",
2350
+ UNDERGROUND_GARAGE = "UNDERGROUND_GARAGE"
2178
2351
  }
2179
2352
 
2180
2353
  export enum OCPIPowerType {
@@ -2187,7 +2360,7 @@ export enum OCPIPowerType {
2187
2360
  /** AC two phases using split phase system. */
2188
2361
  AC_2_PHASE_SPLIT = "AC_2_PHASE_SPLIT",
2189
2362
  /** Direct Current. */
2190
- DC = "DC",
2363
+ DC = "DC"
2191
2364
  }
2192
2365
 
2193
2366
  export type OCPIPrice = {
@@ -2222,7 +2395,7 @@ export enum OCPIReservationRestrictionType {
2222
2395
  /** Used in TariffElements to describe costs for a reservation. */
2223
2396
  RESERVATION = "RESERVATION",
2224
2397
  /** Used in TariffElements to describe costs for a reservation that expires (i.e. driver does not start a charging session before expiry_date of the reservation). */
2225
- RESERVATION_EXPIRES = "RESERVATION_EXPIRES",
2398
+ RESERVATION_EXPIRES = "RESERVATION_EXPIRES"
2226
2399
  }
2227
2400
 
2228
2401
  /** The status of an EVSE. */
@@ -2244,7 +2417,7 @@ export enum OCPIStatus {
2244
2417
  /** The EVSE/Connector is reserved for a particular EV driver and is unavailable for other drivers. */
2245
2418
  RESERVED = "RESERVED",
2246
2419
  /** No status information available (also used when offline). */
2247
- UNKNOWN = "UNKNOWN",
2420
+ UNKNOWN = "UNKNOWN"
2248
2421
  }
2249
2422
 
2250
2423
  /** This type is used to schedule status periods in the future. The eMSP can provide this information to the EV user for trip planning purposes. A period MAY have no end. Example: "This station will be running as of tomorrow. Today it is still planned and under construction. */
@@ -2296,7 +2469,7 @@ export enum OCPITariffDimensionType {
2296
2469
  /** Time not charging: defined in hours, step_size multiplier: 1 second */
2297
2470
  PARKING_TIME = "PARKING_TIME",
2298
2471
  /** Time charging: defined in hours, step_size multiplier: 1 second Can also be used in combination with a RESERVATION restriction to describe the price of the reservation time. */
2299
- TIME = "TIME",
2472
+ TIME = "TIME"
2300
2473
  }
2301
2474
 
2302
2475
  export type OCPITariffElement = {
@@ -2347,7 +2520,7 @@ export enum OCPITariffType {
2347
2520
  /** Used to describe that a tariff is valid when charging preference: GREEN is set for the session */
2348
2521
  PROFILE_GREEN = "PROFILE_GREEN",
2349
2522
  /** Used to describe that a tariff is valid when using an RFID, without any charging preference, or when charging preference: REGULAR is set for the session */
2350
- REGULAR = "REGULAR",
2523
+ REGULAR = "REGULAR"
2351
2524
  }
2352
2525
 
2353
2526
  /** The operator data which extends OCPI BusinessDetails */
@@ -2400,7 +2573,7 @@ export enum ParkingCost {
2400
2573
  /** Parking is free */
2401
2574
  FREE = "free",
2402
2575
  /** Parking includes a fee */
2403
- PAID = "paid",
2576
+ PAID = "paid"
2404
2577
  }
2405
2578
 
2406
2579
  export type PathSegment = {
@@ -2436,7 +2609,7 @@ export type PointInput = {
2436
2609
 
2437
2610
  /** GeoJSON Point type */
2438
2611
  export enum PointType {
2439
- POINT = "Point",
2612
+ POINT = "Point"
2440
2613
  }
2441
2614
 
2442
2615
  /** The list of powers for the speed type */
@@ -2500,7 +2673,7 @@ export enum PricingListElementType {
2500
2673
  /** Fixed price per hour */
2501
2674
  TIME = "TIME",
2502
2675
  /** Parking price per hour */
2503
- PARKING_TIME = "PARKING_TIME",
2676
+ PARKING_TIME = "PARKING_TIME"
2504
2677
  }
2505
2678
 
2506
2679
  export type PricingListProduct = {
@@ -2525,6 +2698,8 @@ export type Query = {
2525
2698
  carPremium?: Maybe<CarPremium>;
2526
2699
  /** Get a full list of cars */
2527
2700
  carList?: Maybe<Array<Maybe<CarList>>>;
2701
+ /** [BETA] Get a navigation session by ID */
2702
+ navigation?: Maybe<Navigation>;
2528
2703
  /** Get a full list of operators */
2529
2704
  operatorList?: Maybe<Array<Maybe<Operator>>>;
2530
2705
  /** Get information about an operator by its ID */
@@ -2553,7 +2728,7 @@ export type Query = {
2553
2728
  tariff?: Maybe<OCPITariff>;
2554
2729
  /** Get the full list of tariffs */
2555
2730
  tariffList?: Maybe<Array<Maybe<OCPITariff>>>;
2556
- /** Convert a route to navigation instructions for a specified mapping provider */
2731
+ /** Deprecated: This query will be removed in favor of navigation query and subscription. Mapping can be retrieved via the instructions field. */
2557
2732
  navigationMapping?: Maybe<Scalars["JSON"]>;
2558
2733
  };
2559
2734
 
@@ -2578,6 +2753,10 @@ export type QuerycarListArgs = {
2578
2753
  page?: Maybe<Scalars["Int"]>;
2579
2754
  };
2580
2755
 
2756
+ export type QuerynavigationArgs = {
2757
+ id: Scalars["ID"];
2758
+ };
2759
+
2581
2760
  export type QueryoperatorListArgs = {
2582
2761
  query?: Maybe<OperatorListQuery>;
2583
2762
  search?: Maybe<Scalars["String"]>;
@@ -2617,12 +2796,16 @@ export type QuerystationArgs = {
2617
2796
 
2618
2797
  export type QuerystationListArgs = {
2619
2798
  query?: Maybe<StationListQuery>;
2799
+ filter?: Maybe<StationListFilter>;
2800
+ search?: Maybe<Scalars["String"]>;
2620
2801
  size?: Maybe<Scalars["Int"]>;
2621
2802
  page?: Maybe<Scalars["Int"]>;
2622
2803
  };
2623
2804
 
2624
2805
  export type QuerystationAroundArgs = {
2625
- query: StationAroundQuery;
2806
+ query?: Maybe<StationAroundQuery>;
2807
+ filter?: Maybe<StationAroundFilter>;
2808
+ search?: Maybe<Scalars["String"]>;
2626
2809
  size?: Maybe<Scalars["Int"]>;
2627
2810
  page?: Maybe<Scalars["Int"]>;
2628
2811
  };
@@ -2669,26 +2852,26 @@ export type RequestEv = {
2669
2852
  };
2670
2853
 
2671
2854
  export type RequestEvBattery = {
2672
- /** The usable capacity of the battery used to compute the route. If this in not filled in, value as the car batteryUsableKwh. */
2855
+ /** Usable capacity of the battery used to compute the route. If this in not filled in, value as the car batteryUsableKwh */
2673
2856
  capacity?: Maybe<RequestEvBatteryValue>;
2674
- /** Usable capacity of a battery, in kWh. This value is computed from the provided capacity value. */
2857
+ /** Usable capacity of a battery, in kWh. This value is computed from the provided capacity value */
2675
2858
  capacityKwh?: Maybe<Scalars["Float"]>;
2676
- /** Current amount of energy in a battery. If this is not filled in, we assume the battery is full and it will be equal to the batteryUsableKwh. */
2859
+ /** Current amount of energy in a battery. If this is not filled in, we assume the battery is full and it will be equal to the batteryUsableKwh */
2677
2860
  stateOfCharge?: Maybe<RequestEvBatteryValue>;
2678
- /** Current amount of energy in a battery, in kWh. This value is computed from the provided state of charge. */
2861
+ /** Current amount of energy in a battery, in kWh. This value is computed from the provided state of charge */
2679
2862
  stateOfChargeKwh?: Maybe<Scalars["Float"]>;
2680
- /** Desired final amount of energy in a battery. If this is not filled in, it will be set to 20% of the car batteryUsableKwh. */
2863
+ /** Desired final amount of energy in a battery. If this is not filled in, it will be set to 20% of the car batteryUsableKwh */
2681
2864
  finalStateOfCharge?: Maybe<RequestEvBatteryValue>;
2682
- /** Desired final amount of energy in a battery, in kWh. This value is computed from the provided final state of charge. */
2865
+ /** Desired final amount of energy in a battery, in kWh. This value is computed from the provided final state of charge */
2683
2866
  finalStateOfChargeKwh?: Maybe<Scalars["Float"]>;
2684
2867
  };
2685
2868
 
2686
2869
  export type RequestEvBatteryInput = {
2687
- /** Usable capacity of a battery used to compute a route. Allowed value is between -50% and 50% of the car usable battery capacity. If this in not filled in, we assume it is the same value as the car batteryUsableKwh. */
2870
+ /** Usable capacity of a battery used to compute a route. We recommend you stay between 50% and 150%. If this in not filled in, we assume it is the same value as the car batteryUsableKwh */
2688
2871
  capacity?: Maybe<RequestEvBatteryInputValue>;
2689
- /** Current amount of energy in a battery. If this is not filled in, we assume the battery is full and we fill it in with car batteryUsableKwh. */
2872
+ /** Current amount of energy in a battery. If this is not filled in, we assume the battery is full and we fill it in with car batteryUsableKwh */
2690
2873
  stateOfCharge?: Maybe<RequestEvBatteryInputValue>;
2691
- /** Desired final amount of energy in a battery. If this is not filled in, we assume it is 20% of the car batteryUsableKwh. */
2874
+ /** Desired final amount of energy in a battery. If this is not filled in, we assume it is 20% of the car batteryUsableKwh */
2692
2875
  finalStateOfCharge?: Maybe<RequestEvBatteryInputValue>;
2693
2876
  };
2694
2877
 
@@ -2831,7 +3014,7 @@ export type RequestRouteInput = {
2831
3014
  via?: Maybe<Array<Maybe<FeaturePointInput>>>;
2832
3015
  /** Alternative stations along a route within a specified radius in meters (minimum 500, maximum 5000) */
2833
3016
  stationsAlongRouteRadius?: Maybe<Scalars["Int"]>;
2834
- /** Flag indicating wether the turn-by-turn navigation instructions should be prepared. Disclaimer: The functionality is under active development and the final API is a subject to change. Not ready for production */
3017
+ /** Deprecated: all routes will have turn-by-turn instructions prepared. Boolean will be ignored */
2835
3018
  instructions?: Maybe<Scalars["Boolean"]>;
2836
3019
  };
2837
3020
 
@@ -2958,6 +3141,8 @@ export type Route = {
2958
3141
  user?: Maybe<RequestUser>;
2959
3142
  /** Route request data */
2960
3143
  routeRequest?: Maybe<RequestRoute>;
3144
+ /** Application who requested a route */
3145
+ app?: Maybe<RouteApp>;
2961
3146
  /** Route status */
2962
3147
  status?: Maybe<RouteStatus>;
2963
3148
  };
@@ -2969,15 +3154,15 @@ export type RouteAlternative = {
2969
3154
  type?: Maybe<RouteAlternativeType>;
2970
3155
  /** Number of charges along a route */
2971
3156
  charges?: Maybe<Scalars["Int"]>;
2972
- /** Number of available charges along a route. */
3157
+ /** Number of available charges along a route */
2973
3158
  chargesAvailable?: Maybe<Scalars["Int"]>;
2974
- /** Number of occupied charges along a route. */
3159
+ /** Number of occupied charges along a route */
2975
3160
  chargesOccupied?: Maybe<Scalars["Int"]>;
2976
- /** Number of unknown charges along a route. */
3161
+ /** Number of unknown charges along a route */
2977
3162
  chargesUnknown?: Maybe<Scalars["Int"]>;
2978
- /** Number of out of order charges along a route. */
3163
+ /** Number of out of order charges along a route */
2979
3164
  chargesOutOfOrder?: Maybe<Scalars["Int"]>;
2980
- /** Total distance of a route in meters. */
3165
+ /** Total distance of a route in meters */
2981
3166
  distance?: Maybe<Scalars["Int"]>;
2982
3167
  /** Total duration of a route, including charge time, in seconds */
2983
3168
  duration?: Maybe<Scalars["Int"]>;
@@ -2998,9 +3183,9 @@ export type RouteAlternative = {
2998
3183
  rangeStartPercentage?: Maybe<Scalars["Int"]>;
2999
3184
  /** Remaining range, in meters, at the end of a trip */
3000
3185
  rangeEnd?: Maybe<Scalars["Int"]>;
3001
- /** Remaining range, energy in kWh, at the end of a trip. */
3186
+ /** Remaining range, energy in kWh, at the end of a trip */
3002
3187
  rangeEndKwh?: Maybe<Scalars["Float"]>;
3003
- /** Remaining range, energy in percentage, at the end of a trip. */
3188
+ /** Remaining range, energy in percentage, at the end of a trip */
3004
3189
  rangeEndPercentage?: Maybe<Scalars["Int"]>;
3005
3190
  /** Text information about a route direction */
3006
3191
  via?: Maybe<Scalars["String"]>;
@@ -3055,9 +3240,14 @@ export enum RouteAlternativeType {
3055
3240
  /** Best matching route based on operator and amenities preferences */
3056
3241
  BESTMATCHING = "bestMatching",
3057
3242
  /** An alternative to the fastest route */
3058
- ALTERNATIVE = "alternative",
3243
+ ALTERNATIVE = "alternative"
3059
3244
  }
3060
3245
 
3246
+ export type RouteApp = {
3247
+ /** ID of the app who requested a route */
3248
+ id?: Maybe<Scalars["ID"]>;
3249
+ };
3250
+
3061
3251
  export type RouteInstruction = {
3062
3252
  /** Information about the points on the polyline */
3063
3253
  points?: Maybe<RouteInstructionPoints>;
@@ -3105,7 +3295,7 @@ export enum RouteInstructionSign {
3105
3295
  PT_START_TRIP = "PT_START_TRIP",
3106
3296
  PT_TRANSFER = "PT_TRANSFER",
3107
3297
  PT_END_TRIP = "PT_END_TRIP",
3108
- IGNORE = "IGNORE",
3298
+ IGNORE = "IGNORE"
3109
3299
  }
3110
3300
 
3111
3301
  export type RouteLeg = {
@@ -3127,7 +3317,7 @@ export type RouteLeg = {
3127
3317
  rangeEnd?: Maybe<Scalars["Int"]>;
3128
3318
  /** Total energy left in a battery at the end of a leg, in kWh */
3129
3319
  rangeEndKwh?: Maybe<Scalars["Float"]>;
3130
- /** Remaining range, energy in percentage, at the end of a trip. */
3320
+ /** Remaining range, energy in percentage, at the end of a trip */
3131
3321
  rangeEndPercentage?: Maybe<Scalars["Int"]>;
3132
3322
  /** Origin point location */
3133
3323
  origin?: Maybe<FeaturePoint>;
@@ -3248,7 +3438,7 @@ export enum RouteOperatorsType {
3248
3438
  /** Operators given in the operators ranking will be preferred when calculating routes */
3249
3439
  PREFERRED = "preferred",
3250
3440
  /** Operators given in the operators ranking will be required when calculating routes, all other operators will be ignored */
3251
- REQUIRED = "required",
3441
+ REQUIRED = "required"
3252
3442
  }
3253
3443
 
3254
3444
  export type RoutePath = {
@@ -3277,7 +3467,7 @@ export enum RouteSeason {
3277
3467
  /** We suppose it is winter and we have the worst weather conditions */
3278
3468
  WINTER = "winter",
3279
3469
  /** We fetch the current weather conditions */
3280
- CURRENT = "current",
3470
+ CURRENT = "current"
3281
3471
  }
3282
3472
 
3283
3473
  export type RouteStationsAlong = {
@@ -3306,7 +3496,7 @@ export enum RouteStatus {
3306
3496
  /** We finished the computing the route, without any result. Final status */
3307
3497
  NOT_FOUND = "not_found",
3308
3498
  /** An error occurred while computing the route. Final status */
3309
- ERROR = "error",
3499
+ ERROR = "error"
3310
3500
  }
3311
3501
 
3312
3502
  export type RouteStep = {
@@ -3334,6 +3524,7 @@ export enum RouteTagType {
3334
3524
  HIGHWAY = "highway",
3335
3525
  TOLL = "toll",
3336
3526
  FERRY = "ferry",
3527
+ WALKING = "walking"
3337
3528
  }
3338
3529
 
3339
3530
  /** Standards(plug type) stats model */
@@ -3436,18 +3627,54 @@ export type Station = {
3436
3627
  };
3437
3628
 
3438
3629
  /** Filter which can be applied to retrieve the station around list action */
3630
+ export type StationAroundFilter = {
3631
+ /** The GeoJSON Point of the center of the around me circle */
3632
+ location?: Maybe<PointInput>;
3633
+ /** Distance, in meters, to search around */
3634
+ distance?: Maybe<Scalars["Int"]>;
3635
+ /** Powers in kWh */
3636
+ powers?: Maybe<Array<Maybe<Scalars["Float"]>>>;
3637
+ /** Amenities available near a station */
3638
+ amenities?: Maybe<Array<Maybe<Amenities>>>;
3639
+ /** Station speed */
3640
+ power_groups?: Maybe<Array<Maybe<StationSpeedType>>>;
3641
+ /** Station socket or plug standards */
3642
+ connectors?: Maybe<Array<Maybe<ConnectorType>>>;
3643
+ /** Flag that allows you to return only available stations */
3644
+ available_only?: Maybe<Scalars["Boolean"]>;
3645
+ /** Flag indicating if only stations that are owned by an operator from a clients ranking list are returned */
3646
+ preferred_operator?: Maybe<Scalars["Boolean"]>;
3647
+ };
3648
+
3649
+ /** Deprecated: Replaced by filter & search params */
3439
3650
  export type StationAroundQuery = {
3440
3651
  /** The GeoJSON Point of the center of the around me circle */
3441
- location: PointInput;
3652
+ location?: Maybe<PointInput>;
3442
3653
  /** Distance, in meters, to search around */
3443
- distance: Scalars["Int"];
3654
+ distance?: Maybe<Scalars["Int"]>;
3444
3655
  /** Power in kWh */
3445
3656
  power?: Maybe<Array<Maybe<Scalars["Float"]>>>;
3446
- /** Amentities available near a station. Values: restaurant, bathroom, supermarket, playground, coffee, shopping, museum, hotel, park */
3657
+ /** Amenities available near a station. Values: restaurant, bathroom, supermarket, playground, coffee, shopping, museum, hotel, park */
3447
3658
  amenities?: Maybe<Array<Maybe<Scalars["String"]>>>;
3448
3659
  };
3449
3660
 
3450
3661
  /** Filter which can be applied to retrieve the station list action */
3662
+ export type StationListFilter = {
3663
+ /** Powers in kWh */
3664
+ powers?: Maybe<Array<Maybe<Scalars["Float"]>>>;
3665
+ /** Amenities available near a station */
3666
+ amenities?: Maybe<Array<Maybe<Amenities>>>;
3667
+ /** Station speed */
3668
+ power_groups?: Maybe<Array<Maybe<StationSpeedType>>>;
3669
+ /** Station socket or plug standards */
3670
+ connectors?: Maybe<Array<Maybe<ConnectorType>>>;
3671
+ /** Flag that allows you to return only available stations */
3672
+ available_only?: Maybe<Scalars["Boolean"]>;
3673
+ /** Flag indicating if only stations that are owned by an operator from a clients ranking list are returned */
3674
+ preferred_operator?: Maybe<Scalars["Boolean"]>;
3675
+ };
3676
+
3677
+ /** Deprecated: Replaced by filter & search params */
3451
3678
  export type StationListQuery = {
3452
3679
  /** ID of the station */
3453
3680
  id?: Maybe<Scalars["ID"]>;
@@ -3484,7 +3711,7 @@ export enum StationSpeedType {
3484
3711
  /** Fast charging stations (above 43 kWh and below 150 kWh) */
3485
3712
  FAST = "fast",
3486
3713
  /** Ultra fast charging stations (above 150 kWh) */
3487
- TURBO = "turbo",
3714
+ TURBO = "turbo"
3488
3715
  }
3489
3716
 
3490
3717
  /** The station stats model */
@@ -3507,9 +3734,13 @@ export enum StepType {
3507
3734
  TOLL = "toll",
3508
3735
  /** This step is a ferry */
3509
3736
  FERRY = "ferry",
3737
+ /** This step is reachable by walking */
3738
+ WALKING = "walking"
3510
3739
  }
3511
3740
 
3512
3741
  export type Subscription = {
3742
+ /** [BETA] Subscribe to navigation session system event updates. We strongly recommend using this at all times to not miss any updates */
3743
+ navigationUpdatedById?: Maybe<Navigation>;
3513
3744
  /**
3514
3745
  * Subscription for a new operator was added in the system event
3515
3746
  * @deprecated operatorAdded has been removed, no value will be sent.
@@ -3564,6 +3795,10 @@ export type Subscription = {
3564
3795
  stationDeletedById?: Maybe<Station>;
3565
3796
  };
3566
3797
 
3798
+ export type SubscriptionnavigationUpdatedByIdArgs = {
3799
+ id: Scalars["ID"];
3800
+ };
3801
+
3567
3802
  export type SubscriptionoperatorUpdatedByIdArgs = {
3568
3803
  id: Scalars["ID"];
3569
3804
  };