@chargetrip/types 1.35.1 → 1.36.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chargetrip/types",
3
- "version": "1.35.1",
3
+ "version": "1.36.0",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "chargetrip",
package/src/graphql.ts CHANGED
@@ -13,8 +13,12 @@ export type Scalars = {
13
13
  Boolean: boolean;
14
14
  Int: number;
15
15
  Float: number;
16
+ /** Returns 'OK' */
17
+ Acknowledgement: any;
16
18
  /** The date and time scalar */
17
19
  DateTime: string;
20
+ /** Email address scalar, email regex with HTML sanitization */
21
+ Email: any;
18
22
  /** Any JSON object */
19
23
  JSON: { [key: string]: number | string | boolean | null | Scalars["JSON"] };
20
24
  /**
@@ -24,8 +28,6 @@ export type Scalars = {
24
28
  PlainString: any;
25
29
  /** The File Upload scalar */
26
30
  Upload: any;
27
- /** Returns null */
28
- Void: any;
29
31
  };
30
32
 
31
33
  export enum AccelerationUnit {
@@ -494,7 +496,9 @@ export enum CarImageType {
494
496
  /** Full-sized brand (maker) logo at 768x432 px */
495
497
  BRAND = "brand",
496
498
  /** Thumbnail of a full-sized brand logo at 56x24 px */
497
- BRAND_THUMBNAIL = "brand_thumbnail"
499
+ BRAND_THUMBNAIL = "brand_thumbnail",
500
+ /** Placeholder image at 1536x864 px */
501
+ PLACEHOLDER = "placeholder"
498
502
  }
499
503
 
500
504
  /** When uploading images to a car, you can select one of this types. The rest of the types are automatically generated by the system */
@@ -1425,7 +1429,7 @@ export type ChargeTotalInput = {
1425
1429
  /** Value of the temperature of the battery */
1426
1430
  value: Scalars["Float"];
1427
1431
  /** Type of total charge amount */
1428
- type: BatteryInputType;
1432
+ type: StateOfChargeUnit;
1429
1433
  /** Source of inputted data, defaults to 'manual' */
1430
1434
  source?: Maybe<TelemetryInputSource>;
1431
1435
  };
@@ -1756,22 +1760,18 @@ export enum ConnectorType {
1756
1760
  }
1757
1761
 
1758
1762
  export enum ConsumptionUnit {
1759
- /** Return the consumption in kilometers */
1760
- KILOMETER = "kilometer",
1761
- /** Return the consumption in kilowatt hours */
1762
- KILOWATT_HOUR = "kilowatt_hour",
1763
1763
  /** Return the consumption in kilowatt hours per 100 kilometers */
1764
1764
  KILOWATT_HOURS_PER_100_KILOMETERS = "kilowatt_hours_per_100_kilometers",
1765
- /** Return the consumption in kilowatt hours per 100 miles */
1766
- KILOWATT_HOURS_PER_100_MILES = "kilowatt_hours_per_100_miles",
1767
1765
  /** Return the consumption in watt hours per kilometer */
1768
1766
  WATT_HOURS_PER_KILOMETER = "watt_hours_per_kilometer",
1767
+ /** Return the consumption in kilometers per kilowatt hour */
1768
+ KILOMETERS_PER_KILOWATT_HOUR = "kilometers_per_kilowatt_hour",
1769
+ /** Return the consumption in kilowatt hours per 100 miles */
1770
+ KILOWATT_HOURS_PER_100_MILES = "kilowatt_hours_per_100_miles",
1769
1771
  /** Return the consumption in watt hours per mile */
1770
1772
  WATT_HOURS_PER_MILE = "watt_hours_per_mile",
1771
1773
  /** Return the consumption in miles per kilowatt hour */
1772
- MILES_PER_KILOWATT_HOUR = "miles_per_kilowatt_hour",
1773
- /** Return the consumption in kilometers per kilowatt hour */
1774
- KILOMETERS_PER_KILOWATT_HOUR = "kilometers_per_kilowatt_hour"
1774
+ MILES_PER_KILOWATT_HOUR = "miles_per_kilowatt_hour"
1775
1775
  }
1776
1776
 
1777
1777
  /** The complete contact information */
@@ -2069,7 +2069,9 @@ export enum CurrencyUnit {
2069
2069
  /** Return the currency in EUR */
2070
2070
  EUR = "EUR",
2071
2071
  /** Return the currency in USD */
2072
- USD = "USD"
2072
+ USD = "USD",
2073
+ /** Return the currency in GBP */
2074
+ GBP = "GBP"
2073
2075
  }
2074
2076
 
2075
2077
  export enum DistanceUnit {
@@ -2398,11 +2400,11 @@ export type Mutation = {
2398
2400
  /** [BETA] Start a new navigation session on top of an existing route */
2399
2401
  startNavigation?: Maybe<Scalars["ID"]>;
2400
2402
  /** [BETA] Update the navigation session */
2401
- updateNavigation?: Maybe<Scalars["Void"]>;
2403
+ updateNavigation?: Maybe<Scalars["Acknowledgement"]>;
2402
2404
  /** [BETA] Recalculate the current navigation route */
2403
- recalculateNavigation?: Maybe<Scalars["Void"]>;
2405
+ recalculateNavigation?: Maybe<Scalars["Acknowledgement"]>;
2404
2406
  /** [BETA] End a navigation session */
2405
- finishNavigation?: Maybe<Scalars["Void"]>;
2407
+ finishNavigation?: Maybe<Scalars["Acknowledgement"]>;
2406
2408
  /**
2407
2409
  * Add a new review.
2408
2410
  * 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
@@ -2473,28 +2475,26 @@ export type Navigation = {
2473
2475
  /** ID of the navigation session */
2474
2476
  id: Scalars["ID"];
2475
2477
  /** The current route used for navigation */
2476
- route_id?: Maybe<Scalars["ID"]>;
2478
+ route_id: Scalars["ID"];
2477
2479
  /** The current route alternative used for navigation */
2478
- route_alternative_id?: Maybe<Scalars["ID"]>;
2480
+ route_alternative_id: Scalars["ID"];
2479
2481
  /** The state of a navigation session. The status can be driving, charging, finished, or error */
2480
- state?: Maybe<NavigationState>;
2482
+ state: NavigationState;
2481
2483
  /** State of charge at the last known location */
2482
- state_of_charge?: Maybe<Scalars["Float"]>;
2484
+ state_of_charge: Scalars["Float"];
2483
2485
  /** Last known location */
2484
- last_known_location?: Maybe<Point>;
2486
+ last_known_location: Point;
2485
2487
  /** Next charging station */
2486
2488
  next_station?: Maybe<NavigationStation>;
2487
2489
  /** A set of alternative charging stations to next station */
2488
- alternative_stations?: Maybe<Array<Maybe<NavigationStation>>>;
2490
+ alternative_stations: Array<NavigationStation>;
2489
2491
  /** Navigation instructions */
2490
2492
  instructions?: Maybe<Scalars["JSON"]>;
2491
2493
  };
2492
2494
 
2493
2495
  /** The navigation session data */
2494
- export type NavigationinstructionsArgs = {
2495
- instructions_format: InstructionsFormat;
2496
- language?: Maybe<MappingLanguage>;
2497
- precision?: Maybe<Scalars["Int"]>;
2496
+ export type Navigationstate_of_chargeArgs = {
2497
+ unit?: Maybe<StateOfChargeUnit>;
2498
2498
  };
2499
2499
 
2500
2500
  /** Input for the navigation recalculate */
@@ -2505,16 +2505,25 @@ export type NavigationFinishInput = {
2505
2505
  current_location: PointInput;
2506
2506
  };
2507
2507
 
2508
+ export type NavigationInstructionsInput = {
2509
+ /** Turn by turn instructions format for a route */
2510
+ instructions_format: InstructionsFormat;
2511
+ /** Preferred navigation instructions language. Default: en */
2512
+ language?: Maybe<MappingLanguage>;
2513
+ /** Number of decimals used for the Google Polyline encoding Algorithm. Allowed values are 5 or 6, the default is 5 */
2514
+ precision?: Maybe<Scalars["Int"]>;
2515
+ };
2516
+
2508
2517
  /** Input for the navigation recalculate */
2509
2518
  export type NavigationRecalculateInput = {
2510
2519
  /** ID of the navigation session */
2511
2520
  id: Scalars["ID"];
2512
2521
  /** State of charge at origin */
2513
- state_of_charge?: Maybe<Scalars["Float"]>;
2522
+ state_of_charge?: Maybe<StateOfChargeInput>;
2514
2523
  /** Origin location of a new route */
2515
2524
  current_location: PointInput;
2516
2525
  /** Via points of a new route. If this field is not sent, the original via points will be used */
2517
- via?: Maybe<Array<Maybe<FeaturePointInput>>>;
2526
+ via?: Maybe<Array<FeaturePointInput>>;
2518
2527
  /** Telemetry data input */
2519
2528
  telemetry?: Maybe<TelemetryInput>;
2520
2529
  };
@@ -2527,6 +2536,8 @@ export type NavigationStartInput = {
2527
2536
  route_alternative_id?: Maybe<Scalars["ID"]>;
2528
2537
  /** Current coordinates */
2529
2538
  current_location: PointInput;
2539
+ /** Instruction input format */
2540
+ instructions: NavigationInstructionsInput;
2530
2541
  };
2531
2542
 
2532
2543
  /** State of navigation session */
@@ -2544,17 +2555,22 @@ export enum NavigationState {
2544
2555
  /** Navigation session station type */
2545
2556
  export type NavigationStation = {
2546
2557
  /** The ID as string of the charging station */
2547
- station_id?: Maybe<Scalars["ID"]>;
2558
+ station_id: Scalars["ID"];
2548
2559
  /** GPS location of the charging station */
2549
- station_location?: Maybe<Point>;
2560
+ station_location: Point;
2550
2561
  /** An array with all GPS locations of via points until the next charging station */
2551
- via?: Maybe<Array<Maybe<Point>>>;
2552
- /** Estimated state of charge, in kWh, at arrival on the next charging station */
2553
- estimated_state_of_charge?: Maybe<Scalars["Float"]>;
2562
+ via: Array<Point>;
2563
+ /** Estimated state of charge, at arrival on the next charging station */
2564
+ estimated_state_of_charge: Scalars["Float"];
2554
2565
  /** Estimated consumption, in kWh, from last the known location until the next charging station */
2555
- estimated_consumption?: Maybe<Scalars["Float"]>;
2566
+ estimated_consumption: Scalars["Float"];
2556
2567
  /** Estimated duration, in seconds, from the last known location until the next charging station */
2557
- estimated_duration?: Maybe<Scalars["Int"]>;
2568
+ estimated_duration: Scalars["Int"];
2569
+ };
2570
+
2571
+ /** Navigation session station type */
2572
+ export type NavigationStationestimated_state_of_chargeArgs = {
2573
+ unit?: Maybe<StateOfChargeUnit>;
2558
2574
  };
2559
2575
 
2560
2576
  /** Input for the navigation update */
@@ -2571,12 +2587,12 @@ export type NavigationUpdateInput = {
2571
2587
  export type NavigationUpdateLocationPropertiesInput = {
2572
2588
  /** Current route leg index corresponding to a location */
2573
2589
  route_leg: Scalars["Int"];
2574
- /** Speed at a location, in km/h */
2575
- speed?: Maybe<Scalars["Float"]>;
2590
+ /** Speed at a location */
2591
+ speed?: Maybe<VehicleSpeedInput>;
2576
2592
  /** UNIX timestamp at location, in seconds */
2577
2593
  timestamp: Scalars["Int"];
2578
- /** Altitude information, in meters. This is optional */
2579
- altitude?: Maybe<Scalars["Int"]>;
2594
+ /** Elevation information */
2595
+ elevation?: Maybe<ElevationInput>;
2580
2596
  };
2581
2597
 
2582
2598
  /** Input for the navigation update locations */
@@ -2780,7 +2796,7 @@ export type OCPIEnvironmentalImpact = {
2780
2796
  /** The environmental impact category of this value. */
2781
2797
  category?: Maybe<OCPIEnvironmentalImpactCategory>;
2782
2798
  /** Amount of this portion in g/kWh. */
2783
- amount?: Maybe<Scalars["Int"]>;
2799
+ amount?: Maybe<Scalars["Float"]>;
2784
2800
  };
2785
2801
 
2786
2802
  /** Categories of environmental impact values. */
@@ -4367,7 +4383,7 @@ export type StateOfChargeInput = {
4367
4383
  /** Value of the state of charge of the vehicle */
4368
4384
  value: Scalars["Float"];
4369
4385
  /** Type of the state of charge of the vehicle */
4370
- type: BatteryInputType;
4386
+ type: StateOfChargeUnit;
4371
4387
  /** Source of inputted data, defaults to 'manual' */
4372
4388
  source?: Maybe<TelemetryInputSource>;
4373
4389
  };
@@ -4375,11 +4391,11 @@ export type StateOfChargeInput = {
4375
4391
  export enum StateOfChargeUnit {
4376
4392
  /** Return the state of charge in kilometers */
4377
4393
  KILOMETER = "kilometer",
4378
- /** Return the speed of charge in miles */
4394
+ /** Return the state of charge in miles */
4379
4395
  MILE = "mile",
4380
- /** Return the speed of charge in kilowatt hours */
4396
+ /** Return the state of charge in kilowatt hours */
4381
4397
  KILOWATT_HOUR = "kilowatt_hour",
4382
- /** Return the speed of charge in a percentage */
4398
+ /** Return the state of charge as a percentage */
4383
4399
  PERCENTAGE = "percentage"
4384
4400
  }
4385
4401
 
@@ -4710,7 +4726,7 @@ export type Telemetrycharge_speedArgs = {
4710
4726
  };
4711
4727
 
4712
4728
  export type Telemetrycharge_totalArgs = {
4713
- unit?: Maybe<BatteryInputType>;
4729
+ unit?: Maybe<StateOfChargeUnit>;
4714
4730
  };
4715
4731
 
4716
4732
  export type Telemetrytotal_occupant_weightArgs = {
@@ -4738,7 +4754,7 @@ export type TelemetrypowerArgs = {
4738
4754
  };
4739
4755
 
4740
4756
  export type Telemetrystate_of_chargeArgs = {
4741
- unit?: Maybe<BatteryInputType>;
4757
+ unit?: Maybe<StateOfChargeUnit>;
4742
4758
  };
4743
4759
 
4744
4760
  export type Telemetrytire_pressureArgs = {
@@ -4957,7 +4973,7 @@ export type VehicleBodyWeight = {
4957
4973
  /** Minimum weight, default in kg */
4958
4974
  minimum?: Maybe<Scalars["Float"]>;
4959
4975
  /** Nominal weight, default in kg */
4960
- nominal: Scalars["Float"];
4976
+ nominal?: Maybe<Scalars["Float"]>;
4961
4977
  /** Maximal weight, default in kg */
4962
4978
  maximal?: Maybe<Scalars["Float"]>;
4963
4979
  };
@@ -5076,7 +5092,9 @@ export enum VehicleImageType {
5076
5092
  /** Full-sized brand (maker) logo at 768x432 px */
5077
5093
  BRAND = "brand",
5078
5094
  /** Thumbnail of a full-sized brand logo at 56x24 px */
5079
- BRAND_THUMBNAIL = "brand_thumbnail"
5095
+ BRAND_THUMBNAIL = "brand_thumbnail",
5096
+ /** Placeholder image at 1536x864 px */
5097
+ PLACEHOLDER = "placeholder"
5080
5098
  }
5081
5099
 
5082
5100
  /** When uploading images to a vehicle, you can select one of this types. The rest of the types are automatically generated by the system */
@@ -5132,9 +5150,9 @@ export type VehicleListBody = {
5132
5150
 
5133
5151
  export type VehicleListFilter = {
5134
5152
  /** Availability of a vehicle */
5135
- availability?: Maybe<Array<Maybe<VehicleAvailabilityStatus>>>;
5153
+ availability?: Maybe<Array<VehicleAvailabilityStatus>>;
5136
5154
  /** Drivetrain type of a vehicle */
5137
- drivetrain?: Maybe<VehicleDrivetrainType>;
5155
+ drivetrain?: Maybe<Array<VehicleDrivetrainType>>;
5138
5156
  /** Information about vehicle connectivity */
5139
5157
  connect?: Maybe<ConnectFilter>;
5140
5158
  };
@@ -5357,7 +5375,7 @@ export type VehiclePremiumBody = {
5357
5375
  /** Segment, listed in local naming convention where applicable */
5358
5376
  segment?: Maybe<Scalars["String"]>;
5359
5377
  /** Number of seats */
5360
- seats?: Maybe<Scalars["Int"]>;
5378
+ seats: Scalars["Int"];
5361
5379
  /** Indicates whether a vehicle has roof rails as a standard */
5362
5380
  has_roofrails?: Maybe<Scalars["Boolean"]>;
5363
5381
  /** Turning circle of the vehicle kerb-to-kerb, default in meters */
@@ -5426,22 +5444,34 @@ export type VehiclePremiumBodyturning_circleArgs = {
5426
5444
 
5427
5445
  export type VehiclePremiumCharge = {
5428
5446
  /** Information about the main connector */
5429
- plug?: Maybe<VehiclePremiumChargeConnector>;
5447
+ plug?: Maybe<VehiclePremiumChargePlug>;
5430
5448
  /** Information about vehicles secondary onboard charger */
5431
- second_plug?: Maybe<VehiclePremiumChargeSecondConnector>;
5449
+ second_plug?: Maybe<VehiclePremiumChargeSecondPlug>;
5432
5450
  /** Information about the vehicle standard onboard charger */
5433
5451
  standard?: Maybe<VehiclePremiumChargeStandardOBC>;
5434
5452
  /** Optional upgrade for the standard onboard charger when available */
5435
5453
  option?: Maybe<VehiclePremiumChargeOptionOBC>;
5454
+ /** Alternative upgrade for the standard onboard charger when available */
5455
+ alternative?: Maybe<VehiclePremiumChargeAlternativeOBC>;
5436
5456
  };
5437
5457
 
5438
- export type VehiclePremiumChargeConnector = {
5439
- /** Type of charge port on vehicle */
5440
- value?: Maybe<ConnectorType>;
5441
- /** Indicates if value is an estimate */
5442
- is_estimated?: Maybe<Scalars["Boolean"]>;
5443
- /** Location of charge port */
5444
- location?: Maybe<Scalars["String"]>;
5458
+ export type VehiclePremiumChargeAlternativeOBC = {
5459
+ /** Maximum power OBC can accept to charge a battery (standard OBC) */
5460
+ power?: Maybe<Scalars["Float"]>;
5461
+ /** Number of phases the OBC accepts to achieve maximum power (standard OBC) */
5462
+ phases?: Maybe<Scalars["Int"]>;
5463
+ /** Maximum current the OBC accepts per phase to achieve maximum power (standard OBC) */
5464
+ phase_amperage?: Maybe<Scalars["Float"]>;
5465
+ /** Minutes needed to charge from 0% to 100% (standard OBC) */
5466
+ charge_time?: Maybe<Scalars["Int"]>;
5467
+ /** Charging speed when charging at maximum power (standard OBC), default in kmph */
5468
+ charge_speed?: Maybe<Scalars["Float"]>;
5469
+ /** Charging details for the standard OBC at several charging points */
5470
+ table?: Maybe<Array<Maybe<VehiclePremiumChargeOBCTable>>>;
5471
+ };
5472
+
5473
+ export type VehiclePremiumChargeAlternativeOBCcharge_speedArgs = {
5474
+ unit?: Maybe<ChargeSpeedUnit>;
5445
5475
  };
5446
5476
 
5447
5477
  export type VehiclePremiumChargeOBCTable = {
@@ -5488,6 +5518,15 @@ export type VehiclePremiumChargeOptionOBCcharge_speedArgs = {
5488
5518
  unit?: Maybe<ChargeSpeedUnit>;
5489
5519
  };
5490
5520
 
5521
+ export type VehiclePremiumChargePlug = {
5522
+ /** Type of charge port on vehicle */
5523
+ value?: Maybe<ConnectorType>;
5524
+ /** Indicates if value is an estimate */
5525
+ is_estimated?: Maybe<Scalars["Boolean"]>;
5526
+ /** Location of charge port */
5527
+ location?: Maybe<Scalars["String"]>;
5528
+ };
5529
+
5491
5530
  export type VehiclePremiumChargePower = {
5492
5531
  /** Maximum value */
5493
5532
  max?: Maybe<Scalars["Float"]>;
@@ -5495,7 +5534,7 @@ export type VehiclePremiumChargePower = {
5495
5534
  average?: Maybe<Scalars["Float"]>;
5496
5535
  };
5497
5536
 
5498
- export type VehiclePremiumChargeSecondConnector = {
5537
+ export type VehiclePremiumChargeSecondPlug = {
5499
5538
  /** Location of charge port */
5500
5539
  location?: Maybe<Scalars["String"]>;
5501
5540
  /** Indicates if second charge port is optional */
@@ -5707,8 +5746,8 @@ export type VehiclePremiumEfficiencyWLTPTEHco2Args = {
5707
5746
  };
5708
5747
 
5709
5748
  export type VehiclePremiumFastCharge = {
5710
- /** Location of charge port */
5711
- charge_port?: Maybe<VehiclePremiumChargeConnector>;
5749
+ /** Details about the connector */
5750
+ plug?: Maybe<VehiclePremiumChargePlug>;
5712
5751
  /** Power during fast charging from 10% to 80% SoC (optimal conditions, fastest charger) */
5713
5752
  power?: Maybe<VehiclePremiumChargePower>;
5714
5753
  /** Minutes needed to charge from 10% to 80%, with average charging power (optimal conditions, fastest charger) */
@@ -5809,8 +5848,10 @@ export type VehiclePremiumPrice = {
5809
5848
  };
5810
5849
 
5811
5850
  export type VehiclePremiumPriceValueWithGrant = {
5812
- /** Starting price for local market, default in EUR */
5851
+ /** Starting price for local market expressed in the currency in the field currency */
5813
5852
  value?: Maybe<Scalars["Float"]>;
5853
+ /** Currency in which the value without optional field conversion is expressed */
5854
+ currency?: Maybe<CurrencyUnit>;
5814
5855
  /** Indicates if price value is based on estimates */
5815
5856
  is_estimated?: Maybe<Scalars["Boolean"]>;
5816
5857
  /** Grant is applied to value */