@chargetrip/types 1.47.0 → 1.47.1
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 +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.js +49 -11
- package/dist/node/index.js.map +1 -1
- package/dist/react-native/graphql.js +49 -11
- package/dist/react-native/graphql.js.map +1 -1
- package/dist/ts/graphql.d.ts +277 -44
- package/graphql.schema.json +1481 -111
- package/package.json +1 -1
- package/src/graphql.ts +304 -45
package/package.json
CHANGED
package/src/graphql.ts
CHANGED
|
@@ -99,6 +99,24 @@ export enum AdhocAuthorisationMethod {
|
|
|
99
99
|
SMS = "SMS"
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
export type AirPressure = {
|
|
103
|
+
/** Value of the atmospheric pressure. */
|
|
104
|
+
value: Scalars["Float"];
|
|
105
|
+
/** Atmospheric pressure unit. */
|
|
106
|
+
type: AirPressureUnit;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export type AirPressureInput = {
|
|
110
|
+
/** Value of the atmospheric pressure. */
|
|
111
|
+
value: Scalars["Float"];
|
|
112
|
+
/** Atmospheric pressure unit. */
|
|
113
|
+
type: AirPressureUnit;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
export enum AirPressureUnit {
|
|
117
|
+
MILLIBAR = "millibar"
|
|
118
|
+
}
|
|
119
|
+
|
|
102
120
|
export type AlternativeStationRadius = {
|
|
103
121
|
/** Value of the alternative station radius. */
|
|
104
122
|
value: Scalars["Float"];
|
|
@@ -117,7 +135,7 @@ export type AlternativeStationRadiusInput = {
|
|
|
117
135
|
source?: Maybe<TelemetryInputSource>;
|
|
118
136
|
};
|
|
119
137
|
|
|
120
|
-
/** Amenities available near a station */
|
|
138
|
+
/** Amenities available near a station. */
|
|
121
139
|
export enum Amenities {
|
|
122
140
|
PARK = "park",
|
|
123
141
|
RESTAURANT = "restaurant",
|
|
@@ -131,30 +149,95 @@ export enum Amenities {
|
|
|
131
149
|
PHARMACY = "pharmacy"
|
|
132
150
|
}
|
|
133
151
|
|
|
134
|
-
/**
|
|
152
|
+
/** Amenity data. */
|
|
135
153
|
export type Amenity = {
|
|
136
|
-
/**
|
|
154
|
+
/**
|
|
155
|
+
* Unique amenity ID.
|
|
156
|
+
* @deprecated Will be removed in the future.
|
|
157
|
+
*/
|
|
137
158
|
id?: Maybe<Scalars["ID"]>;
|
|
138
|
-
/**
|
|
159
|
+
/**
|
|
160
|
+
* ID provided by an amenity data source as the row ID.
|
|
161
|
+
* @deprecated In favor of external_id.
|
|
162
|
+
*/
|
|
139
163
|
externalId?: Maybe<Scalars["String"]>;
|
|
140
|
-
/**
|
|
164
|
+
/** ID provided by an amenity data source as the row ID. */
|
|
165
|
+
external_id: Scalars["String"];
|
|
166
|
+
/** Name of the amenity. */
|
|
141
167
|
name?: Maybe<Scalars["String"]>;
|
|
142
|
-
/** Geo location coordinates. This is a GeoJSON Point */
|
|
143
|
-
location
|
|
144
|
-
/**
|
|
168
|
+
/** Geo location coordinates. This is a GeoJSON Point. */
|
|
169
|
+
location: Point;
|
|
170
|
+
/** Address of the amenity. */
|
|
145
171
|
address?: Maybe<Address>;
|
|
146
|
-
/** Type of amenity. An amenity can belong to multiple categories */
|
|
147
|
-
type
|
|
148
|
-
/**
|
|
149
|
-
|
|
150
|
-
|
|
172
|
+
/** Type of amenity. An amenity can belong to multiple categories. */
|
|
173
|
+
type: Array<Maybe<Scalars["String"]>>;
|
|
174
|
+
/**
|
|
175
|
+
* Computed distance between station and amenity.
|
|
176
|
+
* @deprecated In favor of station_distance.
|
|
177
|
+
*/
|
|
151
178
|
distance?: Maybe<Scalars["Int"]>;
|
|
152
|
-
/**
|
|
179
|
+
/** Computed distance between station and amenity. */
|
|
180
|
+
station_distance: Scalars["Float"];
|
|
181
|
+
/**
|
|
182
|
+
* Full path URL to amenity foursquare page.
|
|
183
|
+
* @deprecated Will be removed in the future.
|
|
184
|
+
*/
|
|
153
185
|
foursquareUrl?: Maybe<Scalars["String"]>;
|
|
154
|
-
/**
|
|
186
|
+
/** Opening hours of the amenity. */
|
|
187
|
+
opening_hours?: Maybe<AmenityOpeningHours>;
|
|
188
|
+
/** Indicates whether pets are allowed. This does not apply to assistance dogs, which may have legal access. */
|
|
189
|
+
pets_allowed?: Maybe<Scalars["Boolean"]>;
|
|
190
|
+
/** Accessibility options at the amenity. */
|
|
191
|
+
accessibility?: Maybe<AmenityAccessibility>;
|
|
192
|
+
/** Contact information for the amenity. */
|
|
193
|
+
contact?: Maybe<AmenityContact>;
|
|
194
|
+
/** Rating of an amenity, the value will be between 0.0 and 10.0. If no rating has been given, the value will be set to null. */
|
|
195
|
+
rating?: Maybe<Scalars["Float"]>;
|
|
196
|
+
/**
|
|
197
|
+
* Date and time when an amenity was created.
|
|
198
|
+
* @deprecated Will be removed in the future.
|
|
199
|
+
*/
|
|
155
200
|
createdAt?: Maybe<Scalars["String"]>;
|
|
156
|
-
/**
|
|
201
|
+
/**
|
|
202
|
+
* Date and time when an amenity was last updated.
|
|
203
|
+
* @deprecated In favor of last_updated.
|
|
204
|
+
*/
|
|
157
205
|
updatedAt?: Maybe<Scalars["String"]>;
|
|
206
|
+
/** Date and time when an amenity was last updated. */
|
|
207
|
+
last_updated: Scalars["DateTime"];
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
/** Amenity data. */
|
|
211
|
+
export type Amenitystation_distanceArgs = {
|
|
212
|
+
unit?: Maybe<DistanceUnit>;
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
/** Accessibility options at the amenity. */
|
|
216
|
+
export type AmenityAccessibility = {
|
|
217
|
+
/** Type of wheelchair accessibility at the amenity. */
|
|
218
|
+
wheelchair?: Maybe<AmenityWheelchairAccessibilityType>;
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
/** Contact information for the amenity. */
|
|
222
|
+
export type AmenityContact = {
|
|
223
|
+
/** Phone number to contact the amenity. */
|
|
224
|
+
phone?: Maybe<Scalars["String"]>;
|
|
225
|
+
/** Website of the amenity. */
|
|
226
|
+
website?: Maybe<Scalars["String"]>;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
/** Filter that can be applied to retrieve the amenity list. */
|
|
230
|
+
export type AmenityListFilter = {
|
|
231
|
+
/** Type of amenity. An amenity can belong to multiple categories. */
|
|
232
|
+
type?: Maybe<Array<Amenities>>;
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
/** Opening and access hours of the location. */
|
|
236
|
+
export type AmenityOpeningHours = {
|
|
237
|
+
/** True to represent 24 hours a day and 7 days a week. */
|
|
238
|
+
twentyfourseven?: Maybe<Scalars["Boolean"]>;
|
|
239
|
+
/** Regular hours, weekday-based. Only to be used if twentyfourseven=false, then this field needs to contain at least one RegularHours object. */
|
|
240
|
+
regular_hours?: Maybe<Array<Maybe<AmenityRegularHours>>>;
|
|
158
241
|
};
|
|
159
242
|
|
|
160
243
|
/** Amenity preferences for a route. */
|
|
@@ -165,6 +248,16 @@ export type AmenityPreferencesInput = {
|
|
|
165
248
|
scheduled_charge_stops?: Maybe<Array<ScheduledChargeStopInput>>;
|
|
166
249
|
};
|
|
167
250
|
|
|
251
|
+
/** Regular hours, weekday-based. Only to be used if twentyfourseven=false, then this field needs to contain at least one RegularHours object. */
|
|
252
|
+
export type AmenityRegularHours = {
|
|
253
|
+
/** Number of days in the week, from Monday (1) till Sunday (7). */
|
|
254
|
+
weekday?: Maybe<Scalars["Int"]>;
|
|
255
|
+
/** Beginning of the regular period, in local time, given in hours and minutes. Must be in 24h format with leading zeros. Example: "18:15". Hour/Minute separator: ":" Regex: ([0-1][0-9]|2[1-3]):[0-5][0-9]. */
|
|
256
|
+
period_begin?: Maybe<Scalars["String"]>;
|
|
257
|
+
/** End of the regular period, in local time, syntax as for period_begin. Must be later than period_begin. */
|
|
258
|
+
period_end?: Maybe<Scalars["String"]>;
|
|
259
|
+
};
|
|
260
|
+
|
|
168
261
|
/** A list of amenity types. */
|
|
169
262
|
export enum AmenityType {
|
|
170
263
|
PARK = "park",
|
|
@@ -179,6 +272,18 @@ export enum AmenityType {
|
|
|
179
272
|
PHARMACY = "pharmacy"
|
|
180
273
|
}
|
|
181
274
|
|
|
275
|
+
/** Type of wheelchair accessibility at the amenity. */
|
|
276
|
+
export enum AmenityWheelchairAccessibilityType {
|
|
277
|
+
/** Wheelchairs have full unrestricted access. */
|
|
278
|
+
YES = "yes",
|
|
279
|
+
/** Wheelchairs have partial access (e.g some areas can be accessed and others not, areas requiring assistance by someone pushing up a steep gradient). */
|
|
280
|
+
LIMITED = "limited",
|
|
281
|
+
/** Wheelchairs have no unrestricted access (e.g. stair only access). */
|
|
282
|
+
NO = "no",
|
|
283
|
+
/** The amenity is designated or purpose-built for wheelchairs (e.g. bathroom designed for wheelchair access only). */
|
|
284
|
+
DESIGNATED = "designated"
|
|
285
|
+
}
|
|
286
|
+
|
|
182
287
|
export type AuthorizeConnectedVehicleInput = {
|
|
183
288
|
/** Id from the connected vehicle */
|
|
184
289
|
id: Scalars["ID"];
|
|
@@ -278,7 +383,6 @@ export type ChargeSpeedInput = {
|
|
|
278
383
|
source?: Maybe<TelemetryInputSource>;
|
|
279
384
|
};
|
|
280
385
|
|
|
281
|
-
/** Charge speed unit. */
|
|
282
386
|
export enum ChargeSpeedUnit {
|
|
283
387
|
/** Return the charge speed in kilowatt hours. */
|
|
284
388
|
KILOWATT_HOUR = "kilowatt_hour",
|
|
@@ -313,7 +417,6 @@ export type Charger = {
|
|
|
313
417
|
total?: Maybe<Scalars["Int"]>;
|
|
314
418
|
};
|
|
315
419
|
|
|
316
|
-
/** Status of a charger. */
|
|
317
420
|
export enum ChargerStatus {
|
|
318
421
|
/** The charger is free. */
|
|
319
422
|
FREE = "free",
|
|
@@ -867,6 +970,7 @@ export type Contact = {
|
|
|
867
970
|
|
|
868
971
|
/** ISO-3166 alpha-2 country codes. */
|
|
869
972
|
export enum CountryCodeAlpha2 {
|
|
973
|
+
AA = "AA",
|
|
870
974
|
AD = "AD",
|
|
871
975
|
AE = "AE",
|
|
872
976
|
AF = "AF",
|
|
@@ -1151,8 +1255,11 @@ export type CreateRoute = {
|
|
|
1151
1255
|
via?: Maybe<Array<RouteViaFeaturePoint>>;
|
|
1152
1256
|
/** Operator preferences for a route. When provided, prefers routes that use higher order operators. */
|
|
1153
1257
|
operators?: Maybe<RouteOperatorPreferences>;
|
|
1154
|
-
/**
|
|
1155
|
-
|
|
1258
|
+
/**
|
|
1259
|
+
* Season of a route.
|
|
1260
|
+
* @deprecated In favor of weather.
|
|
1261
|
+
*/
|
|
1262
|
+
season?: Maybe<RouteSeason>;
|
|
1156
1263
|
/** Alternative stations along a route within a specified radius of 500 to 5000 meters, or the equivalent in another unit. */
|
|
1157
1264
|
alternative_station_radius?: Maybe<AlternativeStationRadius>;
|
|
1158
1265
|
/** Route departure time. Used to calculate the expected arrival time and, if set in the past, to apply historical weather data. */
|
|
@@ -1161,6 +1268,8 @@ export type CreateRoute = {
|
|
|
1161
1268
|
avoid?: Maybe<Array<RouteAvoid>>;
|
|
1162
1269
|
/** [BETA] User-defined maximum speed used for this route, if provided. */
|
|
1163
1270
|
maximum_speed?: Maybe<MaximumSpeed>;
|
|
1271
|
+
/** Weather configuration for the route. Defined by a preset or custom weather conditions. */
|
|
1272
|
+
weather?: Maybe<RouteWeather>;
|
|
1164
1273
|
};
|
|
1165
1274
|
|
|
1166
1275
|
/** Input for the create route mutation. */
|
|
@@ -1185,6 +1294,8 @@ export type CreateRouteInput = {
|
|
|
1185
1294
|
avoid?: Maybe<Array<RouteAvoid>>;
|
|
1186
1295
|
/** [BETA] Maximum speed to consider when generating the route. In the segments where legal speed is lower than this value, the legal speed will be used instead. */
|
|
1187
1296
|
maximum_speed?: Maybe<MaximumSpeedInput>;
|
|
1297
|
+
/** Weather configuration for the route. Defined by a preset or custom weather conditions. */
|
|
1298
|
+
weather?: Maybe<RouteWeatherInput>;
|
|
1188
1299
|
};
|
|
1189
1300
|
|
|
1190
1301
|
/** Currency in the ISO 4217 format. */
|
|
@@ -1533,7 +1644,6 @@ export enum DimensionUnit {
|
|
|
1533
1644
|
MILE = "mile"
|
|
1534
1645
|
}
|
|
1535
1646
|
|
|
1536
|
-
/** Distance unit */
|
|
1537
1647
|
export enum DistanceUnit {
|
|
1538
1648
|
/** Return the distance in meters. */
|
|
1539
1649
|
METER = "meter",
|
|
@@ -2094,7 +2204,10 @@ export type Mutation = {
|
|
|
2094
2204
|
* This is a premium feature, contact Chargetrip for more information.
|
|
2095
2205
|
*/
|
|
2096
2206
|
deleteUserReview: Review;
|
|
2097
|
-
/**
|
|
2207
|
+
/**
|
|
2208
|
+
* Deprecated: In favor of createRoute.
|
|
2209
|
+
* @deprecated In favor of `createRoute`.
|
|
2210
|
+
*/
|
|
2098
2211
|
newRoute?: Maybe<Scalars["ID"]>;
|
|
2099
2212
|
/** Create a new route from the route input and its ID. */
|
|
2100
2213
|
createRoute: Scalars["ID"];
|
|
@@ -2948,6 +3061,10 @@ export type Operator = {
|
|
|
2948
3061
|
export type OperatorListFilter = {
|
|
2949
3062
|
/** ISO-3166 alpha-2 country codes an operator is active in. */
|
|
2950
3063
|
countries?: Maybe<Array<CountryCodeAlpha2>>;
|
|
3064
|
+
/** List of ranking level(s) to be retrieved. Valid values are 1 to 10. Default operator preference applied to routes created through newRoute mutation if no operator preference is specified in the request. */
|
|
3065
|
+
ranking?: Maybe<Array<Scalars["Int"]>>;
|
|
3066
|
+
/** Only retrieve operators that are in the excluded list. Default operator preference applied to routes created through newRoute mutation if no operator preference is specified in the request. */
|
|
3067
|
+
excluded?: Maybe<Scalars["Boolean"]>;
|
|
2951
3068
|
/** List of ranking level(s) to be retrieved. An operator can be ranked on different levels in different countries. Default operator preference applied to routes created through createRoute mutation if no operator preference is specified in the request. */
|
|
2952
3069
|
ranking_levels?: Maybe<OperatorRankingLevelsFilter>;
|
|
2953
3070
|
/** List of countries where the operator is excluded. Default operator preference applied to routes created through createRoute mutation if no operator preference is specified in the request. */
|
|
@@ -3102,7 +3219,6 @@ export enum PowerUnit {
|
|
|
3102
3219
|
HORSEPOWER = "horsepower"
|
|
3103
3220
|
}
|
|
3104
3221
|
|
|
3105
|
-
/** Pressure units. */
|
|
3106
3222
|
export enum PressureUnit {
|
|
3107
3223
|
/** Return the pressure in bar. */
|
|
3108
3224
|
BAR = "bar",
|
|
@@ -3160,7 +3276,7 @@ export type PricingListProduct = {
|
|
|
3160
3276
|
};
|
|
3161
3277
|
|
|
3162
3278
|
export type Query = {
|
|
3163
|
-
/** Get a full list of amenities around a station */
|
|
3279
|
+
/** Get a full list of amenities around a station. */
|
|
3164
3280
|
amenityList?: Maybe<Array<Maybe<Amenity>>>;
|
|
3165
3281
|
/** [BETA] Get a connected vehicles by id */
|
|
3166
3282
|
connectedVehicle?: Maybe<ConnectedVehicle>;
|
|
@@ -3184,16 +3300,25 @@ export type Query = {
|
|
|
3184
3300
|
* This is a premium feature, contact Chargetrip for more information.
|
|
3185
3301
|
*/
|
|
3186
3302
|
userReviewList?: Maybe<Array<Review>>;
|
|
3187
|
-
/**
|
|
3303
|
+
/**
|
|
3304
|
+
* Deprecated: In favor of getRouteEmissions.
|
|
3305
|
+
* @deprecated In favor of `getRouteEmissions`.
|
|
3306
|
+
*/
|
|
3188
3307
|
routeEmissions: RouteEmissions;
|
|
3189
|
-
/**
|
|
3308
|
+
/**
|
|
3309
|
+
* Deprecated: In favor of getRoute.
|
|
3310
|
+
* @deprecated In favor of `getRoute`.
|
|
3311
|
+
*/
|
|
3190
3312
|
route?: Maybe<Route>;
|
|
3191
|
-
/**
|
|
3313
|
+
/**
|
|
3314
|
+
* Deprecated: In favor of RouteDetails.path_plot.
|
|
3315
|
+
* @deprecated In favor of `RouteDetails.path_plot`.
|
|
3316
|
+
*/
|
|
3192
3317
|
routePath?: Maybe<RoutePath>;
|
|
3193
|
-
/** Get a route by ID. */
|
|
3194
|
-
getRoute: RouteResponse;
|
|
3195
3318
|
/** Get emissions for a route. */
|
|
3196
3319
|
getRouteEmissions: RouteDetailsEmissions;
|
|
3320
|
+
/** Get a route by ID. */
|
|
3321
|
+
getRoute: RouteResponse;
|
|
3197
3322
|
/** Get information about a station by its ID. */
|
|
3198
3323
|
station?: Maybe<Station>;
|
|
3199
3324
|
/** Get a full list of stations. */
|
|
@@ -3210,10 +3335,17 @@ export type Query = {
|
|
|
3210
3335
|
vehiclePremium?: Maybe<VehiclePremium>;
|
|
3211
3336
|
/** Get a full list of vehicles. */
|
|
3212
3337
|
vehicleList?: Maybe<Array<Maybe<VehicleList>>>;
|
|
3338
|
+
/** [BETA] Get a full list of vehicle makes. */
|
|
3339
|
+
vehicleMakes: VehicleMakesResponse;
|
|
3340
|
+
/** [BETA] Get a full list of vehicle make models. */
|
|
3341
|
+
vehicleModels: VehicleModelsResponse;
|
|
3213
3342
|
};
|
|
3214
3343
|
|
|
3215
3344
|
export type QueryamenityListArgs = {
|
|
3216
3345
|
stationId: Scalars["ID"];
|
|
3346
|
+
filter?: Maybe<AmenityListFilter>;
|
|
3347
|
+
size?: Maybe<Scalars["Int"]>;
|
|
3348
|
+
page?: Maybe<Scalars["Int"]>;
|
|
3217
3349
|
};
|
|
3218
3350
|
|
|
3219
3351
|
export type QueryconnectedVehicleArgs = {
|
|
@@ -3276,15 +3408,15 @@ export type QueryroutePathArgs = {
|
|
|
3276
3408
|
alternativeId?: Maybe<Scalars["ID"]>;
|
|
3277
3409
|
};
|
|
3278
3410
|
|
|
3279
|
-
export type QuerygetRouteArgs = {
|
|
3280
|
-
id: Scalars["ID"];
|
|
3281
|
-
};
|
|
3282
|
-
|
|
3283
3411
|
export type QuerygetRouteEmissionsArgs = {
|
|
3284
3412
|
route_id: Scalars["ID"];
|
|
3285
3413
|
route_details_id: Scalars["ID"];
|
|
3286
3414
|
};
|
|
3287
3415
|
|
|
3416
|
+
export type QuerygetRouteArgs = {
|
|
3417
|
+
id: Scalars["ID"];
|
|
3418
|
+
};
|
|
3419
|
+
|
|
3288
3420
|
export type QuerystationArgs = {
|
|
3289
3421
|
id?: Maybe<Scalars["ID"]>;
|
|
3290
3422
|
evse_id?: Maybe<Scalars["String"]>;
|
|
@@ -3333,6 +3465,15 @@ export type QueryvehicleListArgs = {
|
|
|
3333
3465
|
page?: Maybe<Scalars["Int"]>;
|
|
3334
3466
|
};
|
|
3335
3467
|
|
|
3468
|
+
export type QueryvehicleMakesArgs = {
|
|
3469
|
+
country?: Maybe<CountryCodeAlpha2>;
|
|
3470
|
+
};
|
|
3471
|
+
|
|
3472
|
+
export type QueryvehicleModelsArgs = {
|
|
3473
|
+
filter: VehicleModelsFilter;
|
|
3474
|
+
country?: Maybe<CountryCodeAlpha2>;
|
|
3475
|
+
};
|
|
3476
|
+
|
|
3336
3477
|
export type RemoveConnectedVehicleInput = {
|
|
3337
3478
|
/** Id from the connected vehicle */
|
|
3338
3479
|
id: Scalars["ID"];
|
|
@@ -3476,15 +3617,17 @@ export type RequestEvInput = {
|
|
|
3476
3617
|
heatPump?: Maybe<HeatPumpMode>;
|
|
3477
3618
|
/** Vehicle cabin configuration. */
|
|
3478
3619
|
cabin?: Maybe<RequestEvCabinInput>;
|
|
3620
|
+
/** Number of passengers on board. */
|
|
3621
|
+
numberOfPassengers?: Maybe<Scalars["Int"]>;
|
|
3479
3622
|
/** Number of occupants. */
|
|
3480
3623
|
occupants?: Maybe<Scalars["Int"]>;
|
|
3481
3624
|
/** Cargo weight, in kg. */
|
|
3482
3625
|
cargo?: Maybe<Scalars["Int"]>;
|
|
3483
3626
|
/** Consumption specific to the EV or inputted by the request. */
|
|
3484
3627
|
consumption?: Maybe<RequestEvConsumptionInput>;
|
|
3485
|
-
/**
|
|
3628
|
+
/** In favor of `consumption`. */
|
|
3486
3629
|
auxConsumption?: Maybe<Scalars["Float"]>;
|
|
3487
|
-
/**
|
|
3630
|
+
/** In favor of `consumption`. */
|
|
3488
3631
|
bmsConsumption?: Maybe<Scalars["Float"]>;
|
|
3489
3632
|
};
|
|
3490
3633
|
|
|
@@ -3548,7 +3691,10 @@ export type RequestRoute = {
|
|
|
3548
3691
|
via?: Maybe<Array<Maybe<FeaturePoint>>>;
|
|
3549
3692
|
/** Radius in meters for alternative stations along a route (min 500 - max 5000). */
|
|
3550
3693
|
stationsAlongRouteRadius?: Maybe<Scalars["Int"]>;
|
|
3551
|
-
/**
|
|
3694
|
+
/**
|
|
3695
|
+
* 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.
|
|
3696
|
+
* @deprecated Deprecated: all routes will have turn-by-turn instructions prepared. Boolean will be ignored.
|
|
3697
|
+
*/
|
|
3552
3698
|
instructions?: Maybe<Scalars["Boolean"]>;
|
|
3553
3699
|
/** Mode that indicates if we optimize the charging time or always charge to the maximum capacity. */
|
|
3554
3700
|
chargeMode?: Maybe<ChargeMode>;
|
|
@@ -4009,7 +4155,7 @@ export type RouteDetailsLeg = {
|
|
|
4009
4155
|
range_after_charge?: Maybe<Scalars["Float"]>;
|
|
4010
4156
|
/** Type of a leg. */
|
|
4011
4157
|
type: RouteDetailsLegType;
|
|
4012
|
-
/** Information about the station at the destination of a leg.
|
|
4158
|
+
/** Information about the station at the destination of a leg. */
|
|
4013
4159
|
station?: Maybe<RouteDetailsLegStation>;
|
|
4014
4160
|
/** Polyline containing encoded coordinates. */
|
|
4015
4161
|
polyline: Scalars["String"];
|
|
@@ -4688,6 +4834,8 @@ export type RouteLegOperationalElectricityEmissionsIntensity = {
|
|
|
4688
4834
|
base_iso_14083_2023_regional_value: EmissionsFactor;
|
|
4689
4835
|
/** Electricity mix for the leg. */
|
|
4690
4836
|
energy_sources: RouteOperationalElectricityEnergySources;
|
|
4837
|
+
/** Model used to estimate the electricity mix. */
|
|
4838
|
+
energy_source_model: RouteOperationalElectricityEnergySourceModel;
|
|
4691
4839
|
/** Average emissions intensity of processing and transport of primary energy, power generation infrastructure, etc. in unit CO2e/kWh. */
|
|
4692
4840
|
infrastructure: Scalars["Float"];
|
|
4693
4841
|
/** Season for which the leg was calculated. */
|
|
@@ -4917,6 +5065,24 @@ export type RouteOperationalElectricityEmissionsIntensityinfrastructureArgs = {
|
|
|
4917
5065
|
unit?: Maybe<EmissionUnit>;
|
|
4918
5066
|
};
|
|
4919
5067
|
|
|
5068
|
+
/** Energy source models. */
|
|
5069
|
+
export enum RouteOperationalElectricityEnergySourceModel {
|
|
5070
|
+
/** Historical average energy mix for the month. */
|
|
5071
|
+
GRID_MONTHLY_AVERAGE = "grid_monthly_average",
|
|
5072
|
+
/** Historical average energy mix for the month and hour. */
|
|
5073
|
+
GRID_HOURLY_AVERAGE = "grid_hourly_average",
|
|
5074
|
+
/** Estimate using historical average electricity demand for the month. */
|
|
5075
|
+
GRID_DEMAND_BASED_MONTHLY_AVERAGE = "grid_demand_based_monthly_average",
|
|
5076
|
+
/** Estimate using historical average electricity demand for the month and hour. */
|
|
5077
|
+
GRID_DEMAND_BASED_HOURLY_AVERAGE = "grid_demand_based_hourly_average",
|
|
5078
|
+
/** Estimate using the seasonal average electricity demand for the climate. */
|
|
5079
|
+
CLIMATE_DEMAND_BASED_SEASONAL_AVERAGE = "climate_demand_based_seasonal_average",
|
|
5080
|
+
/** Estimate using the seasonal average electricity demand for the hour and climate. */
|
|
5081
|
+
CLIMATE_DEMAND_BASED_HOURLY_AVERAGE = "climate_demand_based_hourly_average",
|
|
5082
|
+
/** Regional default energy mix. */
|
|
5083
|
+
DEFAULT = "default"
|
|
5084
|
+
}
|
|
5085
|
+
|
|
4920
5086
|
export type RouteOperationalElectricityEnergySources = {
|
|
4921
5087
|
/** Electricity produced by coal power plants. */
|
|
4922
5088
|
coal: ElectricityGenerationMethod;
|
|
@@ -5449,7 +5615,7 @@ export type RouteVehicle = {
|
|
|
5449
5615
|
export type RouteVehicleBattery = {
|
|
5450
5616
|
/** Usable capacity of a battery used to compute a route. Value must be between 50% and 150%. If not provided, it defaults to the vehicle battery.usable_kwh. */
|
|
5451
5617
|
capacity: StateOfCharge;
|
|
5452
|
-
/** Current amount of energy in a battery. If not provided, it is assumed the battery is fully charged and equal to the vehicle battery.capacity.
|
|
5618
|
+
/** Current amount of energy in a battery. If not provided, it is assumed the battery is fully charged and equal to the vehicle battery.capacity. */
|
|
5453
5619
|
state_of_charge: StateOfCharge;
|
|
5454
5620
|
/** Desired final amount of energy in a battery at the and of a trip. The value must be between 0 and 60% of the vehicle battery.capacity. If not provided—or if the specified value is below the safe risk margin—the safe risk margin is used by default. */
|
|
5455
5621
|
final_state_of_charge: StateOfCharge;
|
|
@@ -5469,7 +5635,7 @@ export type RouteVehicleBattery = {
|
|
|
5469
5635
|
export type RouteVehicleBatteryInput = {
|
|
5470
5636
|
/** Usable capacity of a battery used to compute a route. Value must be between 50% and 150%. If not provided, it defaults to the vehicle battery.usable_kwh. */
|
|
5471
5637
|
capacity?: Maybe<StateOfChargeInput>;
|
|
5472
|
-
/** Current amount of energy in a battery. If not provided, it is assumed the battery is fully charged and equal to the vehicle battery.capacity.
|
|
5638
|
+
/** Current amount of energy in a battery. If not provided, it is assumed the battery is fully charged and equal to the vehicle battery.capacity. */
|
|
5473
5639
|
state_of_charge?: Maybe<StateOfChargeInput>;
|
|
5474
5640
|
/** Desired final amount of energy in a battery at the and of a trip. The value must be between 0 and 60% of the vehicle battery.capacity. If not provided—or if the specified value is below the safe risk margin—the safe risk margin is used by default. */
|
|
5475
5641
|
final_state_of_charge?: Maybe<StateOfChargeInput>;
|
|
@@ -5685,6 +5851,38 @@ export type RouteViaPropertiesInput = {
|
|
|
5685
5851
|
station?: Maybe<RoutePropertiesStationInput>;
|
|
5686
5852
|
};
|
|
5687
5853
|
|
|
5854
|
+
export type RouteWeather = {
|
|
5855
|
+
/** Weather configuration applied to the route. */
|
|
5856
|
+
type: WeatherType;
|
|
5857
|
+
/** [BETA] Custom weather conditions applied to the route. Only present when 'type' is set to 'CUSTOM'. */
|
|
5858
|
+
custom?: Maybe<RouteWeatherCustomConditions>;
|
|
5859
|
+
};
|
|
5860
|
+
|
|
5861
|
+
export type RouteWeatherCustomConditions = {
|
|
5862
|
+
/** Average ambient temperature estimated along the route. */
|
|
5863
|
+
temperature: Temperature;
|
|
5864
|
+
/** Atmospheric pressure along the route. */
|
|
5865
|
+
air_pressure: AirPressure;
|
|
5866
|
+
/** Solar irradiance along the route. */
|
|
5867
|
+
solar_irradiance: SolarIrradiance;
|
|
5868
|
+
};
|
|
5869
|
+
|
|
5870
|
+
export type RouteWeatherCustomConditionsInput = {
|
|
5871
|
+
/** Average ambient temperature estimated along the route. */
|
|
5872
|
+
temperature: TemperatureInput;
|
|
5873
|
+
/** Atmospheric pressure along the route. */
|
|
5874
|
+
air_pressure: AirPressureInput;
|
|
5875
|
+
/** Solar irradiance along the route. */
|
|
5876
|
+
solar_irradiance: SolarIrradianceInput;
|
|
5877
|
+
};
|
|
5878
|
+
|
|
5879
|
+
export type RouteWeatherInput = {
|
|
5880
|
+
/** Weather configuration applied to the route. */
|
|
5881
|
+
type?: Maybe<WeatherType>;
|
|
5882
|
+
/** [BETA] Custom weather conditions to apply to the route. Required only when 'type' is 'CUSTOM'. Must be omitted for other weather types. */
|
|
5883
|
+
custom?: Maybe<RouteWeatherCustomConditionsInput>;
|
|
5884
|
+
};
|
|
5885
|
+
|
|
5688
5886
|
/** Scheduled charge stop along a route. */
|
|
5689
5887
|
export type ScheduledChargeStopInput = {
|
|
5690
5888
|
/** List of amenity types. */
|
|
@@ -5699,12 +5897,29 @@ export type ScheduledChargeStopInput = {
|
|
|
5699
5897
|
max_distance_from_station?: Maybe<Scalars["Int"]>;
|
|
5700
5898
|
};
|
|
5701
5899
|
|
|
5900
|
+
export type SolarIrradiance = {
|
|
5901
|
+
/** Value of the solar irradiance. */
|
|
5902
|
+
value: Scalars["Float"];
|
|
5903
|
+
/** Solar irradiance unit. */
|
|
5904
|
+
type: SolarIrradianceUnit;
|
|
5905
|
+
};
|
|
5906
|
+
|
|
5907
|
+
export type SolarIrradianceInput = {
|
|
5908
|
+
/** Value of the solar irradiance. */
|
|
5909
|
+
value: Scalars["Float"];
|
|
5910
|
+
/** Solar irradiance unit. */
|
|
5911
|
+
type: SolarIrradianceUnit;
|
|
5912
|
+
};
|
|
5913
|
+
|
|
5914
|
+
export enum SolarIrradianceUnit {
|
|
5915
|
+
WATTS_PER_SQUARE_METER = "watts_per_square_meter"
|
|
5916
|
+
}
|
|
5917
|
+
|
|
5702
5918
|
export enum SortDirection {
|
|
5703
5919
|
ASCENDING = "ascending",
|
|
5704
5920
|
DESCENDING = "descending"
|
|
5705
5921
|
}
|
|
5706
5922
|
|
|
5707
|
-
/** Speed units. */
|
|
5708
5923
|
export enum SpeedUnit {
|
|
5709
5924
|
/** Return the speed in kilometers per hour. */
|
|
5710
5925
|
KILOMETERS_PER_HOUR = "kilometers_per_hour",
|
|
@@ -5730,7 +5945,6 @@ export type StateOfChargeInput = {
|
|
|
5730
5945
|
source?: Maybe<TelemetryInputSource>;
|
|
5731
5946
|
};
|
|
5732
5947
|
|
|
5733
|
-
/** State of charge unit. */
|
|
5734
5948
|
export enum StateOfChargeUnit {
|
|
5735
5949
|
/** Return the state of charge in kilometers. */
|
|
5736
5950
|
KILOMETER = "kilometer",
|
|
@@ -5963,7 +6177,7 @@ export type StationCustomProperties = {
|
|
|
5963
6177
|
predicted_occupancy?: Maybe<Array<Maybe<StationPredictedOccupancy>>>;
|
|
5964
6178
|
/**
|
|
5965
6179
|
* Type of access to the charging station.
|
|
5966
|
-
* @deprecated In favor of station.
|
|
6180
|
+
* @deprecated In favor of station.access_type.
|
|
5967
6181
|
*/
|
|
5968
6182
|
access_type?: Maybe<AccessType>;
|
|
5969
6183
|
/** Custom station properties for OICP databases such as the global Hubject database. Station databases that not follow the OICP standard return null values. */
|
|
@@ -6326,7 +6540,6 @@ export type TelemetryInput = {
|
|
|
6326
6540
|
custom?: Maybe<Scalars["JSON"]>;
|
|
6327
6541
|
};
|
|
6328
6542
|
|
|
6329
|
-
/** Telemetry input sources. */
|
|
6330
6543
|
export enum TelemetryInputSource {
|
|
6331
6544
|
/** Manually inputted value. */
|
|
6332
6545
|
MANUAL = "manual",
|
|
@@ -6350,7 +6563,6 @@ export type TemperatureInput = {
|
|
|
6350
6563
|
type: TemperatureUnit;
|
|
6351
6564
|
};
|
|
6352
6565
|
|
|
6353
|
-
/** Temperature unit. */
|
|
6354
6566
|
export enum TemperatureUnit {
|
|
6355
6567
|
/** Return the temperature in Celsius. */
|
|
6356
6568
|
CELSIUS = "Celsius",
|
|
@@ -6776,6 +6988,10 @@ export type VehicleListFilter = {
|
|
|
6776
6988
|
purpose?: Maybe<Array<VehiclePurpose>>;
|
|
6777
6989
|
/** Type of vehicle. */
|
|
6778
6990
|
type?: Maybe<Array<VehicleType>>;
|
|
6991
|
+
/** [BETA] Make of vehicle. */
|
|
6992
|
+
make?: Maybe<Scalars["String"]>;
|
|
6993
|
+
/** [BETA] Model of vehicle. */
|
|
6994
|
+
model?: Maybe<Scalars["String"]>;
|
|
6779
6995
|
};
|
|
6780
6996
|
|
|
6781
6997
|
export type VehicleListMedia = {
|
|
@@ -6820,6 +7036,20 @@ export type VehicleListRouting = {
|
|
|
6820
7036
|
fast_charging_support: Scalars["Boolean"];
|
|
6821
7037
|
};
|
|
6822
7038
|
|
|
7039
|
+
/** Vehicle make data. */
|
|
7040
|
+
export type VehicleMake = {
|
|
7041
|
+
/** Vehicle make name. */
|
|
7042
|
+
name: Scalars["String"];
|
|
7043
|
+
/** Vehicle make image. */
|
|
7044
|
+
image: VehicleImage;
|
|
7045
|
+
};
|
|
7046
|
+
|
|
7047
|
+
/** Vehicle makes response object. */
|
|
7048
|
+
export type VehicleMakesResponse = {
|
|
7049
|
+
/** Elements of the vehicle make list. */
|
|
7050
|
+
items: Array<VehicleMake>;
|
|
7051
|
+
};
|
|
7052
|
+
|
|
6823
7053
|
export type VehicleMedia = {
|
|
6824
7054
|
/** Featured image of the vehicle from a 45-degree angle. */
|
|
6825
7055
|
image: VehicleImage;
|
|
@@ -6848,6 +7078,24 @@ export enum VehicleMode {
|
|
|
6848
7078
|
CONCEPT = "concept"
|
|
6849
7079
|
}
|
|
6850
7080
|
|
|
7081
|
+
/** Vehicle model data. */
|
|
7082
|
+
export type VehicleModel = {
|
|
7083
|
+
/** Vehicle model name. */
|
|
7084
|
+
name: Scalars["String"];
|
|
7085
|
+
};
|
|
7086
|
+
|
|
7087
|
+
/** Filter vehicle model list result. */
|
|
7088
|
+
export type VehicleModelsFilter = {
|
|
7089
|
+
/** Vehicle make. */
|
|
7090
|
+
make: Scalars["String"];
|
|
7091
|
+
};
|
|
7092
|
+
|
|
7093
|
+
/** Vehicle models response object. */
|
|
7094
|
+
export type VehicleModelsResponse = {
|
|
7095
|
+
/** Elements of the vehicle model list. */
|
|
7096
|
+
items: Array<VehicleModel>;
|
|
7097
|
+
};
|
|
7098
|
+
|
|
6851
7099
|
export type VehicleNaming = {
|
|
6852
7100
|
/** Vehicle manufacturer name. */
|
|
6853
7101
|
make: Scalars["String"];
|
|
@@ -7923,7 +8171,18 @@ export enum VolumeUnit {
|
|
|
7923
8171
|
CUBIC_FOOT = "cubic_foot"
|
|
7924
8172
|
}
|
|
7925
8173
|
|
|
7926
|
-
/**
|
|
8174
|
+
/** Type of weather conditions used in the route calculation. */
|
|
8175
|
+
export enum WeatherType {
|
|
8176
|
+
/** Fixed seasonal preset representing typical summer weather conditions. Can't be used in combination with weather.custom. */
|
|
8177
|
+
SUMMER = "summer",
|
|
8178
|
+
/** Fixed seasonal preset representing typical winter weather conditions. Can't be used in combination with weather.custom. */
|
|
8179
|
+
WINTER = "winter",
|
|
8180
|
+
/** A dynamic preset that uses real weather data based on the route's departure time. Can't be used in combination with weather.custom. */
|
|
8181
|
+
ACTUAL = "actual",
|
|
8182
|
+
/** Must be used in combination with weather.custom object. */
|
|
8183
|
+
CUSTOM = "custom"
|
|
8184
|
+
}
|
|
8185
|
+
|
|
7927
8186
|
export enum WeightUnit {
|
|
7928
8187
|
/** Return the weight in kilograms. */
|
|
7929
8188
|
KILOGRAM = "kilogram",
|