@chargetrip/types 1.47.2 → 1.48.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/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.js +30 -0
- package/dist/node/index.js.map +1 -1
- package/dist/react-native/graphql.js +30 -0
- package/dist/react-native/graphql.js.map +1 -1
- package/dist/ts/graphql.d.ts +54 -99
- package/graphql.schema.json +232 -290
- package/package.json +1 -1
- package/src/graphql.ts +58 -103
package/src/graphql.ts
CHANGED
|
@@ -146,7 +146,9 @@ export enum Amenities {
|
|
|
146
146
|
BATHROOM = "bathroom",
|
|
147
147
|
SUPERMARKET = "supermarket",
|
|
148
148
|
PLAYGROUND = "playground",
|
|
149
|
-
PHARMACY = "pharmacy"
|
|
149
|
+
PHARMACY = "pharmacy",
|
|
150
|
+
BAKERY = "bakery",
|
|
151
|
+
CONVENIENCE_STORE = "convenience_store"
|
|
150
152
|
}
|
|
151
153
|
|
|
152
154
|
/** Amenity data. */
|
|
@@ -164,7 +166,7 @@ export type Amenity = {
|
|
|
164
166
|
/** ID provided by an amenity data source as the row ID. */
|
|
165
167
|
external_id: Scalars["String"];
|
|
166
168
|
/** Name of the amenity. */
|
|
167
|
-
name
|
|
169
|
+
name: Scalars["String"];
|
|
168
170
|
/** Geo location coordinates. This is a GeoJSON Point. */
|
|
169
171
|
location: Point;
|
|
170
172
|
/** Address of the amenity. */
|
|
@@ -269,7 +271,9 @@ export enum AmenityType {
|
|
|
269
271
|
BATHROOM = "bathroom",
|
|
270
272
|
SUPERMARKET = "supermarket",
|
|
271
273
|
PLAYGROUND = "playground",
|
|
272
|
-
PHARMACY = "pharmacy"
|
|
274
|
+
PHARMACY = "pharmacy",
|
|
275
|
+
BAKERY = "bakery",
|
|
276
|
+
CONVENIENCE_STORE = "convenience_store"
|
|
273
277
|
}
|
|
274
278
|
|
|
275
279
|
/** Type of wheelchair accessibility at the amenity. */
|
|
@@ -3880,21 +3884,6 @@ export type ReviewTagsInput = {
|
|
|
3880
3884
|
export type ReviewUser = {
|
|
3881
3885
|
/** User full name. If a review was added by an anonymous user, this will be null. */
|
|
3882
3886
|
name?: Maybe<Scalars["String"]>;
|
|
3883
|
-
/**
|
|
3884
|
-
* User ID.
|
|
3885
|
-
* @deprecated Not sent back anymore, will be null
|
|
3886
|
-
*/
|
|
3887
|
-
id?: Maybe<Scalars["ID"]>;
|
|
3888
|
-
/**
|
|
3889
|
-
* First name.
|
|
3890
|
-
* @deprecated In favor of name.
|
|
3891
|
-
*/
|
|
3892
|
-
firstName?: Maybe<Scalars["String"]>;
|
|
3893
|
-
/**
|
|
3894
|
-
* Last name.
|
|
3895
|
-
* @deprecated In favor of name
|
|
3896
|
-
*/
|
|
3897
|
-
lastName?: Maybe<Scalars["String"]>;
|
|
3898
3887
|
};
|
|
3899
3888
|
|
|
3900
3889
|
export type Route = {
|
|
@@ -4106,6 +4095,8 @@ export type RouteDetails = {
|
|
|
4106
4095
|
tags: Array<RouteDetailsTag>;
|
|
4107
4096
|
/** Number of charging stops required for this route. */
|
|
4108
4097
|
charges: Scalars["Int"];
|
|
4098
|
+
/** [BETA] Warnings that certain conditions specified in a route mutation are not respected. */
|
|
4099
|
+
warnings?: Maybe<Array<RouteWarning>>;
|
|
4109
4100
|
};
|
|
4110
4101
|
|
|
4111
4102
|
export type RouteDetailsdistanceArgs = {
|
|
@@ -4228,6 +4219,8 @@ export type RouteDetailsLeg = {
|
|
|
4228
4219
|
maneuvers: Array<RouteDetailsManeuver>;
|
|
4229
4220
|
/** Road sections of a leg - divided by means of transportation. */
|
|
4230
4221
|
sections: Array<RouteDetailsLegSection>;
|
|
4222
|
+
/** [BETA] Warnings that certain conditions specified in a route mutation are not respected. */
|
|
4223
|
+
warnings?: Maybe<Array<RouteDetailsLegWarning>>;
|
|
4231
4224
|
};
|
|
4232
4225
|
|
|
4233
4226
|
/** Leg of a route detail. */
|
|
@@ -4424,6 +4417,27 @@ export enum RouteDetailsLegType {
|
|
|
4424
4417
|
FINAL = "final"
|
|
4425
4418
|
}
|
|
4426
4419
|
|
|
4420
|
+
export type RouteDetailsLegWarning = {
|
|
4421
|
+
/** The code of the warning. */
|
|
4422
|
+
code: RouteDetailsLegWarningCode;
|
|
4423
|
+
};
|
|
4424
|
+
|
|
4425
|
+
/** Types of warnings that can be encountered in a route leg. */
|
|
4426
|
+
export enum RouteDetailsLegWarningCode {
|
|
4427
|
+
/** The via location cannot be reached by vehicle. */
|
|
4428
|
+
VIA_NOT_VEHICLE_ACCESSIBLE = "via_not_vehicle_accessible",
|
|
4429
|
+
/** The leg could not use stations from the preferred operator(s). */
|
|
4430
|
+
OPERATORS_PREFERRED_NOT_AVAILABLE = "operators_preferred_not_available",
|
|
4431
|
+
/** Vehicle's load may exceed the maximum supported weight of the vehicle. */
|
|
4432
|
+
MAXIMUM_WEIGHT_EXCEEDED = "maximum_weight_exceeded",
|
|
4433
|
+
/** The leg includes sections requested to be avoided. */
|
|
4434
|
+
SEGMENT_UNAVOIDABLE = "segment_unavoidable",
|
|
4435
|
+
/** The charging station used in the leg has limited opening hours. */
|
|
4436
|
+
STATION_LIMITED_OPEN_HOURS = "station_limited_open_hours",
|
|
4437
|
+
/** The specified stop duration at the via charging station is insufficient to start a charging session. */
|
|
4438
|
+
VIA_INSUFFICIENT_CHARGING_TIME = "via_insufficient_charging_time"
|
|
4439
|
+
}
|
|
4440
|
+
|
|
4427
4441
|
export type RouteDetailsManeuver = {
|
|
4428
4442
|
/** Type of instruction. */
|
|
4429
4443
|
type: RouteDetailsLegManeuverType;
|
|
@@ -5352,7 +5366,7 @@ export type RouteOperatorPreferencesRanking = {
|
|
|
5352
5366
|
};
|
|
5353
5367
|
|
|
5354
5368
|
export type RouteOperatorPreferencesRankingInput = {
|
|
5355
|
-
/**
|
|
5369
|
+
/** Determines how operator preferences are applied to stations during route calculation. If no ranking is provided through 'levels' or project settings, no operator preference is applied. */
|
|
5356
5370
|
type: RouteOperatorsType;
|
|
5357
5371
|
/** Priority levels for operator ranking. If not specified, applies the specified enforcement type to the project-configured operator ranking. */
|
|
5358
5372
|
levels?: Maybe<RouteOperatorPreferencesRankingLevelsInput>;
|
|
@@ -6017,6 +6031,31 @@ export type RouteViaPropertiesInput = {
|
|
|
6017
6031
|
station?: Maybe<RoutePropertiesStationInput>;
|
|
6018
6032
|
};
|
|
6019
6033
|
|
|
6034
|
+
export type RouteWarning = {
|
|
6035
|
+
/** The code of the warning. */
|
|
6036
|
+
code: RouteWarningCode;
|
|
6037
|
+
};
|
|
6038
|
+
|
|
6039
|
+
/** Types of warnings that can be encountered in a route. */
|
|
6040
|
+
export enum RouteWarningCode {
|
|
6041
|
+
/** The selected vehicle model is unavailable on one or more regions along the route. */
|
|
6042
|
+
EV_UNAVAILABLE_IN_REGION = "ev_unavailable_in_region",
|
|
6043
|
+
/** Route excludes charging stations as a hybrid vehicle does not require external charging. */
|
|
6044
|
+
HEV_NO_CHARGING_STATIONS = "hev_no_charging_stations",
|
|
6045
|
+
/** Route is calculated using only the battery range of the extended-range vehicle. */
|
|
6046
|
+
EREV_BATTERY_ONLY_RANGE = "erev_battery_only_range",
|
|
6047
|
+
/** The origin location cannot be reached by vehicle and requires a walking section to reach the point. */
|
|
6048
|
+
ORIGIN_NOT_VEHICLE_ACCESSIBLE = "origin_not_vehicle_accessible",
|
|
6049
|
+
/** The destination location cannot be reached by vehicle and requires a walking section to reach the point. */
|
|
6050
|
+
DESTINATION_NOT_VEHICLE_ACCESSIBLE = "destination_not_vehicle_accessible",
|
|
6051
|
+
/** The requested final state of charge cannot be achieved. */
|
|
6052
|
+
FINAL_SOC_NOT_POSSIBLE = "final_soc_not_possible",
|
|
6053
|
+
/** The set maximum speed is too low (below 50 km/h) and may result in an inefficient route. */
|
|
6054
|
+
LOW_SPEED = "low_speed",
|
|
6055
|
+
/** Operator preferences were ignored because they have not been configured for this project nor provided in the route create request. */
|
|
6056
|
+
OPERATOR_PREFERENCES_NOT_FOUND = "operator_preferences_not_found"
|
|
6057
|
+
}
|
|
6058
|
+
|
|
6020
6059
|
export type RouteWeather = {
|
|
6021
6060
|
/** Weather configuration applied to the route. */
|
|
6022
6061
|
type: WeatherType;
|
|
@@ -6207,18 +6246,8 @@ export type Station = {
|
|
|
6207
6246
|
properties?: Maybe<Scalars["JSON"]>;
|
|
6208
6247
|
/** A flag that indicates if a station has real-time information about the availability of its connectors. */
|
|
6209
6248
|
realtime?: Maybe<Scalars["Boolean"]>;
|
|
6210
|
-
/**
|
|
6211
|
-
* A flag that indicates if a station is on private property.
|
|
6212
|
-
* @deprecated In favor of access_type.
|
|
6213
|
-
*/
|
|
6214
|
-
private?: Maybe<Scalars["Boolean"]>;
|
|
6215
6249
|
/** Connectors grouped by power. */
|
|
6216
6250
|
power?: Maybe<Scalars["JSON"]>;
|
|
6217
|
-
/**
|
|
6218
|
-
* Station availability.
|
|
6219
|
-
* @deprecated predicted_availability, no value will be sent. Deprecated in favor of predicted_occupancy.
|
|
6220
|
-
*/
|
|
6221
|
-
predicted_availability?: Maybe<Array<Maybe<StationPredictedAvailability>>>;
|
|
6222
6251
|
/** Predicted station occupancy. */
|
|
6223
6252
|
predicted_occupancy?: Maybe<Array<Maybe<StationPredictedOccupancy>>>;
|
|
6224
6253
|
/** Charging speed for a station. */
|
|
@@ -6311,41 +6340,11 @@ export type StationAroundQuery = {
|
|
|
6311
6340
|
};
|
|
6312
6341
|
|
|
6313
6342
|
export type StationCustomProperties = {
|
|
6314
|
-
/**
|
|
6315
|
-
* List of eMSP cards accepted at a charging station.
|
|
6316
|
-
* @deprecated In favor of station.roaming.
|
|
6317
|
-
*/
|
|
6318
|
-
roaming?: Maybe<Array<Maybe<StationRoaming>>>;
|
|
6319
|
-
/**
|
|
6320
|
-
* Phone number for assistance at a charging station.
|
|
6321
|
-
* @deprecated In favor of station.support_phone_number.
|
|
6322
|
-
*/
|
|
6323
|
-
support_phone_number?: Maybe<Scalars["String"]>;
|
|
6324
|
-
/**
|
|
6325
|
-
* Charging behavior of a station.
|
|
6326
|
-
* @deprecated In favor of station.charging_behaviour.
|
|
6327
|
-
*/
|
|
6328
|
-
charging_behaviour?: Maybe<ChargingBehaviour>;
|
|
6329
6343
|
/**
|
|
6330
6344
|
* Shows how reliable a charging station is (1 to 5; 1 = unreliable, 5 = reliable), taking into account the charging behaviour history and error values.
|
|
6331
6345
|
* @deprecated In favor of station.reliability_score.
|
|
6332
6346
|
*/
|
|
6333
6347
|
reliability_score?: Maybe<Scalars["Int"]>;
|
|
6334
|
-
/**
|
|
6335
|
-
* List of available ad hoc payment methods.
|
|
6336
|
-
* @deprecated In favor of station.adhoc_authorisation_payment_method.
|
|
6337
|
-
*/
|
|
6338
|
-
adhoc_authorisation_method?: Maybe<Array<Maybe<AdhocAuthorisationMethod>>>;
|
|
6339
|
-
/**
|
|
6340
|
-
* Predicted station occupancy.
|
|
6341
|
-
* @deprecated In favor of station.predicted_occupancy.
|
|
6342
|
-
*/
|
|
6343
|
-
predicted_occupancy?: Maybe<Array<Maybe<StationPredictedOccupancy>>>;
|
|
6344
|
-
/**
|
|
6345
|
-
* Type of access to the charging station.
|
|
6346
|
-
* @deprecated In favor of station.access_type.
|
|
6347
|
-
*/
|
|
6348
|
-
access_type?: Maybe<AccessType>;
|
|
6349
6348
|
/** Custom station properties for OICP databases such as the global Hubject database. Station databases that not follow the OICP standard return null values. */
|
|
6350
6349
|
oicp?: Maybe<OICPStationCustomProperties>;
|
|
6351
6350
|
};
|
|
@@ -7327,11 +7326,6 @@ export type VehiclePremium = {
|
|
|
7327
7326
|
body: VehiclePremiumBody;
|
|
7328
7327
|
/** Availability of the vehicle. */
|
|
7329
7328
|
availability: VehiclePremiumAvailability;
|
|
7330
|
-
/**
|
|
7331
|
-
* Pricing of the vehicle.
|
|
7332
|
-
* @deprecated In favor of pricing.
|
|
7333
|
-
*/
|
|
7334
|
-
price: VehiclePremiumPrice;
|
|
7335
7329
|
/** Starting price in the currency defined in the field argument. If not defined, it will return the starting price in the currency returned in the currency field. */
|
|
7336
7330
|
pricing: VehiclePremiumPriceValueWithGrant;
|
|
7337
7331
|
/** Drivetrain of the vehicle. */
|
|
@@ -7433,11 +7427,6 @@ export type VehiclePremiumBody = {
|
|
|
7433
7427
|
weight_is_estimated?: Maybe<Scalars["Boolean"]>;
|
|
7434
7428
|
/** Maximum payload allowed for the vehicle. */
|
|
7435
7429
|
weight_max_payload?: Maybe<Scalars["Float"]>;
|
|
7436
|
-
/**
|
|
7437
|
-
* Gross Vehicle Weight (GVWR) - (max allowed vehicle weight with payload).
|
|
7438
|
-
* @deprecated In favor of weight_gvwr.nominal
|
|
7439
|
-
*/
|
|
7440
|
-
max_gross_vehicle_weight?: Maybe<Scalars["Float"]>;
|
|
7441
7430
|
/** Standard luggage capacity. */
|
|
7442
7431
|
boot_capacity?: Maybe<Scalars["Float"]>;
|
|
7443
7432
|
/** Storage capacity of front trunk/under the hood (frunk). */
|
|
@@ -7500,10 +7489,6 @@ export type VehiclePremiumBodyweight_max_payloadArgs = {
|
|
|
7500
7489
|
unit?: Maybe<WeightUnit>;
|
|
7501
7490
|
};
|
|
7502
7491
|
|
|
7503
|
-
export type VehiclePremiumBodymax_gross_vehicle_weightArgs = {
|
|
7504
|
-
unit?: Maybe<WeightUnit>;
|
|
7505
|
-
};
|
|
7506
|
-
|
|
7507
7492
|
export type VehiclePremiumBodyboot_capacityArgs = {
|
|
7508
7493
|
unit?: Maybe<VolumeUnit>;
|
|
7509
7494
|
};
|
|
@@ -8090,42 +8075,12 @@ export type VehiclePremiumRoutingfuel_consumptionArgs = {
|
|
|
8090
8075
|
export type VehiclePremiumRoutingConsumption = {
|
|
8091
8076
|
/** The amount of energy, in kWh, used by the auxiliary systems of the vehicle in an hour, like media box, etc */
|
|
8092
8077
|
auxiliary?: Maybe<Scalars["Float"]>;
|
|
8093
|
-
/**
|
|
8094
|
-
* Consumption, in kWh, of the auxiliaries.
|
|
8095
|
-
* @deprecated In favor of auxiliary
|
|
8096
|
-
*/
|
|
8097
|
-
aux?: Maybe<VehiclePremiumRoutingConsumptionValue>;
|
|
8098
|
-
/**
|
|
8099
|
-
* Consumption, in kWh, of the battery management system.
|
|
8100
|
-
* @deprecated In favor of auxiliary
|
|
8101
|
-
*/
|
|
8102
|
-
bms?: Maybe<VehiclePremiumRoutingConsumptionValue>;
|
|
8103
|
-
/**
|
|
8104
|
-
* Consumption, in kWh, of the vehicle in idle mode.
|
|
8105
|
-
* @deprecated In favor of auxiliary
|
|
8106
|
-
*/
|
|
8107
|
-
idle?: Maybe<VehiclePremiumRoutingConsumptionValue>;
|
|
8108
8078
|
};
|
|
8109
8079
|
|
|
8110
8080
|
export type VehiclePremiumRoutingConsumptionauxiliaryArgs = {
|
|
8111
8081
|
unit?: Maybe<AuxiliaryConsumptionUnit>;
|
|
8112
8082
|
};
|
|
8113
8083
|
|
|
8114
|
-
export type VehiclePremiumRoutingConsumptionValue = {
|
|
8115
|
-
/** Best (lowest) consumption in summer. */
|
|
8116
|
-
best?: Maybe<Scalars["Float"]>;
|
|
8117
|
-
/** Best (lowest) consumption in winter. */
|
|
8118
|
-
worst?: Maybe<Scalars["Float"]>;
|
|
8119
|
-
};
|
|
8120
|
-
|
|
8121
|
-
export type VehiclePremiumRoutingConsumptionValuebestArgs = {
|
|
8122
|
-
unit?: Maybe<ConsumptionUnit>;
|
|
8123
|
-
};
|
|
8124
|
-
|
|
8125
|
-
export type VehiclePremiumRoutingConsumptionValueworstArgs = {
|
|
8126
|
-
unit?: Maybe<ConsumptionUnit>;
|
|
8127
|
-
};
|
|
8128
|
-
|
|
8129
8084
|
export type VehiclePremiumSafety = {
|
|
8130
8085
|
/** Number of seats equipped with ISOFIX. */
|
|
8131
8086
|
isofix_seats?: Maybe<Scalars["Int"]>;
|