@chargetrip/types 1.59.0 → 1.61.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 +2 -0
- package/dist/node/index.js.map +1 -1
- package/dist/react-native/graphql.js +2 -0
- package/dist/react-native/graphql.js.map +1 -1
- package/dist/ts/graphql.d.ts +51 -23
- package/graphql.schema.json +244 -37
- package/package.json +1 -1
- package/src/graphql.ts +52 -23
package/dist/ts/graphql.d.ts
CHANGED
|
@@ -333,9 +333,9 @@ export declare type CarConsumptionInput = {
|
|
|
333
333
|
};
|
|
334
334
|
/** Charging mode used at charging stations. */
|
|
335
335
|
export declare enum ChargeMode {
|
|
336
|
-
/** Optimizes the charging time at each station, in order to decrease the total travel time.
|
|
336
|
+
/** Optimizes the charging time at each station, in order to decrease the total travel time. Charges the vehicle only to the SOC required to reach the next stop, without exceeding the configured 'maximum_state_of_charge'. */
|
|
337
337
|
OPTIMIZE_TRAVEL_TIME = "OPTIMIZE_TRAVEL_TIME",
|
|
338
|
-
/**
|
|
338
|
+
/** Charges up to the maximum configured state of charge (SoC) at each station. The maximum SoC is determined by 'maximum_state_of_charge'. */
|
|
339
339
|
ALWAYS_TO_MAX_CHARGE = "ALWAYS_TO_MAX_CHARGE"
|
|
340
340
|
}
|
|
341
341
|
export declare type ChargeSpeed = {
|
|
@@ -3487,9 +3487,9 @@ export declare type Query = {
|
|
|
3487
3487
|
/** Get a full list of vehicles. */
|
|
3488
3488
|
vehicleList?: Maybe<Array<Maybe<VehicleList>>>;
|
|
3489
3489
|
/** [BETA] Get a full list of vehicle makes. */
|
|
3490
|
-
vehicleMakes
|
|
3490
|
+
vehicleMakes?: Maybe<VehicleMakesConnection>;
|
|
3491
3491
|
/** [BETA] Get a full list of vehicle make models. */
|
|
3492
|
-
vehicleModels
|
|
3492
|
+
vehicleModels?: Maybe<VehicleModelsConnection>;
|
|
3493
3493
|
};
|
|
3494
3494
|
export declare type QueryamenityListArgs = {
|
|
3495
3495
|
stationId: Scalars["ID"];
|
|
@@ -3606,6 +3606,9 @@ export declare type QueryvehicleListArgs = {
|
|
|
3606
3606
|
};
|
|
3607
3607
|
export declare type QueryvehicleMakesArgs = {
|
|
3608
3608
|
country?: Maybe<CountryCodeAlpha2>;
|
|
3609
|
+
filter?: Maybe<VehicleMakesFilter>;
|
|
3610
|
+
first?: Maybe<Scalars["Int"]>;
|
|
3611
|
+
after?: Maybe<Scalars["String"]>;
|
|
3609
3612
|
};
|
|
3610
3613
|
export declare type QueryvehicleModelsArgs = {
|
|
3611
3614
|
filter?: Maybe<VehicleModelsFilter>;
|
|
@@ -3880,9 +3883,9 @@ export declare type Review = {
|
|
|
3880
3883
|
/** Boolean tags for a station review. */
|
|
3881
3884
|
tags?: Maybe<ReviewTags>;
|
|
3882
3885
|
/** Date and time when a review was created. */
|
|
3883
|
-
createdAt?: Maybe<Scalars["
|
|
3886
|
+
createdAt?: Maybe<Scalars["DateTime"]>;
|
|
3884
3887
|
/** Date and time when a review was updated. */
|
|
3885
|
-
updatedAt?: Maybe<Scalars["
|
|
3888
|
+
updatedAt?: Maybe<Scalars["DateTime"]>;
|
|
3886
3889
|
};
|
|
3887
3890
|
/** Form input to add a new review. */
|
|
3888
3891
|
export declare type ReviewAdd = {
|
|
@@ -4465,7 +4468,11 @@ export declare enum RouteDetailsLegWarningCode {
|
|
|
4465
4468
|
/** The charging station at the destination does not have any connectors compatible with the selected vehicle. */
|
|
4466
4469
|
DESTINATION_CHARGER_INCOMPATIBLE = "destination_charger_incompatible",
|
|
4467
4470
|
/** The charging station at the destination is restricted to heavy-duty trucks. */
|
|
4468
|
-
DESTINATION_STATION_TRUCK_ONLY = "destination_station_truck_only"
|
|
4471
|
+
DESTINATION_STATION_TRUCK_ONLY = "destination_station_truck_only",
|
|
4472
|
+
/** Expected arrival state of charge for the leg is below the safety risk margin. */
|
|
4473
|
+
RISK_MARGIN_SOC_NOT_POSSIBLE = "risk_margin_soc_not_possible",
|
|
4474
|
+
/** Requested final state of charge value is below the specified safe risk margin. Safe risk margin is used instead. */
|
|
4475
|
+
FINAL_SOC_BELOW_RISK_MARGIN = "final_soc_below_risk_margin"
|
|
4469
4476
|
}
|
|
4470
4477
|
export declare type RouteDetailsManeuver = {
|
|
4471
4478
|
/** Type of instruction. */
|
|
@@ -5849,11 +5856,11 @@ export declare type RouteVehicle = {
|
|
|
5849
5856
|
heading?: Maybe<Scalars["Float"]>;
|
|
5850
5857
|
};
|
|
5851
5858
|
export declare type RouteVehicleBattery = {
|
|
5852
|
-
/** Usable capacity of a battery used to compute a route.
|
|
5859
|
+
/** Usable capacity of a battery used to compute a route. The value must be between 50% and 150% of a vehicle's baseline battery capacity. If not provided, the vehicle's full usable capacity by default. */
|
|
5853
5860
|
capacity: StateOfCharge;
|
|
5854
|
-
/** Current amount of energy in a battery. If not provided,
|
|
5861
|
+
/** Current amount of energy in a battery. If not provided, battery is assumed to be fully charged. */
|
|
5855
5862
|
state_of_charge: StateOfCharge;
|
|
5856
|
-
/** Desired final amount of energy in a battery at the
|
|
5863
|
+
/** Desired final amount of energy in a battery at the end of a trip. The value must be between 0 and 80% of the vehicle's battery capacity. If not provided, or if the specified value is below the safe risk margin, the safe risk margin is used by default. */
|
|
5857
5864
|
final_state_of_charge: StateOfCharge;
|
|
5858
5865
|
/** Temperature of the battery. */
|
|
5859
5866
|
temperature?: Maybe<Temperature>;
|
|
@@ -5868,11 +5875,11 @@ export declare type RouteVehicleBattery = {
|
|
|
5868
5875
|
};
|
|
5869
5876
|
/** EV battery specific configuration for a create route mutation. */
|
|
5870
5877
|
export declare type RouteVehicleBatteryInput = {
|
|
5871
|
-
/** Usable capacity of a battery used to compute a route.
|
|
5878
|
+
/** Usable capacity of a battery used to compute a route. The value must be between 50% and 150% of a vehicle's baseline battery capacity. If not provided, the vehicle's full usable capacity by default. */
|
|
5872
5879
|
capacity?: Maybe<StateOfChargeInput>;
|
|
5873
|
-
/** Current amount of energy in a battery. If not provided,
|
|
5880
|
+
/** Current amount of energy in a battery. If not provided, battery is assumed to be fully charged. */
|
|
5874
5881
|
state_of_charge?: Maybe<StateOfChargeInput>;
|
|
5875
|
-
/** Desired final amount of energy in a battery at the
|
|
5882
|
+
/** Desired final amount of energy in a battery at the end of a trip. The value must be between 0 and 80% of the vehicle's battery capacity. If not provided, or if the specified value is below the safe risk margin, the safe risk margin is used by default. */
|
|
5876
5883
|
final_state_of_charge?: Maybe<StateOfChargeInput>;
|
|
5877
5884
|
/** Battery temperature. */
|
|
5878
5885
|
temperature?: Maybe<TemperatureInput>;
|
|
@@ -5898,7 +5905,7 @@ export declare type RouteVehicleCabinInput = {
|
|
|
5898
5905
|
desired_temperature?: Maybe<TemperatureInput>;
|
|
5899
5906
|
};
|
|
5900
5907
|
export declare type RouteVehicleCharging = {
|
|
5901
|
-
/** Mode that indicates if the charging time is optimized or if always charged to the maximum
|
|
5908
|
+
/** Mode that indicates if the charging time is optimized or if always charged to the maximum state of charge. */
|
|
5902
5909
|
mode: ChargeMode;
|
|
5903
5910
|
/** Minimum desired power of chargers, in kWh. */
|
|
5904
5911
|
minimum_power: Scalars["Float"];
|
|
@@ -5908,6 +5915,8 @@ export declare type RouteVehicleCharging = {
|
|
|
5908
5915
|
connectors: Array<RouteVehicleChargingConnector>;
|
|
5909
5916
|
/** Supported adapters. If not specified, adapters will not be considered. */
|
|
5910
5917
|
adapters: Array<RouteVehicleChargingConnector>;
|
|
5918
|
+
/** Maximum state of charge (%) the vehicle can reach at any charging stop. If not specified defaults to 80%. */
|
|
5919
|
+
maximum_state_of_charge: Scalars["Int"];
|
|
5911
5920
|
};
|
|
5912
5921
|
export declare type RouteVehicleChargingConnector = {
|
|
5913
5922
|
/** Type of the plug. */
|
|
@@ -5922,7 +5931,7 @@ export declare type RouteVehicleChargingConnectorInput = {
|
|
|
5922
5931
|
maximum_charge_speed: ChargeSpeedInput;
|
|
5923
5932
|
};
|
|
5924
5933
|
export declare type RouteVehicleChargingInput = {
|
|
5925
|
-
/** Mode that indicates if the charging time is optimized or if always charged to the maximum
|
|
5934
|
+
/** Mode that indicates if the charging time is optimized or if always charged to the maximum state of charge. */
|
|
5926
5935
|
mode?: Maybe<ChargeMode>;
|
|
5927
5936
|
/** Minimum desired power of chargers, in kWh. */
|
|
5928
5937
|
minimum_power?: Maybe<Scalars["Float"]>;
|
|
@@ -5932,6 +5941,8 @@ export declare type RouteVehicleChargingInput = {
|
|
|
5932
5941
|
connectors?: Maybe<Array<RouteVehicleChargingConnectorInput>>;
|
|
5933
5942
|
/** Supported adapters. If not specified, adapters will not be considered. */
|
|
5934
5943
|
adapters?: Maybe<Array<RouteVehicleChargingConnectorInput>>;
|
|
5944
|
+
/** Maximum state of charge (%) the vehicle can reach at any charging stop. The value must be between 80 and 100. */
|
|
5945
|
+
maximum_state_of_charge?: Scalars["Int"];
|
|
5935
5946
|
};
|
|
5936
5947
|
export declare type RouteVehicleEmissions = {
|
|
5937
5948
|
/** Total co2e emissions. */
|
|
@@ -6070,19 +6081,19 @@ export declare type RouteWarning = {
|
|
|
6070
6081
|
};
|
|
6071
6082
|
/** Types of warnings that can be encountered in a route. */
|
|
6072
6083
|
export declare enum RouteWarningCode {
|
|
6073
|
-
/**
|
|
6084
|
+
/** Selected vehicle model is unavailable on one or more regions along the route. */
|
|
6074
6085
|
EV_UNAVAILABLE_IN_REGION = "ev_unavailable_in_region",
|
|
6075
6086
|
/** Route excludes charging stations as a hybrid vehicle does not require external charging. */
|
|
6076
6087
|
HEV_NO_CHARGING_STATIONS = "hev_no_charging_stations",
|
|
6077
6088
|
/** Route is calculated using only the battery range of the extended-range vehicle. */
|
|
6078
6089
|
EREV_BATTERY_ONLY_RANGE = "erev_battery_only_range",
|
|
6079
|
-
/**
|
|
6090
|
+
/** Origin location cannot be reached by vehicle and requires a walking section to reach the point. */
|
|
6080
6091
|
ORIGIN_NOT_VEHICLE_ACCESSIBLE = "origin_not_vehicle_accessible",
|
|
6081
|
-
/**
|
|
6092
|
+
/** Destination location cannot be reached by vehicle and requires a walking section to reach the point. */
|
|
6082
6093
|
DESTINATION_NOT_VEHICLE_ACCESSIBLE = "destination_not_vehicle_accessible",
|
|
6083
|
-
/**
|
|
6094
|
+
/** Requested final state of charge cannot be achieved. */
|
|
6084
6095
|
FINAL_SOC_NOT_POSSIBLE = "final_soc_not_possible",
|
|
6085
|
-
/**
|
|
6096
|
+
/** Set maximum speed is too low (below 50 km/h) and may result in an inefficient route. */
|
|
6086
6097
|
LOW_SPEED = "low_speed",
|
|
6087
6098
|
/** Operator preferences were ignored because they have not been configured for this project nor provided in the route create request. */
|
|
6088
6099
|
OPERATOR_PREFERENCES_NOT_FOUND = "operator_preferences_not_found",
|
|
@@ -7328,8 +7339,8 @@ export declare type VehicleListFilter = {
|
|
|
7328
7339
|
purpose?: Maybe<Array<VehiclePurpose>>;
|
|
7329
7340
|
/** Type of vehicle. */
|
|
7330
7341
|
type?: Maybe<Array<VehicleType>>;
|
|
7331
|
-
/**
|
|
7332
|
-
make?: Maybe<Scalars["
|
|
7342
|
+
/** ID of the vehicle make. */
|
|
7343
|
+
make?: Maybe<Scalars["ID"]>;
|
|
7333
7344
|
/** [BETA] Model of vehicle. */
|
|
7334
7345
|
model?: Maybe<Scalars["String"]>;
|
|
7335
7346
|
};
|
|
@@ -7373,16 +7384,31 @@ export declare type VehicleListRouting = {
|
|
|
7373
7384
|
};
|
|
7374
7385
|
/** Vehicle make data. */
|
|
7375
7386
|
export declare type VehicleMake = {
|
|
7387
|
+
/** ID of the vehicle make. */
|
|
7388
|
+
id: Scalars["ID"];
|
|
7376
7389
|
/** Vehicle make name. */
|
|
7377
7390
|
name: Scalars["String"];
|
|
7378
7391
|
/** Vehicle make image. */
|
|
7379
7392
|
image: VehicleImage;
|
|
7393
|
+
/** Number of public and private unique models manufactured by the make. */
|
|
7394
|
+
model_count: Scalars["Int"];
|
|
7380
7395
|
};
|
|
7381
7396
|
/** Vehicle makes response object. */
|
|
7382
7397
|
export declare type VehicleMakesConnection = {
|
|
7398
|
+
/** Total number of unique vehicle makes. */
|
|
7399
|
+
total_count: Scalars["Int"];
|
|
7400
|
+
/** Information about the current page. */
|
|
7401
|
+
page_info: PageInfo;
|
|
7383
7402
|
/** List of vehicle makes. */
|
|
7384
7403
|
nodes: Array<VehicleMake>;
|
|
7385
7404
|
};
|
|
7405
|
+
/** Filter vehicle make list result. */
|
|
7406
|
+
export declare type VehicleMakesFilter = {
|
|
7407
|
+
/** Regions in which the Make has vehicles. */
|
|
7408
|
+
region?: Maybe<Array<VehicleRegion>>;
|
|
7409
|
+
/** Type of vehicle which the Make has vehicles. */
|
|
7410
|
+
type?: Maybe<Array<VehicleType>>;
|
|
7411
|
+
};
|
|
7386
7412
|
export declare type VehicleMedia = {
|
|
7387
7413
|
/** Featured image of the vehicle from a 45-degree angle. */
|
|
7388
7414
|
image: VehicleImage;
|
|
@@ -7413,6 +7439,8 @@ export declare enum VehicleMode {
|
|
|
7413
7439
|
export declare type VehicleModel = {
|
|
7414
7440
|
/** Vehicle model name. */
|
|
7415
7441
|
name: Scalars["String"];
|
|
7442
|
+
/** Number of public and private vehicles associated to this model. */
|
|
7443
|
+
vehicle_count: Scalars["Int"];
|
|
7416
7444
|
};
|
|
7417
7445
|
/** Vehicle models response object. */
|
|
7418
7446
|
export declare type VehicleModelsConnection = {
|
|
@@ -7426,7 +7454,7 @@ export declare type VehicleModelsConnection = {
|
|
|
7426
7454
|
/** Filter vehicle model list result. */
|
|
7427
7455
|
export declare type VehicleModelsFilter = {
|
|
7428
7456
|
/** Vehicle make. */
|
|
7429
|
-
make
|
|
7457
|
+
make: Scalars["ID"];
|
|
7430
7458
|
};
|
|
7431
7459
|
export declare type VehicleNaming = {
|
|
7432
7460
|
/** Vehicle manufacturer name. */
|