@chargetrip/types 1.46.2 → 1.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.js +8 -0
- package/dist/node/index.js.map +1 -1
- package/dist/react-native/graphql.js +8 -0
- package/dist/react-native/graphql.js.map +1 -1
- package/dist/ts/graphql.d.ts +64 -34
- package/graphql.schema.json +425 -772
- package/package.json +1 -1
- package/src/graphql.ts +70 -37
package/package.json
CHANGED
package/src/graphql.ts
CHANGED
|
@@ -1157,6 +1157,10 @@ export type CreateRoute = {
|
|
|
1157
1157
|
alternative_station_radius?: Maybe<AlternativeStationRadius>;
|
|
1158
1158
|
/** Route departure time. Used to calculate the expected arrival time and, if set in the past, to apply historical weather data. */
|
|
1159
1159
|
departure_time: Scalars["DateTime"];
|
|
1160
|
+
/** [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. */
|
|
1161
|
+
avoid?: Maybe<Array<RouteAvoid>>;
|
|
1162
|
+
/** [BETA] User-defined maximum speed used for this route, if provided. */
|
|
1163
|
+
maximum_speed?: Maybe<MaximumSpeed>;
|
|
1160
1164
|
};
|
|
1161
1165
|
|
|
1162
1166
|
/** Input for the create route mutation. */
|
|
@@ -1177,6 +1181,10 @@ export type CreateRouteInput = {
|
|
|
1177
1181
|
alternative_station_radius?: Maybe<AlternativeStationRadiusInput>;
|
|
1178
1182
|
/** Route departure time. Used to calculate the expected arrival time and, if set in the past, to apply historical weather data. */
|
|
1179
1183
|
departure_time?: Maybe<Scalars["DateTime"]>;
|
|
1184
|
+
/** [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. */
|
|
1185
|
+
avoid?: Maybe<Array<RouteAvoid>>;
|
|
1186
|
+
/** [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
|
+
maximum_speed?: Maybe<MaximumSpeedInput>;
|
|
1180
1188
|
};
|
|
1181
1189
|
|
|
1182
1190
|
/** Currency in the ISO 4217 format. */
|
|
@@ -2018,6 +2026,20 @@ export enum MappingProvider {
|
|
|
2018
2026
|
MAPBOXV5 = "MapboxV5"
|
|
2019
2027
|
}
|
|
2020
2028
|
|
|
2029
|
+
export type MaximumSpeed = {
|
|
2030
|
+
/** Numeric value of the user-defined maximum speed. */
|
|
2031
|
+
value: Scalars["Int"];
|
|
2032
|
+
/** Unit in which speed is measured. */
|
|
2033
|
+
type: SpeedUnit;
|
|
2034
|
+
};
|
|
2035
|
+
|
|
2036
|
+
export type MaximumSpeedInput = {
|
|
2037
|
+
/** Numeric value of the user-defined maximum speed. */
|
|
2038
|
+
value: Scalars["Int"];
|
|
2039
|
+
/** Unit in which speed is measured. */
|
|
2040
|
+
type: SpeedUnit;
|
|
2041
|
+
};
|
|
2042
|
+
|
|
2021
2043
|
export enum MeasurementUnit {
|
|
2022
2044
|
/** Return the measurement in millimeters. */
|
|
2023
2045
|
MILLIMETER = "millimeter",
|
|
@@ -2072,10 +2094,10 @@ export type Mutation = {
|
|
|
2072
2094
|
* This is a premium feature, contact Chargetrip for more information.
|
|
2073
2095
|
*/
|
|
2074
2096
|
deleteUserReview: Review;
|
|
2075
|
-
/** Create a new route from the route input and its ID. */
|
|
2076
|
-
createRoute: Scalars["ID"];
|
|
2077
2097
|
/** Deprecated: In favor of createRoute. */
|
|
2078
2098
|
newRoute?: Maybe<Scalars["ID"]>;
|
|
2099
|
+
/** Create a new route from the route input and its ID. */
|
|
2100
|
+
createRoute: Scalars["ID"];
|
|
2079
2101
|
};
|
|
2080
2102
|
|
|
2081
2103
|
export type MutationcreateConnectedVehicleArgs = {
|
|
@@ -2122,14 +2144,14 @@ export type MutationdeleteUserReviewArgs = {
|
|
|
2122
2144
|
id: Scalars["ID"];
|
|
2123
2145
|
};
|
|
2124
2146
|
|
|
2125
|
-
export type MutationcreateRouteArgs = {
|
|
2126
|
-
input: CreateRouteInput;
|
|
2127
|
-
};
|
|
2128
|
-
|
|
2129
2147
|
export type MutationnewRouteArgs = {
|
|
2130
2148
|
input?: Maybe<RequestInput>;
|
|
2131
2149
|
};
|
|
2132
2150
|
|
|
2151
|
+
export type MutationcreateRouteArgs = {
|
|
2152
|
+
input: CreateRouteInput;
|
|
2153
|
+
};
|
|
2154
|
+
|
|
2133
2155
|
/** The navigation session data */
|
|
2134
2156
|
export type Navigation = {
|
|
2135
2157
|
/** ID of the navigation session */
|
|
@@ -3162,16 +3184,16 @@ export type Query = {
|
|
|
3162
3184
|
* This is a premium feature, contact Chargetrip for more information.
|
|
3163
3185
|
*/
|
|
3164
3186
|
userReviewList?: Maybe<Array<Review>>;
|
|
3187
|
+
/** Deprecated: In favor of getRouteEmissions. */
|
|
3188
|
+
routeEmissions: RouteEmissions;
|
|
3165
3189
|
/** Deprecated: In favor of getRoute. */
|
|
3166
3190
|
route?: Maybe<Route>;
|
|
3191
|
+
/** Deprecated: In favor of RouteDetails.path_plot. */
|
|
3192
|
+
routePath?: Maybe<RoutePath>;
|
|
3167
3193
|
/** Get a route by ID. */
|
|
3168
3194
|
getRoute: RouteResponse;
|
|
3169
3195
|
/** Get emissions for a route. */
|
|
3170
3196
|
getRouteEmissions: RouteDetailsEmissions;
|
|
3171
|
-
/** Deprecated: In favor of getRouteEmissions. */
|
|
3172
|
-
routeEmissions: RouteEmissions;
|
|
3173
|
-
/** Deprecated: In favor of RouteDetails.path_plot. */
|
|
3174
|
-
routePath?: Maybe<RoutePath>;
|
|
3175
3197
|
/** Get information about a station by its ID. */
|
|
3176
3198
|
station?: Maybe<Station>;
|
|
3177
3199
|
/** Get a full list of stations. */
|
|
@@ -3239,10 +3261,21 @@ export type QueryuserReviewListArgs = {
|
|
|
3239
3261
|
page?: Maybe<Scalars["Int"]>;
|
|
3240
3262
|
};
|
|
3241
3263
|
|
|
3264
|
+
export type QueryrouteEmissionsArgs = {
|
|
3265
|
+
route_id: Scalars["ID"];
|
|
3266
|
+
route_alternative_id?: Maybe<Scalars["ID"]>;
|
|
3267
|
+
};
|
|
3268
|
+
|
|
3242
3269
|
export type QueryrouteArgs = {
|
|
3243
3270
|
id: Scalars["ID"];
|
|
3244
3271
|
};
|
|
3245
3272
|
|
|
3273
|
+
export type QueryroutePathArgs = {
|
|
3274
|
+
id: Scalars["ID"];
|
|
3275
|
+
location: PointInput;
|
|
3276
|
+
alternativeId?: Maybe<Scalars["ID"]>;
|
|
3277
|
+
};
|
|
3278
|
+
|
|
3246
3279
|
export type QuerygetRouteArgs = {
|
|
3247
3280
|
id: Scalars["ID"];
|
|
3248
3281
|
};
|
|
@@ -3252,17 +3285,6 @@ export type QuerygetRouteEmissionsArgs = {
|
|
|
3252
3285
|
route_details_id: Scalars["ID"];
|
|
3253
3286
|
};
|
|
3254
3287
|
|
|
3255
|
-
export type QueryrouteEmissionsArgs = {
|
|
3256
|
-
route_id: Scalars["ID"];
|
|
3257
|
-
route_alternative_id?: Maybe<Scalars["ID"]>;
|
|
3258
|
-
};
|
|
3259
|
-
|
|
3260
|
-
export type QueryroutePathArgs = {
|
|
3261
|
-
id: Scalars["ID"];
|
|
3262
|
-
location: PointInput;
|
|
3263
|
-
alternativeId?: Maybe<Scalars["ID"]>;
|
|
3264
|
-
};
|
|
3265
|
-
|
|
3266
3288
|
export type QuerystationArgs = {
|
|
3267
3289
|
id?: Maybe<Scalars["ID"]>;
|
|
3268
3290
|
evse_id?: Maybe<Scalars["String"]>;
|
|
@@ -3803,6 +3825,12 @@ export type RouteApp = {
|
|
|
3803
3825
|
id?: Maybe<Scalars["ID"]>;
|
|
3804
3826
|
};
|
|
3805
3827
|
|
|
3828
|
+
/** Types of route features that can be avoided in routing. */
|
|
3829
|
+
export enum RouteAvoid {
|
|
3830
|
+
TOLL_ROAD = "toll_road",
|
|
3831
|
+
FERRY = "ferry"
|
|
3832
|
+
}
|
|
3833
|
+
|
|
3806
3834
|
export type RouteDestinationFeaturePoint = {
|
|
3807
3835
|
/** ID of the feature. */
|
|
3808
3836
|
id?: Maybe<Scalars["ID"]>;
|
|
@@ -3897,6 +3925,8 @@ export type RouteDetailsAlternativeStation = {
|
|
|
3897
3925
|
status: ChargerStatus;
|
|
3898
3926
|
/** 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
3927
|
operator_ranking?: Maybe<OperatorRankingLevel>;
|
|
3928
|
+
/** ID of the station's operator. */
|
|
3929
|
+
operator_id?: Maybe<Scalars["ID"]>;
|
|
3900
3930
|
};
|
|
3901
3931
|
|
|
3902
3932
|
/** Aggregation of all durations of a route. */
|
|
@@ -4210,7 +4240,7 @@ export type RouteDetailsManeuverdistanceArgs = {
|
|
|
4210
4240
|
export type RouteDetailsPathSegment = {
|
|
4211
4241
|
/** Elevation value of a route path segment. */
|
|
4212
4242
|
elevation: Scalars["Float"];
|
|
4213
|
-
/** Average speed of a route path segment. */
|
|
4243
|
+
/** Average speed of a route path segment. This value is determined using legal maximum speed and, if provided, the user defined maximum speed. */
|
|
4214
4244
|
average_speed: Scalars["Float"];
|
|
4215
4245
|
/** Consumption, in kilowatt hours, of a route path segment. For HEVs and PHEVs this field will return null. */
|
|
4216
4246
|
consumption?: Maybe<Scalars["Float"]>;
|
|
@@ -4220,7 +4250,10 @@ export type RouteDetailsPathSegment = {
|
|
|
4220
4250
|
duration: Scalars["Float"];
|
|
4221
4251
|
/** State of charge, in kilowatt hours, of a route path segment. For HEVs and PHEVs this field will return null. */
|
|
4222
4252
|
state_of_charge?: Maybe<Scalars["Float"]>;
|
|
4223
|
-
/**
|
|
4253
|
+
/**
|
|
4254
|
+
* Maximum vehicle speed of a route path segment.
|
|
4255
|
+
* @deprecated Will be removed in the future.
|
|
4256
|
+
*/
|
|
4224
4257
|
maximum_speed: Scalars["Float"];
|
|
4225
4258
|
};
|
|
4226
4259
|
|
|
@@ -4657,14 +4690,14 @@ export type RouteLegOperationalElectricityEmissionsIntensity = {
|
|
|
4657
4690
|
energy_sources: RouteOperationalElectricityEnergySources;
|
|
4658
4691
|
/** Average emissions intensity of processing and transport of primary energy, power generation infrastructure, etc. in unit CO2e/kWh. */
|
|
4659
4692
|
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
4693
|
/** Season for which the leg was calculated. */
|
|
4665
4694
|
season: RouteOperationalElectricitySeason;
|
|
4666
4695
|
/** Climate for which the leg was calculated. */
|
|
4667
4696
|
climate: RouteOperationalElectricityClimate;
|
|
4697
|
+
/** Estimated electricity demand at the time and place the electricity for this leg was obtained as a fraction of the annual average demand. */
|
|
4698
|
+
average_demand: Scalars["Float"];
|
|
4699
|
+
/** Fraction of regional power generation that is not affected by demand (is assumed to always be on). */
|
|
4700
|
+
base_load_fraction: Scalars["Float"];
|
|
4668
4701
|
};
|
|
4669
4702
|
|
|
4670
4703
|
/** Electricity emission intensity for a leg */
|
|
@@ -6115,23 +6148,23 @@ export enum StepType {
|
|
|
6115
6148
|
}
|
|
6116
6149
|
|
|
6117
6150
|
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
6151
|
/** Deprecated: In favor of route. */
|
|
6125
6152
|
routeUpdatedById?: Maybe<Route>;
|
|
6126
6153
|
/** Subscribe to a specific route to receive system event updates. */
|
|
6127
6154
|
route: RouteResponse;
|
|
6155
|
+
/** [BETA] Subscribe to navigation session system event updates. We strongly recommend using this at all times to not miss any updates */
|
|
6156
|
+
navigationUpdatedById?: Maybe<Navigation>;
|
|
6157
|
+
/** [BETA] Subscribe to a connected vehicle. */
|
|
6158
|
+
connectedVehicle?: Maybe<ConnectedVehicle>;
|
|
6159
|
+
/** Subscribe to an isoline in order to receive updates. */
|
|
6160
|
+
isoline?: Maybe<Isoline>;
|
|
6128
6161
|
};
|
|
6129
6162
|
|
|
6130
|
-
export type
|
|
6163
|
+
export type SubscriptionrouteUpdatedByIdArgs = {
|
|
6131
6164
|
id: Scalars["ID"];
|
|
6132
6165
|
};
|
|
6133
6166
|
|
|
6134
|
-
export type
|
|
6167
|
+
export type SubscriptionrouteArgs = {
|
|
6135
6168
|
id: Scalars["ID"];
|
|
6136
6169
|
};
|
|
6137
6170
|
|
|
@@ -6139,11 +6172,11 @@ export type SubscriptionnavigationUpdatedByIdArgs = {
|
|
|
6139
6172
|
id: Scalars["ID"];
|
|
6140
6173
|
};
|
|
6141
6174
|
|
|
6142
|
-
export type
|
|
6175
|
+
export type SubscriptionconnectedVehicleArgs = {
|
|
6143
6176
|
id: Scalars["ID"];
|
|
6144
6177
|
};
|
|
6145
6178
|
|
|
6146
|
-
export type
|
|
6179
|
+
export type SubscriptionisolineArgs = {
|
|
6147
6180
|
id: Scalars["ID"];
|
|
6148
6181
|
};
|
|
6149
6182
|
|