@chargetrip/types 1.26.0 → 1.29.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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAd","sourcesContent":["export * from \"./graphql\";\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["export * from \"./graphql\";\n"],"mappings":"AAAA,cAAc,WAAd"}
@@ -49,6 +49,19 @@ export declare type Address = {
49
49
  /** Human-readable address of a location */
50
50
  formattedAddress?: Maybe<Array<Maybe<Scalars["String"]>>>;
51
51
  };
52
+ /** Amenities available near a station */
53
+ export declare enum Amenities {
54
+ PARK = "park",
55
+ RESTAURANT = "restaurant",
56
+ MUSEUM = "museum",
57
+ COFFEE = "coffee",
58
+ HOTEL = "hotel",
59
+ SHOPPING = "shopping",
60
+ BATHROOM = "bathroom",
61
+ SUPERMARKET = "supermarket",
62
+ PLAYGROUND = "playground",
63
+ PHARMACY = "pharmacy"
64
+ }
52
65
  /** The amenity model */
53
66
  export declare type Amenity = {
54
67
  /** Unique amenity ID */
@@ -1758,7 +1771,7 @@ export declare type MutationupdateNavigationArgs = {
1758
1771
  input: NavigationUpdateInput;
1759
1772
  };
1760
1773
  export declare type MutationrecalculateNavigationArgs = {
1761
- input: NavigationReacalculateInput;
1774
+ input: NavigationRecalculateInput;
1762
1775
  };
1763
1776
  export declare type MutationfinishNavigationArgs = {
1764
1777
  input: NavigationFinishInput;
@@ -1807,7 +1820,7 @@ export declare type NavigationFinishInput = {
1807
1820
  current_location: PointInput;
1808
1821
  };
1809
1822
  /** Input for the navigation recalculate */
1810
- export declare type NavigationReacalculateInput = {
1823
+ export declare type NavigationRecalculateInput = {
1811
1824
  /** ID of the navigation session */
1812
1825
  id: Scalars["ID"];
1813
1826
  /** State of charge at origin */
@@ -1831,13 +1844,13 @@ export declare type NavigationStartInput = {
1831
1844
  /** State of navigation session */
1832
1845
  export declare enum NavigationState {
1833
1846
  /** Vehicle is driving */
1834
- DRIVING = "Driving",
1847
+ DRIVING = "driving",
1835
1848
  /** Vehicle is charging */
1836
- CHARGING = "Charging",
1849
+ CHARGING = "charging",
1837
1850
  /** Navigation session is completed (either manually or automatically 48 hours after the last update) */
1838
- FINISHED = "Finished",
1851
+ FINISHED = "finished",
1839
1852
  /** Failed to update navigation session due to route error or not found */
1840
- ERROR = "Error"
1853
+ ERROR = "error"
1841
1854
  }
1842
1855
  /** Navigation session station type */
1843
1856
  export declare type NavigationStation = {
@@ -1878,11 +1891,11 @@ export declare type NavigationUpdateInput = {
1878
1891
  export declare type NavigationUpdateLocationPropertiesInput = {
1879
1892
  /** Current route leg index corresponding to a location */
1880
1893
  route_leg: Scalars["Int"];
1881
- /** Speed at a location */
1894
+ /** Speed at a location, in km/h */
1882
1895
  speed: Scalars["Float"];
1883
- /** UNIX timestamp at location */
1896
+ /** UNIX timestamp at location, in seconds */
1884
1897
  timestamp: Scalars["Int"];
1885
- /** Altitude information. This is optional */
1898
+ /** Altitude information, in meters. This is optional */
1886
1899
  altitude?: Maybe<Scalars["Int"]>;
1887
1900
  };
1888
1901
  /** Input for the navigation update locations */
@@ -2434,6 +2447,8 @@ export declare type PathSegment = {
2434
2447
  distance?: Maybe<Scalars["Float"]>;
2435
2448
  /** Duration, in seconds, of a route path segment */
2436
2449
  duration?: Maybe<Scalars["Float"]>;
2450
+ /** State of charge, in kWh, of a route path segment */
2451
+ stateOfCharge?: Maybe<Scalars["Float"]>;
2437
2452
  };
2438
2453
  /** A GeoJSON Point */
2439
2454
  export declare type Point = {
@@ -2616,11 +2631,15 @@ export declare type QuerystationArgs = {
2616
2631
  };
2617
2632
  export declare type QuerystationListArgs = {
2618
2633
  query?: Maybe<StationListQuery>;
2634
+ filter?: Maybe<StationListFilter>;
2635
+ search?: Maybe<Scalars["String"]>;
2619
2636
  size?: Maybe<Scalars["Int"]>;
2620
2637
  page?: Maybe<Scalars["Int"]>;
2621
2638
  };
2622
2639
  export declare type QuerystationAroundArgs = {
2623
- query: StationAroundQuery;
2640
+ query?: Maybe<StationAroundQuery>;
2641
+ filter?: Maybe<StationAroundFilter>;
2642
+ search?: Maybe<Scalars["String"]>;
2624
2643
  size?: Maybe<Scalars["Int"]>;
2625
2644
  page?: Maybe<Scalars["Int"]>;
2626
2645
  };
@@ -2662,25 +2681,25 @@ export declare type RequestEv = {
2662
2681
  consumption?: Maybe<RequestEvConsumption>;
2663
2682
  };
2664
2683
  export declare type RequestEvBattery = {
2665
- /** The usable capacity of the battery used to compute the route. If this in not filled in, value as the car batteryUsableKwh. */
2684
+ /** Usable capacity of the battery used to compute the route. If this in not filled in, value as the car batteryUsableKwh */
2666
2685
  capacity?: Maybe<RequestEvBatteryValue>;
2667
- /** Usable capacity of a battery, in kWh. This value is computed from the provided capacity value. */
2686
+ /** Usable capacity of a battery, in kWh. This value is computed from the provided capacity value */
2668
2687
  capacityKwh?: Maybe<Scalars["Float"]>;
2669
- /** Current amount of energy in a battery. If this is not filled in, we assume the battery is full and it will be equal to the batteryUsableKwh. */
2688
+ /** Current amount of energy in a battery. If this is not filled in, we assume the battery is full and it will be equal to the batteryUsableKwh */
2670
2689
  stateOfCharge?: Maybe<RequestEvBatteryValue>;
2671
- /** Current amount of energy in a battery, in kWh. This value is computed from the provided state of charge. */
2690
+ /** Current amount of energy in a battery, in kWh. This value is computed from the provided state of charge */
2672
2691
  stateOfChargeKwh?: Maybe<Scalars["Float"]>;
2673
- /** Desired final amount of energy in a battery. If this is not filled in, it will be set to 20% of the car batteryUsableKwh. */
2692
+ /** Desired final amount of energy in a battery. If this is not filled in, it will be set to 20% of the car batteryUsableKwh */
2674
2693
  finalStateOfCharge?: Maybe<RequestEvBatteryValue>;
2675
- /** Desired final amount of energy in a battery, in kWh. This value is computed from the provided final state of charge. */
2694
+ /** Desired final amount of energy in a battery, in kWh. This value is computed from the provided final state of charge */
2676
2695
  finalStateOfChargeKwh?: Maybe<Scalars["Float"]>;
2677
2696
  };
2678
2697
  export declare type RequestEvBatteryInput = {
2679
- /** Usable capacity of a battery used to compute a route. Allowed value is between -50% and 50% of the car usable battery capacity. If this in not filled in, we assume it is the same value as the car batteryUsableKwh. */
2698
+ /** Usable capacity of a battery used to compute a route. We recommend you stay between 50% and 150%. If this in not filled in, we assume it is the same value as the car batteryUsableKwh */
2680
2699
  capacity?: Maybe<RequestEvBatteryInputValue>;
2681
- /** Current amount of energy in a battery. If this is not filled in, we assume the battery is full and we fill it in with car batteryUsableKwh. */
2700
+ /** Current amount of energy in a battery. If this is not filled in, we assume the battery is full and we fill it in with car batteryUsableKwh */
2682
2701
  stateOfCharge?: Maybe<RequestEvBatteryInputValue>;
2683
- /** Desired final amount of energy in a battery. If this is not filled in, we assume it is 20% of the car batteryUsableKwh. */
2702
+ /** Desired final amount of energy in a battery. If this is not filled in, we assume it is 20% of the car batteryUsableKwh */
2684
2703
  finalStateOfCharge?: Maybe<RequestEvBatteryInputValue>;
2685
2704
  };
2686
2705
  export declare type RequestEvBatteryInputValue = {
@@ -2943,15 +2962,15 @@ export declare type RouteAlternative = {
2943
2962
  type?: Maybe<RouteAlternativeType>;
2944
2963
  /** Number of charges along a route */
2945
2964
  charges?: Maybe<Scalars["Int"]>;
2946
- /** Number of available charges along a route. */
2965
+ /** Number of available charges along a route */
2947
2966
  chargesAvailable?: Maybe<Scalars["Int"]>;
2948
- /** Number of occupied charges along a route. */
2967
+ /** Number of occupied charges along a route */
2949
2968
  chargesOccupied?: Maybe<Scalars["Int"]>;
2950
- /** Number of unknown charges along a route. */
2969
+ /** Number of unknown charges along a route */
2951
2970
  chargesUnknown?: Maybe<Scalars["Int"]>;
2952
- /** Number of out of order charges along a route. */
2971
+ /** Number of out of order charges along a route */
2953
2972
  chargesOutOfOrder?: Maybe<Scalars["Int"]>;
2954
- /** Total distance of a route in meters. */
2973
+ /** Total distance of a route in meters */
2955
2974
  distance?: Maybe<Scalars["Int"]>;
2956
2975
  /** Total duration of a route, including charge time, in seconds */
2957
2976
  duration?: Maybe<Scalars["Int"]>;
@@ -2972,9 +2991,9 @@ export declare type RouteAlternative = {
2972
2991
  rangeStartPercentage?: Maybe<Scalars["Int"]>;
2973
2992
  /** Remaining range, in meters, at the end of a trip */
2974
2993
  rangeEnd?: Maybe<Scalars["Int"]>;
2975
- /** Remaining range, energy in kWh, at the end of a trip. */
2994
+ /** Remaining range, energy in kWh, at the end of a trip */
2976
2995
  rangeEndKwh?: Maybe<Scalars["Float"]>;
2977
- /** Remaining range, energy in percentage, at the end of a trip. */
2996
+ /** Remaining range, energy in percentage, at the end of a trip */
2978
2997
  rangeEndPercentage?: Maybe<Scalars["Int"]>;
2979
2998
  /** Text information about a route direction */
2980
2999
  via?: Maybe<Scalars["String"]>;
@@ -3098,7 +3117,7 @@ export declare type RouteLeg = {
3098
3117
  rangeEnd?: Maybe<Scalars["Int"]>;
3099
3118
  /** Total energy left in a battery at the end of a leg, in kWh */
3100
3119
  rangeEndKwh?: Maybe<Scalars["Float"]>;
3101
- /** Remaining range, energy in percentage, at the end of a trip. */
3120
+ /** Remaining range, energy in percentage, at the end of a trip */
3102
3121
  rangeEndPercentage?: Maybe<Scalars["Int"]>;
3103
3122
  /** Origin point location */
3104
3123
  origin?: Maybe<FeaturePoint>;
@@ -3232,6 +3251,8 @@ export declare type RoutePath = {
3232
3251
  distance?: Maybe<Scalars["Float"]>;
3233
3252
  /** Duration, in seconds, of a route path segment */
3234
3253
  duration?: Maybe<Scalars["Float"]>;
3254
+ /** State of charge, in kWh, of a route path segment */
3255
+ stateOfCharge?: Maybe<Scalars["Float"]>;
3235
3256
  };
3236
3257
  /** The season of the route */
3237
3258
  export declare enum RouteSeason {
@@ -3291,7 +3312,8 @@ export declare enum RouteTagType {
3291
3312
  ROAD = "road",
3292
3313
  HIGHWAY = "highway",
3293
3314
  TOLL = "toll",
3294
- FERRY = "ferry"
3315
+ FERRY = "ferry",
3316
+ WALKING = "walking"
3295
3317
  }
3296
3318
  /** Standards(plug type) stats model */
3297
3319
  export declare type StandardStats = {
@@ -3391,17 +3413,51 @@ export declare type Station = {
3391
3413
  status?: Maybe<ChargerStatus>;
3392
3414
  };
3393
3415
  /** Filter which can be applied to retrieve the station around list action */
3416
+ export declare type StationAroundFilter = {
3417
+ /** The GeoJSON Point of the center of the around me circle */
3418
+ location?: Maybe<PointInput>;
3419
+ /** Distance, in meters, to search around */
3420
+ distance?: Maybe<Scalars["Int"]>;
3421
+ /** Powers in kWh */
3422
+ powers?: Maybe<Array<Maybe<Scalars["Float"]>>>;
3423
+ /** Amenities available near a station */
3424
+ amenities?: Maybe<Array<Maybe<Amenities>>>;
3425
+ /** Station speed */
3426
+ power_groups?: Maybe<Array<Maybe<StationSpeedType>>>;
3427
+ /** Station socket or plug standards */
3428
+ connectors?: Maybe<Array<Maybe<ConnectorType>>>;
3429
+ /** Flag that allows you to return only available stations */
3430
+ available_only?: Maybe<Scalars["Boolean"]>;
3431
+ /** Flag indicating if only stations that are owned by an operator from a clients ranking list are returned */
3432
+ preferred_operator?: Maybe<Scalars["Boolean"]>;
3433
+ };
3434
+ /** Deprecated: Replaced by filter & search params */
3394
3435
  export declare type StationAroundQuery = {
3395
3436
  /** The GeoJSON Point of the center of the around me circle */
3396
- location: PointInput;
3437
+ location?: Maybe<PointInput>;
3397
3438
  /** Distance, in meters, to search around */
3398
- distance: Scalars["Int"];
3439
+ distance?: Maybe<Scalars["Int"]>;
3399
3440
  /** Power in kWh */
3400
3441
  power?: Maybe<Array<Maybe<Scalars["Float"]>>>;
3401
- /** Amentities available near a station. Values: restaurant, bathroom, supermarket, playground, coffee, shopping, museum, hotel, park */
3442
+ /** Amenities available near a station. Values: restaurant, bathroom, supermarket, playground, coffee, shopping, museum, hotel, park */
3402
3443
  amenities?: Maybe<Array<Maybe<Scalars["String"]>>>;
3403
3444
  };
3404
3445
  /** Filter which can be applied to retrieve the station list action */
3446
+ export declare type StationListFilter = {
3447
+ /** Powers in kWh */
3448
+ powers?: Maybe<Array<Maybe<Scalars["Float"]>>>;
3449
+ /** Amenities available near a station */
3450
+ amenities?: Maybe<Array<Maybe<Amenities>>>;
3451
+ /** Station speed */
3452
+ power_groups?: Maybe<Array<Maybe<StationSpeedType>>>;
3453
+ /** Station socket or plug standards */
3454
+ connectors?: Maybe<Array<Maybe<ConnectorType>>>;
3455
+ /** Flag that allows you to return only available stations */
3456
+ available_only?: Maybe<Scalars["Boolean"]>;
3457
+ /** Flag indicating if only stations that are owned by an operator from a clients ranking list are returned */
3458
+ preferred_operator?: Maybe<Scalars["Boolean"]>;
3459
+ };
3460
+ /** Deprecated: Replaced by filter & search params */
3405
3461
  export declare type StationListQuery = {
3406
3462
  /** ID of the station */
3407
3463
  id?: Maybe<Scalars["ID"]>;
@@ -3455,7 +3511,9 @@ export declare enum StepType {
3455
3511
  /** This step is a toll road */
3456
3512
  TOLL = "toll",
3457
3513
  /** This step is a ferry */
3458
- FERRY = "ferry"
3514
+ FERRY = "ferry",
3515
+ /** This step is reachable by walking */
3516
+ WALKING = "walking"
3459
3517
  }
3460
3518
  export declare type Subscription = {
3461
3519
  /** [BETA] Subscribe to navigation session system event updates. We strongly recommend using this at all times to not miss any updates */
@@ -11801,6 +11801,18 @@
11801
11801
  },
11802
11802
  "isDeprecated": false,
11803
11803
  "deprecationReason": null
11804
+ },
11805
+ {
11806
+ "name": "stateOfCharge",
11807
+ "description": "State of charge, in kWh, of a route path segment",
11808
+ "args": [],
11809
+ "type": {
11810
+ "kind": "SCALAR",
11811
+ "name": "Float",
11812
+ "ofType": null
11813
+ },
11814
+ "isDeprecated": false,
11815
+ "deprecationReason": null
11804
11816
  }
11805
11817
  ],
11806
11818
  "inputFields": null,
@@ -16610,6 +16622,18 @@
16610
16622
  },
16611
16623
  "isDeprecated": false,
16612
16624
  "deprecationReason": null
16625
+ },
16626
+ {
16627
+ "name": "stateOfCharge",
16628
+ "description": "State of charge, in kWh, of a route path segment",
16629
+ "args": [],
16630
+ "type": {
16631
+ "kind": "SCALAR",
16632
+ "name": "Float",
16633
+ "ofType": null
16634
+ },
16635
+ "isDeprecated": false,
16636
+ "deprecationReason": null
16613
16637
  }
16614
16638
  ],
16615
16639
  "inputFields": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chargetrip/types",
3
- "version": "1.26.0",
3
+ "version": "1.29.0",
4
4
  "description": "Typescript types for the Chargetrip EV-routing GraphQL API",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -70,7 +70,7 @@
70
70
  "watch:rollup": "yarn build:rollup -w",
71
71
  "watch:ts": "yarn build:ts --watch",
72
72
  "watch": "yarn clean && concurrently \"yarn:watch:babel\" \"yarn:watch:rollup\" \"yarn:watch:ts\"",
73
- "generate-types": "graphql-codegen --config codegen.yml"
73
+ "generate:types": "graphql-codegen --config codegen.yml"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@babel/cli": "^7.15.4",
package/src/graphql.ts CHANGED
@@ -2589,6 +2589,8 @@ export type PathSegment = {
2589
2589
  distance?: Maybe<Scalars["Float"]>;
2590
2590
  /** Duration, in seconds, of a route path segment */
2591
2591
  duration?: Maybe<Scalars["Float"]>;
2592
+ /** State of charge, in kWh, of a route path segment */
2593
+ stateOfCharge?: Maybe<Scalars["Float"]>;
2592
2594
  };
2593
2595
 
2594
2596
  /** A GeoJSON Point */
@@ -3458,6 +3460,8 @@ export type RoutePath = {
3458
3460
  distance?: Maybe<Scalars["Float"]>;
3459
3461
  /** Duration, in seconds, of a route path segment */
3460
3462
  duration?: Maybe<Scalars["Float"]>;
3463
+ /** State of charge, in kWh, of a route path segment */
3464
+ stateOfCharge?: Maybe<Scalars["Float"]>;
3461
3465
  };
3462
3466
 
3463
3467
  /** The season of the route */