@chargetrip/types 1.25.0 → 1.28.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 +20 -5
- package/dist/node/index.js.map +1 -1
- package/dist/react-native/graphql.js +20 -5
- package/dist/react-native/graphql.js.map +1 -1
- package/dist/react-native/index.js.map +1 -1
- package/dist/ts/graphql.d.ts +90 -32
- package/graphql.schema.json +411 -46
- package/package.json +2 -2
- package/src/graphql.ts +93 -32
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chargetrip/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.28.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
|
|
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
|
@@ -45,6 +45,20 @@ export type Address = {
|
|
|
45
45
|
formattedAddress?: Maybe<Array<Maybe<Scalars["String"]>>>;
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
+
/** Amenities available near a station */
|
|
49
|
+
export enum Amenities {
|
|
50
|
+
PARK = "park",
|
|
51
|
+
RESTAURANT = "restaurant",
|
|
52
|
+
MUSEUM = "museum",
|
|
53
|
+
COFFEE = "coffee",
|
|
54
|
+
HOTEL = "hotel",
|
|
55
|
+
SHOPPING = "shopping",
|
|
56
|
+
BATHROOM = "bathroom",
|
|
57
|
+
SUPERMARKET = "supermarket",
|
|
58
|
+
PLAYGROUND = "playground",
|
|
59
|
+
PHARMACY = "pharmacy"
|
|
60
|
+
}
|
|
61
|
+
|
|
48
62
|
/** The amenity model */
|
|
49
63
|
export type Amenity = {
|
|
50
64
|
/** Unique amenity ID */
|
|
@@ -1848,7 +1862,7 @@ export type MutationupdateNavigationArgs = {
|
|
|
1848
1862
|
};
|
|
1849
1863
|
|
|
1850
1864
|
export type MutationrecalculateNavigationArgs = {
|
|
1851
|
-
input:
|
|
1865
|
+
input: NavigationRecalculateInput;
|
|
1852
1866
|
};
|
|
1853
1867
|
|
|
1854
1868
|
export type MutationfinishNavigationArgs = {
|
|
@@ -1905,7 +1919,7 @@ export type NavigationFinishInput = {
|
|
|
1905
1919
|
};
|
|
1906
1920
|
|
|
1907
1921
|
/** Input for the navigation recalculate */
|
|
1908
|
-
export type
|
|
1922
|
+
export type NavigationRecalculateInput = {
|
|
1909
1923
|
/** ID of the navigation session */
|
|
1910
1924
|
id: Scalars["ID"];
|
|
1911
1925
|
/** State of charge at origin */
|
|
@@ -1931,13 +1945,13 @@ export type NavigationStartInput = {
|
|
|
1931
1945
|
/** State of navigation session */
|
|
1932
1946
|
export enum NavigationState {
|
|
1933
1947
|
/** Vehicle is driving */
|
|
1934
|
-
DRIVING = "
|
|
1948
|
+
DRIVING = "driving",
|
|
1935
1949
|
/** Vehicle is charging */
|
|
1936
|
-
CHARGING = "
|
|
1950
|
+
CHARGING = "charging",
|
|
1937
1951
|
/** Navigation session is completed (either manually or automatically 48 hours after the last update) */
|
|
1938
|
-
FINISHED = "
|
|
1952
|
+
FINISHED = "finished",
|
|
1939
1953
|
/** Failed to update navigation session due to route error or not found */
|
|
1940
|
-
ERROR = "
|
|
1954
|
+
ERROR = "error"
|
|
1941
1955
|
}
|
|
1942
1956
|
|
|
1943
1957
|
/** Navigation session station type */
|
|
@@ -1982,11 +1996,11 @@ export type NavigationUpdateInput = {
|
|
|
1982
1996
|
export type NavigationUpdateLocationPropertiesInput = {
|
|
1983
1997
|
/** Current route leg index corresponding to a location */
|
|
1984
1998
|
route_leg: Scalars["Int"];
|
|
1985
|
-
/** Speed at a location */
|
|
1999
|
+
/** Speed at a location, in km/h */
|
|
1986
2000
|
speed: Scalars["Float"];
|
|
1987
|
-
/** UNIX timestamp at location */
|
|
2001
|
+
/** UNIX timestamp at location, in seconds */
|
|
1988
2002
|
timestamp: Scalars["Int"];
|
|
1989
|
-
/** Altitude information. This is optional */
|
|
2003
|
+
/** Altitude information, in meters. This is optional */
|
|
1990
2004
|
altitude?: Maybe<Scalars["Int"]>;
|
|
1991
2005
|
};
|
|
1992
2006
|
|
|
@@ -2575,6 +2589,8 @@ export type PathSegment = {
|
|
|
2575
2589
|
distance?: Maybe<Scalars["Float"]>;
|
|
2576
2590
|
/** Duration, in seconds, of a route path segment */
|
|
2577
2591
|
duration?: Maybe<Scalars["Float"]>;
|
|
2592
|
+
/** State of charge, in kWh, of a route path segment */
|
|
2593
|
+
stateOfCharge?: Maybe<Scalars["Float"]>;
|
|
2578
2594
|
};
|
|
2579
2595
|
|
|
2580
2596
|
/** A GeoJSON Point */
|
|
@@ -2782,12 +2798,16 @@ export type QuerystationArgs = {
|
|
|
2782
2798
|
|
|
2783
2799
|
export type QuerystationListArgs = {
|
|
2784
2800
|
query?: Maybe<StationListQuery>;
|
|
2801
|
+
filter?: Maybe<StationListFilter>;
|
|
2802
|
+
search?: Maybe<Scalars["String"]>;
|
|
2785
2803
|
size?: Maybe<Scalars["Int"]>;
|
|
2786
2804
|
page?: Maybe<Scalars["Int"]>;
|
|
2787
2805
|
};
|
|
2788
2806
|
|
|
2789
2807
|
export type QuerystationAroundArgs = {
|
|
2790
|
-
query
|
|
2808
|
+
query?: Maybe<StationAroundQuery>;
|
|
2809
|
+
filter?: Maybe<StationAroundFilter>;
|
|
2810
|
+
search?: Maybe<Scalars["String"]>;
|
|
2791
2811
|
size?: Maybe<Scalars["Int"]>;
|
|
2792
2812
|
page?: Maybe<Scalars["Int"]>;
|
|
2793
2813
|
};
|
|
@@ -2834,26 +2854,26 @@ export type RequestEv = {
|
|
|
2834
2854
|
};
|
|
2835
2855
|
|
|
2836
2856
|
export type RequestEvBattery = {
|
|
2837
|
-
/**
|
|
2857
|
+
/** Usable capacity of the battery used to compute the route. If this in not filled in, value as the car batteryUsableKwh */
|
|
2838
2858
|
capacity?: Maybe<RequestEvBatteryValue>;
|
|
2839
|
-
/** Usable capacity of a battery, in kWh. This value is computed from the provided capacity value
|
|
2859
|
+
/** Usable capacity of a battery, in kWh. This value is computed from the provided capacity value */
|
|
2840
2860
|
capacityKwh?: Maybe<Scalars["Float"]>;
|
|
2841
|
-
/** 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
|
|
2861
|
+
/** 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 */
|
|
2842
2862
|
stateOfCharge?: Maybe<RequestEvBatteryValue>;
|
|
2843
|
-
/** Current amount of energy in a battery, in kWh. This value is computed from the provided state of charge
|
|
2863
|
+
/** Current amount of energy in a battery, in kWh. This value is computed from the provided state of charge */
|
|
2844
2864
|
stateOfChargeKwh?: Maybe<Scalars["Float"]>;
|
|
2845
|
-
/** Desired final amount of energy in a battery. If this is not filled in, it will be set to 20% of the car batteryUsableKwh
|
|
2865
|
+
/** Desired final amount of energy in a battery. If this is not filled in, it will be set to 20% of the car batteryUsableKwh */
|
|
2846
2866
|
finalStateOfCharge?: Maybe<RequestEvBatteryValue>;
|
|
2847
|
-
/** Desired final amount of energy in a battery, in kWh. This value is computed from the provided final state of charge
|
|
2867
|
+
/** Desired final amount of energy in a battery, in kWh. This value is computed from the provided final state of charge */
|
|
2848
2868
|
finalStateOfChargeKwh?: Maybe<Scalars["Float"]>;
|
|
2849
2869
|
};
|
|
2850
2870
|
|
|
2851
2871
|
export type RequestEvBatteryInput = {
|
|
2852
|
-
/** Usable capacity of a battery used to compute a route.
|
|
2872
|
+
/** 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 */
|
|
2853
2873
|
capacity?: Maybe<RequestEvBatteryInputValue>;
|
|
2854
|
-
/** 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
|
|
2874
|
+
/** 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 */
|
|
2855
2875
|
stateOfCharge?: Maybe<RequestEvBatteryInputValue>;
|
|
2856
|
-
/** Desired final amount of energy in a battery. If this is not filled in, we assume it is 20% of the car batteryUsableKwh
|
|
2876
|
+
/** Desired final amount of energy in a battery. If this is not filled in, we assume it is 20% of the car batteryUsableKwh */
|
|
2857
2877
|
finalStateOfCharge?: Maybe<RequestEvBatteryInputValue>;
|
|
2858
2878
|
};
|
|
2859
2879
|
|
|
@@ -3136,15 +3156,15 @@ export type RouteAlternative = {
|
|
|
3136
3156
|
type?: Maybe<RouteAlternativeType>;
|
|
3137
3157
|
/** Number of charges along a route */
|
|
3138
3158
|
charges?: Maybe<Scalars["Int"]>;
|
|
3139
|
-
/** Number of available charges along a route
|
|
3159
|
+
/** Number of available charges along a route */
|
|
3140
3160
|
chargesAvailable?: Maybe<Scalars["Int"]>;
|
|
3141
|
-
/** Number of occupied charges along a route
|
|
3161
|
+
/** Number of occupied charges along a route */
|
|
3142
3162
|
chargesOccupied?: Maybe<Scalars["Int"]>;
|
|
3143
|
-
/** Number of unknown charges along a route
|
|
3163
|
+
/** Number of unknown charges along a route */
|
|
3144
3164
|
chargesUnknown?: Maybe<Scalars["Int"]>;
|
|
3145
|
-
/** Number of out of order charges along a route
|
|
3165
|
+
/** Number of out of order charges along a route */
|
|
3146
3166
|
chargesOutOfOrder?: Maybe<Scalars["Int"]>;
|
|
3147
|
-
/** Total distance of a route in meters
|
|
3167
|
+
/** Total distance of a route in meters */
|
|
3148
3168
|
distance?: Maybe<Scalars["Int"]>;
|
|
3149
3169
|
/** Total duration of a route, including charge time, in seconds */
|
|
3150
3170
|
duration?: Maybe<Scalars["Int"]>;
|
|
@@ -3165,9 +3185,9 @@ export type RouteAlternative = {
|
|
|
3165
3185
|
rangeStartPercentage?: Maybe<Scalars["Int"]>;
|
|
3166
3186
|
/** Remaining range, in meters, at the end of a trip */
|
|
3167
3187
|
rangeEnd?: Maybe<Scalars["Int"]>;
|
|
3168
|
-
/** Remaining range, energy in kWh, at the end of a trip
|
|
3188
|
+
/** Remaining range, energy in kWh, at the end of a trip */
|
|
3169
3189
|
rangeEndKwh?: Maybe<Scalars["Float"]>;
|
|
3170
|
-
/** Remaining range, energy in percentage, at the end of a trip
|
|
3190
|
+
/** Remaining range, energy in percentage, at the end of a trip */
|
|
3171
3191
|
rangeEndPercentage?: Maybe<Scalars["Int"]>;
|
|
3172
3192
|
/** Text information about a route direction */
|
|
3173
3193
|
via?: Maybe<Scalars["String"]>;
|
|
@@ -3299,7 +3319,7 @@ export type RouteLeg = {
|
|
|
3299
3319
|
rangeEnd?: Maybe<Scalars["Int"]>;
|
|
3300
3320
|
/** Total energy left in a battery at the end of a leg, in kWh */
|
|
3301
3321
|
rangeEndKwh?: Maybe<Scalars["Float"]>;
|
|
3302
|
-
/** Remaining range, energy in percentage, at the end of a trip
|
|
3322
|
+
/** Remaining range, energy in percentage, at the end of a trip */
|
|
3303
3323
|
rangeEndPercentage?: Maybe<Scalars["Int"]>;
|
|
3304
3324
|
/** Origin point location */
|
|
3305
3325
|
origin?: Maybe<FeaturePoint>;
|
|
@@ -3440,6 +3460,8 @@ export type RoutePath = {
|
|
|
3440
3460
|
distance?: Maybe<Scalars["Float"]>;
|
|
3441
3461
|
/** Duration, in seconds, of a route path segment */
|
|
3442
3462
|
duration?: Maybe<Scalars["Float"]>;
|
|
3463
|
+
/** State of charge, in kWh, of a route path segment */
|
|
3464
|
+
stateOfCharge?: Maybe<Scalars["Float"]>;
|
|
3443
3465
|
};
|
|
3444
3466
|
|
|
3445
3467
|
/** The season of the route */
|
|
@@ -3505,7 +3527,8 @@ export enum RouteTagType {
|
|
|
3505
3527
|
ROAD = "road",
|
|
3506
3528
|
HIGHWAY = "highway",
|
|
3507
3529
|
TOLL = "toll",
|
|
3508
|
-
FERRY = "ferry"
|
|
3530
|
+
FERRY = "ferry",
|
|
3531
|
+
WALKING = "walking"
|
|
3509
3532
|
}
|
|
3510
3533
|
|
|
3511
3534
|
/** Standards(plug type) stats model */
|
|
@@ -3608,18 +3631,54 @@ export type Station = {
|
|
|
3608
3631
|
};
|
|
3609
3632
|
|
|
3610
3633
|
/** Filter which can be applied to retrieve the station around list action */
|
|
3634
|
+
export type StationAroundFilter = {
|
|
3635
|
+
/** The GeoJSON Point of the center of the around me circle */
|
|
3636
|
+
location?: Maybe<PointInput>;
|
|
3637
|
+
/** Distance, in meters, to search around */
|
|
3638
|
+
distance?: Maybe<Scalars["Int"]>;
|
|
3639
|
+
/** Powers in kWh */
|
|
3640
|
+
powers?: Maybe<Array<Maybe<Scalars["Float"]>>>;
|
|
3641
|
+
/** Amenities available near a station */
|
|
3642
|
+
amenities?: Maybe<Array<Maybe<Amenities>>>;
|
|
3643
|
+
/** Station speed */
|
|
3644
|
+
power_groups?: Maybe<Array<Maybe<StationSpeedType>>>;
|
|
3645
|
+
/** Station socket or plug standards */
|
|
3646
|
+
connectors?: Maybe<Array<Maybe<ConnectorType>>>;
|
|
3647
|
+
/** Flag that allows you to return only available stations */
|
|
3648
|
+
available_only?: Maybe<Scalars["Boolean"]>;
|
|
3649
|
+
/** Flag indicating if only stations that are owned by an operator from a clients ranking list are returned */
|
|
3650
|
+
preferred_operator?: Maybe<Scalars["Boolean"]>;
|
|
3651
|
+
};
|
|
3652
|
+
|
|
3653
|
+
/** Deprecated: Replaced by filter & search params */
|
|
3611
3654
|
export type StationAroundQuery = {
|
|
3612
3655
|
/** The GeoJSON Point of the center of the around me circle */
|
|
3613
|
-
location
|
|
3656
|
+
location?: Maybe<PointInput>;
|
|
3614
3657
|
/** Distance, in meters, to search around */
|
|
3615
|
-
distance
|
|
3658
|
+
distance?: Maybe<Scalars["Int"]>;
|
|
3616
3659
|
/** Power in kWh */
|
|
3617
3660
|
power?: Maybe<Array<Maybe<Scalars["Float"]>>>;
|
|
3618
|
-
/**
|
|
3661
|
+
/** Amenities available near a station. Values: restaurant, bathroom, supermarket, playground, coffee, shopping, museum, hotel, park */
|
|
3619
3662
|
amenities?: Maybe<Array<Maybe<Scalars["String"]>>>;
|
|
3620
3663
|
};
|
|
3621
3664
|
|
|
3622
3665
|
/** Filter which can be applied to retrieve the station list action */
|
|
3666
|
+
export type StationListFilter = {
|
|
3667
|
+
/** Powers in kWh */
|
|
3668
|
+
powers?: Maybe<Array<Maybe<Scalars["Float"]>>>;
|
|
3669
|
+
/** Amenities available near a station */
|
|
3670
|
+
amenities?: Maybe<Array<Maybe<Amenities>>>;
|
|
3671
|
+
/** Station speed */
|
|
3672
|
+
power_groups?: Maybe<Array<Maybe<StationSpeedType>>>;
|
|
3673
|
+
/** Station socket or plug standards */
|
|
3674
|
+
connectors?: Maybe<Array<Maybe<ConnectorType>>>;
|
|
3675
|
+
/** Flag that allows you to return only available stations */
|
|
3676
|
+
available_only?: Maybe<Scalars["Boolean"]>;
|
|
3677
|
+
/** Flag indicating if only stations that are owned by an operator from a clients ranking list are returned */
|
|
3678
|
+
preferred_operator?: Maybe<Scalars["Boolean"]>;
|
|
3679
|
+
};
|
|
3680
|
+
|
|
3681
|
+
/** Deprecated: Replaced by filter & search params */
|
|
3623
3682
|
export type StationListQuery = {
|
|
3624
3683
|
/** ID of the station */
|
|
3625
3684
|
id?: Maybe<Scalars["ID"]>;
|
|
@@ -3678,7 +3737,9 @@ export enum StepType {
|
|
|
3678
3737
|
/** This step is a toll road */
|
|
3679
3738
|
TOLL = "toll",
|
|
3680
3739
|
/** This step is a ferry */
|
|
3681
|
-
FERRY = "ferry"
|
|
3740
|
+
FERRY = "ferry",
|
|
3741
|
+
/** This step is reachable by walking */
|
|
3742
|
+
WALKING = "walking"
|
|
3682
3743
|
}
|
|
3683
3744
|
|
|
3684
3745
|
export type Subscription = {
|