@chargetrip/types 1.37.4 → 1.38.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/CHANGELOG.md +7 -0
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.js +4 -4
- package/dist/node/index.js.map +1 -1
- package/dist/react-native/graphql.js +4 -4
- package/dist/react-native/graphql.js.map +1 -1
- package/dist/ts/graphql.d.ts +93 -59
- package/graphql.schema.json +290 -99
- package/package.json +1 -1
- package/src/graphql.ts +98 -59
package/dist/ts/graphql.d.ts
CHANGED
|
@@ -1392,10 +1392,10 @@ export declare type ChargerStatuses = {
|
|
|
1392
1392
|
* Vehicles that do not have a full electric drivetrain type ( all except Battery Electric Vehicles / BEV) therefore return relatively small ranges
|
|
1393
1393
|
*/
|
|
1394
1394
|
export declare type ChargetripRange = {
|
|
1395
|
-
/** Worst conditions are based on -10°C and use of heating */
|
|
1396
|
-
worst?: Maybe<Scalars["
|
|
1397
|
-
/** Best conditions are based on 23°C and no use of A/C */
|
|
1398
|
-
best?: Maybe<Scalars["
|
|
1395
|
+
/** Range in kilometers. Worst conditions are based on -10°C and use of heating */
|
|
1396
|
+
worst?: Maybe<Scalars["Int"]>;
|
|
1397
|
+
/** Range in kilometers. Best conditions are based on 23°C and no use of A/C */
|
|
1398
|
+
best?: Maybe<Scalars["Int"]>;
|
|
1399
1399
|
};
|
|
1400
1400
|
/**
|
|
1401
1401
|
* Chargetrip's custom real-world range provides a carefully calculated display range for all electric vehicle models based on our own research and driving data.
|
|
@@ -2050,27 +2050,27 @@ export declare type EvseCustomProperties = {
|
|
|
2050
2050
|
/** OICP standard custom properties */
|
|
2051
2051
|
oicp?: Maybe<OICPEvseCustomProperties>;
|
|
2052
2052
|
};
|
|
2053
|
-
/** A GeoJSON Feature<LineString
|
|
2053
|
+
/** A GeoJSON Feature<LineString>. */
|
|
2054
2054
|
export declare type FeatureLineString = {
|
|
2055
|
-
/** Feature type */
|
|
2055
|
+
/** Feature type. */
|
|
2056
2056
|
type: FeatureType;
|
|
2057
|
-
/** Geometry of the feature */
|
|
2057
|
+
/** Geometry of the feature. */
|
|
2058
2058
|
geometry: LineString;
|
|
2059
2059
|
};
|
|
2060
|
-
/** A GeoJSON Feature<MultiPolygon
|
|
2060
|
+
/** A GeoJSON Feature<MultiPolygon>. */
|
|
2061
2061
|
export declare type FeatureMultiPolygon = {
|
|
2062
|
-
/** Feature type */
|
|
2062
|
+
/** Feature type. */
|
|
2063
2063
|
type: FeatureType;
|
|
2064
|
-
/** Geometry of the feature */
|
|
2064
|
+
/** Geometry of the feature. */
|
|
2065
2065
|
geometry: MultiPolygon;
|
|
2066
|
-
/** Properties of the MultiPolygon Feature */
|
|
2066
|
+
/** Properties of the MultiPolygon Feature. */
|
|
2067
2067
|
properties?: Maybe<PolygonProperties>;
|
|
2068
2068
|
};
|
|
2069
|
-
/** A GeoJSON Feature<Point
|
|
2069
|
+
/** A GeoJSON Feature<Point>. */
|
|
2070
2070
|
export declare type FeatureMultiPolygonPoint = {
|
|
2071
|
-
/** Feature type */
|
|
2071
|
+
/** Feature type. */
|
|
2072
2072
|
type: FeatureType;
|
|
2073
|
-
/** Geometry of the feature */
|
|
2073
|
+
/** Geometry of the feature. */
|
|
2074
2074
|
geometry: Point;
|
|
2075
2075
|
/** Optional object where you can store custom data you need in your application. */
|
|
2076
2076
|
properties?: Maybe<Scalars["JSON"]>;
|
|
@@ -2097,23 +2097,23 @@ export declare type FeaturePointInput = {
|
|
|
2097
2097
|
/** Optional object where you can store custom data you need in your application. This extends the current functionalities we offer */
|
|
2098
2098
|
properties?: Maybe<Scalars["JSON"]>;
|
|
2099
2099
|
};
|
|
2100
|
-
/** A GeoJSON Feature<Point> input */
|
|
2100
|
+
/** A GeoJSON Feature<Point> input. */
|
|
2101
2101
|
export declare type FeaturePointPolygonInput = {
|
|
2102
|
-
/** Feature type */
|
|
2102
|
+
/** Feature type. */
|
|
2103
2103
|
type: FeatureType;
|
|
2104
|
-
/** Geometry of the feature */
|
|
2104
|
+
/** Geometry of the feature. */
|
|
2105
2105
|
geometry: PointInput;
|
|
2106
2106
|
/** Optional object where you can store custom data you need in your application. */
|
|
2107
2107
|
properties?: Maybe<FeaturePointPolygonPropertiesInput>;
|
|
2108
2108
|
};
|
|
2109
|
-
/** Properties for Feature<Point> input */
|
|
2109
|
+
/** Properties for Feature<Point> input. */
|
|
2110
2110
|
export declare type FeaturePointPolygonProperties = {
|
|
2111
|
-
/** Name of the location */
|
|
2111
|
+
/** Name of the location. */
|
|
2112
2112
|
name?: Maybe<Scalars["String"]>;
|
|
2113
2113
|
};
|
|
2114
|
-
/** Properties for Feature<Point> input */
|
|
2114
|
+
/** Properties for Feature<Point> input. */
|
|
2115
2115
|
export declare type FeaturePointPolygonPropertiesInput = {
|
|
2116
|
-
/** Name of the location */
|
|
2116
|
+
/** Name of the location. */
|
|
2117
2117
|
name?: Maybe<Scalars["String"]>;
|
|
2118
2118
|
};
|
|
2119
2119
|
/** GeoJSON Feature type */
|
|
@@ -2139,49 +2139,43 @@ export declare enum InstructionsFormat {
|
|
|
2139
2139
|
MAPBOXV5 = "MapboxV5"
|
|
2140
2140
|
}
|
|
2141
2141
|
export declare type Isoline = {
|
|
2142
|
-
/** Isoline id */
|
|
2142
|
+
/** Isoline id. */
|
|
2143
2143
|
id: Scalars["ID"];
|
|
2144
|
-
/** Isoline status */
|
|
2144
|
+
/** Isoline status. */
|
|
2145
2145
|
status: IsolineStatus;
|
|
2146
|
-
/** Shape of the isoline consisting in a list of multipolygons */
|
|
2146
|
+
/** Shape of the isoline consisting in a list of multipolygons. */
|
|
2147
2147
|
polygons?: Maybe<Array<Maybe<FeatureMultiPolygon>>>;
|
|
2148
|
-
/** List of the ferries uniting islands formed by the isoline */
|
|
2148
|
+
/** List of the ferries uniting islands formed by the isoline. */
|
|
2149
2149
|
ferries?: Maybe<Array<Maybe<FeatureLineString>>>;
|
|
2150
|
-
/**
|
|
2151
|
-
|
|
2152
|
-
/** Vehicle id */
|
|
2153
|
-
vehicle_id: Scalars["ID"];
|
|
2154
|
-
/** Number of Isolines to be generated representing SoC (default: 1, maximum: 20) */
|
|
2155
|
-
polygon_count?: Maybe<Scalars["Int"]>;
|
|
2156
|
-
/** Season to be taken into account when generating the isoline. Default: current */
|
|
2157
|
-
season?: Maybe<RouteSeason>;
|
|
2150
|
+
/** The inputted request data for the isoline used to compute it. */
|
|
2151
|
+
request_input?: Maybe<IsolineRequestInput>;
|
|
2158
2152
|
};
|
|
2159
2153
|
export declare enum IsolineFerryConnectionsType {
|
|
2160
|
-
/** Ferry connections should not be included */
|
|
2154
|
+
/** Ferry connections should not be included. */
|
|
2161
2155
|
NONE = "none",
|
|
2162
2156
|
/** Ferry connections should be taken into account but only one level deep. For example: from the European mainland to England and no other connecting ferries departing from England. */
|
|
2163
2157
|
SINGLE = "single"
|
|
2164
2158
|
}
|
|
2165
2159
|
export declare type IsolineInput = {
|
|
2166
|
-
/** Vehicle id */
|
|
2160
|
+
/** Vehicle id. */
|
|
2167
2161
|
vehicle_id: Scalars["ID"];
|
|
2168
|
-
/** Origin point of the request */
|
|
2162
|
+
/** Origin point of the request. */
|
|
2169
2163
|
origin: FeaturePointPolygonInput;
|
|
2170
|
-
/** Numbers of polygons to be generated (
|
|
2164
|
+
/** Numbers of polygons to be generated (maximum: 20). */
|
|
2171
2165
|
polygon_count?: Maybe<Scalars["Int"]>;
|
|
2172
|
-
/** Vehicle should be able to return to the origin point from any point */
|
|
2166
|
+
/** Vehicle should be able to return to the origin point from any point. */
|
|
2173
2167
|
round_trip?: Maybe<Scalars["Boolean"]>;
|
|
2174
|
-
/** Number of occupants */
|
|
2168
|
+
/** Number of occupants. */
|
|
2175
2169
|
occupants?: Maybe<Scalars["Int"]>;
|
|
2176
|
-
/** Cumulated weight of the occupants */
|
|
2170
|
+
/** Cumulated weight of the occupants. */
|
|
2177
2171
|
total_occupant_weight?: Maybe<TotalOccupantWeightInput>;
|
|
2178
|
-
/** Cargo weight
|
|
2172
|
+
/** Cargo weight. */
|
|
2179
2173
|
total_cargo_weight?: Maybe<TotalCargoWeightInput>;
|
|
2180
|
-
/** Climate is on */
|
|
2174
|
+
/** Climate is on. */
|
|
2181
2175
|
climate_control?: Maybe<Scalars["Boolean"]>;
|
|
2182
|
-
/** Season to be taken into account when generating the isoline */
|
|
2176
|
+
/** Season to be taken into account when generating the isoline. */
|
|
2183
2177
|
season?: Maybe<RouteSeason>;
|
|
2184
|
-
/** Polygons precision quality */
|
|
2178
|
+
/** Polygons precision quality. */
|
|
2185
2179
|
quality?: Maybe<IsolineQuality>;
|
|
2186
2180
|
/** Include ferry connections. Single and multiple ferry connections increase the calculation time and the number of polygons. */
|
|
2187
2181
|
ferry_connections?: Maybe<IsolineFerryConnectionsType>;
|
|
@@ -2190,20 +2184,60 @@ export declare type IsolineInput = {
|
|
|
2190
2184
|
/** Minimum final battery state of charge. When omitted the default value is 0 percent. */
|
|
2191
2185
|
final_state_of_charge?: Maybe<StateOfChargeInput>;
|
|
2192
2186
|
};
|
|
2193
|
-
/** Granularity of the isoline */
|
|
2187
|
+
/** Granularity of the isoline. */
|
|
2194
2188
|
export declare enum IsolineQuality {
|
|
2195
|
-
/** High polygons precisions */
|
|
2189
|
+
/** High polygons precisions. */
|
|
2196
2190
|
HIGH = "high",
|
|
2197
|
-
/** Low polygons precisions */
|
|
2191
|
+
/** Low polygons precisions. */
|
|
2198
2192
|
LOW = "low"
|
|
2199
2193
|
}
|
|
2200
|
-
|
|
2194
|
+
export declare type IsolineRequestInput = {
|
|
2195
|
+
/** Vehicle id. */
|
|
2196
|
+
vehicle_id: Scalars["ID"];
|
|
2197
|
+
/** Origin point of the request. */
|
|
2198
|
+
origin: FeaturePoint;
|
|
2199
|
+
/** Numbers of polygons that were generated. */
|
|
2200
|
+
polygon_count?: Maybe<Scalars["Int"]>;
|
|
2201
|
+
/** Vehicle should be able to return to the origin point from any point. */
|
|
2202
|
+
round_trip?: Maybe<Scalars["Boolean"]>;
|
|
2203
|
+
/** Number of occupants. */
|
|
2204
|
+
occupants?: Maybe<Scalars["Int"]>;
|
|
2205
|
+
/** Cumulated weight of the occupants. */
|
|
2206
|
+
total_occupant_weight?: Maybe<Scalars["Float"]>;
|
|
2207
|
+
/** Cargo weight. */
|
|
2208
|
+
total_cargo_weight?: Maybe<Scalars["Float"]>;
|
|
2209
|
+
/** Climate is on. */
|
|
2210
|
+
climate_control?: Maybe<Scalars["Boolean"]>;
|
|
2211
|
+
/** Season taken into account when isoline was generated. */
|
|
2212
|
+
season?: Maybe<RouteSeason>;
|
|
2213
|
+
/** Polygons precision quality. */
|
|
2214
|
+
quality?: Maybe<IsolineQuality>;
|
|
2215
|
+
/** Ferry connections. */
|
|
2216
|
+
ferry_connections?: Maybe<IsolineFerryConnectionsType>;
|
|
2217
|
+
/** Battery state of charge. */
|
|
2218
|
+
state_of_charge: Scalars["Float"];
|
|
2219
|
+
/** Minimum final battery state of charge. */
|
|
2220
|
+
final_state_of_charge: Scalars["Float"];
|
|
2221
|
+
};
|
|
2222
|
+
export declare type IsolineRequestInputtotal_occupant_weightArgs = {
|
|
2223
|
+
unit?: Maybe<WeightUnit>;
|
|
2224
|
+
};
|
|
2225
|
+
export declare type IsolineRequestInputtotal_cargo_weightArgs = {
|
|
2226
|
+
unit?: Maybe<WeightUnit>;
|
|
2227
|
+
};
|
|
2228
|
+
export declare type IsolineRequestInputstate_of_chargeArgs = {
|
|
2229
|
+
unit?: Maybe<StateOfChargeUnit>;
|
|
2230
|
+
};
|
|
2231
|
+
export declare type IsolineRequestInputfinal_state_of_chargeArgs = {
|
|
2232
|
+
unit?: Maybe<StateOfChargeUnit>;
|
|
2233
|
+
};
|
|
2234
|
+
/** Status of the isoline label. */
|
|
2201
2235
|
export declare enum IsolineStatus {
|
|
2202
|
-
/** Isoline label has been successfully generated */
|
|
2236
|
+
/** Isoline label has been successfully generated. */
|
|
2203
2237
|
DONE = "done",
|
|
2204
|
-
/** Isoline label is under processing */
|
|
2238
|
+
/** Isoline label is under processing. */
|
|
2205
2239
|
PENDING = "pending",
|
|
2206
|
-
/** There was an error while generating the isoline label */
|
|
2240
|
+
/** There was an error while generating the isoline label. */
|
|
2207
2241
|
ERROR = "error"
|
|
2208
2242
|
}
|
|
2209
2243
|
/** Types of a leg */
|
|
@@ -2250,11 +2284,11 @@ export declare enum MeasurementUnit {
|
|
|
2250
2284
|
/** Return the measurement in inches */
|
|
2251
2285
|
INCH = "inch"
|
|
2252
2286
|
}
|
|
2253
|
-
/** A GeoJSON Polygon */
|
|
2287
|
+
/** A GeoJSON Polygon. */
|
|
2254
2288
|
export declare type MultiPolygon = {
|
|
2255
|
-
/** MultiPolygon type */
|
|
2289
|
+
/** MultiPolygon type. */
|
|
2256
2290
|
type: MultiPolygonType;
|
|
2257
|
-
/** List of coordinates representing a polygon */
|
|
2291
|
+
/** List of coordinates representing a polygon. */
|
|
2258
2292
|
coordinates: Array<Maybe<Array<Maybe<Array<Maybe<Array<Scalars["Float"]>>>>>>>;
|
|
2259
2293
|
};
|
|
2260
2294
|
/** GeoJSON MultiPolygon type */
|
|
@@ -2270,7 +2304,7 @@ export declare type Mutation = {
|
|
|
2270
2304
|
updateConnectedVehicle?: Maybe<ConnectedVehicle>;
|
|
2271
2305
|
/** [BETA] Remove a connected vehicle and revoke access */
|
|
2272
2306
|
removeConnectedVehicle?: Maybe<ConnectedVehicle>;
|
|
2273
|
-
/**
|
|
2307
|
+
/** Create a consumption based isoline. */
|
|
2274
2308
|
createIsoline?: Maybe<Scalars["ID"]>;
|
|
2275
2309
|
/** [BETA] Start a new navigation session on top of an existing route */
|
|
2276
2310
|
startNavigation?: Maybe<Scalars["ID"]>;
|
|
@@ -3107,9 +3141,9 @@ export declare type PointInput = {
|
|
|
3107
3141
|
export declare enum PointType {
|
|
3108
3142
|
POINT = "Point"
|
|
3109
3143
|
}
|
|
3110
|
-
/** Polygon properties */
|
|
3144
|
+
/** Polygon properties. */
|
|
3111
3145
|
export declare type PolygonProperties = {
|
|
3112
|
-
/** Index of the feature inside the list */
|
|
3146
|
+
/** Index of the feature inside the list. */
|
|
3113
3147
|
index?: Maybe<Scalars["Int"]>;
|
|
3114
3148
|
};
|
|
3115
3149
|
export declare type PowerInput = {
|
|
@@ -3216,7 +3250,7 @@ export declare type Query = {
|
|
|
3216
3250
|
connectedVehicleList?: Maybe<Array<Maybe<ConnectedVehicle>>>;
|
|
3217
3251
|
/** [BETA] Retrieve live vehicle data by connected vehicle id */
|
|
3218
3252
|
connectedVehicleData?: Maybe<VehicleData>;
|
|
3219
|
-
/**
|
|
3253
|
+
/** Get an isoline by ID. */
|
|
3220
3254
|
isoline?: Maybe<Isoline>;
|
|
3221
3255
|
/** [BETA] Get a navigation session by ID */
|
|
3222
3256
|
navigation?: Maybe<Navigation>;
|
|
@@ -4358,7 +4392,7 @@ export declare enum StepType {
|
|
|
4358
4392
|
export declare type Subscription = {
|
|
4359
4393
|
/** [BETA] Subscribe to a connected vehicle. */
|
|
4360
4394
|
connectedVehicle?: Maybe<ConnectedVehicle>;
|
|
4361
|
-
/**
|
|
4395
|
+
/** Subscribe to an isoline in order to receive updates. */
|
|
4362
4396
|
isoline?: Maybe<Isoline>;
|
|
4363
4397
|
/** [BETA] Subscribe to navigation session system event updates. We strongly recommend using this at all times to not miss any updates */
|
|
4364
4398
|
navigationUpdatedById?: Maybe<Navigation>;
|