@chargetrip/types 1.37.3 → 1.38.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chargetrip/types",
3
- "version": "1.37.3",
3
+ "version": "1.38.0",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "chargetrip",
@@ -67,7 +67,7 @@
67
67
  "build:babel": "babel src --out-dir dist/react-native --extensions .ts,.tsx --source-maps --ignore \"**/__tests__/**\",\"**/*.d.ts\"",
68
68
  "build:rollup": "rollup -c",
69
69
  "build:ts": " tsc -p ./tsconfig.release.json --outDir dist/ts --emitDeclarationOnly",
70
- "build": "yarn clean && yarn build:babel && yarn build:rollup && yarn build:ts",
70
+ "build": "yarn clean && yarn generate:types && yarn build:babel && yarn build:rollup && yarn build:ts",
71
71
  "watch:babel": "yarn build:babel --watch",
72
72
  "watch:rollup": "yarn build:rollup -w",
73
73
  "watch:ts": "yarn build:ts --watch",
package/src/graphql.ts CHANGED
@@ -1481,10 +1481,10 @@ export type ChargerStatuses = {
1481
1481
  * Vehicles that do not have a full electric drivetrain type ( all except Battery Electric Vehicles / BEV) therefore return relatively small ranges
1482
1482
  */
1483
1483
  export type ChargetripRange = {
1484
- /** Worst conditions are based on -10°C and use of heating */
1485
- worst?: Maybe<Scalars["Float"]>;
1486
- /** Best conditions are based on 23°C and no use of A/C */
1487
- best?: Maybe<Scalars["Float"]>;
1484
+ /** Range in kilometers. Worst conditions are based on -10°C and use of heating */
1485
+ worst?: Maybe<Scalars["Int"]>;
1486
+ /** Range in kilometers. Best conditions are based on 23°C and no use of A/C */
1487
+ best?: Maybe<Scalars["Int"]>;
1488
1488
  };
1489
1489
 
1490
1490
  /**
@@ -2172,29 +2172,29 @@ export type EvseCustomProperties = {
2172
2172
  oicp?: Maybe<OICPEvseCustomProperties>;
2173
2173
  };
2174
2174
 
2175
- /** A GeoJSON Feature<LineString> */
2175
+ /** A GeoJSON Feature<LineString>. */
2176
2176
  export type FeatureLineString = {
2177
- /** Feature type */
2177
+ /** Feature type. */
2178
2178
  type: FeatureType;
2179
- /** Geometry of the feature */
2179
+ /** Geometry of the feature. */
2180
2180
  geometry: LineString;
2181
2181
  };
2182
2182
 
2183
- /** A GeoJSON Feature<MultiPolygon> */
2183
+ /** A GeoJSON Feature<MultiPolygon>. */
2184
2184
  export type FeatureMultiPolygon = {
2185
- /** Feature type */
2185
+ /** Feature type. */
2186
2186
  type: FeatureType;
2187
- /** Geometry of the feature */
2187
+ /** Geometry of the feature. */
2188
2188
  geometry: MultiPolygon;
2189
- /** Properties of the MultiPolygon Feature */
2189
+ /** Properties of the MultiPolygon Feature. */
2190
2190
  properties?: Maybe<PolygonProperties>;
2191
2191
  };
2192
2192
 
2193
- /** A GeoJSON Feature<Point> */
2193
+ /** A GeoJSON Feature<Point>. */
2194
2194
  export type FeatureMultiPolygonPoint = {
2195
- /** Feature type */
2195
+ /** Feature type. */
2196
2196
  type: FeatureType;
2197
- /** Geometry of the feature */
2197
+ /** Geometry of the feature. */
2198
2198
  geometry: Point;
2199
2199
  /** Optional object where you can store custom data you need in your application. */
2200
2200
  properties?: Maybe<Scalars["JSON"]>;
@@ -2224,25 +2224,25 @@ export type FeaturePointInput = {
2224
2224
  properties?: Maybe<Scalars["JSON"]>;
2225
2225
  };
2226
2226
 
2227
- /** A GeoJSON Feature<Point> input */
2227
+ /** A GeoJSON Feature<Point> input. */
2228
2228
  export type FeaturePointPolygonInput = {
2229
- /** Feature type */
2229
+ /** Feature type. */
2230
2230
  type: FeatureType;
2231
- /** Geometry of the feature */
2231
+ /** Geometry of the feature. */
2232
2232
  geometry: PointInput;
2233
2233
  /** Optional object where you can store custom data you need in your application. */
2234
2234
  properties?: Maybe<FeaturePointPolygonPropertiesInput>;
2235
2235
  };
2236
2236
 
2237
- /** Properties for Feature<Point> input */
2237
+ /** Properties for Feature<Point> input. */
2238
2238
  export type FeaturePointPolygonProperties = {
2239
- /** Name of the location */
2239
+ /** Name of the location. */
2240
2240
  name?: Maybe<Scalars["String"]>;
2241
2241
  };
2242
2242
 
2243
- /** Properties for Feature<Point> input */
2243
+ /** Properties for Feature<Point> input. */
2244
2244
  export type FeaturePointPolygonPropertiesInput = {
2245
- /** Name of the location */
2245
+ /** Name of the location. */
2246
2246
  name?: Maybe<Scalars["String"]>;
2247
2247
  };
2248
2248
 
@@ -2273,51 +2273,45 @@ export enum InstructionsFormat {
2273
2273
  }
2274
2274
 
2275
2275
  export type Isoline = {
2276
- /** Isoline id */
2276
+ /** Isoline id. */
2277
2277
  id: Scalars["ID"];
2278
- /** Isoline status */
2278
+ /** Isoline status. */
2279
2279
  status: IsolineStatus;
2280
- /** Shape of the isoline consisting in a list of multipolygons */
2280
+ /** Shape of the isoline consisting in a list of multipolygons. */
2281
2281
  polygons?: Maybe<Array<Maybe<FeatureMultiPolygon>>>;
2282
- /** List of the ferries uniting islands formed by the isoline */
2282
+ /** List of the ferries uniting islands formed by the isoline. */
2283
2283
  ferries?: Maybe<Array<Maybe<FeatureLineString>>>;
2284
- /** Origin point of the request */
2285
- origin: FeatureMultiPolygonPoint;
2286
- /** Vehicle id */
2287
- vehicle_id: Scalars["ID"];
2288
- /** Number of Isolines to be generated representing SoC (default: 1, maximum: 20) */
2289
- polygon_count?: Maybe<Scalars["Int"]>;
2290
- /** Season to be taken into account when generating the isoline. Default: current */
2291
- season?: Maybe<RouteSeason>;
2284
+ /** The inputted request data for the isoline used to compute it. */
2285
+ request_input?: Maybe<IsolineRequestInput>;
2292
2286
  };
2293
2287
 
2294
2288
  export enum IsolineFerryConnectionsType {
2295
- /** Ferry connections should not be included */
2289
+ /** Ferry connections should not be included. */
2296
2290
  NONE = "none",
2297
2291
  /** Ferry connections should be taken into account but only one level deep. For example: from the European mainland to England and no other connecting ferries departing from England. */
2298
2292
  SINGLE = "single"
2299
2293
  }
2300
2294
 
2301
2295
  export type IsolineInput = {
2302
- /** Vehicle id */
2296
+ /** Vehicle id. */
2303
2297
  vehicle_id: Scalars["ID"];
2304
- /** Origin point of the request */
2298
+ /** Origin point of the request. */
2305
2299
  origin: FeaturePointPolygonInput;
2306
- /** Numbers of polygons to be generated (default: 1, maximum: 20) */
2300
+ /** Numbers of polygons to be generated (maximum: 20). */
2307
2301
  polygon_count?: Maybe<Scalars["Int"]>;
2308
- /** Vehicle should be able to return to the origin point from any point */
2302
+ /** Vehicle should be able to return to the origin point from any point. */
2309
2303
  round_trip?: Maybe<Scalars["Boolean"]>;
2310
- /** Number of occupants */
2304
+ /** Number of occupants. */
2311
2305
  occupants?: Maybe<Scalars["Int"]>;
2312
- /** Cumulated weight of the occupants */
2306
+ /** Cumulated weight of the occupants. */
2313
2307
  total_occupant_weight?: Maybe<TotalOccupantWeightInput>;
2314
- /** Cargo weight, in kg */
2308
+ /** Cargo weight. */
2315
2309
  total_cargo_weight?: Maybe<TotalCargoWeightInput>;
2316
- /** Climate is on */
2310
+ /** Climate is on. */
2317
2311
  climate_control?: Maybe<Scalars["Boolean"]>;
2318
- /** Season to be taken into account when generating the isoline */
2312
+ /** Season to be taken into account when generating the isoline. */
2319
2313
  season?: Maybe<RouteSeason>;
2320
- /** Polygons precision quality */
2314
+ /** Polygons precision quality. */
2321
2315
  quality?: Maybe<IsolineQuality>;
2322
2316
  /** Include ferry connections. Single and multiple ferry connections increase the calculation time and the number of polygons. */
2323
2317
  ferry_connections?: Maybe<IsolineFerryConnectionsType>;
@@ -2327,21 +2321,66 @@ export type IsolineInput = {
2327
2321
  final_state_of_charge?: Maybe<StateOfChargeInput>;
2328
2322
  };
2329
2323
 
2330
- /** Granularity of the isoline */
2324
+ /** Granularity of the isoline. */
2331
2325
  export enum IsolineQuality {
2332
- /** High polygons precisions */
2326
+ /** High polygons precisions. */
2333
2327
  HIGH = "high",
2334
- /** Low polygons precisions */
2328
+ /** Low polygons precisions. */
2335
2329
  LOW = "low"
2336
2330
  }
2337
2331
 
2338
- /** Status of the isoline label */
2332
+ export type IsolineRequestInput = {
2333
+ /** Vehicle id. */
2334
+ vehicle_id: Scalars["ID"];
2335
+ /** Origin point of the request. */
2336
+ origin: FeaturePoint;
2337
+ /** Numbers of polygons that were generated. */
2338
+ polygon_count?: Maybe<Scalars["Int"]>;
2339
+ /** Vehicle should be able to return to the origin point from any point. */
2340
+ round_trip?: Maybe<Scalars["Boolean"]>;
2341
+ /** Number of occupants. */
2342
+ occupants?: Maybe<Scalars["Int"]>;
2343
+ /** Cumulated weight of the occupants. */
2344
+ total_occupant_weight?: Maybe<Scalars["Float"]>;
2345
+ /** Cargo weight. */
2346
+ total_cargo_weight?: Maybe<Scalars["Float"]>;
2347
+ /** Climate is on. */
2348
+ climate_control?: Maybe<Scalars["Boolean"]>;
2349
+ /** Season taken into account when isoline was generated. */
2350
+ season?: Maybe<RouteSeason>;
2351
+ /** Polygons precision quality. */
2352
+ quality?: Maybe<IsolineQuality>;
2353
+ /** Ferry connections. */
2354
+ ferry_connections?: Maybe<IsolineFerryConnectionsType>;
2355
+ /** Battery state of charge. */
2356
+ state_of_charge: Scalars["Float"];
2357
+ /** Minimum final battery state of charge. */
2358
+ final_state_of_charge: Scalars["Float"];
2359
+ };
2360
+
2361
+ export type IsolineRequestInputtotal_occupant_weightArgs = {
2362
+ unit?: Maybe<WeightUnit>;
2363
+ };
2364
+
2365
+ export type IsolineRequestInputtotal_cargo_weightArgs = {
2366
+ unit?: Maybe<WeightUnit>;
2367
+ };
2368
+
2369
+ export type IsolineRequestInputstate_of_chargeArgs = {
2370
+ unit?: Maybe<StateOfChargeUnit>;
2371
+ };
2372
+
2373
+ export type IsolineRequestInputfinal_state_of_chargeArgs = {
2374
+ unit?: Maybe<StateOfChargeUnit>;
2375
+ };
2376
+
2377
+ /** Status of the isoline label. */
2339
2378
  export enum IsolineStatus {
2340
- /** Isoline label has been successfully generated */
2379
+ /** Isoline label has been successfully generated. */
2341
2380
  DONE = "done",
2342
- /** Isoline label is under processing */
2381
+ /** Isoline label is under processing. */
2343
2382
  PENDING = "pending",
2344
- /** There was an error while generating the isoline label */
2383
+ /** There was an error while generating the isoline label. */
2345
2384
  ERROR = "error"
2346
2385
  }
2347
2386
 
@@ -2395,11 +2434,11 @@ export enum MeasurementUnit {
2395
2434
  INCH = "inch"
2396
2435
  }
2397
2436
 
2398
- /** A GeoJSON Polygon */
2437
+ /** A GeoJSON Polygon. */
2399
2438
  export type MultiPolygon = {
2400
- /** MultiPolygon type */
2439
+ /** MultiPolygon type. */
2401
2440
  type: MultiPolygonType;
2402
- /** List of coordinates representing a polygon */
2441
+ /** List of coordinates representing a polygon. */
2403
2442
  coordinates: Array<
2404
2443
  Maybe<Array<Maybe<Array<Maybe<Array<Scalars["Float"]>>>>>>
2405
2444
  >;
@@ -2419,7 +2458,7 @@ export type Mutation = {
2419
2458
  updateConnectedVehicle?: Maybe<ConnectedVehicle>;
2420
2459
  /** [BETA] Remove a connected vehicle and revoke access */
2421
2460
  removeConnectedVehicle?: Maybe<ConnectedVehicle>;
2422
- /** [BETA] Generate a set of consumption based Isolines */
2461
+ /** Create a consumption based isoline. */
2423
2462
  createIsoline?: Maybe<Scalars["ID"]>;
2424
2463
  /** [BETA] Start a new navigation session on top of an existing route */
2425
2464
  startNavigation?: Maybe<Scalars["ID"]>;
@@ -3330,9 +3369,9 @@ export enum PointType {
3330
3369
  POINT = "Point"
3331
3370
  }
3332
3371
 
3333
- /** Polygon properties */
3372
+ /** Polygon properties. */
3334
3373
  export type PolygonProperties = {
3335
- /** Index of the feature inside the list */
3374
+ /** Index of the feature inside the list. */
3336
3375
  index?: Maybe<Scalars["Int"]>;
3337
3376
  };
3338
3377
 
@@ -3451,7 +3490,7 @@ export type Query = {
3451
3490
  connectedVehicleList?: Maybe<Array<Maybe<ConnectedVehicle>>>;
3452
3491
  /** [BETA] Retrieve live vehicle data by connected vehicle id */
3453
3492
  connectedVehicleData?: Maybe<VehicleData>;
3454
- /** [BETA] Get an isoline by ID */
3493
+ /** Get an isoline by ID. */
3455
3494
  isoline?: Maybe<Isoline>;
3456
3495
  /** [BETA] Get a navigation session by ID */
3457
3496
  navigation?: Maybe<Navigation>;
@@ -4685,7 +4724,7 @@ export enum StepType {
4685
4724
  export type Subscription = {
4686
4725
  /** [BETA] Subscribe to a connected vehicle. */
4687
4726
  connectedVehicle?: Maybe<ConnectedVehicle>;
4688
- /** [BETA] Subscribe to an isoline label in order to receive updates */
4727
+ /** Subscribe to an isoline in order to receive updates. */
4689
4728
  isoline?: Maybe<Isoline>;
4690
4729
  /** [BETA] Subscribe to navigation session system event updates. We strongly recommend using this at all times to not miss any updates */
4691
4730
  navigationUpdatedById?: Maybe<Navigation>;