@chargetrip/types 1.18.0 → 1.19.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/CHANGELOG.md +7 -0
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.js +1 -0
- package/dist/node/index.js.map +1 -1
- package/dist/react-native/graphql.js +1 -0
- package/dist/react-native/graphql.js.map +1 -1
- package/dist/ts/graphql.d.ts +26 -9
- package/graphql.schema.json +50 -8
- package/package.json +1 -1
- package/src/graphql.ts +26 -9
package/dist/ts/graphql.d.ts
CHANGED
|
@@ -792,6 +792,11 @@ export declare type CarPremiumBody = {
|
|
|
792
792
|
vehicle_platform?: Maybe<Scalars["String"]>;
|
|
793
793
|
/** Indicates if the vehicle platform used for vehicle is a dedicated battery electric vehicle platform */
|
|
794
794
|
vehicle_platform_is_dedicated?: Maybe<Scalars["Boolean"]>;
|
|
795
|
+
/**
|
|
796
|
+
* Indicates whether a car has roof rails as a standard
|
|
797
|
+
* @deprecated In favor of has_roofrails
|
|
798
|
+
*/
|
|
799
|
+
rooftrails?: Maybe<Scalars["Boolean"]>;
|
|
795
800
|
};
|
|
796
801
|
export declare type CarPremiumCharge = {
|
|
797
802
|
/** Location of charge port */
|
|
@@ -1059,6 +1064,11 @@ export declare type CarPremiumPriceValue = {
|
|
|
1059
1064
|
currency?: Maybe<Scalars["String"]>;
|
|
1060
1065
|
/** Indicates if price value is based on estimates */
|
|
1061
1066
|
is_estimated?: Maybe<Scalars["Boolean"]>;
|
|
1067
|
+
/**
|
|
1068
|
+
* Indicates if price value is based on estimates
|
|
1069
|
+
* @deprecated In favor of is_estimated
|
|
1070
|
+
*/
|
|
1071
|
+
estimated?: Maybe<Scalars["Boolean"]>;
|
|
1062
1072
|
};
|
|
1063
1073
|
export declare type CarPremiumPriceValueWithGrant = {
|
|
1064
1074
|
/** Starting price for local market */
|
|
@@ -1069,6 +1079,11 @@ export declare type CarPremiumPriceValueWithGrant = {
|
|
|
1069
1079
|
is_estimated?: Maybe<Scalars["Boolean"]>;
|
|
1070
1080
|
/** Grant is applied to value */
|
|
1071
1081
|
grant_applied?: Maybe<Scalars["Int"]>;
|
|
1082
|
+
/**
|
|
1083
|
+
* Indicates if price value is based on estimates
|
|
1084
|
+
* @deprecated In favor of is_estimated
|
|
1085
|
+
*/
|
|
1086
|
+
estimated?: Maybe<Scalars["Boolean"]>;
|
|
1072
1087
|
};
|
|
1073
1088
|
export declare type CarPremiumRange = {
|
|
1074
1089
|
/** Rated range in WLTP combined cycle (NULL if not WLTP rated) in km */
|
|
@@ -1503,7 +1518,9 @@ export declare enum OCPIConnectorType {
|
|
|
1503
1518
|
/** Tesla connector "Roadster"-type (round, 4 pins) */
|
|
1504
1519
|
TESLA_R = "TESLA_R",
|
|
1505
1520
|
/** Tesla connector "Model-S"-type (oval, 5 pins) */
|
|
1506
|
-
TESLA_S = "TESLA_S"
|
|
1521
|
+
TESLA_S = "TESLA_S",
|
|
1522
|
+
/** All electric vehicles manufactured in China, DC */
|
|
1523
|
+
GB_T = "GB_T"
|
|
1507
1524
|
}
|
|
1508
1525
|
export declare enum OCPIDayOfWeek {
|
|
1509
1526
|
MONDAY = "MONDAY",
|
|
@@ -2080,7 +2097,7 @@ export declare type RequestEvBattery = {
|
|
|
2080
2097
|
finalStateOfChargeKwh?: Maybe<Scalars["Float"]>;
|
|
2081
2098
|
};
|
|
2082
2099
|
export declare type RequestEvBatteryInput = {
|
|
2083
|
-
/** Usable capacity of a battery used to compute a route. If this in not filled in, we assume it is the same value as the car batteryUsableKwh. */
|
|
2100
|
+
/** 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. */
|
|
2084
2101
|
capacity?: Maybe<RequestEvBatteryInputValue>;
|
|
2085
2102
|
/** 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. */
|
|
2086
2103
|
stateOfCharge?: Maybe<RequestEvBatteryInputValue>;
|
|
@@ -2110,13 +2127,13 @@ export declare type RequestEvConsumption = {
|
|
|
2110
2127
|
export declare type RequestEvConsumptionInput = {
|
|
2111
2128
|
/** Consumption, in kWh, of the auxiliaries */
|
|
2112
2129
|
aux?: Maybe<CarConsumptionInput>;
|
|
2113
|
-
/**
|
|
2130
|
+
/** Consumption, in kWh, of the battery management system */
|
|
2114
2131
|
bms?: Maybe<CarConsumptionInput>;
|
|
2115
2132
|
/** Consumption, in kWh, of the car in idle mode */
|
|
2116
2133
|
idle?: Maybe<CarConsumptionInput>;
|
|
2117
2134
|
};
|
|
2118
2135
|
export declare type RequestEvInput = {
|
|
2119
|
-
/**
|
|
2136
|
+
/** Internal ID of a Car */
|
|
2120
2137
|
id: Scalars["ID"];
|
|
2121
2138
|
/** The EV battery specific data */
|
|
2122
2139
|
battery?: Maybe<RequestEvBatteryInput>;
|
|
@@ -2130,7 +2147,7 @@ export declare type RequestEvInput = {
|
|
|
2130
2147
|
climate?: Maybe<Scalars["Boolean"]>;
|
|
2131
2148
|
/** Number of passengers on board */
|
|
2132
2149
|
numberOfPassengers?: Maybe<Scalars["Int"]>;
|
|
2133
|
-
/** Consumption specific to the EV or
|
|
2150
|
+
/** Consumption specific to the EV or inputted by the request */
|
|
2134
2151
|
consumption?: Maybe<RequestEvConsumptionInput>;
|
|
2135
2152
|
/** Deprecated */
|
|
2136
2153
|
auxConsumption?: Maybe<Scalars["Float"]>;
|
|
@@ -2195,11 +2212,11 @@ export declare type RequestRoute = {
|
|
|
2195
2212
|
export declare type RequestRouteInput = {
|
|
2196
2213
|
/** A list of desired amenities near the stations, with a 1 km radius */
|
|
2197
2214
|
amenities?: Maybe<Array<Maybe<Scalars["String"]>>>;
|
|
2198
|
-
/**
|
|
2215
|
+
/** Deprecated: in favor of operators. A list of requested operators */
|
|
2199
2216
|
operatorIds?: Maybe<Array<Maybe<Scalars["String"]>>>;
|
|
2200
|
-
/** Flag which indicates if the operators are required
|
|
2217
|
+
/** Deprecated: in favor of operators. Flag which indicates if the operators are required */
|
|
2201
2218
|
operatorRequired?: Maybe<Scalars["Boolean"]>;
|
|
2202
|
-
/** Flag which indicates if the preferred operators should be loaded
|
|
2219
|
+
/** Deprecated: in favor of operators. Flag which indicates if the preferred operators should be loaded */
|
|
2203
2220
|
operatorPrefer?: Maybe<Scalars["Boolean"]>;
|
|
2204
2221
|
/** Operator preferences for a route */
|
|
2205
2222
|
operators?: Maybe<RouteOperatorsInput>;
|
|
@@ -2647,7 +2664,7 @@ export declare type StandardStats = {
|
|
|
2647
2664
|
/** The total number of stations with the specified plug */
|
|
2648
2665
|
total?: Maybe<Scalars["Int"]>;
|
|
2649
2666
|
};
|
|
2650
|
-
/**
|
|
2667
|
+
/** Station data which extends OCPI Location */
|
|
2651
2668
|
export declare type Station = {
|
|
2652
2669
|
/** Review of a station */
|
|
2653
2670
|
review?: Maybe<ReviewStats>;
|
package/graphql.schema.json
CHANGED
|
@@ -3396,6 +3396,18 @@
|
|
|
3396
3396
|
},
|
|
3397
3397
|
"isDeprecated": false,
|
|
3398
3398
|
"deprecationReason": null
|
|
3399
|
+
},
|
|
3400
|
+
{
|
|
3401
|
+
"name": "rooftrails",
|
|
3402
|
+
"description": "Indicates whether a car has roof rails as a standard",
|
|
3403
|
+
"args": [],
|
|
3404
|
+
"type": {
|
|
3405
|
+
"kind": "SCALAR",
|
|
3406
|
+
"name": "Boolean",
|
|
3407
|
+
"ofType": null
|
|
3408
|
+
},
|
|
3409
|
+
"isDeprecated": true,
|
|
3410
|
+
"deprecationReason": "In favor of has_roofrails"
|
|
3399
3411
|
}
|
|
3400
3412
|
],
|
|
3401
3413
|
"inputFields": null,
|
|
@@ -4982,6 +4994,18 @@
|
|
|
4982
4994
|
},
|
|
4983
4995
|
"isDeprecated": false,
|
|
4984
4996
|
"deprecationReason": null
|
|
4997
|
+
},
|
|
4998
|
+
{
|
|
4999
|
+
"name": "estimated",
|
|
5000
|
+
"description": "Indicates if price value is based on estimates",
|
|
5001
|
+
"args": [],
|
|
5002
|
+
"type": {
|
|
5003
|
+
"kind": "SCALAR",
|
|
5004
|
+
"name": "Boolean",
|
|
5005
|
+
"ofType": null
|
|
5006
|
+
},
|
|
5007
|
+
"isDeprecated": true,
|
|
5008
|
+
"deprecationReason": "In favor of is_estimated"
|
|
4985
5009
|
}
|
|
4986
5010
|
],
|
|
4987
5011
|
"inputFields": null,
|
|
@@ -5041,6 +5065,18 @@
|
|
|
5041
5065
|
},
|
|
5042
5066
|
"isDeprecated": false,
|
|
5043
5067
|
"deprecationReason": null
|
|
5068
|
+
},
|
|
5069
|
+
{
|
|
5070
|
+
"name": "estimated",
|
|
5071
|
+
"description": "Indicates if price value is based on estimates",
|
|
5072
|
+
"args": [],
|
|
5073
|
+
"type": {
|
|
5074
|
+
"kind": "SCALAR",
|
|
5075
|
+
"name": "Boolean",
|
|
5076
|
+
"ofType": null
|
|
5077
|
+
},
|
|
5078
|
+
"isDeprecated": true,
|
|
5079
|
+
"deprecationReason": "In favor of is_estimated"
|
|
5044
5080
|
}
|
|
5045
5081
|
],
|
|
5046
5082
|
"inputFields": null,
|
|
@@ -7077,6 +7113,12 @@
|
|
|
7077
7113
|
"description": "Tesla connector \"Model-S\"-type (oval, 5 pins)",
|
|
7078
7114
|
"isDeprecated": false,
|
|
7079
7115
|
"deprecationReason": null
|
|
7116
|
+
},
|
|
7117
|
+
{
|
|
7118
|
+
"name": "GB_T",
|
|
7119
|
+
"description": "All electric vehicles manufactured in China, DC",
|
|
7120
|
+
"isDeprecated": false,
|
|
7121
|
+
"deprecationReason": null
|
|
7080
7122
|
}
|
|
7081
7123
|
],
|
|
7082
7124
|
"possibleTypes": null
|
|
@@ -10082,7 +10124,7 @@
|
|
|
10082
10124
|
"inputFields": [
|
|
10083
10125
|
{
|
|
10084
10126
|
"name": "capacity",
|
|
10085
|
-
"description": "Usable capacity of a battery used to compute a route. If this in not filled in, we assume it is the same value as the car batteryUsableKwh.",
|
|
10127
|
+
"description": "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.",
|
|
10086
10128
|
"type": {
|
|
10087
10129
|
"kind": "INPUT_OBJECT",
|
|
10088
10130
|
"name": "RequestEvBatteryInputValue",
|
|
@@ -10274,7 +10316,7 @@
|
|
|
10274
10316
|
},
|
|
10275
10317
|
{
|
|
10276
10318
|
"name": "bms",
|
|
10277
|
-
"description": "
|
|
10319
|
+
"description": "Consumption, in kWh, of the battery management system",
|
|
10278
10320
|
"type": {
|
|
10279
10321
|
"kind": "INPUT_OBJECT",
|
|
10280
10322
|
"name": "CarConsumptionInput",
|
|
@@ -10309,7 +10351,7 @@
|
|
|
10309
10351
|
"inputFields": [
|
|
10310
10352
|
{
|
|
10311
10353
|
"name": "id",
|
|
10312
|
-
"description": "
|
|
10354
|
+
"description": "Internal ID of a Car",
|
|
10313
10355
|
"type": {
|
|
10314
10356
|
"kind": "NON_NULL",
|
|
10315
10357
|
"name": null,
|
|
@@ -10405,7 +10447,7 @@
|
|
|
10405
10447
|
},
|
|
10406
10448
|
{
|
|
10407
10449
|
"name": "consumption",
|
|
10408
|
-
"description": "Consumption specific to the EV or
|
|
10450
|
+
"description": "Consumption specific to the EV or inputted by the request",
|
|
10409
10451
|
"type": {
|
|
10410
10452
|
"kind": "INPUT_OBJECT",
|
|
10411
10453
|
"name": "RequestEvConsumptionInput",
|
|
@@ -10768,7 +10810,7 @@
|
|
|
10768
10810
|
},
|
|
10769
10811
|
{
|
|
10770
10812
|
"name": "operatorIds",
|
|
10771
|
-
"description": "
|
|
10813
|
+
"description": "Deprecated: in favor of operators. A list of requested operators",
|
|
10772
10814
|
"type": {
|
|
10773
10815
|
"kind": "LIST",
|
|
10774
10816
|
"name": null,
|
|
@@ -10784,7 +10826,7 @@
|
|
|
10784
10826
|
},
|
|
10785
10827
|
{
|
|
10786
10828
|
"name": "operatorRequired",
|
|
10787
|
-
"description": "Flag which indicates if the operators are required
|
|
10829
|
+
"description": "Deprecated: in favor of operators. Flag which indicates if the operators are required",
|
|
10788
10830
|
"type": {
|
|
10789
10831
|
"kind": "SCALAR",
|
|
10790
10832
|
"name": "Boolean",
|
|
@@ -10796,7 +10838,7 @@
|
|
|
10796
10838
|
},
|
|
10797
10839
|
{
|
|
10798
10840
|
"name": "operatorPrefer",
|
|
10799
|
-
"description": "Flag which indicates if the preferred operators should be loaded
|
|
10841
|
+
"description": "Deprecated: in favor of operators. Flag which indicates if the preferred operators should be loaded",
|
|
10800
10842
|
"type": {
|
|
10801
10843
|
"kind": "SCALAR",
|
|
10802
10844
|
"name": "Boolean",
|
|
@@ -13345,7 +13387,7 @@
|
|
|
13345
13387
|
{
|
|
13346
13388
|
"kind": "OBJECT",
|
|
13347
13389
|
"name": "Station",
|
|
13348
|
-
"description": "
|
|
13390
|
+
"description": "Station data which extends OCPI Location",
|
|
13349
13391
|
"fields": [
|
|
13350
13392
|
{
|
|
13351
13393
|
"name": "review",
|
package/package.json
CHANGED
package/src/graphql.ts
CHANGED
|
@@ -825,6 +825,11 @@ export type CarPremiumBody = {
|
|
|
825
825
|
vehicle_platform?: Maybe<Scalars["String"]>;
|
|
826
826
|
/** Indicates if the vehicle platform used for vehicle is a dedicated battery electric vehicle platform */
|
|
827
827
|
vehicle_platform_is_dedicated?: Maybe<Scalars["Boolean"]>;
|
|
828
|
+
/**
|
|
829
|
+
* Indicates whether a car has roof rails as a standard
|
|
830
|
+
* @deprecated In favor of has_roofrails
|
|
831
|
+
*/
|
|
832
|
+
rooftrails?: Maybe<Scalars["Boolean"]>;
|
|
828
833
|
};
|
|
829
834
|
|
|
830
835
|
export type CarPremiumCharge = {
|
|
@@ -1114,6 +1119,11 @@ export type CarPremiumPriceValue = {
|
|
|
1114
1119
|
currency?: Maybe<Scalars["String"]>;
|
|
1115
1120
|
/** Indicates if price value is based on estimates */
|
|
1116
1121
|
is_estimated?: Maybe<Scalars["Boolean"]>;
|
|
1122
|
+
/**
|
|
1123
|
+
* Indicates if price value is based on estimates
|
|
1124
|
+
* @deprecated In favor of is_estimated
|
|
1125
|
+
*/
|
|
1126
|
+
estimated?: Maybe<Scalars["Boolean"]>;
|
|
1117
1127
|
};
|
|
1118
1128
|
|
|
1119
1129
|
export type CarPremiumPriceValueWithGrant = {
|
|
@@ -1125,6 +1135,11 @@ export type CarPremiumPriceValueWithGrant = {
|
|
|
1125
1135
|
is_estimated?: Maybe<Scalars["Boolean"]>;
|
|
1126
1136
|
/** Grant is applied to value */
|
|
1127
1137
|
grant_applied?: Maybe<Scalars["Int"]>;
|
|
1138
|
+
/**
|
|
1139
|
+
* Indicates if price value is based on estimates
|
|
1140
|
+
* @deprecated In favor of is_estimated
|
|
1141
|
+
*/
|
|
1142
|
+
estimated?: Maybe<Scalars["Boolean"]>;
|
|
1128
1143
|
};
|
|
1129
1144
|
|
|
1130
1145
|
export type CarPremiumRange = {
|
|
@@ -1592,7 +1607,9 @@ export enum OCPIConnectorType {
|
|
|
1592
1607
|
/** Tesla connector "Roadster"-type (round, 4 pins) */
|
|
1593
1608
|
TESLA_R = "TESLA_R",
|
|
1594
1609
|
/** Tesla connector "Model-S"-type (oval, 5 pins) */
|
|
1595
|
-
TESLA_S = "TESLA_S"
|
|
1610
|
+
TESLA_S = "TESLA_S",
|
|
1611
|
+
/** All electric vehicles manufactured in China, DC */
|
|
1612
|
+
GB_T = "GB_T"
|
|
1596
1613
|
}
|
|
1597
1614
|
|
|
1598
1615
|
export enum OCPIDayOfWeek {
|
|
@@ -2225,7 +2242,7 @@ export type RequestEvBattery = {
|
|
|
2225
2242
|
};
|
|
2226
2243
|
|
|
2227
2244
|
export type RequestEvBatteryInput = {
|
|
2228
|
-
/** Usable capacity of a battery used to compute a route. If this in not filled in, we assume it is the same value as the car batteryUsableKwh. */
|
|
2245
|
+
/** 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. */
|
|
2229
2246
|
capacity?: Maybe<RequestEvBatteryInputValue>;
|
|
2230
2247
|
/** 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. */
|
|
2231
2248
|
stateOfCharge?: Maybe<RequestEvBatteryInputValue>;
|
|
@@ -2259,14 +2276,14 @@ export type RequestEvConsumption = {
|
|
|
2259
2276
|
export type RequestEvConsumptionInput = {
|
|
2260
2277
|
/** Consumption, in kWh, of the auxiliaries */
|
|
2261
2278
|
aux?: Maybe<CarConsumptionInput>;
|
|
2262
|
-
/**
|
|
2279
|
+
/** Consumption, in kWh, of the battery management system */
|
|
2263
2280
|
bms?: Maybe<CarConsumptionInput>;
|
|
2264
2281
|
/** Consumption, in kWh, of the car in idle mode */
|
|
2265
2282
|
idle?: Maybe<CarConsumptionInput>;
|
|
2266
2283
|
};
|
|
2267
2284
|
|
|
2268
2285
|
export type RequestEvInput = {
|
|
2269
|
-
/**
|
|
2286
|
+
/** Internal ID of a Car */
|
|
2270
2287
|
id: Scalars["ID"];
|
|
2271
2288
|
/** The EV battery specific data */
|
|
2272
2289
|
battery?: Maybe<RequestEvBatteryInput>;
|
|
@@ -2280,7 +2297,7 @@ export type RequestEvInput = {
|
|
|
2280
2297
|
climate?: Maybe<Scalars["Boolean"]>;
|
|
2281
2298
|
/** Number of passengers on board */
|
|
2282
2299
|
numberOfPassengers?: Maybe<Scalars["Int"]>;
|
|
2283
|
-
/** Consumption specific to the EV or
|
|
2300
|
+
/** Consumption specific to the EV or inputted by the request */
|
|
2284
2301
|
consumption?: Maybe<RequestEvConsumptionInput>;
|
|
2285
2302
|
/** Deprecated */
|
|
2286
2303
|
auxConsumption?: Maybe<Scalars["Float"]>;
|
|
@@ -2350,11 +2367,11 @@ export type RequestRoute = {
|
|
|
2350
2367
|
export type RequestRouteInput = {
|
|
2351
2368
|
/** A list of desired amenities near the stations, with a 1 km radius */
|
|
2352
2369
|
amenities?: Maybe<Array<Maybe<Scalars["String"]>>>;
|
|
2353
|
-
/**
|
|
2370
|
+
/** Deprecated: in favor of operators. A list of requested operators */
|
|
2354
2371
|
operatorIds?: Maybe<Array<Maybe<Scalars["String"]>>>;
|
|
2355
|
-
/** Flag which indicates if the operators are required
|
|
2372
|
+
/** Deprecated: in favor of operators. Flag which indicates if the operators are required */
|
|
2356
2373
|
operatorRequired?: Maybe<Scalars["Boolean"]>;
|
|
2357
|
-
/** Flag which indicates if the preferred operators should be loaded
|
|
2374
|
+
/** Deprecated: in favor of operators. Flag which indicates if the preferred operators should be loaded */
|
|
2358
2375
|
operatorPrefer?: Maybe<Scalars["Boolean"]>;
|
|
2359
2376
|
/** Operator preferences for a route */
|
|
2360
2377
|
operators?: Maybe<RouteOperatorsInput>;
|
|
@@ -2830,7 +2847,7 @@ export type StandardStats = {
|
|
|
2830
2847
|
total?: Maybe<Scalars["Int"]>;
|
|
2831
2848
|
};
|
|
2832
2849
|
|
|
2833
|
-
/**
|
|
2850
|
+
/** Station data which extends OCPI Location */
|
|
2834
2851
|
export type Station = {
|
|
2835
2852
|
/** Review of a station */
|
|
2836
2853
|
review?: Maybe<ReviewStats>;
|