@chargetrip/types 1.24.0 → 1.25.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/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.js +21 -1
- package/dist/node/index.js.map +1 -1
- package/dist/react-native/graphql.js +21 -1
- package/dist/react-native/graphql.js.map +1 -1
- package/dist/ts/graphql.d.ts +176 -17
- package/graphql.schema.json +1063 -108
- package/package.json +1 -1
- package/src/graphql.ts +238 -60
- package/CHANGELOG.md +0 -176
package/dist/ts/graphql.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export declare type Scalars = {
|
|
|
25
25
|
};
|
|
26
26
|
/** The File Upload scalar */
|
|
27
27
|
Upload: any;
|
|
28
|
+
/** Void custom scalar */
|
|
29
|
+
Void: any;
|
|
28
30
|
};
|
|
29
31
|
/** Information about an address */
|
|
30
32
|
export declare type Address = {
|
|
@@ -146,7 +148,7 @@ export declare type Car = {
|
|
|
146
148
|
*/
|
|
147
149
|
chargetripRange?: Maybe<ChargetripRange>;
|
|
148
150
|
/**
|
|
149
|
-
* Cars that support fast charging have a minimum charging speed of 43
|
|
151
|
+
* Cars that support fast charging have a minimum charging speed of 43 kWh
|
|
150
152
|
* @deprecated In favor of routing.fast_charging_support
|
|
151
153
|
*/
|
|
152
154
|
fastChargingSupport?: Maybe<Scalars["Boolean"]>;
|
|
@@ -438,7 +440,7 @@ export declare type CarList = {
|
|
|
438
440
|
*/
|
|
439
441
|
chargetripRange?: Maybe<ChargetripRange>;
|
|
440
442
|
/**
|
|
441
|
-
* Cars that support fast charging have a minimum charging speed of 43
|
|
443
|
+
* Cars that support fast charging have a minimum charging speed of 43 kWh
|
|
442
444
|
* @deprecated In favor of routing.fast_charging_support
|
|
443
445
|
*/
|
|
444
446
|
fastChargingSupport?: Maybe<Scalars["Boolean"]>;
|
|
@@ -597,10 +599,7 @@ export declare type CarListRange = {
|
|
|
597
599
|
best?: Maybe<CarEstimationData>;
|
|
598
600
|
};
|
|
599
601
|
export declare type CarListRouting = {
|
|
600
|
-
/**
|
|
601
|
-
* EVs that support fast charging have a minimum charging speed of 43 Kwh.
|
|
602
|
-
* EVs without support for fast charging used in a newRoute mutation will return an error.
|
|
603
|
-
*/
|
|
602
|
+
/** Cars that support fast charging have a minimum charging speed of 43 kWh */
|
|
604
603
|
fast_charging_support?: Maybe<Scalars["Boolean"]>;
|
|
605
604
|
};
|
|
606
605
|
export declare type CarMedia = {
|
|
@@ -1117,10 +1116,7 @@ export declare type CarPremiumRangeValue = {
|
|
|
1117
1116
|
combined?: Maybe<Scalars["Int"]>;
|
|
1118
1117
|
};
|
|
1119
1118
|
export declare type CarPremiumRouting = {
|
|
1120
|
-
/**
|
|
1121
|
-
* EVs that support fast charging have a minimum charging speed of 43 Kwh.
|
|
1122
|
-
* EVs without support for fast charging used in a newRoute mutation will return an error.
|
|
1123
|
-
*/
|
|
1119
|
+
/** Cars that support fast charging have a minimum charging speed of 43 kWh */
|
|
1124
1120
|
fast_charging_support?: Maybe<Scalars["Boolean"]>;
|
|
1125
1121
|
/** Drag coefficient */
|
|
1126
1122
|
drag_coefficient?: Maybe<Scalars["Float"]>;
|
|
@@ -1197,10 +1193,7 @@ export declare type CarRangeValue = {
|
|
|
1197
1193
|
combined?: Maybe<Scalars["Int"]>;
|
|
1198
1194
|
};
|
|
1199
1195
|
export declare type CarRouting = {
|
|
1200
|
-
/**
|
|
1201
|
-
* EVs that support fast charging have a minimum charging speed of 43 Kwh.
|
|
1202
|
-
* EVs without support for fast charging used in a newRoute mutation will return an error.
|
|
1203
|
-
*/
|
|
1196
|
+
/** Cars that support fast charging have a minimum charging speed of 43 kWh */
|
|
1204
1197
|
fast_charging_support?: Maybe<Scalars["Boolean"]>;
|
|
1205
1198
|
};
|
|
1206
1199
|
/** Status of a car */
|
|
@@ -1701,6 +1694,13 @@ export declare type FeaturePointInput = {
|
|
|
1701
1694
|
export declare enum FeatureType {
|
|
1702
1695
|
FEATURE = "Feature"
|
|
1703
1696
|
}
|
|
1697
|
+
/** Navigation service providers available */
|
|
1698
|
+
export declare enum InstructionsFormat {
|
|
1699
|
+
/** Chargetrip raw instructions */
|
|
1700
|
+
CHARGETRIP = "Chargetrip",
|
|
1701
|
+
/** Mapbox instructions mapping */
|
|
1702
|
+
MAPBOXV5 = "MapboxV5"
|
|
1703
|
+
}
|
|
1704
1704
|
/** Types of a leg */
|
|
1705
1705
|
export declare enum LegType {
|
|
1706
1706
|
/** This leg ends at a charging station and the car must recharge */
|
|
@@ -1716,14 +1716,25 @@ export declare enum LegType {
|
|
|
1716
1716
|
}
|
|
1717
1717
|
/** Preferred language for the mapping */
|
|
1718
1718
|
export declare enum MappingLanguage {
|
|
1719
|
+
/** English(US) */
|
|
1719
1720
|
EN = "en"
|
|
1720
1721
|
}
|
|
1721
1722
|
/** Navigation service providers available */
|
|
1722
1723
|
export declare enum MappingProvider {
|
|
1723
|
-
/**
|
|
1724
|
+
/** Chargetrip raw instructions */
|
|
1725
|
+
CHARGETRIP = "Chargetrip",
|
|
1726
|
+
/** Mapbox instructions mapping */
|
|
1724
1727
|
MAPBOXV5 = "MapboxV5"
|
|
1725
1728
|
}
|
|
1726
1729
|
export declare type Mutation = {
|
|
1730
|
+
/** [BETA] Start a new navigation session on top of an existing route */
|
|
1731
|
+
startNavigation?: Maybe<Scalars["ID"]>;
|
|
1732
|
+
/** [BETA] Update the navigation session */
|
|
1733
|
+
updateNavigation?: Maybe<Scalars["Void"]>;
|
|
1734
|
+
/** [BETA] Recalculate the current navigation route */
|
|
1735
|
+
recalculateNavigation?: Maybe<Scalars["Void"]>;
|
|
1736
|
+
/** [BETA] End a navigation session */
|
|
1737
|
+
finishNavigation?: Maybe<Scalars["Void"]>;
|
|
1727
1738
|
/**
|
|
1728
1739
|
* Add a new review.
|
|
1729
1740
|
* 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
|
|
@@ -1740,6 +1751,18 @@ export declare type Mutation = {
|
|
|
1740
1751
|
/** Create a new route from the route input and its ID */
|
|
1741
1752
|
newRoute?: Maybe<Scalars["ID"]>;
|
|
1742
1753
|
};
|
|
1754
|
+
export declare type MutationstartNavigationArgs = {
|
|
1755
|
+
input: NavigationStartInput;
|
|
1756
|
+
};
|
|
1757
|
+
export declare type MutationupdateNavigationArgs = {
|
|
1758
|
+
input: NavigationUpdateInput;
|
|
1759
|
+
};
|
|
1760
|
+
export declare type MutationrecalculateNavigationArgs = {
|
|
1761
|
+
input: NavigationReacalculateInput;
|
|
1762
|
+
};
|
|
1763
|
+
export declare type MutationfinishNavigationArgs = {
|
|
1764
|
+
input: NavigationFinishInput;
|
|
1765
|
+
};
|
|
1743
1766
|
export declare type MutationaddReviewArgs = {
|
|
1744
1767
|
review: ReviewAdd;
|
|
1745
1768
|
};
|
|
@@ -1749,6 +1772,126 @@ export declare type MutationdeleteUserReviewArgs = {
|
|
|
1749
1772
|
export declare type MutationnewRouteArgs = {
|
|
1750
1773
|
input?: Maybe<RequestInput>;
|
|
1751
1774
|
};
|
|
1775
|
+
/** The navigation session data */
|
|
1776
|
+
export declare type Navigation = {
|
|
1777
|
+
/** ID of the navigation session */
|
|
1778
|
+
id: Scalars["ID"];
|
|
1779
|
+
/** The current route used for navigation */
|
|
1780
|
+
route_id?: Maybe<Scalars["String"]>;
|
|
1781
|
+
/** The current route alternative used for navigation */
|
|
1782
|
+
route_alternative_id?: Maybe<Scalars["String"]>;
|
|
1783
|
+
/** The state of a navigation session. The status can be driving, charging, finished, or error */
|
|
1784
|
+
state?: Maybe<NavigationState>;
|
|
1785
|
+
/** State of charge at the last known location */
|
|
1786
|
+
state_of_charge?: Maybe<Scalars["Float"]>;
|
|
1787
|
+
/** Last known location */
|
|
1788
|
+
last_known_location?: Maybe<Point>;
|
|
1789
|
+
/** Next charging station */
|
|
1790
|
+
next_station?: Maybe<NavigationStation>;
|
|
1791
|
+
/** A set of alternative charging stations to next station */
|
|
1792
|
+
alternative_stations?: Maybe<Array<Maybe<NavigationStation>>>;
|
|
1793
|
+
/** Navigation instructions */
|
|
1794
|
+
instructions?: Maybe<Scalars["JSON"]>;
|
|
1795
|
+
};
|
|
1796
|
+
/** The navigation session data */
|
|
1797
|
+
export declare type NavigationinstructionsArgs = {
|
|
1798
|
+
instructions_format: InstructionsFormat;
|
|
1799
|
+
language?: Maybe<MappingLanguage>;
|
|
1800
|
+
precision?: Maybe<Scalars["Int"]>;
|
|
1801
|
+
};
|
|
1802
|
+
/** Input for the navigation recalculate */
|
|
1803
|
+
export declare type NavigationFinishInput = {
|
|
1804
|
+
/** ID of the navigation session */
|
|
1805
|
+
id: Scalars["ID"];
|
|
1806
|
+
/** Current coordinates */
|
|
1807
|
+
current_location: PointInput;
|
|
1808
|
+
};
|
|
1809
|
+
/** Input for the navigation recalculate */
|
|
1810
|
+
export declare type NavigationReacalculateInput = {
|
|
1811
|
+
/** ID of the navigation session */
|
|
1812
|
+
id: Scalars["ID"];
|
|
1813
|
+
/** State of charge at origin */
|
|
1814
|
+
state_of_charge?: Maybe<Scalars["Float"]>;
|
|
1815
|
+
/** Origin location of a new route */
|
|
1816
|
+
current_location: PointInput;
|
|
1817
|
+
/** Via points of a new route. If this field is not sent, the original via points will be used */
|
|
1818
|
+
via?: Maybe<Array<Maybe<FeaturePointInput>>>;
|
|
1819
|
+
/** Heading of a vehicle, in degrees */
|
|
1820
|
+
heading?: Maybe<Scalars["Float"]>;
|
|
1821
|
+
};
|
|
1822
|
+
/** Input for the navigation start */
|
|
1823
|
+
export declare type NavigationStartInput = {
|
|
1824
|
+
/** ID of the route of the navigation session */
|
|
1825
|
+
route_id: Scalars["String"];
|
|
1826
|
+
/** ID of the route alternative of the navigation session */
|
|
1827
|
+
route_alternative_id?: Maybe<Scalars["String"]>;
|
|
1828
|
+
/** Current coordinates */
|
|
1829
|
+
current_location: PointInput;
|
|
1830
|
+
};
|
|
1831
|
+
/** State of navigation session */
|
|
1832
|
+
export declare enum NavigationState {
|
|
1833
|
+
/** Vehicle is driving */
|
|
1834
|
+
DRIVING = "Driving",
|
|
1835
|
+
/** Vehicle is charging */
|
|
1836
|
+
CHARGING = "Charging",
|
|
1837
|
+
/** Navigation session is completed (either manually or automatically 48 hours after the last update) */
|
|
1838
|
+
FINISHED = "Finished",
|
|
1839
|
+
/** Failed to update navigation session due to route error or not found */
|
|
1840
|
+
ERROR = "Error"
|
|
1841
|
+
}
|
|
1842
|
+
/** Navigation session station type */
|
|
1843
|
+
export declare type NavigationStation = {
|
|
1844
|
+
/** The ID as string of the charging station */
|
|
1845
|
+
station_id?: Maybe<Scalars["String"]>;
|
|
1846
|
+
/** GPS location of the charging station */
|
|
1847
|
+
station_location?: Maybe<Point>;
|
|
1848
|
+
/** An array with all GPS locations of via points until the next charging station */
|
|
1849
|
+
via?: Maybe<Array<Maybe<Point>>>;
|
|
1850
|
+
/** Estimated state of charge, in kWh, at arrival on the next charging station */
|
|
1851
|
+
estimated_state_of_charge?: Maybe<Scalars["Float"]>;
|
|
1852
|
+
/** Estimated consumption, in kWh, from last the known location until the next charging station */
|
|
1853
|
+
estimated_consumption?: Maybe<Scalars["Float"]>;
|
|
1854
|
+
/** Estimated duration, in seconds, from the last known location until the next charging station */
|
|
1855
|
+
estimated_duration?: Maybe<Scalars["Int"]>;
|
|
1856
|
+
};
|
|
1857
|
+
/** Input for the navigation session update telemetry data */
|
|
1858
|
+
export declare type NavigationTelemetryUpdateInput = {
|
|
1859
|
+
/** State of charge at the last known location */
|
|
1860
|
+
state_of_charge?: Maybe<Scalars["Float"]>;
|
|
1861
|
+
/** Indicates if a vehicle is charging */
|
|
1862
|
+
is_charging?: Maybe<Scalars["Boolean"]>;
|
|
1863
|
+
/** Tire pressure. This information should come from telemetry */
|
|
1864
|
+
tire_pressure?: Maybe<Scalars["Float"]>;
|
|
1865
|
+
};
|
|
1866
|
+
/** Input for the navigation update */
|
|
1867
|
+
export declare type NavigationUpdateInput = {
|
|
1868
|
+
/** ID of the navigation session */
|
|
1869
|
+
id: Scalars["ID"];
|
|
1870
|
+
/** Heading of a vehicle, in degrees */
|
|
1871
|
+
heading?: Maybe<Scalars["Float"]>;
|
|
1872
|
+
/** A list of locations that were collected since the last update */
|
|
1873
|
+
locations_data: Array<NavigationUpdateLocationsInput>;
|
|
1874
|
+
/** Telemetry data input */
|
|
1875
|
+
telemetry?: Maybe<NavigationTelemetryUpdateInput>;
|
|
1876
|
+
};
|
|
1877
|
+
/** Properties of the location */
|
|
1878
|
+
export declare type NavigationUpdateLocationPropertiesInput = {
|
|
1879
|
+
/** Current route leg index corresponding to a location */
|
|
1880
|
+
route_leg: Scalars["Int"];
|
|
1881
|
+
/** Speed at a location */
|
|
1882
|
+
speed: Scalars["Float"];
|
|
1883
|
+
/** UNIX timestamp at location */
|
|
1884
|
+
timestamp: Scalars["Int"];
|
|
1885
|
+
/** Altitude information. This is optional */
|
|
1886
|
+
altitude?: Maybe<Scalars["Int"]>;
|
|
1887
|
+
};
|
|
1888
|
+
/** Input for the navigation update locations */
|
|
1889
|
+
export declare type NavigationUpdateLocationsInput = {
|
|
1890
|
+
/** GPS location */
|
|
1891
|
+
geometry: PointInput;
|
|
1892
|
+
/** Extra information about the location */
|
|
1893
|
+
properties: NavigationUpdateLocationPropertiesInput;
|
|
1894
|
+
};
|
|
1752
1895
|
/** This class defines an additional geo location that is relevant for the Charge Point. The geodetic system to be used is WGS 84. */
|
|
1753
1896
|
export declare type OCPIAdditionalGeoLocation = {
|
|
1754
1897
|
/** Latitude of the point in decimal degree. Example: 50.770774. Decimal separator: "." Regex: -?[0-9]{1,2}\.[0-9]{5,7} */
|
|
@@ -2388,6 +2531,8 @@ export declare type Query = {
|
|
|
2388
2531
|
carPremium?: Maybe<CarPremium>;
|
|
2389
2532
|
/** Get a full list of cars */
|
|
2390
2533
|
carList?: Maybe<Array<Maybe<CarList>>>;
|
|
2534
|
+
/** [BETA] Get a navigation session by ID */
|
|
2535
|
+
navigation?: Maybe<Navigation>;
|
|
2391
2536
|
/** Get a full list of operators */
|
|
2392
2537
|
operatorList?: Maybe<Array<Maybe<Operator>>>;
|
|
2393
2538
|
/** Get information about an operator by its ID */
|
|
@@ -2416,7 +2561,7 @@ export declare type Query = {
|
|
|
2416
2561
|
tariff?: Maybe<OCPITariff>;
|
|
2417
2562
|
/** Get the full list of tariffs */
|
|
2418
2563
|
tariffList?: Maybe<Array<Maybe<OCPITariff>>>;
|
|
2419
|
-
/**
|
|
2564
|
+
/** Deprecated: This query will be removed in favor of navigation query and subscription. Mapping can be retrieved via the instructions field. */
|
|
2420
2565
|
navigationMapping?: Maybe<Scalars["JSON"]>;
|
|
2421
2566
|
};
|
|
2422
2567
|
export declare type QueryamenityListArgs = {
|
|
@@ -2436,6 +2581,9 @@ export declare type QuerycarListArgs = {
|
|
|
2436
2581
|
size?: Maybe<Scalars["Int"]>;
|
|
2437
2582
|
page?: Maybe<Scalars["Int"]>;
|
|
2438
2583
|
};
|
|
2584
|
+
export declare type QuerynavigationArgs = {
|
|
2585
|
+
id: Scalars["ID"];
|
|
2586
|
+
};
|
|
2439
2587
|
export declare type QueryoperatorListArgs = {
|
|
2440
2588
|
query?: Maybe<OperatorListQuery>;
|
|
2441
2589
|
search?: Maybe<Scalars["String"]>;
|
|
@@ -2665,7 +2813,7 @@ export declare type RequestRouteInput = {
|
|
|
2665
2813
|
via?: Maybe<Array<Maybe<FeaturePointInput>>>;
|
|
2666
2814
|
/** Alternative stations along a route within a specified radius in meters (minimum 500, maximum 5000) */
|
|
2667
2815
|
stationsAlongRouteRadius?: Maybe<Scalars["Int"]>;
|
|
2668
|
-
/**
|
|
2816
|
+
/** Deprecated: all routes will have turn-by-turn instructions prepared. Boolean will be ignored */
|
|
2669
2817
|
instructions?: Maybe<Scalars["Boolean"]>;
|
|
2670
2818
|
};
|
|
2671
2819
|
export declare type RequestUser = {
|
|
@@ -2783,6 +2931,8 @@ export declare type Route = {
|
|
|
2783
2931
|
user?: Maybe<RequestUser>;
|
|
2784
2932
|
/** Route request data */
|
|
2785
2933
|
routeRequest?: Maybe<RequestRoute>;
|
|
2934
|
+
/** Application who requested a route */
|
|
2935
|
+
app?: Maybe<RouteApp>;
|
|
2786
2936
|
/** Route status */
|
|
2787
2937
|
status?: Maybe<RouteStatus>;
|
|
2788
2938
|
};
|
|
@@ -2878,6 +3028,10 @@ export declare enum RouteAlternativeType {
|
|
|
2878
3028
|
/** An alternative to the fastest route */
|
|
2879
3029
|
ALTERNATIVE = "alternative"
|
|
2880
3030
|
}
|
|
3031
|
+
export declare type RouteApp = {
|
|
3032
|
+
/** ID of the app who requested a route */
|
|
3033
|
+
id?: Maybe<Scalars["ID"]>;
|
|
3034
|
+
};
|
|
2881
3035
|
export declare type RouteInstruction = {
|
|
2882
3036
|
/** Information about the points on the polyline */
|
|
2883
3037
|
points?: Maybe<RouteInstructionPoints>;
|
|
@@ -3304,6 +3458,8 @@ export declare enum StepType {
|
|
|
3304
3458
|
FERRY = "ferry"
|
|
3305
3459
|
}
|
|
3306
3460
|
export declare type Subscription = {
|
|
3461
|
+
/** [BETA] Subscribe to navigation session system event updates. We strongly recommend using this at all times to not miss any updates */
|
|
3462
|
+
navigationUpdatedById?: Maybe<Navigation>;
|
|
3307
3463
|
/**
|
|
3308
3464
|
* Subscription for a new operator was added in the system event
|
|
3309
3465
|
* @deprecated operatorAdded has been removed, no value will be sent.
|
|
@@ -3357,6 +3513,9 @@ export declare type Subscription = {
|
|
|
3357
3513
|
*/
|
|
3358
3514
|
stationDeletedById?: Maybe<Station>;
|
|
3359
3515
|
};
|
|
3516
|
+
export declare type SubscriptionnavigationUpdatedByIdArgs = {
|
|
3517
|
+
id: Scalars["ID"];
|
|
3518
|
+
};
|
|
3360
3519
|
export declare type SubscriptionoperatorUpdatedByIdArgs = {
|
|
3361
3520
|
id: Scalars["ID"];
|
|
3362
3521
|
};
|