@chargetrip/types 1.46.2 → 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/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
- /** The amenity model */
152
+ /** Amenity data. */
135
153
  export type Amenity = {
136
- /** Unique amenity ID */
154
+ /**
155
+ * Unique amenity ID.
156
+ * @deprecated Will be removed in the future.
157
+ */
137
158
  id?: Maybe<Scalars["ID"]>;
138
- /** ID provided by an amenity data source as the row ID */
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
- /** Name of an amenity */
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?: Maybe<Point>;
144
- /** Embedded Address */
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?: Maybe<Array<Maybe<Scalars["String"]>>>;
148
- /** 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 */
149
- rating?: Maybe<Scalars["Float"]>;
150
- /** Computed distance between station and amenity */
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
- /** Full path URL to amenity foursquare page */
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
- /** Date and time when an amenity was created */
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
- /** Date and time when an amenity was last updated */
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,12 +1255,21 @@ 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
- /** Season of a route. */
1155
- season: RouteSeason;
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. */
1159
1266
  departure_time: Scalars["DateTime"];
1267
+ /** [BETA] List of route features to avoid in a route. This is a best-effort preference; depending on the available routes, some features may not be fully avoidable. */
1268
+ avoid?: Maybe<Array<RouteAvoid>>;
1269
+ /** [BETA] User-defined maximum speed used for this route, if provided. */
1270
+ maximum_speed?: Maybe<MaximumSpeed>;
1271
+ /** Weather configuration for the route. Defined by a preset or custom weather conditions. */
1272
+ weather?: Maybe<RouteWeather>;
1160
1273
  };
1161
1274
 
1162
1275
  /** Input for the create route mutation. */
@@ -1177,6 +1290,12 @@ export type CreateRouteInput = {
1177
1290
  alternative_station_radius?: Maybe<AlternativeStationRadiusInput>;
1178
1291
  /** Route departure time. Used to calculate the expected arrival time and, if set in the past, to apply historical weather data. */
1179
1292
  departure_time?: Maybe<Scalars["DateTime"]>;
1293
+ /** [BETA] Optional list of route features to avoid in a route. This is a best-effort preference; depending on the available routes, some features may not be fully avoidable. */
1294
+ avoid?: Maybe<Array<RouteAvoid>>;
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. */
1296
+ maximum_speed?: Maybe<MaximumSpeedInput>;
1297
+ /** Weather configuration for the route. Defined by a preset or custom weather conditions. */
1298
+ weather?: Maybe<RouteWeatherInput>;
1180
1299
  };
1181
1300
 
1182
1301
  /** Currency in the ISO 4217 format. */
@@ -1525,7 +1644,6 @@ export enum DimensionUnit {
1525
1644
  MILE = "mile"
1526
1645
  }
1527
1646
 
1528
- /** Distance unit */
1529
1647
  export enum DistanceUnit {
1530
1648
  /** Return the distance in meters. */
1531
1649
  METER = "meter",
@@ -2018,6 +2136,20 @@ export enum MappingProvider {
2018
2136
  MAPBOXV5 = "MapboxV5"
2019
2137
  }
2020
2138
 
2139
+ export type MaximumSpeed = {
2140
+ /** Numeric value of the user-defined maximum speed. */
2141
+ value: Scalars["Int"];
2142
+ /** Unit in which speed is measured. */
2143
+ type: SpeedUnit;
2144
+ };
2145
+
2146
+ export type MaximumSpeedInput = {
2147
+ /** Numeric value of the user-defined maximum speed. */
2148
+ value: Scalars["Int"];
2149
+ /** Unit in which speed is measured. */
2150
+ type: SpeedUnit;
2151
+ };
2152
+
2021
2153
  export enum MeasurementUnit {
2022
2154
  /** Return the measurement in millimeters. */
2023
2155
  MILLIMETER = "millimeter",
@@ -2072,10 +2204,13 @@ export type Mutation = {
2072
2204
  * This is a premium feature, contact Chargetrip for more information.
2073
2205
  */
2074
2206
  deleteUserReview: Review;
2207
+ /**
2208
+ * Deprecated: In favor of createRoute.
2209
+ * @deprecated In favor of `createRoute`.
2210
+ */
2211
+ newRoute?: Maybe<Scalars["ID"]>;
2075
2212
  /** Create a new route from the route input and its ID. */
2076
2213
  createRoute: Scalars["ID"];
2077
- /** Deprecated: In favor of createRoute. */
2078
- newRoute?: Maybe<Scalars["ID"]>;
2079
2214
  };
2080
2215
 
2081
2216
  export type MutationcreateConnectedVehicleArgs = {
@@ -2122,14 +2257,14 @@ export type MutationdeleteUserReviewArgs = {
2122
2257
  id: Scalars["ID"];
2123
2258
  };
2124
2259
 
2125
- export type MutationcreateRouteArgs = {
2126
- input: CreateRouteInput;
2127
- };
2128
-
2129
2260
  export type MutationnewRouteArgs = {
2130
2261
  input?: Maybe<RequestInput>;
2131
2262
  };
2132
2263
 
2264
+ export type MutationcreateRouteArgs = {
2265
+ input: CreateRouteInput;
2266
+ };
2267
+
2133
2268
  /** The navigation session data */
2134
2269
  export type Navigation = {
2135
2270
  /** ID of the navigation session */
@@ -2926,6 +3061,10 @@ export type Operator = {
2926
3061
  export type OperatorListFilter = {
2927
3062
  /** ISO-3166 alpha-2 country codes an operator is active in. */
2928
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"]>;
2929
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. */
2930
3069
  ranking_levels?: Maybe<OperatorRankingLevelsFilter>;
2931
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. */
@@ -3080,7 +3219,6 @@ export enum PowerUnit {
3080
3219
  HORSEPOWER = "horsepower"
3081
3220
  }
3082
3221
 
3083
- /** Pressure units. */
3084
3222
  export enum PressureUnit {
3085
3223
  /** Return the pressure in bar. */
3086
3224
  BAR = "bar",
@@ -3138,7 +3276,7 @@ export type PricingListProduct = {
3138
3276
  };
3139
3277
 
3140
3278
  export type Query = {
3141
- /** Get a full list of amenities around a station */
3279
+ /** Get a full list of amenities around a station. */
3142
3280
  amenityList?: Maybe<Array<Maybe<Amenity>>>;
3143
3281
  /** [BETA] Get a connected vehicles by id */
3144
3282
  connectedVehicle?: Maybe<ConnectedVehicle>;
@@ -3162,16 +3300,25 @@ export type Query = {
3162
3300
  * This is a premium feature, contact Chargetrip for more information.
3163
3301
  */
3164
3302
  userReviewList?: Maybe<Array<Review>>;
3165
- /** Deprecated: In favor of getRoute. */
3303
+ /**
3304
+ * Deprecated: In favor of getRouteEmissions.
3305
+ * @deprecated In favor of `getRouteEmissions`.
3306
+ */
3307
+ routeEmissions: RouteEmissions;
3308
+ /**
3309
+ * Deprecated: In favor of getRoute.
3310
+ * @deprecated In favor of `getRoute`.
3311
+ */
3166
3312
  route?: Maybe<Route>;
3167
- /** Get a route by ID. */
3168
- getRoute: RouteResponse;
3313
+ /**
3314
+ * Deprecated: In favor of RouteDetails.path_plot.
3315
+ * @deprecated In favor of `RouteDetails.path_plot`.
3316
+ */
3317
+ routePath?: Maybe<RoutePath>;
3169
3318
  /** Get emissions for a route. */
3170
3319
  getRouteEmissions: RouteDetailsEmissions;
3171
- /** Deprecated: In favor of getRouteEmissions. */
3172
- routeEmissions: RouteEmissions;
3173
- /** Deprecated: In favor of RouteDetails.path_plot. */
3174
- routePath?: Maybe<RoutePath>;
3320
+ /** Get a route by ID. */
3321
+ getRoute: RouteResponse;
3175
3322
  /** Get information about a station by its ID. */
3176
3323
  station?: Maybe<Station>;
3177
3324
  /** Get a full list of stations. */
@@ -3188,10 +3335,17 @@ export type Query = {
3188
3335
  vehiclePremium?: Maybe<VehiclePremium>;
3189
3336
  /** Get a full list of vehicles. */
3190
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;
3191
3342
  };
3192
3343
 
3193
3344
  export type QueryamenityListArgs = {
3194
3345
  stationId: Scalars["ID"];
3346
+ filter?: Maybe<AmenityListFilter>;
3347
+ size?: Maybe<Scalars["Int"]>;
3348
+ page?: Maybe<Scalars["Int"]>;
3195
3349
  };
3196
3350
 
3197
3351
  export type QueryconnectedVehicleArgs = {
@@ -3239,12 +3393,19 @@ export type QueryuserReviewListArgs = {
3239
3393
  page?: Maybe<Scalars["Int"]>;
3240
3394
  };
3241
3395
 
3396
+ export type QueryrouteEmissionsArgs = {
3397
+ route_id: Scalars["ID"];
3398
+ route_alternative_id?: Maybe<Scalars["ID"]>;
3399
+ };
3400
+
3242
3401
  export type QueryrouteArgs = {
3243
3402
  id: Scalars["ID"];
3244
3403
  };
3245
3404
 
3246
- export type QuerygetRouteArgs = {
3405
+ export type QueryroutePathArgs = {
3247
3406
  id: Scalars["ID"];
3407
+ location: PointInput;
3408
+ alternativeId?: Maybe<Scalars["ID"]>;
3248
3409
  };
3249
3410
 
3250
3411
  export type QuerygetRouteEmissionsArgs = {
@@ -3252,15 +3413,8 @@ export type QuerygetRouteEmissionsArgs = {
3252
3413
  route_details_id: Scalars["ID"];
3253
3414
  };
3254
3415
 
3255
- export type QueryrouteEmissionsArgs = {
3256
- route_id: Scalars["ID"];
3257
- route_alternative_id?: Maybe<Scalars["ID"]>;
3258
- };
3259
-
3260
- export type QueryroutePathArgs = {
3416
+ export type QuerygetRouteArgs = {
3261
3417
  id: Scalars["ID"];
3262
- location: PointInput;
3263
- alternativeId?: Maybe<Scalars["ID"]>;
3264
3418
  };
3265
3419
 
3266
3420
  export type QuerystationArgs = {
@@ -3311,6 +3465,15 @@ export type QueryvehicleListArgs = {
3311
3465
  page?: Maybe<Scalars["Int"]>;
3312
3466
  };
3313
3467
 
3468
+ export type QueryvehicleMakesArgs = {
3469
+ country?: Maybe<CountryCodeAlpha2>;
3470
+ };
3471
+
3472
+ export type QueryvehicleModelsArgs = {
3473
+ filter: VehicleModelsFilter;
3474
+ country?: Maybe<CountryCodeAlpha2>;
3475
+ };
3476
+
3314
3477
  export type RemoveConnectedVehicleInput = {
3315
3478
  /** Id from the connected vehicle */
3316
3479
  id: Scalars["ID"];
@@ -3454,15 +3617,17 @@ export type RequestEvInput = {
3454
3617
  heatPump?: Maybe<HeatPumpMode>;
3455
3618
  /** Vehicle cabin configuration. */
3456
3619
  cabin?: Maybe<RequestEvCabinInput>;
3620
+ /** Number of passengers on board. */
3621
+ numberOfPassengers?: Maybe<Scalars["Int"]>;
3457
3622
  /** Number of occupants. */
3458
3623
  occupants?: Maybe<Scalars["Int"]>;
3459
3624
  /** Cargo weight, in kg. */
3460
3625
  cargo?: Maybe<Scalars["Int"]>;
3461
3626
  /** Consumption specific to the EV or inputted by the request. */
3462
3627
  consumption?: Maybe<RequestEvConsumptionInput>;
3463
- /** Deprecated. */
3628
+ /** In favor of `consumption`. */
3464
3629
  auxConsumption?: Maybe<Scalars["Float"]>;
3465
- /** Deprecated. */
3630
+ /** In favor of `consumption`. */
3466
3631
  bmsConsumption?: Maybe<Scalars["Float"]>;
3467
3632
  };
3468
3633
 
@@ -3526,7 +3691,10 @@ export type RequestRoute = {
3526
3691
  via?: Maybe<Array<Maybe<FeaturePoint>>>;
3527
3692
  /** Radius in meters for alternative stations along a route (min 500 - max 5000). */
3528
3693
  stationsAlongRouteRadius?: Maybe<Scalars["Int"]>;
3529
- /** 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. */
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
+ */
3530
3698
  instructions?: Maybe<Scalars["Boolean"]>;
3531
3699
  /** Mode that indicates if we optimize the charging time or always charge to the maximum capacity. */
3532
3700
  chargeMode?: Maybe<ChargeMode>;
@@ -3803,6 +3971,12 @@ export type RouteApp = {
3803
3971
  id?: Maybe<Scalars["ID"]>;
3804
3972
  };
3805
3973
 
3974
+ /** Types of route features that can be avoided in routing. */
3975
+ export enum RouteAvoid {
3976
+ TOLL_ROAD = "toll_road",
3977
+ FERRY = "ferry"
3978
+ }
3979
+
3806
3980
  export type RouteDestinationFeaturePoint = {
3807
3981
  /** ID of the feature. */
3808
3982
  id?: Maybe<Scalars["ID"]>;
@@ -3897,6 +4071,8 @@ export type RouteDetailsAlternativeStation = {
3897
4071
  status: ChargerStatus;
3898
4072
  /** The value indicates the operator's ranking based on the station's location, in accordance with the list of countries from the configuration or request. */
3899
4073
  operator_ranking?: Maybe<OperatorRankingLevel>;
4074
+ /** ID of the station's operator. */
4075
+ operator_id?: Maybe<Scalars["ID"]>;
3900
4076
  };
3901
4077
 
3902
4078
  /** Aggregation of all durations of a route. */
@@ -3979,7 +4155,7 @@ export type RouteDetailsLeg = {
3979
4155
  range_after_charge?: Maybe<Scalars["Float"]>;
3980
4156
  /** Type of a leg. */
3981
4157
  type: RouteDetailsLegType;
3982
- /** Information about the station at the destination of a leg. */
4158
+ /** Information about the station at the destination of a leg. */
3983
4159
  station?: Maybe<RouteDetailsLegStation>;
3984
4160
  /** Polyline containing encoded coordinates. */
3985
4161
  polyline: Scalars["String"];
@@ -4210,7 +4386,7 @@ export type RouteDetailsManeuverdistanceArgs = {
4210
4386
  export type RouteDetailsPathSegment = {
4211
4387
  /** Elevation value of a route path segment. */
4212
4388
  elevation: Scalars["Float"];
4213
- /** Average speed of a route path segment. */
4389
+ /** Average speed of a route path segment. This value is determined using legal maximum speed and, if provided, the user defined maximum speed. */
4214
4390
  average_speed: Scalars["Float"];
4215
4391
  /** Consumption, in kilowatt hours, of a route path segment. For HEVs and PHEVs this field will return null. */
4216
4392
  consumption?: Maybe<Scalars["Float"]>;
@@ -4220,7 +4396,10 @@ export type RouteDetailsPathSegment = {
4220
4396
  duration: Scalars["Float"];
4221
4397
  /** State of charge, in kilowatt hours, of a route path segment. For HEVs and PHEVs this field will return null. */
4222
4398
  state_of_charge?: Maybe<Scalars["Float"]>;
4223
- /** Maximum vehicle speed of a route path segment. */
4399
+ /**
4400
+ * Maximum vehicle speed of a route path segment.
4401
+ * @deprecated Will be removed in the future.
4402
+ */
4224
4403
  maximum_speed: Scalars["Float"];
4225
4404
  };
4226
4405
 
@@ -4655,16 +4834,18 @@ export type RouteLegOperationalElectricityEmissionsIntensity = {
4655
4834
  base_iso_14083_2023_regional_value: EmissionsFactor;
4656
4835
  /** Electricity mix for the leg. */
4657
4836
  energy_sources: RouteOperationalElectricityEnergySources;
4837
+ /** Model used to estimate the electricity mix. */
4838
+ energy_source_model: RouteOperationalElectricityEnergySourceModel;
4658
4839
  /** Average emissions intensity of processing and transport of primary energy, power generation infrastructure, etc. in unit CO2e/kWh. */
4659
4840
  infrastructure: Scalars["Float"];
4660
- /** Estimated electricity demand at the time and place the electricity for this leg was obtained as a fraction of the annual average demand. */
4661
- average_demand: Scalars["Float"];
4662
- /** Fraction of regional power generation that is not affected by demand (is assumed to always be on). */
4663
- base_load_fraction: Scalars["Float"];
4664
4841
  /** Season for which the leg was calculated. */
4665
4842
  season: RouteOperationalElectricitySeason;
4666
4843
  /** Climate for which the leg was calculated. */
4667
4844
  climate: RouteOperationalElectricityClimate;
4845
+ /** Estimated electricity demand at the time and place the electricity for this leg was obtained as a fraction of the annual average demand. */
4846
+ average_demand: Scalars["Float"];
4847
+ /** Fraction of regional power generation that is not affected by demand (is assumed to always be on). */
4848
+ base_load_fraction: Scalars["Float"];
4668
4849
  };
4669
4850
 
4670
4851
  /** Electricity emission intensity for a leg */
@@ -4884,6 +5065,24 @@ export type RouteOperationalElectricityEmissionsIntensityinfrastructureArgs = {
4884
5065
  unit?: Maybe<EmissionUnit>;
4885
5066
  };
4886
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
+
4887
5086
  export type RouteOperationalElectricityEnergySources = {
4888
5087
  /** Electricity produced by coal power plants. */
4889
5088
  coal: ElectricityGenerationMethod;
@@ -5416,7 +5615,7 @@ export type RouteVehicle = {
5416
5615
  export type RouteVehicleBattery = {
5417
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. */
5418
5617
  capacity: StateOfCharge;
5419
- /** 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. */
5420
5619
  state_of_charge: StateOfCharge;
5421
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. */
5422
5621
  final_state_of_charge: StateOfCharge;
@@ -5436,7 +5635,7 @@ export type RouteVehicleBattery = {
5436
5635
  export type RouteVehicleBatteryInput = {
5437
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. */
5438
5637
  capacity?: Maybe<StateOfChargeInput>;
5439
- /** 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. */
5440
5639
  state_of_charge?: Maybe<StateOfChargeInput>;
5441
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. */
5442
5641
  final_state_of_charge?: Maybe<StateOfChargeInput>;
@@ -5652,6 +5851,38 @@ export type RouteViaPropertiesInput = {
5652
5851
  station?: Maybe<RoutePropertiesStationInput>;
5653
5852
  };
5654
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
+
5655
5886
  /** Scheduled charge stop along a route. */
5656
5887
  export type ScheduledChargeStopInput = {
5657
5888
  /** List of amenity types. */
@@ -5666,12 +5897,29 @@ export type ScheduledChargeStopInput = {
5666
5897
  max_distance_from_station?: Maybe<Scalars["Int"]>;
5667
5898
  };
5668
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
+
5669
5918
  export enum SortDirection {
5670
5919
  ASCENDING = "ascending",
5671
5920
  DESCENDING = "descending"
5672
5921
  }
5673
5922
 
5674
- /** Speed units. */
5675
5923
  export enum SpeedUnit {
5676
5924
  /** Return the speed in kilometers per hour. */
5677
5925
  KILOMETERS_PER_HOUR = "kilometers_per_hour",
@@ -5697,7 +5945,6 @@ export type StateOfChargeInput = {
5697
5945
  source?: Maybe<TelemetryInputSource>;
5698
5946
  };
5699
5947
 
5700
- /** State of charge unit. */
5701
5948
  export enum StateOfChargeUnit {
5702
5949
  /** Return the state of charge in kilometers. */
5703
5950
  KILOMETER = "kilometer",
@@ -5930,7 +6177,7 @@ export type StationCustomProperties = {
5930
6177
  predicted_occupancy?: Maybe<Array<Maybe<StationPredictedOccupancy>>>;
5931
6178
  /**
5932
6179
  * Type of access to the charging station.
5933
- * @deprecated In favor of station.charging_behaviour.
6180
+ * @deprecated In favor of station.access_type.
5934
6181
  */
5935
6182
  access_type?: Maybe<AccessType>;
5936
6183
  /** Custom station properties for OICP databases such as the global Hubject database. Station databases that not follow the OICP standard return null values. */
@@ -6115,23 +6362,23 @@ export enum StepType {
6115
6362
  }
6116
6363
 
6117
6364
  export type Subscription = {
6118
- /** [BETA] Subscribe to a connected vehicle. */
6119
- connectedVehicle?: Maybe<ConnectedVehicle>;
6120
- /** Subscribe to an isoline in order to receive updates. */
6121
- isoline?: Maybe<Isoline>;
6122
- /** [BETA] Subscribe to navigation session system event updates. We strongly recommend using this at all times to not miss any updates */
6123
- navigationUpdatedById?: Maybe<Navigation>;
6124
6365
  /** Deprecated: In favor of route. */
6125
6366
  routeUpdatedById?: Maybe<Route>;
6126
6367
  /** Subscribe to a specific route to receive system event updates. */
6127
6368
  route: RouteResponse;
6369
+ /** [BETA] Subscribe to navigation session system event updates. We strongly recommend using this at all times to not miss any updates */
6370
+ navigationUpdatedById?: Maybe<Navigation>;
6371
+ /** [BETA] Subscribe to a connected vehicle. */
6372
+ connectedVehicle?: Maybe<ConnectedVehicle>;
6373
+ /** Subscribe to an isoline in order to receive updates. */
6374
+ isoline?: Maybe<Isoline>;
6128
6375
  };
6129
6376
 
6130
- export type SubscriptionconnectedVehicleArgs = {
6377
+ export type SubscriptionrouteUpdatedByIdArgs = {
6131
6378
  id: Scalars["ID"];
6132
6379
  };
6133
6380
 
6134
- export type SubscriptionisolineArgs = {
6381
+ export type SubscriptionrouteArgs = {
6135
6382
  id: Scalars["ID"];
6136
6383
  };
6137
6384
 
@@ -6139,11 +6386,11 @@ export type SubscriptionnavigationUpdatedByIdArgs = {
6139
6386
  id: Scalars["ID"];
6140
6387
  };
6141
6388
 
6142
- export type SubscriptionrouteUpdatedByIdArgs = {
6389
+ export type SubscriptionconnectedVehicleArgs = {
6143
6390
  id: Scalars["ID"];
6144
6391
  };
6145
6392
 
6146
- export type SubscriptionrouteArgs = {
6393
+ export type SubscriptionisolineArgs = {
6147
6394
  id: Scalars["ID"];
6148
6395
  };
6149
6396
 
@@ -6293,7 +6540,6 @@ export type TelemetryInput = {
6293
6540
  custom?: Maybe<Scalars["JSON"]>;
6294
6541
  };
6295
6542
 
6296
- /** Telemetry input sources. */
6297
6543
  export enum TelemetryInputSource {
6298
6544
  /** Manually inputted value. */
6299
6545
  MANUAL = "manual",
@@ -6317,7 +6563,6 @@ export type TemperatureInput = {
6317
6563
  type: TemperatureUnit;
6318
6564
  };
6319
6565
 
6320
- /** Temperature unit. */
6321
6566
  export enum TemperatureUnit {
6322
6567
  /** Return the temperature in Celsius. */
6323
6568
  CELSIUS = "Celsius",
@@ -6743,6 +6988,10 @@ export type VehicleListFilter = {
6743
6988
  purpose?: Maybe<Array<VehiclePurpose>>;
6744
6989
  /** Type of vehicle. */
6745
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"]>;
6746
6995
  };
6747
6996
 
6748
6997
  export type VehicleListMedia = {
@@ -6787,6 +7036,20 @@ export type VehicleListRouting = {
6787
7036
  fast_charging_support: Scalars["Boolean"];
6788
7037
  };
6789
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
+
6790
7053
  export type VehicleMedia = {
6791
7054
  /** Featured image of the vehicle from a 45-degree angle. */
6792
7055
  image: VehicleImage;
@@ -6815,6 +7078,24 @@ export enum VehicleMode {
6815
7078
  CONCEPT = "concept"
6816
7079
  }
6817
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
+
6818
7099
  export type VehicleNaming = {
6819
7100
  /** Vehicle manufacturer name. */
6820
7101
  make: Scalars["String"];
@@ -7890,7 +8171,18 @@ export enum VolumeUnit {
7890
8171
  CUBIC_FOOT = "cubic_foot"
7891
8172
  }
7892
8173
 
7893
- /** Weight unit. */
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
+
7894
8186
  export enum WeightUnit {
7895
8187
  /** Return the weight in kilograms. */
7896
8188
  KILOGRAM = "kilogram",