@chargetrip/types 1.20.0 → 1.25.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 */
@@ -145,7 +147,7 @@ export type Car = {
145
147
  */
146
148
  chargetripRange?: Maybe<ChargetripRange>;
147
149
  /**
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
150
+ * Cars that support fast charging have a minimum charging speed of 43 kWh
149
151
  * @deprecated In favor of routing.fast_charging_support
150
152
  */
151
153
  fastChargingSupport?: Maybe<Scalars["Boolean"]>;
@@ -453,7 +455,7 @@ export type CarList = {
453
455
  */
454
456
  chargetripRange?: Maybe<ChargetripRange>;
455
457
  /**
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
458
+ * Cars that support fast charging have a minimum charging speed of 43 kWh
457
459
  * @deprecated In favor of routing.fast_charging_support
458
460
  */
459
461
  fastChargingSupport?: Maybe<Scalars["Boolean"]>;
@@ -621,10 +623,7 @@ export type CarListRange = {
621
623
  };
622
624
 
623
625
  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
- */
626
+ /** Cars that support fast charging have a minimum charging speed of 43 kWh */
628
627
  fast_charging_support?: Maybe<Scalars["Boolean"]>;
629
628
  };
630
629
 
@@ -681,7 +680,7 @@ export type CarPerformance = {
681
680
  /** Car plug model */
682
681
  export type CarPlug = {
683
682
  /** Plug type, known as connector standard in OCPI */
684
- standard?: Maybe<OCPIConnectorType>;
683
+ standard?: Maybe<ConnectorType>;
685
684
  /** Usable electric power in kW */
686
685
  power?: Maybe<Scalars["Float"]>;
687
686
  /** Maximum electric power in kW */
@@ -899,7 +898,7 @@ export type CarPremiumChargeOptionOBC = {
899
898
 
900
899
  export type CarPremiumChargePlug = {
901
900
  /** Type of charge port on vehicle */
902
- value?: Maybe<OCPIConnectorType>;
901
+ value?: Maybe<ConnectorType>;
903
902
  /** Indicates if value is an estimate */
904
903
  is_estimated?: Maybe<Scalars["Boolean"]>;
905
904
  /** Location of charge port */
@@ -1176,10 +1175,7 @@ export type CarPremiumRangeValue = {
1176
1175
  };
1177
1176
 
1178
1177
  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
- */
1178
+ /** Cars that support fast charging have a minimum charging speed of 43 kWh */
1183
1179
  fast_charging_support?: Maybe<Scalars["Boolean"]>;
1184
1180
  /** Drag coefficient */
1185
1181
  drag_coefficient?: Maybe<Scalars["Float"]>;
@@ -1264,10 +1260,7 @@ export type CarRangeValue = {
1264
1260
  };
1265
1261
 
1266
1262
  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
- */
1263
+ /** Cars that support fast charging have a minimum charging speed of 43 kWh */
1271
1264
  fast_charging_support?: Maybe<Scalars["Boolean"]>;
1272
1265
  };
1273
1266
 
@@ -1301,7 +1294,7 @@ export enum ChargeMode {
1301
1294
  /** A groupped representation of EVSEs */
1302
1295
  export type Charger = {
1303
1296
  /** Type of charger */
1304
- standard?: Maybe<OCPIConnectorType>;
1297
+ standard?: Maybe<ConnectorType>;
1305
1298
  /** Power of a charger */
1306
1299
  power?: Maybe<Scalars["Float"]>;
1307
1300
  /** Price of a charger */
@@ -1350,7 +1343,7 @@ export type Connector = {
1350
1343
  /** Identifier of a connector within an EVSE. Two connectors may have the same ID as long as they do not belong to the same EVSE object. */
1351
1344
  id?: Maybe<Scalars["String"]>;
1352
1345
  /** Standard of an installed connector. */
1353
- standard?: Maybe<OCPIConnectorType>;
1346
+ standard?: Maybe<ConnectorType>;
1354
1347
  /** Format (socket/cable) of an installed connector. */
1355
1348
  format?: Maybe<OCPIConnectorFormat>;
1356
1349
  /** Type of power of an installed connector. */
@@ -1381,8 +1374,92 @@ export type Connector = {
1381
1374
  properties?: Maybe<Scalars["JSON"]>;
1382
1375
  /** List of valid charging tariffs */
1383
1376
  tariff?: Maybe<Array<Maybe<OCPITariff>>>;
1377
+ /** Charging prices, only available when using the EcoMovement database */
1378
+ pricing?: Maybe<Pricing>;
1384
1379
  };
1385
1380
 
1381
+ /** The socket or plug standard of the charging point. */
1382
+ export enum ConnectorType {
1383
+ /** The connector type is CHAdeMO, DC */
1384
+ CHADEMO = "CHADEMO",
1385
+ /** Standard/domestic household, type "A", NEMA 1-15, 2 pins */
1386
+ DOMESTIC_A = "DOMESTIC_A",
1387
+ /** Standard/domestic household, type "B", NEMA 5-15, 3 pins */
1388
+ DOMESTIC_B = "DOMESTIC_B",
1389
+ /** Standard/domestic household, type "C", CEE 7/17, 2 pins */
1390
+ DOMESTIC_C = "DOMESTIC_C",
1391
+ /** Standard/domestic household, type "D", 3 pins */
1392
+ DOMESTIC_D = "DOMESTIC_D",
1393
+ /** Standard/domestic household, type "E", CEE 7/5 3 pins */
1394
+ DOMESTIC_E = "DOMESTIC_E",
1395
+ /** Standard/domestic household, type "F", CEE 7/4, Schuko, 3 pins */
1396
+ DOMESTIC_F = "DOMESTIC_F",
1397
+ /** Standard/domestic household, type "G", BS 1363, Commonwealth, 3 pins */
1398
+ DOMESTIC_G = "DOMESTIC_G",
1399
+ /** Standard/domestic household, type "H", SI-32, 3 pins */
1400
+ DOMESTIC_H = "DOMESTIC_H",
1401
+ /** Standard/domestic household, type "I", AS 3112, 3 pins */
1402
+ DOMESTIC_I = "DOMESTIC_I",
1403
+ /** Standard/domestic household, type "J", SEV 1011, 3 pins */
1404
+ DOMESTIC_J = "DOMESTIC_J",
1405
+ /** Standard/domestic household, type "K", DS 60884-2-D1, 3 pins */
1406
+ DOMESTIC_K = "DOMESTIC_K",
1407
+ /** Standard/domestic household, type "L", CEI 23-16-VII, 3 pins */
1408
+ DOMESTIC_L = "DOMESTIC_L",
1409
+ /** Standard/Domestic household, type "M", BS 546, 3 pins */
1410
+ DOMESTIC_M = "DOMESTIC_M",
1411
+ /** Standard/Domestic household, type "N", NBR 14136, 3 pins */
1412
+ DOMESTIC_N = "DOMESTIC_N",
1413
+ /** Standard/Domestic household, type "O", TIS 166-2549, 3 pins */
1414
+ DOMESTIC_O = "DOMESTIC_O",
1415
+ /** IEC 60309-2 Industrial connector single phase 16 amperes (usually blue) */
1416
+ IEC_60309_2_SINGLE_16 = "IEC_60309_2_single_16",
1417
+ /** IEC 60309-2 Industrial connector three phase 16 amperes (usually red) */
1418
+ IEC_60309_2_THREE_16 = "IEC_60309_2_three_16",
1419
+ /** IEC 60309-2 Industrial connector three phase 32 amperes (usually red) */
1420
+ IEC_60309_2_THREE_32 = "IEC_60309_2_three_32",
1421
+ /** IEC 60309-2 Industrial connector three phase 64 amperes (usually red) */
1422
+ IEC_60309_2_THREE_64 = "IEC_60309_2_three_64",
1423
+ /** IEC 62196 Type 1 "SAE J1772" */
1424
+ IEC_62196_T1 = "IEC_62196_T1",
1425
+ /** Combo Type 1 based, DC */
1426
+ IEC_62196_T1_COMBO = "IEC_62196_T1_COMBO",
1427
+ /** IEC 62196 Type 2 "Mennekes" */
1428
+ IEC_62196_T2 = "IEC_62196_T2",
1429
+ /** Combo Type 2 based, DC */
1430
+ IEC_62196_T2_COMBO = "IEC_62196_T2_COMBO",
1431
+ /** IEC 62196 Type 3A */
1432
+ IEC_62196_T3A = "IEC_62196_T3A",
1433
+ /** IEC 62196 Type 3C "Scame" */
1434
+ IEC_62196_T3C = "IEC_62196_T3C",
1435
+ /** On-board bottom-up-pantograph typically for bus charging */
1436
+ PANTOGRAPH_BOTTOM_UP = "PANTOGRAPH_BOTTOM_UP",
1437
+ /** Off-board top-down-pantograph typically for bus charging */
1438
+ PANTOGRAPH_TOP_DOWN = "PANTOGRAPH_TOP_DOWN",
1439
+ /** Tesla connector "Roadster"-type (round, 4 pins) */
1440
+ TESLA_R = "TESLA_R",
1441
+ /** Tesla connector "Model-S"-type (oval, 5 pins) */
1442
+ TESLA_S = "TESLA_S",
1443
+ /** The connector type is GB_T (Chinese standard), DC */
1444
+ GB_T = "GB_T",
1445
+ /** The ChaoJi connector. The new generation charging connector, harmonized between CHAdeMO and GB/T. DC. */
1446
+ CHAOJI = "CHAOJI",
1447
+ /** The connector type is NEMA 5-20, 3 pins */
1448
+ NEMA_5_20 = "NEMA_5_20",
1449
+ /** The connector type is NEMA 6-30, 3 pins */
1450
+ NEMA_6_30 = "NEMA_6_30",
1451
+ /** The connector type is NEMA 6-50, 3 pins */
1452
+ NEMA_6_50 = "NEMA_6_50",
1453
+ /** The connector type is NEMA 10-30, 3 pins */
1454
+ NEMA_10_30 = "NEMA_10_30",
1455
+ /** The connector type is NEMA 10-50, 3 pins */
1456
+ NEMA_10_50 = "NEMA_10_50",
1457
+ /** The connector type is NEMA 14-30, 3 pins, rating of 30 A */
1458
+ NEMA_14_30 = "NEMA_14_30",
1459
+ /** The connector type is NEMA 14-50, 3 pins, rating of 50 A */
1460
+ NEMA_14_50 = "NEMA_14_50"
1461
+ }
1462
+
1386
1463
  /** The complete contact information */
1387
1464
  export type Contact = {
1388
1465
  /** The phone number in international format */
@@ -1700,7 +1777,15 @@ export enum FeatureType {
1700
1777
  FEATURE = "Feature"
1701
1778
  }
1702
1779
 
1703
- /** The types of the leg */
1780
+ /** Navigation service providers available */
1781
+ export enum InstructionsFormat {
1782
+ /** Chargetrip raw instructions */
1783
+ CHARGETRIP = "Chargetrip",
1784
+ /** Mapbox instructions mapping */
1785
+ MAPBOXV5 = "MapboxV5"
1786
+ }
1787
+
1788
+ /** Types of a leg */
1704
1789
  export enum LegType {
1705
1790
  /** This leg ends at a charging station and the car must recharge */
1706
1791
  STATION = "station",
@@ -1714,7 +1799,29 @@ export enum LegType {
1714
1799
  STATIONFINAL = "stationFinal"
1715
1800
  }
1716
1801
 
1802
+ /** Preferred language for the mapping */
1803
+ export enum MappingLanguage {
1804
+ /** English(US) */
1805
+ EN = "en"
1806
+ }
1807
+
1808
+ /** Navigation service providers available */
1809
+ export enum MappingProvider {
1810
+ /** Chargetrip raw instructions */
1811
+ CHARGETRIP = "Chargetrip",
1812
+ /** Mapbox instructions mapping */
1813
+ MAPBOXV5 = "MapboxV5"
1814
+ }
1815
+
1717
1816
  export type Mutation = {
1817
+ /** [BETA] Start a new navigation session on top of an existing route */
1818
+ startNavigation?: Maybe<Scalars["ID"]>;
1819
+ /** [BETA] Update the navigation session */
1820
+ updateNavigation?: Maybe<Scalars["Void"]>;
1821
+ /** [BETA] Recalculate the current navigation route */
1822
+ recalculateNavigation?: Maybe<Scalars["Void"]>;
1823
+ /** [BETA] End a navigation session */
1824
+ finishNavigation?: Maybe<Scalars["Void"]>;
1718
1825
  /**
1719
1826
  * Add a new review.
1720
1827
  * 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
@@ -1732,6 +1839,22 @@ export type Mutation = {
1732
1839
  newRoute?: Maybe<Scalars["ID"]>;
1733
1840
  };
1734
1841
 
1842
+ export type MutationstartNavigationArgs = {
1843
+ input: NavigationStartInput;
1844
+ };
1845
+
1846
+ export type MutationupdateNavigationArgs = {
1847
+ input: NavigationUpdateInput;
1848
+ };
1849
+
1850
+ export type MutationrecalculateNavigationArgs = {
1851
+ input: NavigationReacalculateInput;
1852
+ };
1853
+
1854
+ export type MutationfinishNavigationArgs = {
1855
+ input: NavigationFinishInput;
1856
+ };
1857
+
1735
1858
  export type MutationaddReviewArgs = {
1736
1859
  review: ReviewAdd;
1737
1860
  };
@@ -1744,6 +1867,137 @@ export type MutationnewRouteArgs = {
1744
1867
  input?: Maybe<RequestInput>;
1745
1868
  };
1746
1869
 
1870
+ /** The navigation session data */
1871
+ export type Navigation = {
1872
+ /** ID of the navigation session */
1873
+ id: Scalars["ID"];
1874
+ /** The current route used for navigation */
1875
+ route_id?: Maybe<Scalars["String"]>;
1876
+ /** The current route alternative used for navigation */
1877
+ route_alternative_id?: Maybe<Scalars["String"]>;
1878
+ /** The state of a navigation session. The status can be driving, charging, finished, or error */
1879
+ state?: Maybe<NavigationState>;
1880
+ /** State of charge at the last known location */
1881
+ state_of_charge?: Maybe<Scalars["Float"]>;
1882
+ /** Last known location */
1883
+ last_known_location?: Maybe<Point>;
1884
+ /** Next charging station */
1885
+ next_station?: Maybe<NavigationStation>;
1886
+ /** A set of alternative charging stations to next station */
1887
+ alternative_stations?: Maybe<Array<Maybe<NavigationStation>>>;
1888
+ /** Navigation instructions */
1889
+ instructions?: Maybe<Scalars["JSON"]>;
1890
+ };
1891
+
1892
+ /** The navigation session data */
1893
+ export type NavigationinstructionsArgs = {
1894
+ instructions_format: InstructionsFormat;
1895
+ language?: Maybe<MappingLanguage>;
1896
+ precision?: Maybe<Scalars["Int"]>;
1897
+ };
1898
+
1899
+ /** Input for the navigation recalculate */
1900
+ export type NavigationFinishInput = {
1901
+ /** ID of the navigation session */
1902
+ id: Scalars["ID"];
1903
+ /** Current coordinates */
1904
+ current_location: PointInput;
1905
+ };
1906
+
1907
+ /** Input for the navigation recalculate */
1908
+ export type NavigationReacalculateInput = {
1909
+ /** ID of the navigation session */
1910
+ id: Scalars["ID"];
1911
+ /** State of charge at origin */
1912
+ state_of_charge?: Maybe<Scalars["Float"]>;
1913
+ /** Origin location of a new route */
1914
+ current_location: PointInput;
1915
+ /** Via points of a new route. If this field is not sent, the original via points will be used */
1916
+ via?: Maybe<Array<Maybe<FeaturePointInput>>>;
1917
+ /** Heading of a vehicle, in degrees */
1918
+ heading?: Maybe<Scalars["Float"]>;
1919
+ };
1920
+
1921
+ /** Input for the navigation start */
1922
+ export type NavigationStartInput = {
1923
+ /** ID of the route of the navigation session */
1924
+ route_id: Scalars["String"];
1925
+ /** ID of the route alternative of the navigation session */
1926
+ route_alternative_id?: Maybe<Scalars["String"]>;
1927
+ /** Current coordinates */
1928
+ current_location: PointInput;
1929
+ };
1930
+
1931
+ /** State of navigation session */
1932
+ export enum NavigationState {
1933
+ /** Vehicle is driving */
1934
+ DRIVING = "Driving",
1935
+ /** Vehicle is charging */
1936
+ CHARGING = "Charging",
1937
+ /** Navigation session is completed (either manually or automatically 48 hours after the last update) */
1938
+ FINISHED = "Finished",
1939
+ /** Failed to update navigation session due to route error or not found */
1940
+ ERROR = "Error"
1941
+ }
1942
+
1943
+ /** Navigation session station type */
1944
+ export type NavigationStation = {
1945
+ /** The ID as string of the charging station */
1946
+ station_id?: Maybe<Scalars["String"]>;
1947
+ /** GPS location of the charging station */
1948
+ station_location?: Maybe<Point>;
1949
+ /** An array with all GPS locations of via points until the next charging station */
1950
+ via?: Maybe<Array<Maybe<Point>>>;
1951
+ /** Estimated state of charge, in kWh, at arrival on the next charging station */
1952
+ estimated_state_of_charge?: Maybe<Scalars["Float"]>;
1953
+ /** Estimated consumption, in kWh, from last the known location until the next charging station */
1954
+ estimated_consumption?: Maybe<Scalars["Float"]>;
1955
+ /** Estimated duration, in seconds, from the last known location until the next charging station */
1956
+ estimated_duration?: Maybe<Scalars["Int"]>;
1957
+ };
1958
+
1959
+ /** Input for the navigation session update telemetry data */
1960
+ export type NavigationTelemetryUpdateInput = {
1961
+ /** State of charge at the last known location */
1962
+ state_of_charge?: Maybe<Scalars["Float"]>;
1963
+ /** Indicates if a vehicle is charging */
1964
+ is_charging?: Maybe<Scalars["Boolean"]>;
1965
+ /** Tire pressure. This information should come from telemetry */
1966
+ tire_pressure?: Maybe<Scalars["Float"]>;
1967
+ };
1968
+
1969
+ /** Input for the navigation update */
1970
+ export type NavigationUpdateInput = {
1971
+ /** ID of the navigation session */
1972
+ id: Scalars["ID"];
1973
+ /** Heading of a vehicle, in degrees */
1974
+ heading?: Maybe<Scalars["Float"]>;
1975
+ /** A list of locations that were collected since the last update */
1976
+ locations_data: Array<NavigationUpdateLocationsInput>;
1977
+ /** Telemetry data input */
1978
+ telemetry?: Maybe<NavigationTelemetryUpdateInput>;
1979
+ };
1980
+
1981
+ /** Properties of the location */
1982
+ export type NavigationUpdateLocationPropertiesInput = {
1983
+ /** Current route leg index corresponding to a location */
1984
+ route_leg: Scalars["Int"];
1985
+ /** Speed at a location */
1986
+ speed: Scalars["Float"];
1987
+ /** UNIX timestamp at location */
1988
+ timestamp: Scalars["Int"];
1989
+ /** Altitude information. This is optional */
1990
+ altitude?: Maybe<Scalars["Int"]>;
1991
+ };
1992
+
1993
+ /** Input for the navigation update locations */
1994
+ export type NavigationUpdateLocationsInput = {
1995
+ /** GPS location */
1996
+ geometry: PointInput;
1997
+ /** Extra information about the location */
1998
+ properties: NavigationUpdateLocationPropertiesInput;
1999
+ };
2000
+
1747
2001
  /** This class defines an additional geo location that is relevant for the Charge Point. The geodetic system to be used is WGS 84. */
1748
2002
  export type OCPIAdditionalGeoLocation = {
1749
2003
  /** Latitude of the point in decimal degree. Example: 50.770774. Decimal separator: "." Regex: -?[0-9]{1,2}\.[0-9]{5,7} */
@@ -1779,7 +2033,9 @@ export enum OCPICapability {
1779
2033
  /** This EVSE supports token groups, two or more tokens work as one, so that a session can be started with one token and stopped with another (handy when a card and key-fob are given to the EV-driver). */
1780
2034
  TOKEN_GROUP_CAPABLE = "TOKEN_GROUP_CAPABLE",
1781
2035
  /** Connectors have a mechanical lock that can be requested by the eMSP to be unlocked. */
1782
- UNLOCK_CAPABLE = "UNLOCK_CAPABLE"
2036
+ UNLOCK_CAPABLE = "UNLOCK_CAPABLE",
2037
+ /** When a StartSession is sent to this EVSE, the MSP is required to add the optional connector_id field in the StartSession object. */
2038
+ START_SESSION_CONNECTOR_REQUIRED = "START_SESSION_CONNECTOR_REQUIRED"
1783
2039
  }
1784
2040
 
1785
2041
  /** The format of the connector, whether it is a socket or a plug. */
@@ -1790,7 +2046,7 @@ export enum OCPIConnectorFormat {
1790
2046
  CABLE = "CABLE"
1791
2047
  }
1792
2048
 
1793
- /** The socket or plug standard of the charging point. */
2049
+ /** Deprecated: Please use ConnectorType instead */
1794
2050
  export enum OCPIConnectorType {
1795
2051
  /** The connector type is CHAdeMO, DC */
1796
2052
  CHADEMO = "CHADEMO",
@@ -1818,6 +2074,12 @@ export enum OCPIConnectorType {
1818
2074
  DOMESTIC_K = "DOMESTIC_K",
1819
2075
  /** Standard/domestic household, type "L", CEI 23-16-VII, 3 pins */
1820
2076
  DOMESTIC_L = "DOMESTIC_L",
2077
+ /** Standard/Domestic household, type "M", BS 546, 3 pins */
2078
+ DOMESTIC_M = "DOMESTIC_M",
2079
+ /** Standard/Domestic household, type "N", NBR 14136, 3 pins */
2080
+ DOMESTIC_N = "DOMESTIC_N",
2081
+ /** Standard/Domestic household, type "O", TIS 166-2549, 3 pins */
2082
+ DOMESTIC_O = "DOMESTIC_O",
1821
2083
  /** IEC 60309-2 Industrial connector single phase 16 amperes (usually blue) */
1822
2084
  IEC_60309_2_SINGLE_16 = "IEC_60309_2_single_16",
1823
2085
  /** IEC 60309-2 Industrial connector three phase 16 amperes (usually red) */
@@ -1847,7 +2109,23 @@ export enum OCPIConnectorType {
1847
2109
  /** Tesla connector "Model-S"-type (oval, 5 pins) */
1848
2110
  TESLA_S = "TESLA_S",
1849
2111
  /** The connector type is GB_T (Chinese standard), DC */
1850
- GB_T = "GB_T"
2112
+ GB_T = "GB_T",
2113
+ /** The ChaoJi connector. The new generation charging connector, harmonized between CHAdeMO and GB/T. DC. */
2114
+ CHAOJI = "CHAOJI",
2115
+ /** The connector type is NEMA 5-20, 3 pins */
2116
+ NEMA_5_20 = "NEMA_5_20",
2117
+ /** The connector type is NEMA 6-30, 3 pins */
2118
+ NEMA_6_30 = "NEMA_6_30",
2119
+ /** The connector type is NEMA 6-50, 3 pins */
2120
+ NEMA_6_50 = "NEMA_6_50",
2121
+ /** The connector type is NEMA 10-30, 3 pins */
2122
+ NEMA_10_30 = "NEMA_10_30",
2123
+ /** The connector type is NEMA 10-50, 3 pins */
2124
+ NEMA_10_50 = "NEMA_10_50",
2125
+ /** The connector type is NEMA 14-30, 3 pins, rating of 30 A */
2126
+ NEMA_14_30 = "NEMA_14_30",
2127
+ /** The connector type is NEMA 14-50, 3 pins, rating of 50 A */
2128
+ NEMA_14_50 = "NEMA_14_50"
1851
2129
  }
1852
2130
 
1853
2131
  export enum OCPIDayOfWeek {
@@ -2063,6 +2341,10 @@ export enum OCPIPowerType {
2063
2341
  AC_1_PHASE = "AC_1_PHASE",
2064
2342
  /** AC three phase. */
2065
2343
  AC_3_PHASE = "AC_3_PHASE",
2344
+ /** AC two phases, only two of the three available phases connected. */
2345
+ AC_2_PHASE = "AC_2_PHASE",
2346
+ /** AC two phases using split phase system. */
2347
+ AC_2_PHASE_SPLIT = "AC_2_PHASE_SPLIT",
2066
2348
  /** Direct Current. */
2067
2349
  DC = "DC"
2068
2350
  }
@@ -2245,12 +2527,20 @@ export type Operator = {
2245
2527
  countries?: Maybe<Array<CountryCodeAlpha2>>;
2246
2528
  /** Contact information */
2247
2529
  contact?: Maybe<Contact>;
2530
+ /** Ranking level on which the operator is placed or null in case the operator is not on any ranking level */
2531
+ ranking?: Maybe<Scalars["Int"]>;
2532
+ /** Flag which indicates if the operator is in the excluded list */
2533
+ excluded?: Maybe<Scalars["Boolean"]>;
2248
2534
  };
2249
2535
 
2250
2536
  /** Filter which can be applied to retrieve the operator list action */
2251
2537
  export type OperatorListFilter = {
2252
2538
  /** ISO-3166 alpha-2 country codes an operator is active in. */
2253
2539
  countries?: Maybe<Array<CountryCodeAlpha2>>;
2540
+ /** List of ranking level(s) to be retrieved. Valid values are 1 to 10 */
2541
+ ranking?: Maybe<Array<Scalars["Int"]>>;
2542
+ /** Only retrieve operators that are in the excluded list */
2543
+ excluded?: Maybe<Scalars["Boolean"]>;
2254
2544
  };
2255
2545
 
2256
2546
  /** Filter which can be applied to retrieve the operator list action */
@@ -2332,10 +2622,59 @@ export type Price = {
2332
2622
  currency?: Maybe<Scalars["String"]>;
2333
2623
  /** The pricing model */
2334
2624
  model?: Maybe<Scalars["String"]>;
2335
- /** The value of the price which should be deplay by the frontend */
2625
+ /** The value of the price which should be display by the frontend */
2336
2626
  displayValue?: Maybe<Scalars["String"]>;
2337
2627
  };
2338
2628
 
2629
+ export type Pricing = {
2630
+ /** Unique ID of a price */
2631
+ id?: Maybe<Scalars["String"]>;
2632
+ /** Price details */
2633
+ price_list?: Maybe<Array<Maybe<PricingList>>>;
2634
+ };
2635
+
2636
+ export type PricingList = {
2637
+ /** (MSP) Mobility Service Provider */
2638
+ partner?: Maybe<Scalars["String"]>;
2639
+ /** Product details */
2640
+ product?: Maybe<PricingListProduct>;
2641
+ /** Price product elements */
2642
+ elements?: Maybe<Array<Maybe<PricingListElement>>>;
2643
+ };
2644
+
2645
+ export type PricingListElement = {
2646
+ /** Price element type. */
2647
+ type?: Maybe<PricingListElementType>;
2648
+ /** Price of the element type without VAT. */
2649
+ price_excl_vat?: Maybe<Scalars["Float"]>;
2650
+ /** VAT percentage to apply */
2651
+ vat?: Maybe<Scalars["Float"]>;
2652
+ };
2653
+
2654
+ export enum PricingListElementType {
2655
+ /** Price per kWh */
2656
+ ENERGY = "ENERGY",
2657
+ /** Starting price, fixed fee per charge session */
2658
+ FLAT = "FLAT",
2659
+ /** Fixed price per hour */
2660
+ TIME = "TIME",
2661
+ /** Parking price per hour */
2662
+ PARKING_TIME = "PARKING_TIME"
2663
+ }
2664
+
2665
+ export type PricingListProduct = {
2666
+ /** Name of the payment card or subscription. If name is 'Adhoc price' the price is the CPO price */
2667
+ name?: Maybe<Scalars["String"]>;
2668
+ /** Description of the product */
2669
+ description?: Maybe<Scalars["String"]>;
2670
+ /** Subscription type */
2671
+ subscription_type?: Maybe<Scalars["String"]>;
2672
+ /** Subscription fee without VAT */
2673
+ subscription_fee_excl_vat?: Maybe<Scalars["Float"]>;
2674
+ /** Currency */
2675
+ currency?: Maybe<Scalars["String"]>;
2676
+ };
2677
+
2339
2678
  export type Query = {
2340
2679
  /** Get a full list of amenities around a station */
2341
2680
  amenityList?: Maybe<Array<Maybe<Amenity>>>;
@@ -2345,6 +2684,8 @@ export type Query = {
2345
2684
  carPremium?: Maybe<CarPremium>;
2346
2685
  /** Get a full list of cars */
2347
2686
  carList?: Maybe<Array<Maybe<CarList>>>;
2687
+ /** [BETA] Get a navigation session by ID */
2688
+ navigation?: Maybe<Navigation>;
2348
2689
  /** Get a full list of operators */
2349
2690
  operatorList?: Maybe<Array<Maybe<Operator>>>;
2350
2691
  /** Get information about an operator by its ID */
@@ -2373,6 +2714,8 @@ export type Query = {
2373
2714
  tariff?: Maybe<OCPITariff>;
2374
2715
  /** Get the full list of tariffs */
2375
2716
  tariffList?: Maybe<Array<Maybe<OCPITariff>>>;
2717
+ /** Deprecated: This query will be removed in favor of navigation query and subscription. Mapping can be retrieved via the instructions field. */
2718
+ navigationMapping?: Maybe<Scalars["JSON"]>;
2376
2719
  };
2377
2720
 
2378
2721
  export type QueryamenityListArgs = {
@@ -2396,6 +2739,10 @@ export type QuerycarListArgs = {
2396
2739
  page?: Maybe<Scalars["Int"]>;
2397
2740
  };
2398
2741
 
2742
+ export type QuerynavigationArgs = {
2743
+ id: Scalars["ID"];
2744
+ };
2745
+
2399
2746
  export type QueryoperatorListArgs = {
2400
2747
  query?: Maybe<OperatorListQuery>;
2401
2748
  search?: Maybe<Scalars["String"]>;
@@ -2454,6 +2801,13 @@ export type QuerytariffListArgs = {
2454
2801
  page?: Maybe<Scalars["Int"]>;
2455
2802
  };
2456
2803
 
2804
+ export type QuerynavigationMappingArgs = {
2805
+ id: Scalars["ID"];
2806
+ provider: MappingProvider;
2807
+ precision?: Maybe<Scalars["Int"]>;
2808
+ language?: Maybe<MappingLanguage>;
2809
+ };
2810
+
2457
2811
  /** EV specific data for a route request */
2458
2812
  export type RequestEv = {
2459
2813
  /** Internal ID of a Car */
@@ -2468,8 +2822,13 @@ export type RequestEv = {
2468
2822
  minPower?: Maybe<Scalars["Int"]>;
2469
2823
  /** Climate is on. The default is true */
2470
2824
  climate?: Maybe<Scalars["Boolean"]>;
2471
- /** The number of passengers on board */
2825
+ /**
2826
+ * The number of passengers on board
2827
+ * @deprecated In favor of occupants
2828
+ */
2472
2829
  numberOfPassengers?: Maybe<Scalars["Int"]>;
2830
+ /** Number of occupants */
2831
+ occupants?: Maybe<Scalars["Int"]>;
2473
2832
  /** Consumption specific to an EV or inputed by a request */
2474
2833
  consumption?: Maybe<RequestEvConsumption>;
2475
2834
  };
@@ -2543,8 +2902,8 @@ export type RequestEvInput = {
2543
2902
  minPower?: Maybe<Scalars["Int"]>;
2544
2903
  /** Flag which indicates if the climate is on. The default is true */
2545
2904
  climate?: Maybe<Scalars["Boolean"]>;
2546
- /** Number of passengers on board */
2547
- numberOfPassengers?: Maybe<Scalars["Int"]>;
2905
+ /** Number of occupants */
2906
+ occupants?: Maybe<Scalars["Int"]>;
2548
2907
  /** Consumption specific to the EV or inputted by the request */
2549
2908
  consumption?: Maybe<RequestEvConsumptionInput>;
2550
2909
  /** Deprecated */
@@ -2555,14 +2914,14 @@ export type RequestEvInput = {
2555
2914
 
2556
2915
  export type RequestEvPlug = {
2557
2916
  /** Type of the plug */
2558
- standard?: Maybe<OCPIConnectorType>;
2917
+ standard?: Maybe<ConnectorType>;
2559
2918
  /** Maximum charging speed for a plug */
2560
2919
  chargingPower?: Maybe<Scalars["Float"]>;
2561
2920
  };
2562
2921
 
2563
2922
  export type RequestEvPlugInput = {
2564
2923
  /** Type of a plug */
2565
- standard: OCPIConnectorType;
2924
+ standard: ConnectorType;
2566
2925
  /** Maximum charging speed for this plug */
2567
2926
  chargingPower: Scalars["Float"];
2568
2927
  };
@@ -2592,7 +2951,7 @@ export type RequestRoute = {
2592
2951
  * @deprecated Will be removed. Use the operators property instead
2593
2952
  */
2594
2953
  operatorPrefer?: Maybe<Scalars["Boolean"]>;
2595
- /** Operator preferences for a route */
2954
+ /** Operator prioritization for a route */
2596
2955
  operators?: Maybe<RouteOperators>;
2597
2956
  /** Season */
2598
2957
  season?: Maybe<RouteSeason>;
@@ -2621,7 +2980,7 @@ export type RequestRouteInput = {
2621
2980
  operatorRequired?: Maybe<Scalars["Boolean"]>;
2622
2981
  /** Deprecated: in favor of operators. Flag which indicates if the preferred operators should be loaded */
2623
2982
  operatorPrefer?: Maybe<Scalars["Boolean"]>;
2624
- /** Operator preferences for a route */
2983
+ /** Operator prioritization for a route */
2625
2984
  operators?: Maybe<RouteOperatorsInput>;
2626
2985
  /** Optional flag to specify the season */
2627
2986
  season?: Maybe<RouteSeason>;
@@ -2637,7 +2996,7 @@ export type RequestRouteInput = {
2637
2996
  via?: Maybe<Array<Maybe<FeaturePointInput>>>;
2638
2997
  /** Alternative stations along a route within a specified radius in meters (minimum 500, maximum 5000) */
2639
2998
  stationsAlongRouteRadius?: Maybe<Scalars["Int"]>;
2640
- /** 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 */
2999
+ /** Deprecated: all routes will have turn-by-turn instructions prepared. Boolean will be ignored */
2641
3000
  instructions?: Maybe<Scalars["Boolean"]>;
2642
3001
  };
2643
3002
 
@@ -2663,7 +3022,7 @@ export type Review = {
2663
3022
  /** Car that was provided/selected by a user */
2664
3023
  ev?: Maybe<Car>;
2665
3024
  /** Plug type that was provided/selected by a user */
2666
- plugType?: Maybe<OCPIConnectorType>;
3025
+ plugType?: Maybe<ConnectorType>;
2667
3026
  /** Optional object where you can store custom data you need in your application. This extends the current functionalities we offer */
2668
3027
  properties?: Maybe<Scalars["JSON"]>;
2669
3028
  /** Boolean tags for a station review */
@@ -2687,7 +3046,7 @@ export type ReviewAdd = {
2687
3046
  /** ID of the Car that was provided/selected by a user */
2688
3047
  ev?: Maybe<Scalars["String"]>;
2689
3048
  /** Plug type that was provided/selected by a user */
2690
- plugType?: Maybe<OCPIConnectorType>;
3049
+ plugType?: Maybe<ConnectorType>;
2691
3050
  /** Optional object where you can store custom data you need in your application. This extends the current functionalities we offer */
2692
3051
  properties?: Maybe<Scalars["JSON"]>;
2693
3052
  /** Boolean tags for a station review */
@@ -2764,6 +3123,8 @@ export type Route = {
2764
3123
  user?: Maybe<RequestUser>;
2765
3124
  /** Route request data */
2766
3125
  routeRequest?: Maybe<RequestRoute>;
3126
+ /** Application who requested a route */
3127
+ app?: Maybe<RouteApp>;
2767
3128
  /** Route status */
2768
3129
  status?: Maybe<RouteStatus>;
2769
3130
  };
@@ -2791,7 +3152,10 @@ export type RouteAlternative = {
2791
3152
  consumption?: Maybe<Scalars["Float"]>;
2792
3153
  /** Total time required to charge for an entire route, in seconds */
2793
3154
  chargeTime?: Maybe<Scalars["Float"]>;
2794
- /** Amenity ranking for an alternative */
3155
+ /**
3156
+ * Amenity ranking for an alternative
3157
+ * @deprecated Will be removed in the future
3158
+ */
2795
3159
  amenityRanking?: Maybe<Scalars["Int"]>;
2796
3160
  /** Range, in meters, available at the beginning of a trip */
2797
3161
  rangeStart?: Maybe<Scalars["Int"]>;
@@ -2830,6 +3194,8 @@ export type RouteAlternative = {
2830
3194
  instructions?: Maybe<Array<Maybe<RouteInstruction>>>;
2831
3195
  /** Alternative stations along a route within specified radius in meters. Only if it was provided at newRoute mutation */
2832
3196
  stationsAlongRoute?: Maybe<Array<Maybe<RouteStationsAlong>>>;
3197
+ /** Tags of a route alternative. Values: road, highway, toll, ferry, etc. */
3198
+ tags?: Maybe<Array<Maybe<RouteTagType>>>;
2833
3199
  };
2834
3200
 
2835
3201
  export type RouteAlternativepolylineArgs = {
@@ -2853,12 +3219,17 @@ export type RouteAlternativeSaving = {
2853
3219
  export enum RouteAlternativeType {
2854
3220
  /** Fastest route between origin and destination */
2855
3221
  FASTEST = "fastest",
2856
- /** Best matching amenities along the route with the requested list */
3222
+ /** Best matching route based on operator and amenities preferences */
2857
3223
  BESTMATCHING = "bestMatching",
2858
3224
  /** An alternative to the fastest route */
2859
3225
  ALTERNATIVE = "alternative"
2860
3226
  }
2861
3227
 
3228
+ export type RouteApp = {
3229
+ /** ID of the app who requested a route */
3230
+ id?: Maybe<Scalars["ID"]>;
3231
+ };
3232
+
2862
3233
  export type RouteInstruction = {
2863
3234
  /** Information about the points on the polyline */
2864
3235
  points?: Maybe<RouteInstructionPoints>;
@@ -2940,8 +3311,12 @@ export type RouteLeg = {
2940
3311
  name?: Maybe<Scalars["String"]>;
2941
3312
  /** ID of a station */
2942
3313
  stationId?: Maybe<Scalars["String"]>;
2943
- /** ID of the operator */
3314
+ /** ID of an operator */
2944
3315
  operatorId?: Maybe<Scalars["String"]>;
3316
+ /** Name of an operator */
3317
+ operatorName?: Maybe<Scalars["String"]>;
3318
+ /** Ranking of an operator */
3319
+ operatorRanking?: Maybe<Scalars["Int"]>;
2945
3320
  /** Total time required to charge a battery until 80%, in seconds */
2946
3321
  chargeTime?: Maybe<Scalars["Int"]>;
2947
3322
  /** Recommended EVSE where to charge */
@@ -2958,8 +3333,19 @@ export type RouteLeg = {
2958
3333
  plugsOutOfOrder?: Maybe<Scalars["Int"]>;
2959
3334
  /** Total number of plugs at a charge station */
2960
3335
  plugsCount?: Maybe<Scalars["Int"]>;
3336
+ /** Polyline containing encoded coordinates */
3337
+ polyline?: Maybe<Scalars["String"]>;
3338
+ /** Steps of a leg */
3339
+ steps?: Maybe<Array<Maybe<RouteStep>>>;
3340
+ /** Tags of a leg. Values: road, highway, toll, ferry */
3341
+ tags?: Maybe<Array<Maybe<RouteTagType>>>;
3342
+ };
3343
+
3344
+ export type RouteLegpolylineArgs = {
3345
+ decimals?: Maybe<Scalars["Int"]>;
2961
3346
  };
2962
3347
 
3348
+ /** Prioritized operators for a route calculation */
2963
3349
  export type RouteOperators = {
2964
3350
  /** Flag indicating if the operators ranking should be preferred or required */
2965
3351
  type?: Maybe<RouteOperatorsType>;
@@ -2969,7 +3355,7 @@ export type RouteOperators = {
2969
3355
  exclude?: Maybe<Array<Maybe<Scalars["ID"]>>>;
2970
3356
  };
2971
3357
 
2972
- /** Preferred operators for a route calculation */
3358
+ /** Prioritized operators for a route calculation */
2973
3359
  export type RouteOperatorsInput = {
2974
3360
  /** Flag indicating if the operators ranking should be preferred or required */
2975
3361
  type?: Maybe<RouteOperatorsType>;
@@ -2979,7 +3365,7 @@ export type RouteOperatorsInput = {
2979
3365
  exclude?: Maybe<Array<Maybe<Scalars["ID"]>>>;
2980
3366
  };
2981
3367
 
2982
- /** Ranking configuration for preferred operators */
3368
+ /** Ranking configuration for prioritized operators */
2983
3369
  export type RouteOperatorsRanking = {
2984
3370
  /** Level 1 (most significant) for operator ranking */
2985
3371
  level1?: Maybe<Array<Maybe<Scalars["ID"]>>>;
@@ -3003,7 +3389,7 @@ export type RouteOperatorsRanking = {
3003
3389
  level10?: Maybe<Array<Maybe<Scalars["ID"]>>>;
3004
3390
  };
3005
3391
 
3006
- /** Ranking configuration for preferred operators */
3392
+ /** Ranking configuration for prioritized operators */
3007
3393
  export type RouteOperatorsRankingInput = {
3008
3394
  /** Level 1 (most significant) for operator ranking */
3009
3395
  level1?: Maybe<Array<Maybe<Scalars["ID"]>>>;
@@ -3027,13 +3413,13 @@ export type RouteOperatorsRankingInput = {
3027
3413
  level10?: Maybe<Array<Maybe<Scalars["ID"]>>>;
3028
3414
  };
3029
3415
 
3030
- /** Type of operator preference for a route */
3416
+ /** Type of operator prioritization for a route */
3031
3417
  export enum RouteOperatorsType {
3032
3418
  /** Default option. Operators ranking will not be taken into account if no type is given */
3033
3419
  NONE = "none",
3034
3420
  /** Operators given in the operators ranking will be preferred when calculating routes */
3035
3421
  PREFERRED = "preferred",
3036
- /** Operators given in the operators ranking will be required when calculating routes,excluded operators will be ignored */
3422
+ /** Operators given in the operators ranking will be required when calculating routes, all other operators will be ignored */
3037
3423
  REQUIRED = "required"
3038
3424
  }
3039
3425
 
@@ -3095,10 +3481,37 @@ export enum RouteStatus {
3095
3481
  ERROR = "error"
3096
3482
  }
3097
3483
 
3484
+ export type RouteStep = {
3485
+ /** ID of a step */
3486
+ id?: Maybe<Scalars["ID"]>;
3487
+ /** Type of a step */
3488
+ type?: Maybe<StepType>;
3489
+ /** Polyline containing encoded coordinates */
3490
+ polyline?: Maybe<Scalars["String"]>;
3491
+ /** Distance from the start to the end of a step, in meters */
3492
+ distance?: Maybe<Scalars["Int"]>;
3493
+ /** Total drive time from the start to the end of a step, in seconds */
3494
+ duration?: Maybe<Scalars["Int"]>;
3495
+ /** Total enery used in a step in kWh */
3496
+ consumption?: Maybe<Scalars["Float"]>;
3497
+ };
3498
+
3499
+ export type RouteSteppolylineArgs = {
3500
+ decimals?: Maybe<Scalars["Int"]>;
3501
+ };
3502
+
3503
+ /** Tags of a route */
3504
+ export enum RouteTagType {
3505
+ ROAD = "road",
3506
+ HIGHWAY = "highway",
3507
+ TOLL = "toll",
3508
+ FERRY = "ferry"
3509
+ }
3510
+
3098
3511
  /** Standards(plug type) stats model */
3099
3512
  export type StandardStats = {
3100
3513
  /** The plug type */
3101
- type?: Maybe<OCPIConnectorType>;
3514
+ type?: Maybe<ConnectorType>;
3102
3515
  /** The total number of stations with the specified plug */
3103
3516
  total?: Maybe<Scalars["Int"]>;
3104
3517
  };
@@ -3169,7 +3582,7 @@ export type Station = {
3169
3582
  elevation?: Maybe<Scalars["Int"]>;
3170
3583
  /** Groups of EVSEs by power and type */
3171
3584
  chargers?: Maybe<Array<Maybe<Charger>>>;
3172
- /** Amenties located at this location */
3585
+ /** Amenities located at this location */
3173
3586
  amenities?: Maybe<Scalars["JSON"]>;
3174
3587
  /** Enriched information about the physical address of a station */
3175
3588
  physical_address?: Maybe<Address>;
@@ -3256,7 +3669,21 @@ export type StationStats = {
3256
3669
  amenities?: Maybe<Array<Maybe<AmenityStats>>>;
3257
3670
  };
3258
3671
 
3672
+ /** Types of a route step */
3673
+ export enum StepType {
3674
+ /** This step is a road */
3675
+ ROAD = "road",
3676
+ /** This step is a highway */
3677
+ HIGHWAY = "highway",
3678
+ /** This step is a toll road */
3679
+ TOLL = "toll",
3680
+ /** This step is a ferry */
3681
+ FERRY = "ferry"
3682
+ }
3683
+
3259
3684
  export type Subscription = {
3685
+ /** [BETA] Subscribe to navigation session system event updates. We strongly recommend using this at all times to not miss any updates */
3686
+ navigationUpdatedById?: Maybe<Navigation>;
3260
3687
  /**
3261
3688
  * Subscription for a new operator was added in the system event
3262
3689
  * @deprecated operatorAdded has been removed, no value will be sent.
@@ -3311,6 +3738,10 @@ export type Subscription = {
3311
3738
  stationDeletedById?: Maybe<Station>;
3312
3739
  };
3313
3740
 
3741
+ export type SubscriptionnavigationUpdatedByIdArgs = {
3742
+ id: Scalars["ID"];
3743
+ };
3744
+
3314
3745
  export type SubscriptionoperatorUpdatedByIdArgs = {
3315
3746
  id: Scalars["ID"];
3316
3747
  };