@chargetrip/types 1.30.1 → 1.32.2
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 +25 -3
- package/dist/node/index.js.map +1 -1
- package/dist/react-native/graphql.js +25 -3
- package/dist/react-native/graphql.js.map +1 -1
- package/dist/ts/graphql.d.ts +134 -3
- package/graphql.schema.json +855 -3
- package/package.json +1 -1
- package/src/graphql.ts +156 -3
- package/CHANGELOG.md +0 -234
package/dist/ts/graphql.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare type Scalars = {
|
|
|
19
19
|
Float: number;
|
|
20
20
|
/** The date and time scalar */
|
|
21
21
|
DateTime: string;
|
|
22
|
-
/** Any JSON object
|
|
22
|
+
/** Any JSON object */
|
|
23
23
|
JSON: {
|
|
24
24
|
[key: string]: number | string | boolean | null | Scalars["JSON"];
|
|
25
25
|
};
|
|
@@ -30,7 +30,7 @@ export declare type Scalars = {
|
|
|
30
30
|
PlainString: any;
|
|
31
31
|
/** The File Upload scalar */
|
|
32
32
|
Upload: any;
|
|
33
|
-
/**
|
|
33
|
+
/** Returns null */
|
|
34
34
|
Void: any;
|
|
35
35
|
};
|
|
36
36
|
export declare enum AccessType {
|
|
@@ -114,6 +114,16 @@ export declare type AmenityStats = {
|
|
|
114
114
|
/** The total number of stations with the specified amenity */
|
|
115
115
|
total?: Maybe<Scalars["Int"]>;
|
|
116
116
|
};
|
|
117
|
+
export declare type AuthorizeConnectedVehicleInput = {
|
|
118
|
+
/** Id from the connected vehicle */
|
|
119
|
+
id: Scalars["ID"];
|
|
120
|
+
/** Provider specific options. See the developer portal for more details */
|
|
121
|
+
options: AuthorizeConnectedVehicleOptions;
|
|
122
|
+
};
|
|
123
|
+
export declare type AuthorizeConnectedVehicleOptions = {
|
|
124
|
+
/** OAuth code returned as a query parameter on the OAuth callback */
|
|
125
|
+
code?: Maybe<Scalars["PlainString"]>;
|
|
126
|
+
};
|
|
117
127
|
/** The type of the batter value */
|
|
118
128
|
export declare enum BatteryInputType {
|
|
119
129
|
KWH = "kwh",
|
|
@@ -326,6 +336,9 @@ export declare type CarBody = {
|
|
|
326
336
|
/** Number of seats */
|
|
327
337
|
seats?: Maybe<Scalars["Int"]>;
|
|
328
338
|
};
|
|
339
|
+
export declare enum CarConnectivityProvider {
|
|
340
|
+
ENODE = "Enode"
|
|
341
|
+
}
|
|
329
342
|
/** Deprecated */
|
|
330
343
|
export declare type CarConsumption = {
|
|
331
344
|
/** Worst conditions are based on -10°C and use of heating */
|
|
@@ -1328,6 +1341,10 @@ export declare type Connect = {
|
|
|
1328
1341
|
/** List of connectivity providers to which a vehicle can connect */
|
|
1329
1342
|
providers?: Maybe<Array<Maybe<ConnectProvider>>>;
|
|
1330
1343
|
};
|
|
1344
|
+
export declare type ConnectBattery = {
|
|
1345
|
+
percentage?: Maybe<Scalars["Int"]>;
|
|
1346
|
+
date?: Maybe<Scalars["String"]>;
|
|
1347
|
+
};
|
|
1331
1348
|
export declare type ConnectFilter = {
|
|
1332
1349
|
/** List of connectivity providers to which a vehicle can connect */
|
|
1333
1350
|
providers?: Maybe<Array<Maybe<ConnectProvider>>>;
|
|
@@ -1335,6 +1352,40 @@ export declare type ConnectFilter = {
|
|
|
1335
1352
|
export declare enum ConnectProvider {
|
|
1336
1353
|
ENODE = "Enode"
|
|
1337
1354
|
}
|
|
1355
|
+
export declare type ConnectedVehicle = {
|
|
1356
|
+
/** Unique ID of the connected vehicle */
|
|
1357
|
+
id: Scalars["ID"];
|
|
1358
|
+
/** ID of the user */
|
|
1359
|
+
user_id: Scalars["ID"];
|
|
1360
|
+
/** Unique ID of the vehicle */
|
|
1361
|
+
vehicle_id: Scalars["ID"];
|
|
1362
|
+
/** Status of the connected vehicle */
|
|
1363
|
+
status: ConnectedVehicleStatus;
|
|
1364
|
+
/** URL to connect the vehicle to the connectivity provider */
|
|
1365
|
+
authorization_url?: Maybe<Scalars["String"]>;
|
|
1366
|
+
/** Connectivity provider */
|
|
1367
|
+
provider: CarConnectivityProvider;
|
|
1368
|
+
/** Permissions for data retrieval from the connected vehicle */
|
|
1369
|
+
permissions?: Maybe<Array<Maybe<ConnectedVehiclePermission>>>;
|
|
1370
|
+
/** Custom label for a connected vehicle that can be assigned by a user */
|
|
1371
|
+
label?: Maybe<Scalars["String"]>;
|
|
1372
|
+
/** Vehicle identification number, unique identifier for a vehicle */
|
|
1373
|
+
vin?: Maybe<Scalars["String"]>;
|
|
1374
|
+
};
|
|
1375
|
+
export declare enum ConnectedVehiclePermission {
|
|
1376
|
+
/** Permission to retrieve the location of the vehicle */
|
|
1377
|
+
LOCATION = "location",
|
|
1378
|
+
/** Permission to retrieve the state of the battery */
|
|
1379
|
+
BATTERY = "battery"
|
|
1380
|
+
}
|
|
1381
|
+
export declare enum ConnectedVehicleStatus {
|
|
1382
|
+
/** Vehicle was added to the Chargetrip platform but not yet authorized */
|
|
1383
|
+
PENDING = "pending",
|
|
1384
|
+
/** Vehicle was authorized. Chargetrip can retrieve data on behave of the user */
|
|
1385
|
+
AUTHORIZED = "authorized",
|
|
1386
|
+
/** User did revoke permissions to retrieve data from the vehicle */
|
|
1387
|
+
DEAUTHORIZED = "deauthorized"
|
|
1388
|
+
}
|
|
1338
1389
|
/** Connector data which extends OCPI Connector */
|
|
1339
1390
|
export declare type Connector = {
|
|
1340
1391
|
/** 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. */
|
|
@@ -1734,6 +1785,16 @@ export declare enum CountryCodeAlpha2 {
|
|
|
1734
1785
|
ZM = "ZM",
|
|
1735
1786
|
ZW = "ZW"
|
|
1736
1787
|
}
|
|
1788
|
+
export declare type CreateConnectedVehicleInput = {
|
|
1789
|
+
/** Id from the vehicle */
|
|
1790
|
+
vehicle_id: Scalars["ID"];
|
|
1791
|
+
/** Connectivity provider used to retrieve data from the vehicle */
|
|
1792
|
+
provider: CarConnectivityProvider;
|
|
1793
|
+
/** Label for a connected vehicle */
|
|
1794
|
+
label?: Maybe<Scalars["PlainString"]>;
|
|
1795
|
+
/** Provider specific options. See the developer portal for more details */
|
|
1796
|
+
options: NewConnectedVehicleOptions;
|
|
1797
|
+
};
|
|
1737
1798
|
/** EVSE data which extends OCPI EVSE */
|
|
1738
1799
|
export declare type EVSE = {
|
|
1739
1800
|
/**
|
|
@@ -1776,7 +1837,7 @@ export declare type FeaturePoint = {
|
|
|
1776
1837
|
type: FeatureType;
|
|
1777
1838
|
/** Geometry of the feature */
|
|
1778
1839
|
geometry: Point;
|
|
1779
|
-
/**
|
|
1840
|
+
/** Additional data */
|
|
1780
1841
|
properties?: Maybe<Scalars["JSON"]>;
|
|
1781
1842
|
};
|
|
1782
1843
|
/** A GeoJSON Feature<Point> input */
|
|
@@ -1831,6 +1892,11 @@ export declare type FeaturePolygonPoint = {
|
|
|
1831
1892
|
export declare enum FeatureType {
|
|
1832
1893
|
FEATURE = "Feature"
|
|
1833
1894
|
}
|
|
1895
|
+
/** Geometry point with GPS coordinates */
|
|
1896
|
+
export declare type GeometryPoint = {
|
|
1897
|
+
type: PointType;
|
|
1898
|
+
coordinates: Array<Scalars["Float"]>;
|
|
1899
|
+
};
|
|
1834
1900
|
/** Navigation service providers available */
|
|
1835
1901
|
export declare enum InstructionsFormat {
|
|
1836
1902
|
/** Chargetrip raw instructions */
|
|
@@ -1899,6 +1965,14 @@ export declare enum MappingProvider {
|
|
|
1899
1965
|
MAPBOXV5 = "MapboxV5"
|
|
1900
1966
|
}
|
|
1901
1967
|
export declare type Mutation = {
|
|
1968
|
+
/** [BETA] Create a connected vehicle for a given vehicle id and a connectivity provider */
|
|
1969
|
+
createConnectedVehicle?: Maybe<ConnectedVehicle>;
|
|
1970
|
+
/** [BETA] Authorize a vehicle by providing the callback url from the connectivity provider which will be exchanged for access tokens */
|
|
1971
|
+
authorizeConnectedVehicle?: Maybe<ConnectedVehicle>;
|
|
1972
|
+
/** [BETA] Update a connected vehicle */
|
|
1973
|
+
updateConnectedVehicle?: Maybe<ConnectedVehicle>;
|
|
1974
|
+
/** [BETA] Revoke access for a connected vehicle */
|
|
1975
|
+
removeConnectedVehicle?: Maybe<Scalars["Void"]>;
|
|
1902
1976
|
/** [BETA] Generate a set of consumption based Isolines */
|
|
1903
1977
|
createIsoline?: Maybe<Scalars["ID"]>;
|
|
1904
1978
|
/** [BETA] Start a new navigation session on top of an existing route */
|
|
@@ -1925,6 +1999,18 @@ export declare type Mutation = {
|
|
|
1925
1999
|
/** Create a new route from the route input and its ID */
|
|
1926
2000
|
newRoute?: Maybe<Scalars["ID"]>;
|
|
1927
2001
|
};
|
|
2002
|
+
export declare type MutationcreateConnectedVehicleArgs = {
|
|
2003
|
+
input?: Maybe<CreateConnectedVehicleInput>;
|
|
2004
|
+
};
|
|
2005
|
+
export declare type MutationauthorizeConnectedVehicleArgs = {
|
|
2006
|
+
input?: Maybe<AuthorizeConnectedVehicleInput>;
|
|
2007
|
+
};
|
|
2008
|
+
export declare type MutationupdateConnectedVehicleArgs = {
|
|
2009
|
+
input: UpdateConnectedVehicleInput;
|
|
2010
|
+
};
|
|
2011
|
+
export declare type MutationremoveConnectedVehicleArgs = {
|
|
2012
|
+
input: RemoveConnectedVehicleInput;
|
|
2013
|
+
};
|
|
1928
2014
|
export declare type MutationcreateIsolineArgs = {
|
|
1929
2015
|
input: IsolineInput;
|
|
1930
2016
|
};
|
|
@@ -2069,6 +2155,10 @@ export declare type NavigationUpdateLocationsInput = {
|
|
|
2069
2155
|
/** Extra information about the location */
|
|
2070
2156
|
properties: NavigationUpdateLocationPropertiesInput;
|
|
2071
2157
|
};
|
|
2158
|
+
export declare type NewConnectedVehicleOptions = {
|
|
2159
|
+
/** Redirect uri */
|
|
2160
|
+
redirect_uri?: Maybe<Scalars["PlainString"]>;
|
|
2161
|
+
};
|
|
2072
2162
|
/** This class defines an additional geo location that is relevant for the Charge Point. The geodetic system to be used is WGS 84. */
|
|
2073
2163
|
export declare type OCPIAdditionalGeoLocation = {
|
|
2074
2164
|
/** Latitude of the point in decimal degree. Example: 50.770774. Decimal separator: "." Regex: -?[0-9]{1,2}\.[0-9]{5,7} */
|
|
@@ -2726,6 +2816,12 @@ export declare type Query = {
|
|
|
2726
2816
|
carPremium?: Maybe<CarPremium>;
|
|
2727
2817
|
/** Get a full list of cars */
|
|
2728
2818
|
carList?: Maybe<Array<Maybe<CarList>>>;
|
|
2819
|
+
/** [BETA] Get connected vehicles for the current user */
|
|
2820
|
+
connectedVehicle?: Maybe<ConnectedVehicle>;
|
|
2821
|
+
/** [BETA] Get a connected vehicle by id */
|
|
2822
|
+
connectedVehicleList?: Maybe<Array<Maybe<ConnectedVehicle>>>;
|
|
2823
|
+
/** [BETA] Retrieve live vehicle data by connected vehicle id */
|
|
2824
|
+
connectedVehicleData?: Maybe<VehicleData>;
|
|
2729
2825
|
/** [BETA] Get an isoline by ID */
|
|
2730
2826
|
isoline?: Maybe<Isoline>;
|
|
2731
2827
|
/** [BETA] Get a navigation session by ID */
|
|
@@ -2778,6 +2874,12 @@ export declare type QuerycarListArgs = {
|
|
|
2778
2874
|
size?: Maybe<Scalars["Int"]>;
|
|
2779
2875
|
page?: Maybe<Scalars["Int"]>;
|
|
2780
2876
|
};
|
|
2877
|
+
export declare type QueryconnectedVehicleArgs = {
|
|
2878
|
+
id: Scalars["ID"];
|
|
2879
|
+
};
|
|
2880
|
+
export declare type QueryconnectedVehicleDataArgs = {
|
|
2881
|
+
id: Scalars["ID"];
|
|
2882
|
+
};
|
|
2781
2883
|
export declare type QueryisolineArgs = {
|
|
2782
2884
|
id: Scalars["ID"];
|
|
2783
2885
|
};
|
|
@@ -2841,6 +2943,10 @@ export declare type QuerynavigationMappingArgs = {
|
|
|
2841
2943
|
precision?: Maybe<Scalars["Int"]>;
|
|
2842
2944
|
language?: Maybe<MappingLanguage>;
|
|
2843
2945
|
};
|
|
2946
|
+
export declare type RemoveConnectedVehicleInput = {
|
|
2947
|
+
/** Id from the connected vehicle */
|
|
2948
|
+
id: Scalars["ID"];
|
|
2949
|
+
};
|
|
2844
2950
|
/** EV specific data for a route request */
|
|
2845
2951
|
export declare type RequestEv = {
|
|
2846
2952
|
/** Internal ID of a Car */
|
|
@@ -3743,6 +3849,8 @@ export declare enum StepType {
|
|
|
3743
3849
|
CROSSBORDER = "crossborder"
|
|
3744
3850
|
}
|
|
3745
3851
|
export declare type Subscription = {
|
|
3852
|
+
/** [BETA] Subscribe to a connected vehicle. */
|
|
3853
|
+
connectedVehicle?: Maybe<ConnectedVehicle>;
|
|
3746
3854
|
/** [BETA] Subscribe to an isoline label in order to receive updates */
|
|
3747
3855
|
isoline?: Maybe<Isoline>;
|
|
3748
3856
|
/** [BETA] Subscribe to navigation session system event updates. We strongly recommend using this at all times to not miss any updates */
|
|
@@ -3750,6 +3858,9 @@ export declare type Subscription = {
|
|
|
3750
3858
|
/** Subscription for a specific route was updated in the system event */
|
|
3751
3859
|
routeUpdatedById?: Maybe<Route>;
|
|
3752
3860
|
};
|
|
3861
|
+
export declare type SubscriptionconnectedVehicleArgs = {
|
|
3862
|
+
id: Scalars["ID"];
|
|
3863
|
+
};
|
|
3753
3864
|
export declare type SubscriptionisolineArgs = {
|
|
3754
3865
|
id: Scalars["ID"];
|
|
3755
3866
|
};
|
|
@@ -3759,3 +3870,23 @@ export declare type SubscriptionnavigationUpdatedByIdArgs = {
|
|
|
3759
3870
|
export declare type SubscriptionrouteUpdatedByIdArgs = {
|
|
3760
3871
|
id: Scalars["ID"];
|
|
3761
3872
|
};
|
|
3873
|
+
export declare type UpdateConnectedVehicleInput = {
|
|
3874
|
+
/** Id from the connected vehicle */
|
|
3875
|
+
id: Scalars["ID"];
|
|
3876
|
+
/** New label for a connected vehicle */
|
|
3877
|
+
label?: Maybe<Scalars["PlainString"]>;
|
|
3878
|
+
};
|
|
3879
|
+
export declare type VehicleData = {
|
|
3880
|
+
battery?: Maybe<ConnectBattery>;
|
|
3881
|
+
location?: Maybe<VehicleLocation>;
|
|
3882
|
+
};
|
|
3883
|
+
/** Location of the vehicle */
|
|
3884
|
+
export declare type VehicleLocation = {
|
|
3885
|
+
type: FeatureType;
|
|
3886
|
+
geometry: GeometryPoint;
|
|
3887
|
+
properties?: Maybe<VehicleLocationProperties>;
|
|
3888
|
+
};
|
|
3889
|
+
/** Properties of a vehicle location */
|
|
3890
|
+
export declare type VehicleLocationProperties = {
|
|
3891
|
+
date: Scalars["String"];
|
|
3892
|
+
};
|