@chargetrip/types 1.32.2 → 1.33.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
@@ -127,7 +127,7 @@ export type AuthorizeConnectedVehicleOptions = {
127
127
  code?: Maybe<Scalars["PlainString"]>;
128
128
  };
129
129
 
130
- /** The type of the batter value */
130
+ /** The type of the battery value */
131
131
  export enum BatteryInputType {
132
132
  KWH = "kwh",
133
133
  KM = "km",
@@ -1426,8 +1426,33 @@ export type Connect = {
1426
1426
  };
1427
1427
 
1428
1428
  export type ConnectBattery = {
1429
+ /** Estimated range by OEM */
1430
+ range?: Maybe<Scalars["Int"]>;
1431
+ /** Percentage of the battery remaining */
1429
1432
  percentage?: Maybe<Scalars["Int"]>;
1430
- date?: Maybe<Scalars["String"]>;
1433
+ /** Capacity of the battery, in kwh */
1434
+ capacity?: Maybe<Scalars["Int"]>;
1435
+ /** Date when the battery data was retrieved, as ISO-8601 date */
1436
+ date?: Maybe<Scalars["DateTime"]>;
1437
+ };
1438
+
1439
+ export type ConnectCharge = {
1440
+ /** Vehicle is plugged in */
1441
+ is_plugged_in?: Maybe<Scalars["Boolean"]>;
1442
+ /** Vehicle is charging */
1443
+ is_charging?: Maybe<Scalars["Boolean"]>;
1444
+ /** Battery is fully charged */
1445
+ is_fully_charged?: Maybe<Scalars["Boolean"]>;
1446
+ /** Charge limit defined by vehicle owner */
1447
+ limit?: Maybe<Scalars["Int"]>;
1448
+ /** Charge speed, in kwh */
1449
+ charge_speed?: Maybe<Scalars["Float"]>;
1450
+ /** Estimation when charging is completed, as ISO-8601 date */
1451
+ fully_charged_at?: Maybe<Scalars["DateTime"]>;
1452
+ /** Estimated minutes till charged */
1453
+ minutes_till_charged?: Maybe<Scalars["Int"]>;
1454
+ /** Date when the charge data was retrieved, as ISO-8601 date */
1455
+ date?: Maybe<Scalars["DateTime"]>;
1431
1456
  };
1432
1457
 
1433
1458
  export type ConnectFilter = {
@@ -1435,15 +1460,45 @@ export type ConnectFilter = {
1435
1460
  providers?: Maybe<Array<Maybe<ConnectProvider>>>;
1436
1461
  };
1437
1462
 
1463
+ /** Location of the vehicle */
1464
+ export type ConnectLocation = {
1465
+ /** Feature type */
1466
+ type: FeatureType;
1467
+ /** Geometry of the feature */
1468
+ geometry: GeometryPoint;
1469
+ /** Properties object containing meta data about the feature point */
1470
+ properties?: Maybe<ConnectLocationProperties>;
1471
+ };
1472
+
1473
+ /** Properties of a vehicle location */
1474
+ export type ConnectLocationProperties = {
1475
+ /** Date when the location was retrieved, as ISO-8601 date */
1476
+ date: Scalars["DateTime"];
1477
+ };
1478
+
1479
+ export type ConnectOdometer = {
1480
+ /** Odometer value, distance driven, default in km */
1481
+ distance?: Maybe<Scalars["Int"]>;
1482
+ /** Date when the odometer data was retrieved, as ISO-8601 date */
1483
+ date?: Maybe<Scalars["DateTime"]>;
1484
+ };
1485
+
1438
1486
  export enum ConnectProvider {
1439
1487
  ENODE = "Enode"
1440
1488
  }
1441
1489
 
1490
+ export enum ConnectScope {
1491
+ /** Vehicle location, applicable for: Enode */
1492
+ LOCATION = "location",
1493
+ /** Charge state, applicable for: Enode */
1494
+ CHARGE_STATE = "charge_state",
1495
+ /** Odometer reading, applicable for: Enode */
1496
+ ODOMETER = "odometer"
1497
+ }
1498
+
1442
1499
  export type ConnectedVehicle = {
1443
1500
  /** Unique ID of the connected vehicle */
1444
1501
  id: Scalars["ID"];
1445
- /** ID of the user */
1446
- user_id: Scalars["ID"];
1447
1502
  /** Unique ID of the vehicle */
1448
1503
  vehicle_id: Scalars["ID"];
1449
1504
  /** Status of the connected vehicle */
@@ -1452,21 +1507,14 @@ export type ConnectedVehicle = {
1452
1507
  authorization_url?: Maybe<Scalars["String"]>;
1453
1508
  /** Connectivity provider */
1454
1509
  provider: CarConnectivityProvider;
1455
- /** Permissions for data retrieval from the connected vehicle */
1456
- permissions?: Maybe<Array<Maybe<ConnectedVehiclePermission>>>;
1510
+ /** Scope for accessing the vehicle */
1511
+ scope?: Maybe<Array<Maybe<ConnectScope>>>;
1457
1512
  /** Custom label for a connected vehicle that can be assigned by a user */
1458
1513
  label?: Maybe<Scalars["String"]>;
1459
1514
  /** Vehicle identification number, unique identifier for a vehicle */
1460
1515
  vin?: Maybe<Scalars["String"]>;
1461
1516
  };
1462
1517
 
1463
- export enum ConnectedVehiclePermission {
1464
- /** Permission to retrieve the location of the vehicle */
1465
- LOCATION = "location",
1466
- /** Permission to retrieve the state of the battery */
1467
- BATTERY = "battery"
1468
- }
1469
-
1470
1518
  export enum ConnectedVehicleStatus {
1471
1519
  /** Vehicle was added to the Chargetrip platform but not yet authorized */
1472
1520
  PENDING = "pending",
@@ -1891,6 +1939,17 @@ export type CreateConnectedVehicleInput = {
1891
1939
  options: NewConnectedVehicleOptions;
1892
1940
  };
1893
1941
 
1942
+ export enum DistanceUnit {
1943
+ /** Return the distance in meters */
1944
+ METER = "meter",
1945
+ /** Return the distance in feet */
1946
+ FOOT = "foot",
1947
+ /** Return the distance in kilometers */
1948
+ KILOMETER = "kilometer",
1949
+ /** Return the distance in miles */
1950
+ MILE = "mile"
1951
+ }
1952
+
1894
1953
  /** EVSE data which extends OCPI EVSE */
1895
1954
  export type EVSE = {
1896
1955
  /**
@@ -1934,7 +1993,7 @@ export type FeaturePoint = {
1934
1993
  type: FeatureType;
1935
1994
  /** Geometry of the feature */
1936
1995
  geometry: Point;
1937
- /** Additional data */
1996
+ /** Optional object where you can store custom data you need in your application. This extends the current functionalities we offer */
1938
1997
  properties?: Maybe<Scalars["JSON"]>;
1939
1998
  };
1940
1999
 
@@ -2080,7 +2139,7 @@ export enum MappingProvider {
2080
2139
  export type Mutation = {
2081
2140
  /** [BETA] Create a connected vehicle for a given vehicle id and a connectivity provider */
2082
2141
  createConnectedVehicle?: Maybe<ConnectedVehicle>;
2083
- /** [BETA] Authorize a vehicle by providing the callback url from the connectivity provider which will be exchanged for access tokens */
2142
+ /** [BETA] Authorize a connected vehicle */
2084
2143
  authorizeConnectedVehicle?: Maybe<ConnectedVehicle>;
2085
2144
  /** [BETA] Update a connected vehicle */
2086
2145
  updateConnectedVehicle?: Maybe<ConnectedVehicle>;
@@ -2295,6 +2354,8 @@ export type NavigationUpdateLocationsInput = {
2295
2354
  export type NewConnectedVehicleOptions = {
2296
2355
  /** Redirect uri */
2297
2356
  redirect_uri?: Maybe<Scalars["PlainString"]>;
2357
+ /** Scope */
2358
+ scope?: Maybe<Array<Maybe<ConnectScope>>>;
2298
2359
  };
2299
2360
 
2300
2361
  /** This class defines an additional geo location that is relevant for the Charge Point. The geodetic system to be used is WGS 84. */
@@ -3284,6 +3345,8 @@ export type RequestInput = {
3284
3345
  ev: RequestEvInput;
3285
3346
  /** Route request data */
3286
3347
  routeRequest: RequestRouteInput;
3348
+ /** Telemetry data used to overwrite routing parameters */
3349
+ telemetry?: Maybe<Scalars["JSON"]>;
3287
3350
  };
3288
3351
 
3289
3352
  export type RequestRoute = {
@@ -3472,6 +3535,8 @@ export type Route = {
3472
3535
  alternatives?: Maybe<Array<Maybe<RouteAlternative>>>;
3473
3536
  /** EV specific data for a route request */
3474
3537
  ev?: Maybe<RequestEv>;
3538
+ /** Route telemetry data */
3539
+ telemetry?: Maybe<Scalars["JSON"]>;
3475
3540
  /** @deprecated You will receive null values */
3476
3541
  user?: Maybe<RequestUser>;
3477
3542
  /** Route request data */
@@ -3851,7 +3916,7 @@ export type RouteStep = {
3851
3916
  distance?: Maybe<Scalars["Int"]>;
3852
3917
  /** Total drive time from the start to the end of a step, in seconds */
3853
3918
  duration?: Maybe<Scalars["Int"]>;
3854
- /** Total enery used in a step in kWh */
3919
+ /** Total energy used in a step in kWh */
3855
3920
  consumption?: Maybe<Scalars["Float"]>;
3856
3921
  };
3857
3922
 
@@ -4150,18 +4215,12 @@ export type UpdateConnectedVehicleInput = {
4150
4215
  };
4151
4216
 
4152
4217
  export type VehicleData = {
4218
+ /** Battery data */
4153
4219
  battery?: Maybe<ConnectBattery>;
4154
- location?: Maybe<VehicleLocation>;
4155
- };
4156
-
4157
- /** Location of the vehicle */
4158
- export type VehicleLocation = {
4159
- type: FeatureType;
4160
- geometry: GeometryPoint;
4161
- properties?: Maybe<VehicleLocationProperties>;
4162
- };
4163
-
4164
- /** Properties of a vehicle location */
4165
- export type VehicleLocationProperties = {
4166
- date: Scalars["String"];
4220
+ /** Charge data */
4221
+ charge?: Maybe<ConnectCharge>;
4222
+ /** Location data */
4223
+ location?: Maybe<ConnectLocation>;
4224
+ /** Odometer data */
4225
+ odometer?: Maybe<ConnectOdometer>;
4167
4226
  };