@chargetrip/types 1.65.0 → 1.66.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 +2 -1
- package/dist/node/index.js.map +1 -1
- package/dist/react-native/graphql.js +2 -1
- package/dist/react-native/graphql.js.map +1 -1
- package/dist/ts/graphql.d.ts +28 -10
- package/graphql.schema.json +152 -36
- package/package.json +1 -1
- package/src/graphql.ts +30 -10
package/dist/ts/graphql.d.ts
CHANGED
|
@@ -98,6 +98,15 @@ export declare enum AdhocAuthorisationMethod {
|
|
|
98
98
|
QR_CODE = "QR_CODE",
|
|
99
99
|
SMS = "SMS"
|
|
100
100
|
}
|
|
101
|
+
/** Input fields to continue the navigation session to the next leg. */
|
|
102
|
+
export declare type AdvanceNavigationLegInput = {
|
|
103
|
+
/** The unique identifier of the active navigation session. */
|
|
104
|
+
id: Scalars["ID"];
|
|
105
|
+
/** State of charge (SOC) of the vehicle at the current location. If the current leg ends at a charging stop and this value is omitted, the navigation will assume the vehicle charges to its estimated optimal SOC. If the current leg ends at a non-charging via point and this value is omitted, the last known vehicle SOC is retained. */
|
|
106
|
+
state_of_charge?: Maybe<StateOfChargeInput>;
|
|
107
|
+
/** Geographic coordinates of the vehicle's current location. */
|
|
108
|
+
current_location: PointInput;
|
|
109
|
+
};
|
|
101
110
|
export declare type AirPressure = {
|
|
102
111
|
/** Value of the atmospheric pressure. */
|
|
103
112
|
value: Scalars["Float"];
|
|
@@ -2160,8 +2169,10 @@ export declare type Mutation = {
|
|
|
2160
2169
|
updateNavigation?: Maybe<Scalars["Boolean"]>;
|
|
2161
2170
|
/** [BETA] Recalculate the current navigation route */
|
|
2162
2171
|
recalculateNavigation?: Maybe<Scalars["Boolean"]>;
|
|
2163
|
-
/** [BETA] End a navigation session */
|
|
2172
|
+
/** [BETA] End a navigation session. */
|
|
2164
2173
|
finishNavigation?: Maybe<Scalars["Boolean"]>;
|
|
2174
|
+
/** [BETA] Advances the active navigation session to the next route leg. */
|
|
2175
|
+
advanceNavigationLeg?: Maybe<Scalars["Boolean"]>;
|
|
2165
2176
|
/**
|
|
2166
2177
|
* Add a new review.
|
|
2167
2178
|
* 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
|
|
@@ -2212,6 +2223,9 @@ export declare type MutationrecalculateNavigationArgs = {
|
|
|
2212
2223
|
export declare type MutationfinishNavigationArgs = {
|
|
2213
2224
|
input: NavigationFinishInput;
|
|
2214
2225
|
};
|
|
2226
|
+
export declare type MutationadvanceNavigationLegArgs = {
|
|
2227
|
+
input: AdvanceNavigationLegInput;
|
|
2228
|
+
};
|
|
2215
2229
|
export declare type MutationaddReviewArgs = {
|
|
2216
2230
|
review: ReviewAdd;
|
|
2217
2231
|
};
|
|
@@ -2235,7 +2249,7 @@ export declare type Navigation = {
|
|
|
2235
2249
|
overview: NavigationOverview;
|
|
2236
2250
|
/** The status of the navigation session vehicle. The status can be driving, charging or parked. */
|
|
2237
2251
|
vehicle_status: NavigationVehicleStatus;
|
|
2238
|
-
/** The status of a navigation session. The status can be active
|
|
2252
|
+
/** The status of a navigation session. The status can be active or finished. */
|
|
2239
2253
|
status: NavigationStatus;
|
|
2240
2254
|
/** Navigation meta information. */
|
|
2241
2255
|
meta?: Maybe<NavigationMeta>;
|
|
@@ -2274,7 +2288,9 @@ export declare enum NavigationChangeType {
|
|
|
2274
2288
|
/** The route has been modified or recalculated. */
|
|
2275
2289
|
ROUTE_UPDATED = "route_updated",
|
|
2276
2290
|
/** Next station availability has changed. */
|
|
2277
|
-
NEXT_STATION_AVAILABILITY_UPDATED = "next_station_availability_updated"
|
|
2291
|
+
NEXT_STATION_AVAILABILITY_UPDATED = "next_station_availability_updated",
|
|
2292
|
+
/** Explicit recalculation/reroute failed. The previous route geometry was kept. */
|
|
2293
|
+
ROUTE_UPDATE_FAILED = "route_update_failed"
|
|
2278
2294
|
}
|
|
2279
2295
|
/** Input for the navigation finish. */
|
|
2280
2296
|
export declare type NavigationFinishInput = {
|
|
@@ -2335,6 +2351,8 @@ export declare type NavigationOverview = {
|
|
|
2335
2351
|
state_of_charge: Scalars["Float"];
|
|
2336
2352
|
/** Last known location. */
|
|
2337
2353
|
last_known_location: Point;
|
|
2354
|
+
/** Index of the current active route leg. */
|
|
2355
|
+
current_leg: Scalars["Int"];
|
|
2338
2356
|
/** Next stop details. Can be a charging or a location stop. */
|
|
2339
2357
|
next_stop: NavigationStop;
|
|
2340
2358
|
/** Continuously updated route legs. */
|
|
@@ -2472,8 +2490,10 @@ export declare type NavigationRouteVehicle = {
|
|
|
2472
2490
|
};
|
|
2473
2491
|
/** Input for the navigation start. */
|
|
2474
2492
|
export declare type NavigationStartInput = {
|
|
2475
|
-
/** ID of the route
|
|
2493
|
+
/** ID of the route request. */
|
|
2476
2494
|
route_id: Scalars["ID"];
|
|
2495
|
+
/** ID of the route. */
|
|
2496
|
+
route_details_id: Scalars["ID"];
|
|
2477
2497
|
/** Current coordinates. */
|
|
2478
2498
|
current_location: PointInput;
|
|
2479
2499
|
};
|
|
@@ -2498,9 +2518,7 @@ export declare enum NavigationStatus {
|
|
|
2498
2518
|
/** Navigation session is live and currently tracking. */
|
|
2499
2519
|
ACTIVE = "active",
|
|
2500
2520
|
/** Navigation session is completed (either manually or automatically 48 hours after the last update). */
|
|
2501
|
-
FINISHED = "finished"
|
|
2502
|
-
/** Failed to update navigation session due to route error or not found. */
|
|
2503
|
-
ERROR = "error"
|
|
2521
|
+
FINISHED = "finished"
|
|
2504
2522
|
}
|
|
2505
2523
|
/** Next stop details. Can be a charging or a location stop. */
|
|
2506
2524
|
export declare type NavigationStop = {
|
|
@@ -2525,12 +2543,14 @@ export declare type NavigationSubscription = {
|
|
|
2525
2543
|
id: Scalars["ID"];
|
|
2526
2544
|
/** The status of the navigation session vehicle. The status can be driving, charging or parked. */
|
|
2527
2545
|
vehicle_status: NavigationVehicleStatus;
|
|
2528
|
-
/** The status of the navigation session. The status can be active
|
|
2546
|
+
/** The status of the navigation session. The status can be active or finished. */
|
|
2529
2547
|
status: NavigationStatus;
|
|
2530
2548
|
/** Navigation meta information. */
|
|
2531
2549
|
meta?: Maybe<NavigationMeta>;
|
|
2532
2550
|
/** Information about the latest completed change. */
|
|
2533
2551
|
last_change: NavigationChange;
|
|
2552
|
+
/** Index of the current active route leg. */
|
|
2553
|
+
current_leg: Scalars["Int"];
|
|
2534
2554
|
};
|
|
2535
2555
|
/** Input for the navigation update. */
|
|
2536
2556
|
export declare type NavigationUpdateInput = {
|
|
@@ -2543,8 +2563,6 @@ export declare type NavigationUpdateInput = {
|
|
|
2543
2563
|
export declare type NavigationUpdateLocationsInput = {
|
|
2544
2564
|
/** Location coordinates [longitude, latitude]. */
|
|
2545
2565
|
coordinates: Array<Scalars["Float"]>;
|
|
2546
|
-
/** Current route leg index corresponding to a location. */
|
|
2547
|
-
route_leg: Scalars["Int"];
|
|
2548
2566
|
/** UNIX timestamp at location, in seconds. */
|
|
2549
2567
|
timestamp: Scalars["Int"];
|
|
2550
2568
|
/** Telemetry data input. */
|
package/graphql.schema.json
CHANGED
|
@@ -318,6 +318,71 @@
|
|
|
318
318
|
],
|
|
319
319
|
"possibleTypes": null
|
|
320
320
|
},
|
|
321
|
+
{
|
|
322
|
+
"kind": "INPUT_OBJECT",
|
|
323
|
+
"name": "AdvanceNavigationLegInput",
|
|
324
|
+
"description": "Input fields to continue the navigation session to the next leg.",
|
|
325
|
+
"fields": null,
|
|
326
|
+
"inputFields": [
|
|
327
|
+
{
|
|
328
|
+
"name": "id",
|
|
329
|
+
"description": "The unique identifier of the active navigation session.",
|
|
330
|
+
"type": {
|
|
331
|
+
"kind": "NON_NULL",
|
|
332
|
+
"name": null,
|
|
333
|
+
"ofType": {
|
|
334
|
+
"kind": "SCALAR",
|
|
335
|
+
"name": "ID",
|
|
336
|
+
"ofType": null
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"defaultValue": null,
|
|
340
|
+
"isDeprecated": false,
|
|
341
|
+
"deprecationReason": null
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"name": "state_of_charge",
|
|
345
|
+
"description": "State of charge (SOC) of the vehicle at the current location. If the current leg ends at a charging stop and this value is omitted, the navigation will assume the vehicle charges to its estimated optimal SOC. If the current leg ends at a non-charging via point and this value is omitted, the last known vehicle SOC is retained.",
|
|
346
|
+
"type": {
|
|
347
|
+
"kind": "INPUT_OBJECT",
|
|
348
|
+
"name": "StateOfChargeInput",
|
|
349
|
+
"ofType": null
|
|
350
|
+
},
|
|
351
|
+
"defaultValue": null,
|
|
352
|
+
"isDeprecated": false,
|
|
353
|
+
"deprecationReason": null
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"name": "current_location",
|
|
357
|
+
"description": "Geographic coordinates of the vehicle's current location.",
|
|
358
|
+
"type": {
|
|
359
|
+
"kind": "NON_NULL",
|
|
360
|
+
"name": null,
|
|
361
|
+
"ofType": {
|
|
362
|
+
"kind": "INPUT_OBJECT",
|
|
363
|
+
"name": "PointInput",
|
|
364
|
+
"ofType": null
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
"defaultValue": null,
|
|
368
|
+
"isDeprecated": false,
|
|
369
|
+
"deprecationReason": null
|
|
370
|
+
}
|
|
371
|
+
],
|
|
372
|
+
"interfaces": null,
|
|
373
|
+
"enumValues": null,
|
|
374
|
+
"possibleTypes": null
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"kind": "SCALAR",
|
|
378
|
+
"name": "ID",
|
|
379
|
+
"description": "The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `\"4\"`) or integer (such as `4`) input value will be accepted as an ID.",
|
|
380
|
+
"fields": null,
|
|
381
|
+
"inputFields": null,
|
|
382
|
+
"interfaces": null,
|
|
383
|
+
"enumValues": null,
|
|
384
|
+
"possibleTypes": null
|
|
385
|
+
},
|
|
321
386
|
{
|
|
322
387
|
"kind": "OBJECT",
|
|
323
388
|
"name": "AirPressure",
|
|
@@ -896,16 +961,6 @@
|
|
|
896
961
|
"enumValues": null,
|
|
897
962
|
"possibleTypes": null
|
|
898
963
|
},
|
|
899
|
-
{
|
|
900
|
-
"kind": "SCALAR",
|
|
901
|
-
"name": "ID",
|
|
902
|
-
"description": "The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `\"4\"`) or integer (such as `4`) input value will be accepted as an ID.",
|
|
903
|
-
"fields": null,
|
|
904
|
-
"inputFields": null,
|
|
905
|
-
"interfaces": null,
|
|
906
|
-
"enumValues": null,
|
|
907
|
-
"possibleTypes": null
|
|
908
|
-
},
|
|
909
964
|
{
|
|
910
965
|
"kind": "SCALAR",
|
|
911
966
|
"name": "Int",
|
|
@@ -11765,7 +11820,7 @@
|
|
|
11765
11820
|
},
|
|
11766
11821
|
{
|
|
11767
11822
|
"name": "finishNavigation",
|
|
11768
|
-
"description": "[BETA] End a navigation session",
|
|
11823
|
+
"description": "[BETA] End a navigation session.",
|
|
11769
11824
|
"args": [
|
|
11770
11825
|
{
|
|
11771
11826
|
"name": "input",
|
|
@@ -11792,6 +11847,35 @@
|
|
|
11792
11847
|
"isDeprecated": false,
|
|
11793
11848
|
"deprecationReason": null
|
|
11794
11849
|
},
|
|
11850
|
+
{
|
|
11851
|
+
"name": "advanceNavigationLeg",
|
|
11852
|
+
"description": "[BETA] Advances the active navigation session to the next route leg.",
|
|
11853
|
+
"args": [
|
|
11854
|
+
{
|
|
11855
|
+
"name": "input",
|
|
11856
|
+
"description": "Continue input",
|
|
11857
|
+
"type": {
|
|
11858
|
+
"kind": "NON_NULL",
|
|
11859
|
+
"name": null,
|
|
11860
|
+
"ofType": {
|
|
11861
|
+
"kind": "INPUT_OBJECT",
|
|
11862
|
+
"name": "AdvanceNavigationLegInput",
|
|
11863
|
+
"ofType": null
|
|
11864
|
+
}
|
|
11865
|
+
},
|
|
11866
|
+
"defaultValue": null,
|
|
11867
|
+
"isDeprecated": false,
|
|
11868
|
+
"deprecationReason": null
|
|
11869
|
+
}
|
|
11870
|
+
],
|
|
11871
|
+
"type": {
|
|
11872
|
+
"kind": "SCALAR",
|
|
11873
|
+
"name": "Boolean",
|
|
11874
|
+
"ofType": null
|
|
11875
|
+
},
|
|
11876
|
+
"isDeprecated": false,
|
|
11877
|
+
"deprecationReason": null
|
|
11878
|
+
},
|
|
11795
11879
|
{
|
|
11796
11880
|
"name": "addReview",
|
|
11797
11881
|
"description": "Add a new review.\nIf the `x-token` header is send for a valid user, the review will belong to it, otherwise will be added for an anonymouse user",
|
|
@@ -12010,7 +12094,7 @@
|
|
|
12010
12094
|
},
|
|
12011
12095
|
{
|
|
12012
12096
|
"name": "status",
|
|
12013
|
-
"description": "The status of a navigation session. The status can be active
|
|
12097
|
+
"description": "The status of a navigation session. The status can be active or finished.",
|
|
12014
12098
|
"args": [],
|
|
12015
12099
|
"type": {
|
|
12016
12100
|
"kind": "NON_NULL",
|
|
@@ -12232,6 +12316,12 @@
|
|
|
12232
12316
|
"description": "Next station availability has changed.",
|
|
12233
12317
|
"isDeprecated": false,
|
|
12234
12318
|
"deprecationReason": null
|
|
12319
|
+
},
|
|
12320
|
+
{
|
|
12321
|
+
"name": "route_update_failed",
|
|
12322
|
+
"description": "Explicit recalculation/reroute failed. The previous route geometry was kept. ",
|
|
12323
|
+
"isDeprecated": false,
|
|
12324
|
+
"deprecationReason": null
|
|
12235
12325
|
}
|
|
12236
12326
|
],
|
|
12237
12327
|
"possibleTypes": null
|
|
@@ -12647,6 +12737,22 @@
|
|
|
12647
12737
|
"isDeprecated": false,
|
|
12648
12738
|
"deprecationReason": null
|
|
12649
12739
|
},
|
|
12740
|
+
{
|
|
12741
|
+
"name": "current_leg",
|
|
12742
|
+
"description": "Index of the current active route leg.",
|
|
12743
|
+
"args": [],
|
|
12744
|
+
"type": {
|
|
12745
|
+
"kind": "NON_NULL",
|
|
12746
|
+
"name": null,
|
|
12747
|
+
"ofType": {
|
|
12748
|
+
"kind": "SCALAR",
|
|
12749
|
+
"name": "Int",
|
|
12750
|
+
"ofType": null
|
|
12751
|
+
}
|
|
12752
|
+
},
|
|
12753
|
+
"isDeprecated": false,
|
|
12754
|
+
"deprecationReason": null
|
|
12755
|
+
},
|
|
12650
12756
|
{
|
|
12651
12757
|
"name": "next_stop",
|
|
12652
12758
|
"description": "Next stop details. Can be a charging or a location stop.",
|
|
@@ -13489,7 +13595,23 @@
|
|
|
13489
13595
|
"inputFields": [
|
|
13490
13596
|
{
|
|
13491
13597
|
"name": "route_id",
|
|
13492
|
-
"description": "ID of the route
|
|
13598
|
+
"description": "ID of the route request.",
|
|
13599
|
+
"type": {
|
|
13600
|
+
"kind": "NON_NULL",
|
|
13601
|
+
"name": null,
|
|
13602
|
+
"ofType": {
|
|
13603
|
+
"kind": "SCALAR",
|
|
13604
|
+
"name": "ID",
|
|
13605
|
+
"ofType": null
|
|
13606
|
+
}
|
|
13607
|
+
},
|
|
13608
|
+
"defaultValue": null,
|
|
13609
|
+
"isDeprecated": false,
|
|
13610
|
+
"deprecationReason": null
|
|
13611
|
+
},
|
|
13612
|
+
{
|
|
13613
|
+
"name": "route_details_id",
|
|
13614
|
+
"description": "ID of the route.",
|
|
13493
13615
|
"type": {
|
|
13494
13616
|
"kind": "NON_NULL",
|
|
13495
13617
|
"name": null,
|
|
@@ -13633,12 +13755,6 @@
|
|
|
13633
13755
|
"description": "Navigation session is completed (either manually or automatically 48 hours after the last update).",
|
|
13634
13756
|
"isDeprecated": false,
|
|
13635
13757
|
"deprecationReason": null
|
|
13636
|
-
},
|
|
13637
|
-
{
|
|
13638
|
-
"name": "error",
|
|
13639
|
-
"description": "Failed to update navigation session due to route error or not found.",
|
|
13640
|
-
"isDeprecated": false,
|
|
13641
|
-
"deprecationReason": null
|
|
13642
13758
|
}
|
|
13643
13759
|
],
|
|
13644
13760
|
"possibleTypes": null
|
|
@@ -13786,7 +13902,7 @@
|
|
|
13786
13902
|
},
|
|
13787
13903
|
{
|
|
13788
13904
|
"name": "status",
|
|
13789
|
-
"description": "The status of the navigation session. The status can be active
|
|
13905
|
+
"description": "The status of the navigation session. The status can be active or finished.",
|
|
13790
13906
|
"args": [],
|
|
13791
13907
|
"type": {
|
|
13792
13908
|
"kind": "NON_NULL",
|
|
@@ -13827,6 +13943,22 @@
|
|
|
13827
13943
|
},
|
|
13828
13944
|
"isDeprecated": false,
|
|
13829
13945
|
"deprecationReason": null
|
|
13946
|
+
},
|
|
13947
|
+
{
|
|
13948
|
+
"name": "current_leg",
|
|
13949
|
+
"description": "Index of the current active route leg.",
|
|
13950
|
+
"args": [],
|
|
13951
|
+
"type": {
|
|
13952
|
+
"kind": "NON_NULL",
|
|
13953
|
+
"name": null,
|
|
13954
|
+
"ofType": {
|
|
13955
|
+
"kind": "SCALAR",
|
|
13956
|
+
"name": "Int",
|
|
13957
|
+
"ofType": null
|
|
13958
|
+
}
|
|
13959
|
+
},
|
|
13960
|
+
"isDeprecated": false,
|
|
13961
|
+
"deprecationReason": null
|
|
13830
13962
|
}
|
|
13831
13963
|
],
|
|
13832
13964
|
"inputFields": null,
|
|
@@ -13915,22 +14047,6 @@
|
|
|
13915
14047
|
"isDeprecated": false,
|
|
13916
14048
|
"deprecationReason": null
|
|
13917
14049
|
},
|
|
13918
|
-
{
|
|
13919
|
-
"name": "route_leg",
|
|
13920
|
-
"description": "Current route leg index corresponding to a location.",
|
|
13921
|
-
"type": {
|
|
13922
|
-
"kind": "NON_NULL",
|
|
13923
|
-
"name": null,
|
|
13924
|
-
"ofType": {
|
|
13925
|
-
"kind": "SCALAR",
|
|
13926
|
-
"name": "Int",
|
|
13927
|
-
"ofType": null
|
|
13928
|
-
}
|
|
13929
|
-
},
|
|
13930
|
-
"defaultValue": null,
|
|
13931
|
-
"isDeprecated": false,
|
|
13932
|
-
"deprecationReason": null
|
|
13933
|
-
},
|
|
13934
14050
|
{
|
|
13935
14051
|
"name": "timestamp",
|
|
13936
14052
|
"description": "UNIX timestamp at location, in seconds.",
|
package/package.json
CHANGED
package/src/graphql.ts
CHANGED
|
@@ -97,6 +97,16 @@ export enum AdhocAuthorisationMethod {
|
|
|
97
97
|
SMS = "SMS"
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
+
/** Input fields to continue the navigation session to the next leg. */
|
|
101
|
+
export type AdvanceNavigationLegInput = {
|
|
102
|
+
/** The unique identifier of the active navigation session. */
|
|
103
|
+
id: Scalars["ID"];
|
|
104
|
+
/** State of charge (SOC) of the vehicle at the current location. If the current leg ends at a charging stop and this value is omitted, the navigation will assume the vehicle charges to its estimated optimal SOC. If the current leg ends at a non-charging via point and this value is omitted, the last known vehicle SOC is retained. */
|
|
105
|
+
state_of_charge?: Maybe<StateOfChargeInput>;
|
|
106
|
+
/** Geographic coordinates of the vehicle's current location. */
|
|
107
|
+
current_location: PointInput;
|
|
108
|
+
};
|
|
109
|
+
|
|
100
110
|
export type AirPressure = {
|
|
101
111
|
/** Value of the atmospheric pressure. */
|
|
102
112
|
value: Scalars["Float"];
|
|
@@ -2307,8 +2317,10 @@ export type Mutation = {
|
|
|
2307
2317
|
updateNavigation?: Maybe<Scalars["Boolean"]>;
|
|
2308
2318
|
/** [BETA] Recalculate the current navigation route */
|
|
2309
2319
|
recalculateNavigation?: Maybe<Scalars["Boolean"]>;
|
|
2310
|
-
/** [BETA] End a navigation session */
|
|
2320
|
+
/** [BETA] End a navigation session. */
|
|
2311
2321
|
finishNavigation?: Maybe<Scalars["Boolean"]>;
|
|
2322
|
+
/** [BETA] Advances the active navigation session to the next route leg. */
|
|
2323
|
+
advanceNavigationLeg?: Maybe<Scalars["Boolean"]>;
|
|
2312
2324
|
/**
|
|
2313
2325
|
* Add a new review.
|
|
2314
2326
|
* 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
|
|
@@ -2369,6 +2381,10 @@ export type MutationfinishNavigationArgs = {
|
|
|
2369
2381
|
input: NavigationFinishInput;
|
|
2370
2382
|
};
|
|
2371
2383
|
|
|
2384
|
+
export type MutationadvanceNavigationLegArgs = {
|
|
2385
|
+
input: AdvanceNavigationLegInput;
|
|
2386
|
+
};
|
|
2387
|
+
|
|
2372
2388
|
export type MutationaddReviewArgs = {
|
|
2373
2389
|
review: ReviewAdd;
|
|
2374
2390
|
};
|
|
@@ -2397,7 +2413,7 @@ export type Navigation = {
|
|
|
2397
2413
|
overview: NavigationOverview;
|
|
2398
2414
|
/** The status of the navigation session vehicle. The status can be driving, charging or parked. */
|
|
2399
2415
|
vehicle_status: NavigationVehicleStatus;
|
|
2400
|
-
/** The status of a navigation session. The status can be active
|
|
2416
|
+
/** The status of a navigation session. The status can be active or finished. */
|
|
2401
2417
|
status: NavigationStatus;
|
|
2402
2418
|
/** Navigation meta information. */
|
|
2403
2419
|
meta?: Maybe<NavigationMeta>;
|
|
@@ -2440,7 +2456,9 @@ export enum NavigationChangeType {
|
|
|
2440
2456
|
/** The route has been modified or recalculated. */
|
|
2441
2457
|
ROUTE_UPDATED = "route_updated",
|
|
2442
2458
|
/** Next station availability has changed. */
|
|
2443
|
-
NEXT_STATION_AVAILABILITY_UPDATED = "next_station_availability_updated"
|
|
2459
|
+
NEXT_STATION_AVAILABILITY_UPDATED = "next_station_availability_updated",
|
|
2460
|
+
/** Explicit recalculation/reroute failed. The previous route geometry was kept. */
|
|
2461
|
+
ROUTE_UPDATE_FAILED = "route_update_failed"
|
|
2444
2462
|
}
|
|
2445
2463
|
|
|
2446
2464
|
/** Input for the navigation finish. */
|
|
@@ -2507,6 +2525,8 @@ export type NavigationOverview = {
|
|
|
2507
2525
|
state_of_charge: Scalars["Float"];
|
|
2508
2526
|
/** Last known location. */
|
|
2509
2527
|
last_known_location: Point;
|
|
2528
|
+
/** Index of the current active route leg. */
|
|
2529
|
+
current_leg: Scalars["Int"];
|
|
2510
2530
|
/** Next stop details. Can be a charging or a location stop. */
|
|
2511
2531
|
next_stop: NavigationStop;
|
|
2512
2532
|
/** Continuously updated route legs. */
|
|
@@ -2660,8 +2680,10 @@ export type NavigationRouteVehicle = {
|
|
|
2660
2680
|
|
|
2661
2681
|
/** Input for the navigation start. */
|
|
2662
2682
|
export type NavigationStartInput = {
|
|
2663
|
-
/** ID of the route
|
|
2683
|
+
/** ID of the route request. */
|
|
2664
2684
|
route_id: Scalars["ID"];
|
|
2685
|
+
/** ID of the route. */
|
|
2686
|
+
route_details_id: Scalars["ID"];
|
|
2665
2687
|
/** Current coordinates. */
|
|
2666
2688
|
current_location: PointInput;
|
|
2667
2689
|
};
|
|
@@ -2689,9 +2711,7 @@ export enum NavigationStatus {
|
|
|
2689
2711
|
/** Navigation session is live and currently tracking. */
|
|
2690
2712
|
ACTIVE = "active",
|
|
2691
2713
|
/** Navigation session is completed (either manually or automatically 48 hours after the last update). */
|
|
2692
|
-
FINISHED = "finished"
|
|
2693
|
-
/** Failed to update navigation session due to route error or not found. */
|
|
2694
|
-
ERROR = "error"
|
|
2714
|
+
FINISHED = "finished"
|
|
2695
2715
|
}
|
|
2696
2716
|
|
|
2697
2717
|
/** Next stop details. Can be a charging or a location stop. */
|
|
@@ -2719,12 +2739,14 @@ export type NavigationSubscription = {
|
|
|
2719
2739
|
id: Scalars["ID"];
|
|
2720
2740
|
/** The status of the navigation session vehicle. The status can be driving, charging or parked. */
|
|
2721
2741
|
vehicle_status: NavigationVehicleStatus;
|
|
2722
|
-
/** The status of the navigation session. The status can be active
|
|
2742
|
+
/** The status of the navigation session. The status can be active or finished. */
|
|
2723
2743
|
status: NavigationStatus;
|
|
2724
2744
|
/** Navigation meta information. */
|
|
2725
2745
|
meta?: Maybe<NavigationMeta>;
|
|
2726
2746
|
/** Information about the latest completed change. */
|
|
2727
2747
|
last_change: NavigationChange;
|
|
2748
|
+
/** Index of the current active route leg. */
|
|
2749
|
+
current_leg: Scalars["Int"];
|
|
2728
2750
|
};
|
|
2729
2751
|
|
|
2730
2752
|
/** Input for the navigation update. */
|
|
@@ -2739,8 +2761,6 @@ export type NavigationUpdateInput = {
|
|
|
2739
2761
|
export type NavigationUpdateLocationsInput = {
|
|
2740
2762
|
/** Location coordinates [longitude, latitude]. */
|
|
2741
2763
|
coordinates: Array<Scalars["Float"]>;
|
|
2742
|
-
/** Current route leg index corresponding to a location. */
|
|
2743
|
-
route_leg: Scalars["Int"];
|
|
2744
2764
|
/** UNIX timestamp at location, in seconds. */
|
|
2745
2765
|
timestamp: Scalars["Int"];
|
|
2746
2766
|
/** Telemetry data input. */
|