@chargetrip/types 1.37.1 → 1.37.3

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.
@@ -2171,6 +2171,12 @@ export declare type IsolineInput = {
2171
2171
  polygon_count?: Maybe<Scalars["Int"]>;
2172
2172
  /** Vehicle should be able to return to the origin point from any point */
2173
2173
  round_trip?: Maybe<Scalars["Boolean"]>;
2174
+ /** Number of occupants */
2175
+ occupants?: Maybe<Scalars["Int"]>;
2176
+ /** Cumulated weight of the occupants */
2177
+ total_occupant_weight?: Maybe<TotalOccupantWeightInput>;
2178
+ /** Cargo weight, in kg */
2179
+ total_cargo_weight?: Maybe<TotalCargoWeightInput>;
2174
2180
  /** Climate is on */
2175
2181
  climate_control?: Maybe<Scalars["Boolean"]>;
2176
2182
  /** Season to be taken into account when generating the isoline */
@@ -2179,6 +2185,10 @@ export declare type IsolineInput = {
2179
2185
  quality?: Maybe<IsolineQuality>;
2180
2186
  /** Include ferry connections. Single and multiple ferry connections increase the calculation time and the number of polygons. */
2181
2187
  ferry_connections?: Maybe<IsolineFerryConnectionsType>;
2188
+ /** Battery state of charge. When omitted the default value is 100 percent. */
2189
+ state_of_charge?: Maybe<StateOfChargeInput>;
2190
+ /** Minimum final battery state of charge. When omitted the default value is 0 percent. */
2191
+ final_state_of_charge?: Maybe<StateOfChargeInput>;
2182
2192
  };
2183
2193
  /** Granularity of the isoline */
2184
2194
  export declare enum IsolineQuality {
@@ -3194,11 +3204,11 @@ export declare type PricingListProduct = {
3194
3204
  export declare type Query = {
3195
3205
  /** Get a full list of amenities around a station */
3196
3206
  amenityList?: Maybe<Array<Maybe<Amenity>>>;
3197
- /** Get information about a car by its ID */
3207
+ /** Get information about a car by its ID. */
3198
3208
  car?: Maybe<Car>;
3199
3209
  /** Car premium data provides even more information about your car: tire pressure, prices, drivetrain data, and more. Please contact us for access to premium data. */
3200
3210
  carPremium?: Maybe<CarPremium>;
3201
- /** Get a full list of cars */
3211
+ /** Get a full list of cars. */
3202
3212
  carList?: Maybe<Array<Maybe<CarList>>>;
3203
3213
  /** [BETA] Get a connected vehicles by id */
3204
3214
  connectedVehicle?: Maybe<ConnectedVehicle>;
@@ -3706,9 +3716,9 @@ export declare type RouteAlternative = {
3706
3716
  rangeStartKwh?: Maybe<Scalars["Float"]>;
3707
3717
  /** Total energy in a battery at the beginning of a trip, in percentage */
3708
3718
  rangeStartPercentage?: Maybe<Scalars["Int"]>;
3709
- /** Remaining range, in meters, at the end of a trip */
3719
+ /** Remaining range, in meters, at the end of a trip. In the case of a non BEV where the range end is negative, the value will be 0. */
3710
3720
  rangeEnd?: Maybe<Scalars["Int"]>;
3711
- /** Remaining range, energy in kWh, at the end of a trip */
3721
+ /** Remaining range, energy in kWh, at the end of a trip. In the case of a non BEV where the range end is negative, the value will be 0. */
3712
3722
  rangeEndKwh?: Maybe<Scalars["Float"]>;
3713
3723
  /** Remaining range, energy in percentage, at the end of a trip */
3714
3724
  rangeEndPercentage?: Maybe<Scalars["Int"]>;
@@ -3837,9 +3847,9 @@ export declare type RouteLeg = {
3837
3847
  rangeStartKwh?: Maybe<Scalars["Float"]>;
3838
3848
  /** Total energy in a battery at the beginning of a trip, in percentage */
3839
3849
  rangeStartPercentage?: Maybe<Scalars["Int"]>;
3840
- /** Range, in meters, available at the end of a leg */
3850
+ /** Range, in meters, available at the end of a leg. In the case of a non BEV where the range end is negative, the value will be 0. */
3841
3851
  rangeEnd?: Maybe<Scalars["Int"]>;
3842
- /** Total energy left in a battery at the end of a leg, in kWh */
3852
+ /** Total energy left in a battery at the end of a leg, in kWh. In the case of a non BEV where the range end is negative, the value will be 0. */
3843
3853
  rangeEndKwh?: Maybe<Scalars["Float"]>;
3844
3854
  /** Remaining range, energy in percentage, at the end of a trip */
3845
3855
  rangeEndPercentage?: Maybe<Scalars["Int"]>;
@@ -3889,6 +3899,22 @@ export declare type RouteLeg = {
3889
3899
  export declare type RouteLegpolylineArgs = {
3890
3900
  decimals?: Maybe<Scalars["Int"]>;
3891
3901
  };
3902
+ export declare type RouteLegMeta = {
3903
+ /** Warnings that certain conditions specified in a route mutation are not respected. */
3904
+ warnings: Array<RouteMetaWarning>;
3905
+ };
3906
+ export declare type RouteMeta = {
3907
+ /** Warnings that certain conditions specified in a route mutation are not respected. */
3908
+ warnings: Array<RouteMetaWarning>;
3909
+ };
3910
+ export declare type RouteMetaWarning = {
3911
+ /** Static identifier, can be used for production purposes such as i18n. */
3912
+ code: Scalars["String"];
3913
+ /** Human readable explanation of the warning, for development purposes. */
3914
+ message: Scalars["String"];
3915
+ /** Optional JSON object containing data explaining the warning, for development purposes. */
3916
+ data?: Maybe<Scalars["JSON"]>;
3917
+ };
3892
3918
  /** Prioritized operators for a route calculation */
3893
3919
  export declare type RouteOperators = {
3894
3920
  /** Flag indicating if the operators ranking should be preferred or required */
@@ -10837,6 +10837,42 @@
10837
10837
  "isDeprecated": false,
10838
10838
  "deprecationReason": null
10839
10839
  },
10840
+ {
10841
+ "name": "occupants",
10842
+ "description": "Number of occupants",
10843
+ "type": {
10844
+ "kind": "SCALAR",
10845
+ "name": "Int",
10846
+ "ofType": null
10847
+ },
10848
+ "defaultValue": "1",
10849
+ "isDeprecated": false,
10850
+ "deprecationReason": null
10851
+ },
10852
+ {
10853
+ "name": "total_occupant_weight",
10854
+ "description": "Cumulated weight of the occupants",
10855
+ "type": {
10856
+ "kind": "INPUT_OBJECT",
10857
+ "name": "TotalOccupantWeightInput",
10858
+ "ofType": null
10859
+ },
10860
+ "defaultValue": null,
10861
+ "isDeprecated": false,
10862
+ "deprecationReason": null
10863
+ },
10864
+ {
10865
+ "name": "total_cargo_weight",
10866
+ "description": "Cargo weight, in kg",
10867
+ "type": {
10868
+ "kind": "INPUT_OBJECT",
10869
+ "name": "TotalCargoWeightInput",
10870
+ "ofType": null
10871
+ },
10872
+ "defaultValue": null,
10873
+ "isDeprecated": false,
10874
+ "deprecationReason": null
10875
+ },
10840
10876
  {
10841
10877
  "name": "climate_control",
10842
10878
  "description": "Climate is on",
@@ -10884,6 +10920,30 @@
10884
10920
  "defaultValue": "none",
10885
10921
  "isDeprecated": false,
10886
10922
  "deprecationReason": null
10923
+ },
10924
+ {
10925
+ "name": "state_of_charge",
10926
+ "description": "Battery state of charge. When omitted the default value is 100 percent.",
10927
+ "type": {
10928
+ "kind": "INPUT_OBJECT",
10929
+ "name": "StateOfChargeInput",
10930
+ "ofType": null
10931
+ },
10932
+ "defaultValue": null,
10933
+ "isDeprecated": false,
10934
+ "deprecationReason": null
10935
+ },
10936
+ {
10937
+ "name": "final_state_of_charge",
10938
+ "description": "Minimum final battery state of charge. When omitted the default value is 0 percent.",
10939
+ "type": {
10940
+ "kind": "INPUT_OBJECT",
10941
+ "name": "StateOfChargeInput",
10942
+ "ofType": null
10943
+ },
10944
+ "defaultValue": null,
10945
+ "isDeprecated": false,
10946
+ "deprecationReason": null
10887
10947
  }
10888
10948
  ],
10889
10949
  "interfaces": null,
@@ -15974,11 +16034,11 @@
15974
16034
  },
15975
16035
  {
15976
16036
  "name": "car",
15977
- "description": "Get information about a car by its ID",
16037
+ "description": "Get information about a car by its ID.",
15978
16038
  "args": [
15979
16039
  {
15980
16040
  "name": "id",
15981
- "description": "Car ID",
16041
+ "description": "Car ID.",
15982
16042
  "type": {
15983
16043
  "kind": "SCALAR",
15984
16044
  "name": "ID",
@@ -16036,11 +16096,11 @@
16036
16096
  },
16037
16097
  {
16038
16098
  "name": "carList",
16039
- "description": "Get a full list of cars",
16099
+ "description": "Get a full list of cars.",
16040
16100
  "args": [
16041
16101
  {
16042
16102
  "name": "query",
16043
- "description": "Deprecated: Not used anymore",
16103
+ "description": "Deprecated: Not used anymore.",
16044
16104
  "type": {
16045
16105
  "kind": "INPUT_OBJECT",
16046
16106
  "name": "CarListQuery",
@@ -16052,7 +16112,7 @@
16052
16112
  },
16053
16113
  {
16054
16114
  "name": "search",
16055
- "description": "Search for cars by make, model, version and chargetrip version",
16115
+ "description": "Search for cars by make, model, version and chargetrip version.",
16056
16116
  "type": {
16057
16117
  "kind": "SCALAR",
16058
16118
  "name": "String",
@@ -16064,7 +16124,7 @@
16064
16124
  },
16065
16125
  {
16066
16126
  "name": "filter",
16067
- "description": "Filter car result",
16127
+ "description": "Filter car result.",
16068
16128
  "type": {
16069
16129
  "kind": "INPUT_OBJECT",
16070
16130
  "name": "CarListFilter",
@@ -16076,25 +16136,25 @@
16076
16136
  },
16077
16137
  {
16078
16138
  "name": "size",
16079
- "description": "Number of elements (count) to return, default: 10",
16139
+ "description": "Number of elements (count) to return.",
16080
16140
  "type": {
16081
16141
  "kind": "SCALAR",
16082
16142
  "name": "Int",
16083
16143
  "ofType": null
16084
16144
  },
16085
- "defaultValue": null,
16145
+ "defaultValue": "10",
16086
16146
  "isDeprecated": false,
16087
16147
  "deprecationReason": null
16088
16148
  },
16089
16149
  {
16090
16150
  "name": "page",
16091
- "description": "Page number to return, default: 0",
16151
+ "description": "Page number to return.",
16092
16152
  "type": {
16093
16153
  "kind": "SCALAR",
16094
16154
  "name": "Int",
16095
16155
  "ofType": null
16096
16156
  },
16097
- "defaultValue": null,
16157
+ "defaultValue": "0",
16098
16158
  "isDeprecated": false,
16099
16159
  "deprecationReason": null
16100
16160
  }
@@ -19073,7 +19133,7 @@
19073
19133
  },
19074
19134
  {
19075
19135
  "name": "rangeEnd",
19076
- "description": "Remaining range, in meters, at the end of a trip",
19136
+ "description": "Remaining range, in meters, at the end of a trip. In the case of a non BEV where the range end is negative, the value will be 0.",
19077
19137
  "args": [],
19078
19138
  "type": {
19079
19139
  "kind": "SCALAR",
@@ -19085,7 +19145,7 @@
19085
19145
  },
19086
19146
  {
19087
19147
  "name": "rangeEndKwh",
19088
- "description": "Remaining range, energy in kWh, at the end of a trip",
19148
+ "description": "Remaining range, energy in kWh, at the end of a trip. In the case of a non BEV where the range end is negative, the value will be 0.",
19089
19149
  "args": [],
19090
19150
  "type": {
19091
19151
  "kind": "SCALAR",
@@ -19836,7 +19896,7 @@
19836
19896
  },
19837
19897
  {
19838
19898
  "name": "rangeEnd",
19839
- "description": "Range, in meters, available at the end of a leg",
19899
+ "description": "Range, in meters, available at the end of a leg. In the case of a non BEV where the range end is negative, the value will be 0.",
19840
19900
  "args": [],
19841
19901
  "type": {
19842
19902
  "kind": "SCALAR",
@@ -19848,7 +19908,7 @@
19848
19908
  },
19849
19909
  {
19850
19910
  "name": "rangeEndKwh",
19851
- "description": "Total energy left in a battery at the end of a leg, in kWh",
19911
+ "description": "Total energy left in a battery at the end of a leg, in kWh. In the case of a non BEV where the range end is negative, the value will be 0.",
19852
19912
  "args": [],
19853
19913
  "type": {
19854
19914
  "kind": "SCALAR",
@@ -20149,6 +20209,131 @@
20149
20209
  "enumValues": null,
20150
20210
  "possibleTypes": null
20151
20211
  },
20212
+ {
20213
+ "kind": "OBJECT",
20214
+ "name": "RouteLegMeta",
20215
+ "description": null,
20216
+ "fields": [
20217
+ {
20218
+ "name": "warnings",
20219
+ "description": "Warnings that certain conditions specified in a route mutation are not respected.",
20220
+ "args": [],
20221
+ "type": {
20222
+ "kind": "NON_NULL",
20223
+ "name": null,
20224
+ "ofType": {
20225
+ "kind": "LIST",
20226
+ "name": null,
20227
+ "ofType": {
20228
+ "kind": "NON_NULL",
20229
+ "name": null,
20230
+ "ofType": {
20231
+ "kind": "OBJECT",
20232
+ "name": "RouteMetaWarning",
20233
+ "ofType": null
20234
+ }
20235
+ }
20236
+ }
20237
+ },
20238
+ "isDeprecated": false,
20239
+ "deprecationReason": null
20240
+ }
20241
+ ],
20242
+ "inputFields": null,
20243
+ "interfaces": [],
20244
+ "enumValues": null,
20245
+ "possibleTypes": null
20246
+ },
20247
+ {
20248
+ "kind": "OBJECT",
20249
+ "name": "RouteMeta",
20250
+ "description": null,
20251
+ "fields": [
20252
+ {
20253
+ "name": "warnings",
20254
+ "description": "Warnings that certain conditions specified in a route mutation are not respected.",
20255
+ "args": [],
20256
+ "type": {
20257
+ "kind": "NON_NULL",
20258
+ "name": null,
20259
+ "ofType": {
20260
+ "kind": "LIST",
20261
+ "name": null,
20262
+ "ofType": {
20263
+ "kind": "NON_NULL",
20264
+ "name": null,
20265
+ "ofType": {
20266
+ "kind": "OBJECT",
20267
+ "name": "RouteMetaWarning",
20268
+ "ofType": null
20269
+ }
20270
+ }
20271
+ }
20272
+ },
20273
+ "isDeprecated": false,
20274
+ "deprecationReason": null
20275
+ }
20276
+ ],
20277
+ "inputFields": null,
20278
+ "interfaces": [],
20279
+ "enumValues": null,
20280
+ "possibleTypes": null
20281
+ },
20282
+ {
20283
+ "kind": "OBJECT",
20284
+ "name": "RouteMetaWarning",
20285
+ "description": null,
20286
+ "fields": [
20287
+ {
20288
+ "name": "code",
20289
+ "description": "Static identifier, can be used for production purposes such as i18n.",
20290
+ "args": [],
20291
+ "type": {
20292
+ "kind": "NON_NULL",
20293
+ "name": null,
20294
+ "ofType": {
20295
+ "kind": "SCALAR",
20296
+ "name": "String",
20297
+ "ofType": null
20298
+ }
20299
+ },
20300
+ "isDeprecated": false,
20301
+ "deprecationReason": null
20302
+ },
20303
+ {
20304
+ "name": "message",
20305
+ "description": "Human readable explanation of the warning, for development purposes.",
20306
+ "args": [],
20307
+ "type": {
20308
+ "kind": "NON_NULL",
20309
+ "name": null,
20310
+ "ofType": {
20311
+ "kind": "SCALAR",
20312
+ "name": "String",
20313
+ "ofType": null
20314
+ }
20315
+ },
20316
+ "isDeprecated": false,
20317
+ "deprecationReason": null
20318
+ },
20319
+ {
20320
+ "name": "data",
20321
+ "description": "Optional JSON object containing data explaining the warning, for development purposes.",
20322
+ "args": [],
20323
+ "type": {
20324
+ "kind": "SCALAR",
20325
+ "name": "JSON",
20326
+ "ofType": null
20327
+ },
20328
+ "isDeprecated": false,
20329
+ "deprecationReason": null
20330
+ }
20331
+ ],
20332
+ "inputFields": null,
20333
+ "interfaces": [],
20334
+ "enumValues": null,
20335
+ "possibleTypes": null
20336
+ },
20152
20337
  {
20153
20338
  "kind": "OBJECT",
20154
20339
  "name": "RouteOperators",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chargetrip/types",
3
- "version": "1.37.1",
3
+ "version": "1.37.3",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "chargetrip",
package/src/graphql.ts CHANGED
@@ -2307,6 +2307,12 @@ export type IsolineInput = {
2307
2307
  polygon_count?: Maybe<Scalars["Int"]>;
2308
2308
  /** Vehicle should be able to return to the origin point from any point */
2309
2309
  round_trip?: Maybe<Scalars["Boolean"]>;
2310
+ /** Number of occupants */
2311
+ occupants?: Maybe<Scalars["Int"]>;
2312
+ /** Cumulated weight of the occupants */
2313
+ total_occupant_weight?: Maybe<TotalOccupantWeightInput>;
2314
+ /** Cargo weight, in kg */
2315
+ total_cargo_weight?: Maybe<TotalCargoWeightInput>;
2310
2316
  /** Climate is on */
2311
2317
  climate_control?: Maybe<Scalars["Boolean"]>;
2312
2318
  /** Season to be taken into account when generating the isoline */
@@ -2315,6 +2321,10 @@ export type IsolineInput = {
2315
2321
  quality?: Maybe<IsolineQuality>;
2316
2322
  /** Include ferry connections. Single and multiple ferry connections increase the calculation time and the number of polygons. */
2317
2323
  ferry_connections?: Maybe<IsolineFerryConnectionsType>;
2324
+ /** Battery state of charge. When omitted the default value is 100 percent. */
2325
+ state_of_charge?: Maybe<StateOfChargeInput>;
2326
+ /** Minimum final battery state of charge. When omitted the default value is 0 percent. */
2327
+ final_state_of_charge?: Maybe<StateOfChargeInput>;
2318
2328
  };
2319
2329
 
2320
2330
  /** Granularity of the isoline */
@@ -3429,11 +3439,11 @@ export type PricingListProduct = {
3429
3439
  export type Query = {
3430
3440
  /** Get a full list of amenities around a station */
3431
3441
  amenityList?: Maybe<Array<Maybe<Amenity>>>;
3432
- /** Get information about a car by its ID */
3442
+ /** Get information about a car by its ID. */
3433
3443
  car?: Maybe<Car>;
3434
3444
  /** Car premium data provides even more information about your car: tire pressure, prices, drivetrain data, and more. Please contact us for access to premium data. */
3435
3445
  carPremium?: Maybe<CarPremium>;
3436
- /** Get a full list of cars */
3446
+ /** Get a full list of cars. */
3437
3447
  carList?: Maybe<Array<Maybe<CarList>>>;
3438
3448
  /** [BETA] Get a connected vehicles by id */
3439
3449
  connectedVehicle?: Maybe<ConnectedVehicle>;
@@ -3989,9 +3999,9 @@ export type RouteAlternative = {
3989
3999
  rangeStartKwh?: Maybe<Scalars["Float"]>;
3990
4000
  /** Total energy in a battery at the beginning of a trip, in percentage */
3991
4001
  rangeStartPercentage?: Maybe<Scalars["Int"]>;
3992
- /** Remaining range, in meters, at the end of a trip */
4002
+ /** Remaining range, in meters, at the end of a trip. In the case of a non BEV where the range end is negative, the value will be 0. */
3993
4003
  rangeEnd?: Maybe<Scalars["Int"]>;
3994
- /** Remaining range, energy in kWh, at the end of a trip */
4004
+ /** Remaining range, energy in kWh, at the end of a trip. In the case of a non BEV where the range end is negative, the value will be 0. */
3995
4005
  rangeEndKwh?: Maybe<Scalars["Float"]>;
3996
4006
  /** Remaining range, energy in percentage, at the end of a trip */
3997
4007
  rangeEndPercentage?: Maybe<Scalars["Int"]>;
@@ -4129,9 +4139,9 @@ export type RouteLeg = {
4129
4139
  rangeStartKwh?: Maybe<Scalars["Float"]>;
4130
4140
  /** Total energy in a battery at the beginning of a trip, in percentage */
4131
4141
  rangeStartPercentage?: Maybe<Scalars["Int"]>;
4132
- /** Range, in meters, available at the end of a leg */
4142
+ /** Range, in meters, available at the end of a leg. In the case of a non BEV where the range end is negative, the value will be 0. */
4133
4143
  rangeEnd?: Maybe<Scalars["Int"]>;
4134
- /** Total energy left in a battery at the end of a leg, in kWh */
4144
+ /** Total energy left in a battery at the end of a leg, in kWh. In the case of a non BEV where the range end is negative, the value will be 0. */
4135
4145
  rangeEndKwh?: Maybe<Scalars["Float"]>;
4136
4146
  /** Remaining range, energy in percentage, at the end of a trip */
4137
4147
  rangeEndPercentage?: Maybe<Scalars["Int"]>;
@@ -4183,6 +4193,25 @@ export type RouteLegpolylineArgs = {
4183
4193
  decimals?: Maybe<Scalars["Int"]>;
4184
4194
  };
4185
4195
 
4196
+ export type RouteLegMeta = {
4197
+ /** Warnings that certain conditions specified in a route mutation are not respected. */
4198
+ warnings: Array<RouteMetaWarning>;
4199
+ };
4200
+
4201
+ export type RouteMeta = {
4202
+ /** Warnings that certain conditions specified in a route mutation are not respected. */
4203
+ warnings: Array<RouteMetaWarning>;
4204
+ };
4205
+
4206
+ export type RouteMetaWarning = {
4207
+ /** Static identifier, can be used for production purposes such as i18n. */
4208
+ code: Scalars["String"];
4209
+ /** Human readable explanation of the warning, for development purposes. */
4210
+ message: Scalars["String"];
4211
+ /** Optional JSON object containing data explaining the warning, for development purposes. */
4212
+ data?: Maybe<Scalars["JSON"]>;
4213
+ };
4214
+
4186
4215
  /** Prioritized operators for a route calculation */
4187
4216
  export type RouteOperators = {
4188
4217
  /** Flag indicating if the operators ranking should be preferred or required */