@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.
@@ -1094,6 +1094,10 @@ export declare type CreateRoute = {
1094
1094
  alternative_station_radius?: Maybe<AlternativeStationRadius>;
1095
1095
  /** Route departure time. Used to calculate the expected arrival time and, if set in the past, to apply historical weather data. */
1096
1096
  departure_time: Scalars["DateTime"];
1097
+ /** [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. */
1098
+ avoid?: Maybe<Array<RouteAvoid>>;
1099
+ /** [BETA] User-defined maximum speed used for this route, if provided. */
1100
+ maximum_speed?: Maybe<MaximumSpeed>;
1097
1101
  };
1098
1102
  /** Input for the create route mutation. */
1099
1103
  export declare type CreateRouteInput = {
@@ -1113,6 +1117,10 @@ export declare type CreateRouteInput = {
1113
1117
  alternative_station_radius?: Maybe<AlternativeStationRadiusInput>;
1114
1118
  /** Route departure time. Used to calculate the expected arrival time and, if set in the past, to apply historical weather data. */
1115
1119
  departure_time?: Maybe<Scalars["DateTime"]>;
1120
+ /** [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. */
1121
+ avoid?: Maybe<Array<RouteAvoid>>;
1122
+ /** [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. */
1123
+ maximum_speed?: Maybe<MaximumSpeedInput>;
1116
1124
  };
1117
1125
  /** Currency in the ISO 4217 format. */
1118
1126
  export declare enum Currency {
@@ -1896,6 +1904,18 @@ export declare enum MappingProvider {
1896
1904
  /** Mapbox instructions mapping */
1897
1905
  MAPBOXV5 = "MapboxV5"
1898
1906
  }
1907
+ export declare type MaximumSpeed = {
1908
+ /** Numeric value of the user-defined maximum speed. */
1909
+ value: Scalars["Int"];
1910
+ /** Unit in which speed is measured. */
1911
+ type: SpeedUnit;
1912
+ };
1913
+ export declare type MaximumSpeedInput = {
1914
+ /** Numeric value of the user-defined maximum speed. */
1915
+ value: Scalars["Int"];
1916
+ /** Unit in which speed is measured. */
1917
+ type: SpeedUnit;
1918
+ };
1899
1919
  export declare enum MeasurementUnit {
1900
1920
  /** Return the measurement in millimeters. */
1901
1921
  MILLIMETER = "millimeter",
@@ -1945,10 +1965,10 @@ export declare type Mutation = {
1945
1965
  * This is a premium feature, contact Chargetrip for more information.
1946
1966
  */
1947
1967
  deleteUserReview: Review;
1948
- /** Create a new route from the route input and its ID. */
1949
- createRoute: Scalars["ID"];
1950
1968
  /** Deprecated: In favor of createRoute. */
1951
1969
  newRoute?: Maybe<Scalars["ID"]>;
1970
+ /** Create a new route from the route input and its ID. */
1971
+ createRoute: Scalars["ID"];
1952
1972
  };
1953
1973
  export declare type MutationcreateConnectedVehicleArgs = {
1954
1974
  input?: Maybe<CreateConnectedVehicleInput>;
@@ -1983,12 +2003,12 @@ export declare type MutationaddReviewArgs = {
1983
2003
  export declare type MutationdeleteUserReviewArgs = {
1984
2004
  id: Scalars["ID"];
1985
2005
  };
1986
- export declare type MutationcreateRouteArgs = {
1987
- input: CreateRouteInput;
1988
- };
1989
2006
  export declare type MutationnewRouteArgs = {
1990
2007
  input?: Maybe<RequestInput>;
1991
2008
  };
2009
+ export declare type MutationcreateRouteArgs = {
2010
+ input: CreateRouteInput;
2011
+ };
1992
2012
  /** The navigation session data */
1993
2013
  export declare type Navigation = {
1994
2014
  /** ID of the navigation session */
@@ -2942,16 +2962,16 @@ export declare type Query = {
2942
2962
  * This is a premium feature, contact Chargetrip for more information.
2943
2963
  */
2944
2964
  userReviewList?: Maybe<Array<Review>>;
2965
+ /** Deprecated: In favor of getRouteEmissions. */
2966
+ routeEmissions: RouteEmissions;
2945
2967
  /** Deprecated: In favor of getRoute. */
2946
2968
  route?: Maybe<Route>;
2969
+ /** Deprecated: In favor of RouteDetails.path_plot. */
2970
+ routePath?: Maybe<RoutePath>;
2947
2971
  /** Get a route by ID. */
2948
2972
  getRoute: RouteResponse;
2949
2973
  /** Get emissions for a route. */
2950
2974
  getRouteEmissions: RouteDetailsEmissions;
2951
- /** Deprecated: In favor of getRouteEmissions. */
2952
- routeEmissions: RouteEmissions;
2953
- /** Deprecated: In favor of RouteDetails.path_plot. */
2954
- routePath?: Maybe<RoutePath>;
2955
2975
  /** Get information about a station by its ID. */
2956
2976
  station?: Maybe<Station>;
2957
2977
  /** Get a full list of stations. */
@@ -3008,9 +3028,18 @@ export declare type QueryuserReviewListArgs = {
3008
3028
  size?: Maybe<Scalars["Int"]>;
3009
3029
  page?: Maybe<Scalars["Int"]>;
3010
3030
  };
3031
+ export declare type QueryrouteEmissionsArgs = {
3032
+ route_id: Scalars["ID"];
3033
+ route_alternative_id?: Maybe<Scalars["ID"]>;
3034
+ };
3011
3035
  export declare type QueryrouteArgs = {
3012
3036
  id: Scalars["ID"];
3013
3037
  };
3038
+ export declare type QueryroutePathArgs = {
3039
+ id: Scalars["ID"];
3040
+ location: PointInput;
3041
+ alternativeId?: Maybe<Scalars["ID"]>;
3042
+ };
3014
3043
  export declare type QuerygetRouteArgs = {
3015
3044
  id: Scalars["ID"];
3016
3045
  };
@@ -3018,15 +3047,6 @@ export declare type QuerygetRouteEmissionsArgs = {
3018
3047
  route_id: Scalars["ID"];
3019
3048
  route_details_id: Scalars["ID"];
3020
3049
  };
3021
- export declare type QueryrouteEmissionsArgs = {
3022
- route_id: Scalars["ID"];
3023
- route_alternative_id?: Maybe<Scalars["ID"]>;
3024
- };
3025
- export declare type QueryroutePathArgs = {
3026
- id: Scalars["ID"];
3027
- location: PointInput;
3028
- alternativeId?: Maybe<Scalars["ID"]>;
3029
- };
3030
3050
  export declare type QuerystationArgs = {
3031
3051
  id?: Maybe<Scalars["ID"]>;
3032
3052
  evse_id?: Maybe<Scalars["String"]>;
@@ -3527,6 +3547,11 @@ export declare type RouteApp = {
3527
3547
  /** ID of the app who requested a route. */
3528
3548
  id?: Maybe<Scalars["ID"]>;
3529
3549
  };
3550
+ /** Types of route features that can be avoided in routing. */
3551
+ export declare enum RouteAvoid {
3552
+ TOLL_ROAD = "toll_road",
3553
+ FERRY = "ferry"
3554
+ }
3530
3555
  export declare type RouteDestinationFeaturePoint = {
3531
3556
  /** ID of the feature. */
3532
3557
  id?: Maybe<Scalars["ID"]>;
@@ -3612,6 +3637,8 @@ export declare type RouteDetailsAlternativeStation = {
3612
3637
  status: ChargerStatus;
3613
3638
  /** 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. */
3614
3639
  operator_ranking?: Maybe<OperatorRankingLevel>;
3640
+ /** ID of the station's operator. */
3641
+ operator_id?: Maybe<Scalars["ID"]>;
3615
3642
  };
3616
3643
  /** Aggregation of all durations of a route. */
3617
3644
  export declare type RouteDetailsDurations = {
@@ -3890,7 +3917,7 @@ export declare type RouteDetailsManeuverdistanceArgs = {
3890
3917
  export declare type RouteDetailsPathSegment = {
3891
3918
  /** Elevation value of a route path segment. */
3892
3919
  elevation: Scalars["Float"];
3893
- /** Average speed of a route path segment. */
3920
+ /** Average speed of a route path segment. This value is determined using legal maximum speed and, if provided, the user defined maximum speed. */
3894
3921
  average_speed: Scalars["Float"];
3895
3922
  /** Consumption, in kilowatt hours, of a route path segment. For HEVs and PHEVs this field will return null. */
3896
3923
  consumption?: Maybe<Scalars["Float"]>;
@@ -3900,7 +3927,10 @@ export declare type RouteDetailsPathSegment = {
3900
3927
  duration: Scalars["Float"];
3901
3928
  /** State of charge, in kilowatt hours, of a route path segment. For HEVs and PHEVs this field will return null. */
3902
3929
  state_of_charge?: Maybe<Scalars["Float"]>;
3903
- /** Maximum vehicle speed of a route path segment. */
3930
+ /**
3931
+ * Maximum vehicle speed of a route path segment.
3932
+ * @deprecated Will be removed in the future.
3933
+ */
3904
3934
  maximum_speed: Scalars["Float"];
3905
3935
  };
3906
3936
  export declare type RouteDetailsPathSegmentelevationArgs = {
@@ -4281,14 +4311,14 @@ export declare type RouteLegOperationalElectricityEmissionsIntensity = {
4281
4311
  energy_sources: RouteOperationalElectricityEnergySources;
4282
4312
  /** Average emissions intensity of processing and transport of primary energy, power generation infrastructure, etc. in unit CO2e/kWh. */
4283
4313
  infrastructure: Scalars["Float"];
4284
- /** Estimated electricity demand at the time and place the electricity for this leg was obtained as a fraction of the annual average demand. */
4285
- average_demand: Scalars["Float"];
4286
- /** Fraction of regional power generation that is not affected by demand (is assumed to always be on). */
4287
- base_load_fraction: Scalars["Float"];
4288
4314
  /** Season for which the leg was calculated. */
4289
4315
  season: RouteOperationalElectricitySeason;
4290
4316
  /** Climate for which the leg was calculated. */
4291
4317
  climate: RouteOperationalElectricityClimate;
4318
+ /** Estimated electricity demand at the time and place the electricity for this leg was obtained as a fraction of the annual average demand. */
4319
+ average_demand: Scalars["Float"];
4320
+ /** Fraction of regional power generation that is not affected by demand (is assumed to always be on). */
4321
+ base_load_fraction: Scalars["Float"];
4292
4322
  };
4293
4323
  /** Electricity emission intensity for a leg */
4294
4324
  export declare type RouteLegOperationalElectricityEmissionsIntensitytotalArgs = {
@@ -5609,30 +5639,30 @@ export declare enum StepType {
5609
5639
  CROSSBORDER = "crossborder"
5610
5640
  }
5611
5641
  export declare type Subscription = {
5612
- /** [BETA] Subscribe to a connected vehicle. */
5613
- connectedVehicle?: Maybe<ConnectedVehicle>;
5614
- /** Subscribe to an isoline in order to receive updates. */
5615
- isoline?: Maybe<Isoline>;
5616
- /** [BETA] Subscribe to navigation session system event updates. We strongly recommend using this at all times to not miss any updates */
5617
- navigationUpdatedById?: Maybe<Navigation>;
5618
5642
  /** Deprecated: In favor of route. */
5619
5643
  routeUpdatedById?: Maybe<Route>;
5620
5644
  /** Subscribe to a specific route to receive system event updates. */
5621
5645
  route: RouteResponse;
5646
+ /** [BETA] Subscribe to navigation session system event updates. We strongly recommend using this at all times to not miss any updates */
5647
+ navigationUpdatedById?: Maybe<Navigation>;
5648
+ /** [BETA] Subscribe to a connected vehicle. */
5649
+ connectedVehicle?: Maybe<ConnectedVehicle>;
5650
+ /** Subscribe to an isoline in order to receive updates. */
5651
+ isoline?: Maybe<Isoline>;
5622
5652
  };
5623
- export declare type SubscriptionconnectedVehicleArgs = {
5653
+ export declare type SubscriptionrouteUpdatedByIdArgs = {
5624
5654
  id: Scalars["ID"];
5625
5655
  };
5626
- export declare type SubscriptionisolineArgs = {
5656
+ export declare type SubscriptionrouteArgs = {
5627
5657
  id: Scalars["ID"];
5628
5658
  };
5629
5659
  export declare type SubscriptionnavigationUpdatedByIdArgs = {
5630
5660
  id: Scalars["ID"];
5631
5661
  };
5632
- export declare type SubscriptionrouteUpdatedByIdArgs = {
5662
+ export declare type SubscriptionconnectedVehicleArgs = {
5633
5663
  id: Scalars["ID"];
5634
5664
  };
5635
- export declare type SubscriptionrouteArgs = {
5665
+ export declare type SubscriptionisolineArgs = {
5636
5666
  id: Scalars["ID"];
5637
5667
  };
5638
5668
  export declare type Telemetry = {