@chargetrip/types 1.65.0 → 1.67.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/src/graphql.ts CHANGED
@@ -97,6 +97,16 @@ export enum AdhocAuthorisationMethod {
97
97
  SMS = "SMS"
98
98
  }
99
99
 
100
+ /** Input fields to continue the navigation session to the next leg. */
101
+ export type AdvanceNavigationLegInput = {
102
+ /** The unique identifier of the active navigation session. */
103
+ id: Scalars["ID"];
104
+ /** State of charge (SOC) of the vehicle at the current location. If the current leg ends at a charging stop and this value is omitted, the navigation will assume the vehicle charges to its estimated optimal SOC. If the current leg ends at a non-charging via point and this value is omitted, the last known vehicle SOC is retained. */
105
+ state_of_charge?: Maybe<StateOfChargeInput>;
106
+ /** Geographic coordinates of the vehicle's current location. */
107
+ current_location: PointInput;
108
+ };
109
+
100
110
  export type AirPressure = {
101
111
  /** Value of the atmospheric pressure. */
102
112
  value: Scalars["Float"];
@@ -386,12 +396,14 @@ export type ChargeSpeedInput = {
386
396
  };
387
397
 
388
398
  export enum ChargeSpeedUnit {
389
- /** Return the charge speed in kilowatt hours. */
399
+ /** Charge speed in kilowatt hours. */
390
400
  KILOWATT_HOUR = "kilowatt_hour",
391
- /** Return the charge speed in kilometers per hour. */
401
+ /** Charge speed in kilometers per hour. */
392
402
  KILOMETERS_PER_HOUR = "kilometers_per_hour",
393
- /** Return the charge speed in miles per hour. */
394
- MILES_PER_HOUR = "miles_per_hour"
403
+ /** Charge speed in miles per hour. */
404
+ MILES_PER_HOUR = "miles_per_hour",
405
+ /** Charge speed in kilowatts. */
406
+ KILOWATT = "kilowatt"
395
407
  }
396
408
 
397
409
  export type ChargeTotalInput = {
@@ -1315,7 +1327,7 @@ export type CreateRouteInput = {
1315
1327
  departure_time?: Maybe<Scalars["DateTime"]>;
1316
1328
  /** [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. */
1317
1329
  avoid?: Maybe<Array<RouteAvoid>>;
1318
- /** Weather configuration for the route. Defined by a preset or custom weather conditions. If not specified, defaults to real-time weather data. */
1330
+ /** Weather configuration for the route. Defined by a preset or custom weather conditions. If not specified, defaults to use real weather data based on the route's `departure_time`. */
1319
1331
  weather?: Maybe<RouteWeatherInput>;
1320
1332
  /** Charging stations preferences for route calculation. */
1321
1333
  station_preferences?: Maybe<RouteStationPreferencesInput>;
@@ -2307,8 +2319,10 @@ export type Mutation = {
2307
2319
  updateNavigation?: Maybe<Scalars["Boolean"]>;
2308
2320
  /** [BETA] Recalculate the current navigation route */
2309
2321
  recalculateNavigation?: Maybe<Scalars["Boolean"]>;
2310
- /** [BETA] End a navigation session */
2322
+ /** [BETA] End a navigation session. */
2311
2323
  finishNavigation?: Maybe<Scalars["Boolean"]>;
2324
+ /** [BETA] Advances the active navigation session to the next route leg. */
2325
+ advanceNavigationLeg?: Maybe<Scalars["Boolean"]>;
2312
2326
  /**
2313
2327
  * Add a new review.
2314
2328
  * If the `x-token` header is send for a valid user, the review will belong to it, otherwise will be added for an anonymouse user
@@ -2369,6 +2383,10 @@ export type MutationfinishNavigationArgs = {
2369
2383
  input: NavigationFinishInput;
2370
2384
  };
2371
2385
 
2386
+ export type MutationadvanceNavigationLegArgs = {
2387
+ input: AdvanceNavigationLegInput;
2388
+ };
2389
+
2372
2390
  export type MutationaddReviewArgs = {
2373
2391
  review: ReviewAdd;
2374
2392
  };
@@ -2397,7 +2415,7 @@ export type Navigation = {
2397
2415
  overview: NavigationOverview;
2398
2416
  /** The status of the navigation session vehicle. The status can be driving, charging or parked. */
2399
2417
  vehicle_status: NavigationVehicleStatus;
2400
- /** The status of a navigation session. The status can be active, finished or error. */
2418
+ /** The status of a navigation session. The status can be active or finished. */
2401
2419
  status: NavigationStatus;
2402
2420
  /** Navigation meta information. */
2403
2421
  meta?: Maybe<NavigationMeta>;
@@ -2440,7 +2458,9 @@ export enum NavigationChangeType {
2440
2458
  /** The route has been modified or recalculated. */
2441
2459
  ROUTE_UPDATED = "route_updated",
2442
2460
  /** Next station availability has changed. */
2443
- NEXT_STATION_AVAILABILITY_UPDATED = "next_station_availability_updated"
2461
+ NEXT_STATION_AVAILABILITY_UPDATED = "next_station_availability_updated",
2462
+ /** Explicit recalculation/reroute failed. The previous route geometry was kept. */
2463
+ ROUTE_UPDATE_FAILED = "route_update_failed"
2444
2464
  }
2445
2465
 
2446
2466
  /** Input for the navigation finish. */
@@ -2507,6 +2527,8 @@ export type NavigationOverview = {
2507
2527
  state_of_charge: Scalars["Float"];
2508
2528
  /** Last known location. */
2509
2529
  last_known_location: Point;
2530
+ /** Index of the current active route leg. */
2531
+ current_leg: Scalars["Int"];
2510
2532
  /** Next stop details. Can be a charging or a location stop. */
2511
2533
  next_stop: NavigationStop;
2512
2534
  /** Continuously updated route legs. */
@@ -2660,8 +2682,10 @@ export type NavigationRouteVehicle = {
2660
2682
 
2661
2683
  /** Input for the navigation start. */
2662
2684
  export type NavigationStartInput = {
2663
- /** ID of the route of the navigation session. */
2685
+ /** ID of the route request. */
2664
2686
  route_id: Scalars["ID"];
2687
+ /** ID of the route. */
2688
+ route_details_id: Scalars["ID"];
2665
2689
  /** Current coordinates. */
2666
2690
  current_location: PointInput;
2667
2691
  };
@@ -2689,9 +2713,7 @@ export enum NavigationStatus {
2689
2713
  /** Navigation session is live and currently tracking. */
2690
2714
  ACTIVE = "active",
2691
2715
  /** Navigation session is completed (either manually or automatically 48 hours after the last update). */
2692
- FINISHED = "finished",
2693
- /** Failed to update navigation session due to route error or not found. */
2694
- ERROR = "error"
2716
+ FINISHED = "finished"
2695
2717
  }
2696
2718
 
2697
2719
  /** Next stop details. Can be a charging or a location stop. */
@@ -2719,12 +2741,14 @@ export type NavigationSubscription = {
2719
2741
  id: Scalars["ID"];
2720
2742
  /** The status of the navigation session vehicle. The status can be driving, charging or parked. */
2721
2743
  vehicle_status: NavigationVehicleStatus;
2722
- /** The status of the navigation session. The status can be active, finished or error. */
2744
+ /** The status of the navigation session. The status can be active or finished. */
2723
2745
  status: NavigationStatus;
2724
2746
  /** Navigation meta information. */
2725
2747
  meta?: Maybe<NavigationMeta>;
2726
2748
  /** Information about the latest completed change. */
2727
2749
  last_change: NavigationChange;
2750
+ /** Index of the current active route leg. */
2751
+ current_leg: Scalars["Int"];
2728
2752
  };
2729
2753
 
2730
2754
  /** Input for the navigation update. */
@@ -2739,8 +2763,6 @@ export type NavigationUpdateInput = {
2739
2763
  export type NavigationUpdateLocationsInput = {
2740
2764
  /** Location coordinates [longitude, latitude]. */
2741
2765
  coordinates: Array<Scalars["Float"]>;
2742
- /** Current route leg index corresponding to a location. */
2743
- route_leg: Scalars["Int"];
2744
2766
  /** UNIX timestamp at location, in seconds. */
2745
2767
  timestamp: Scalars["Int"];
2746
2768
  /** Telemetry data input. */
@@ -6413,7 +6435,7 @@ export type RouteVehicleBattery = {
6413
6435
  current?: Maybe<Scalars["Float"]>;
6414
6436
  /** Battery voltage in volts. */
6415
6437
  voltage?: Maybe<Scalars["Float"]>;
6416
- /** Value of the positive or negative power, in kWh. When negative, the vehicle is charging. */
6438
+ /** Value of the positive or negative power, in kW. When negative, the vehicle is charging. */
6417
6439
  power?: Maybe<Scalars["Float"]>;
6418
6440
  /** Flag indicating if the vehicle is charging. */
6419
6441
  is_charging?: Maybe<Scalars["Boolean"]>;
@@ -6433,7 +6455,7 @@ export type RouteVehicleBatteryInput = {
6433
6455
  current?: Maybe<Scalars["Float"]>;
6434
6456
  /** Battery voltage in volts. */
6435
6457
  voltage?: Maybe<Scalars["Float"]>;
6436
- /** Value of the positive or negative power, in kWh. When negative, the vehicle is charging. */
6458
+ /** Value of the positive or negative power, in kW. When negative, the vehicle is charging. */
6437
6459
  power?: Maybe<Scalars["Float"]>;
6438
6460
  /** Flag indicating if the vehicle is charging. */
6439
6461
  is_charging?: Maybe<Scalars["Boolean"]>;
@@ -6456,7 +6478,7 @@ export type RouteVehicleCabinInput = {
6456
6478
  export type RouteVehicleCharging = {
6457
6479
  /** Mode that indicates if the charging time is optimized or if always charged to the maximum state of charge. */
6458
6480
  mode: ChargeMode;
6459
- /** Minimum desired power of chargers, in kWh. */
6481
+ /** Minimum desired power of chargers, in kW. */
6460
6482
  minimum_power: Scalars["Float"];
6461
6483
  /** Minimum remaining state of charge at charging stops, expressed as a percentage. The value must be between 0 and 60. If not provided, the project configuration value is used. */
6462
6484
  risk_margin: Scalars["Int"];
@@ -7838,18 +7860,18 @@ export type VehicleBodyWeightmaximalArgs = {
7838
7860
  export type VehicleConnector = {
7839
7861
  /** Connector type, known as connector standard in OCPI. */
7840
7862
  standard: ConnectorType;
7841
- /** Usable electric power. */
7863
+ /** Average charging power. For fast charging connectors, represents the average power from 10% to 80% state of charge. For slow charging connectors, value is identical to `max_electric_power`. */
7842
7864
  power: Scalars["Float"];
7843
- /** Maximum electric power. */
7865
+ /** Peak charging power. For slow charging connectors, value is identical to `power`. */
7844
7866
  max_electric_power: Scalars["Float"];
7845
- /** Time it takes to charge from 10 to 80% with a fast charger, shown in minutes. */
7867
+ /** Time needed to charge, in minutes. For fast charging connectors, represents time from 10% to 80% state of charge. For slow charging connectors, represents time from 0% to 100%. */
7846
7868
  time: Scalars["Int"];
7847
7869
  /**
7848
7870
  * Charging speed.
7849
7871
  * @deprecated In favor of `charge_speed`.
7850
7872
  */
7851
7873
  speed: Scalars["Float"];
7852
- /** Charging speed. */
7874
+ /** Average charging speed. For fast charging connectors, represents average rate from 10% to 80% state of charge. For slow charging connectors, represents average rate from 0% to 100%. */
7853
7875
  charge_speed: Scalars["Float"];
7854
7876
  };
7855
7877
 
@@ -8879,9 +8901,9 @@ export type VehiclePremiumPrice = {
8879
8901
  };
8880
8902
 
8881
8903
  export type VehiclePremiumPriceValueWithGrant = {
8882
- /** Starting price for local market expressed in the currency in the field currency. */
8904
+ /** Starting price for the local market. The value applies to the optional `country` field provided in the query input. If `country` is not specified, it defaults to the Dutch market price. If the unit argument is not provided, the value is returned in the local currency of the selected country. */
8883
8905
  value?: Maybe<Scalars["Float"]>;
8884
- /** Currency in which the value without optional field conversion is expressed. */
8906
+ /** Currency in which the prices of `grant_applied`, `price_delivery` and `price_first_registration_fee` fields are expressed. The value applies to the optional `country` field provided in the query input. If `country` is not specified, defaults to Euro (EUR). */
8885
8907
  currency?: Maybe<CurrencyUnit>;
8886
8908
  /** Indicates if the starting price is based on an estimate. */
8887
8909
  is_estimated?: Maybe<Scalars["Boolean"]>;