@types/mapbox__mapbox-sdk 0.13.6 → 0.13.8

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.
File without changes
@@ -8,9 +8,8 @@ This package contains type definitions for @mapbox/mapbox-sdk (https://github.co
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__mapbox-sdk.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 11 Sep 2023 15:33:20 GMT
11
+ * Last updated: Wed, 18 Oct 2023 05:47:08 GMT
12
12
  * Dependencies: [@types/geojson](https://npmjs.com/package/@types/geojson), [@types/mapbox-gl](https://npmjs.com/package/@types/mapbox-gl), [@types/node](https://npmjs.com/package/@types/node)
13
- * Global values: none
14
13
 
15
14
  # Credits
16
15
  These definitions were written by [Jeff Dye](https://github.com/jeffbdye), [Mike O'Meara](https://github.com/mikeomeara1), [chachan](https://github.com/chachan), [techieshark](https://github.com/techieshark), and [Robin Heinemann](https://github.com/rroohhh).
@@ -1,19 +1,9 @@
1
- // Type definitions for @mapbox/mapbox-sdk 0.13
2
- // Project: https://github.com/mapbox/mapbox-sdk-js
3
- // Definitions by: Jeff Dye <https://github.com/jeffbdye>
4
- // Mike O'Meara <https://github.com/mikeomeara1>
5
- // chachan <https://github.com/chachan>
6
- // techieshark <https://github.com/techieshark>
7
- // Robin Heinemann <https://github.com/rroohhh>
8
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
9
- // TypeScript Version: 3.0
10
-
11
1
  /// <reference types="node" />
12
2
 
13
3
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
14
- declare module '@mapbox/mapbox-sdk/lib/classes/mapi-client' {
4
+ declare module "@mapbox/mapbox-sdk/lib/classes/mapi-client" {
15
5
  // eslint-disable-next-line @definitelytyped/no-self-import
16
- import { MapiRequest, MapiRequestOptions } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
6
+ import { MapiRequest, MapiRequestOptions } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
17
7
  export default class MapiClient {
18
8
  constructor(config: SdkConfig);
19
9
  accessToken: string;
@@ -28,13 +18,13 @@ declare module '@mapbox/mapbox-sdk/lib/classes/mapi-client' {
28
18
  }
29
19
 
30
20
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
31
- declare module '@mapbox/mapbox-sdk/lib/classes/mapi-request' {
21
+ declare module "@mapbox/mapbox-sdk/lib/classes/mapi-request" {
32
22
  // eslint-disable-next-line @definitelytyped/no-self-import
33
- import { MapiResponse } from '@mapbox/mapbox-sdk/lib/classes/mapi-response';
23
+ import { MapiResponse } from "@mapbox/mapbox-sdk/lib/classes/mapi-response";
34
24
  // eslint-disable-next-line @definitelytyped/no-self-import
35
- import MapiClient from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
25
+ import MapiClient from "@mapbox/mapbox-sdk/lib/classes/mapi-client";
36
26
  // eslint-disable-next-line @definitelytyped/no-self-import
37
- import { MapiError } from '@mapbox/mapbox-sdk/lib/classes/mapi-error';
27
+ import { MapiError } from "@mapbox/mapbox-sdk/lib/classes/mapi-error";
38
28
 
39
29
  interface EventEmitter<T> {
40
30
  response: MapiResponse<T>;
@@ -83,7 +73,7 @@ declare module '@mapbox/mapbox-sdk/lib/classes/mapi-request' {
83
73
  /**
84
74
  * The method to send the `file`. Options are `data` (x-www-form-urlencoded) or `form` (multipart/form-data)
85
75
  */
86
- sendFileAs: 'data' | 'form';
76
+ sendFileAs: "data" | "form";
87
77
  }
88
78
 
89
79
  type MapiRequest<T = any> = MapiRequestOptions & {
@@ -128,15 +118,15 @@ declare module '@mapbox/mapbox-sdk/lib/classes/mapi-request' {
128
118
 
129
119
  type Coordinates = [number, number];
130
120
 
131
- type MapboxProfile = 'driving' | 'walking' | 'cycling' | 'driving-traffic';
121
+ type MapboxProfile = "driving" | "walking" | "cycling" | "driving-traffic";
132
122
 
133
- type DirectionsApproach = 'unrestricted' | 'curb';
123
+ type DirectionsApproach = "unrestricted" | "curb";
134
124
  }
135
125
 
136
126
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
137
- declare module '@mapbox/mapbox-sdk/lib/classes/mapi-response' {
127
+ declare module "@mapbox/mapbox-sdk/lib/classes/mapi-response" {
138
128
  // eslint-disable-next-line @definitelytyped/no-self-import
139
- import { MapiRequest } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
129
+ import { MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
140
130
 
141
131
  interface MapiResponse<T = any> {
142
132
  /**
@@ -169,9 +159,9 @@ declare module '@mapbox/mapbox-sdk/lib/classes/mapi-response' {
169
159
  }
170
160
 
171
161
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
172
- declare module '@mapbox/mapbox-sdk/lib/classes/mapi-error' {
162
+ declare module "@mapbox/mapbox-sdk/lib/classes/mapi-error" {
173
163
  // eslint-disable-next-line @definitelytyped/no-self-import
174
- import { MapiRequest } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
164
+ import { MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
175
165
 
176
166
  interface MapiError<T = any> {
177
167
  /**
@@ -199,11 +189,11 @@ declare module '@mapbox/mapbox-sdk/lib/classes/mapi-error' {
199
189
  }
200
190
 
201
191
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
202
- declare module '@mapbox/mapbox-sdk/services/datasets' {
192
+ declare module "@mapbox/mapbox-sdk/services/datasets" {
203
193
  // eslint-disable-next-line @definitelytyped/no-self-import
204
- import { MapiRequest } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
194
+ import { MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
205
195
  // eslint-disable-next-line @definitelytyped/no-self-import
206
- import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
196
+ import MapiClient, { SdkConfig } from "@mapbox/mapbox-sdk/lib/classes/mapi-client";
207
197
 
208
198
  /*********************************************************************************************************************
209
199
  * Datasets Types
@@ -214,7 +204,7 @@ declare module '@mapbox/mapbox-sdk/services/datasets' {
214
204
  /**
215
205
  * List datasets in your account.
216
206
  */
217
- listDatasets(config?: { sortby?: 'created' | 'modified' | undefined }): MapiRequest;
207
+ listDatasets(config?: { sortby?: "created" | "modified" | undefined }): MapiRequest;
218
208
  /**
219
209
  * Create a new, empty dataset.
220
210
  * @param config Object
@@ -229,7 +219,9 @@ declare module '@mapbox/mapbox-sdk/services/datasets' {
229
219
  * Update user-defined properties of a dataset's metadata.
230
220
  * @param config
231
221
  */
232
- updateMetadata(config: { datasetId?: string | undefined; name?: string | undefined; description?: string | undefined }): MapiRequest;
222
+ updateMetadata(
223
+ config: { datasetId?: string | undefined; name?: string | undefined; description?: string | undefined },
224
+ ): MapiRequest;
233
225
  /**
234
226
  * Delete a dataset, including all features it contains.
235
227
  * @param config
@@ -240,7 +232,9 @@ declare module '@mapbox/mapbox-sdk/services/datasets' {
240
232
  * This endpoint supports pagination. Use MapiRequest#eachPage or manually specify the limit and start options.
241
233
  * @param config
242
234
  */
243
- listFeatures(config: { datasetId: string; limit?: number | undefined; start?: string | undefined }): MapiRequest;
235
+ listFeatures(
236
+ config: { datasetId: string; limit?: number | undefined; start?: string | undefined },
237
+ ): MapiRequest;
244
238
  /**
245
239
  * Add a feature to a dataset or update an existing one.
246
240
  * @param config
@@ -312,65 +306,69 @@ declare module '@mapbox/mapbox-sdk/services/datasets' {
312
306
  }
313
307
 
314
308
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
315
- declare module '@mapbox/mapbox-sdk/services/directions' {
316
- import * as GeoJSON from 'geojson';
317
- import { LngLatLike } from 'mapbox-gl';
309
+ declare module "@mapbox/mapbox-sdk/services/directions" {
310
+ import * as GeoJSON from "geojson";
311
+ import { LngLatLike } from "mapbox-gl";
318
312
  // eslint-disable-next-line @definitelytyped/no-self-import
319
- import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
313
+ import MapiClient, { SdkConfig } from "@mapbox/mapbox-sdk/lib/classes/mapi-client";
320
314
  // eslint-disable-next-line @definitelytyped/no-self-import
321
315
  import {
322
- MapiRequest,
323
- MapboxProfile,
324
- DirectionsApproach,
325
316
  Coordinates,
326
- } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
317
+ DirectionsApproach,
318
+ MapboxProfile,
319
+ MapiRequest,
320
+ } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
327
321
 
328
322
  export default function Directions(config: SdkConfig | MapiClient): DirectionsService;
329
323
 
330
324
  interface DirectionsService {
331
- getDirections(request: DirectionsRequest | DirectionsRequest<'polyline' | 'polyline6'>): MapiRequest<DirectionsResponse>;
332
- getDirections(request: DirectionsRequest<'geojson'>): MapiRequest<DirectionsResponse<GeoJSON.MultiLineString | GeoJSON.LineString>>;
333
- }
334
-
335
- type DirectionsAnnotation = 'duration' | 'distance' | 'speed' | 'congestion';
336
- type DirectionsGeometry = 'geojson' | 'polyline' | 'polyline6';
337
- type DirectionsOverview = 'full' | 'simplified' | 'false';
338
- type DirectionsUnits = 'imperial' | 'metric';
339
- type DirectionsSide = 'left' | 'right';
340
- type DirectionsMode = 'driving' | 'ferry' | 'unaccessible' | 'walking' | 'cycling' | 'train';
341
- type DirectionsClass = 'toll' | 'ferry' | 'restricted' | 'motorway' | 'tunnel';
325
+ getDirections(
326
+ request: DirectionsRequest | DirectionsRequest<"polyline" | "polyline6">,
327
+ ): MapiRequest<DirectionsResponse>;
328
+ getDirections(
329
+ request: DirectionsRequest<"geojson">,
330
+ ): MapiRequest<DirectionsResponse<GeoJSON.MultiLineString | GeoJSON.LineString>>;
331
+ }
332
+
333
+ type DirectionsAnnotation = "duration" | "distance" | "speed" | "congestion";
334
+ type DirectionsGeometry = "geojson" | "polyline" | "polyline6";
335
+ type DirectionsOverview = "full" | "simplified" | "false";
336
+ type DirectionsUnits = "imperial" | "metric";
337
+ type DirectionsSide = "left" | "right";
338
+ type DirectionsMode = "driving" | "ferry" | "unaccessible" | "walking" | "cycling" | "train";
339
+ type DirectionsClass = "toll" | "ferry" | "restricted" | "motorway" | "tunnel";
342
340
  type ManeuverModifier =
343
- | 'uturn'
344
- | 'sharp right'
345
- | 'right'
346
- | 'slight right'
347
- | 'straight'
348
- | 'slight left'
349
- | 'left'
350
- | 'sharp left'
351
- | 'depart'
352
- | 'arrive';
341
+ | "uturn"
342
+ | "sharp right"
343
+ | "right"
344
+ | "slight right"
345
+ | "straight"
346
+ | "slight left"
347
+ | "left"
348
+ | "sharp left"
349
+ | "depart"
350
+ | "arrive";
353
351
  type ManeuverType =
354
- | 'turn'
355
- | 'new name'
356
- | 'depart'
357
- | 'arrive'
358
- | 'merge'
359
- | 'on ramp'
360
- | 'off ramp'
361
- | 'fork'
362
- | 'end of road'
363
- | 'continue'
364
- | 'roundabout'
365
- | 'rotary'
366
- | 'roundabout turn'
367
- | 'notification'
368
- | 'exit roundabout'
369
- | 'exit rotary';
352
+ | "turn"
353
+ | "new name"
354
+ | "depart"
355
+ | "arrive"
356
+ | "merge"
357
+ | "on ramp"
358
+ | "off ramp"
359
+ | "fork"
360
+ | "end of road"
361
+ | "continue"
362
+ | "roundabout"
363
+ | "rotary"
364
+ | "roundabout turn"
365
+ | "notification"
366
+ | "exit roundabout"
367
+ | "exit rotary";
370
368
  type Polyline = string;
371
369
  type RouteGeometry = GeoJSON.LineString | GeoJSON.MultiLineString | Polyline;
372
370
 
373
- interface CommonDirectionsRequest<T extends DirectionsGeometry = 'polyline'> {
371
+ interface CommonDirectionsRequest<T extends DirectionsGeometry = "polyline"> {
374
372
  waypoints: DirectionsWaypoint[];
375
373
  /**
376
374
  * Whether to try to return alternative routes. An alternative is classified as a route that is significantly
@@ -433,19 +431,21 @@ declare module '@mapbox/mapbox-sdk/services/directions' {
433
431
 
434
432
  type DirectionsProfileExclusion =
435
433
  | {
436
- profile: 'walking';
437
- exclude?: [] | undefined;
438
- }
434
+ profile: "walking";
435
+ exclude?: [] | undefined;
436
+ }
439
437
  | {
440
- profile: 'cycling';
441
- exclude?: Array<'ferry'> | undefined;
442
- }
438
+ profile: "cycling";
439
+ exclude?: Array<"ferry"> | undefined;
440
+ }
443
441
  | {
444
- profile: 'driving' | 'driving-traffic';
445
- exclude?: Array<'ferry' | 'toll' | 'motorway'> | undefined;
446
- };
442
+ profile: "driving" | "driving-traffic";
443
+ exclude?: Array<"ferry" | "toll" | "motorway"> | undefined;
444
+ };
447
445
 
448
- type DirectionsRequest<T extends DirectionsGeometry = "polyline"> = CommonDirectionsRequest<T> & DirectionsProfileExclusion;
446
+ type DirectionsRequest<T extends DirectionsGeometry = "polyline"> =
447
+ & CommonDirectionsRequest<T>
448
+ & DirectionsProfileExclusion;
449
449
 
450
450
  interface Waypoint {
451
451
  /**
@@ -473,7 +473,7 @@ declare module '@mapbox/mapbox-sdk/services/directions' {
473
473
  * Values can be any number greater than 0 or the string 'unlimited'.
474
474
  * A NoSegment error is returned if no routable road is found within the radius.
475
475
  */
476
- radius?: number | 'unlimited' | undefined;
476
+ radius?: number | "unlimited" | undefined;
477
477
  }
478
478
 
479
479
  type DirectionsWaypoint = Waypoint & {
@@ -821,12 +821,12 @@ declare module '@mapbox/mapbox-sdk/services/directions' {
821
821
  }
822
822
 
823
823
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
824
- declare module '@mapbox/mapbox-sdk/services/geocoding' {
825
- import { LngLatLike } from 'mapbox-gl';
824
+ declare module "@mapbox/mapbox-sdk/services/geocoding" {
825
+ import { LngLatLike } from "mapbox-gl";
826
826
  // eslint-disable-next-line @definitelytyped/no-self-import
827
- import { MapiRequest, Coordinates } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
827
+ import { Coordinates, MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
828
828
  // eslint-disable-next-line @definitelytyped/no-self-import
829
- import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
829
+ import MapiClient, { SdkConfig } from "@mapbox/mapbox-sdk/lib/classes/mapi-client";
830
830
 
831
831
  /*********************************************************************************************************************
832
832
  * Geocoder Types
@@ -841,19 +841,19 @@ declare module '@mapbox/mapbox-sdk/services/geocoding' {
841
841
 
842
842
  type BoundingBox = [number, number, number, number];
843
843
 
844
- type GeocodeMode = 'mapbox.places' | 'mapbox.places-permanent';
844
+ type GeocodeMode = "mapbox.places" | "mapbox.places-permanent";
845
845
 
846
846
  type GeocodeQueryType =
847
- | 'country'
848
- | 'region'
849
- | 'postcode'
850
- | 'district'
851
- | 'place'
852
- | 'locality'
853
- | 'neighborhood'
854
- | 'address'
855
- | 'poi'
856
- | 'poi.landmark';
847
+ | "country"
848
+ | "region"
849
+ | "postcode"
850
+ | "district"
851
+ | "place"
852
+ | "locality"
853
+ | "neighborhood"
854
+ | "address"
855
+ | "poi"
856
+ | "poi.landmark";
857
857
 
858
858
  interface GeocodeRequest {
859
859
  /**
@@ -1043,23 +1043,23 @@ declare module '@mapbox/mapbox-sdk/services/geocoding' {
1043
1043
  }
1044
1044
 
1045
1045
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
1046
- declare module '@mapbox/mapbox-sdk/services/map-matching' {
1046
+ declare module "@mapbox/mapbox-sdk/services/map-matching" {
1047
1047
  // eslint-disable-next-line @definitelytyped/no-self-import
1048
1048
  import {
1049
1049
  DirectionsAnnotation,
1050
1050
  DirectionsGeometry,
1051
1051
  DirectionsOverview,
1052
1052
  Leg,
1053
- } from '@mapbox/mapbox-sdk/services/directions';
1053
+ } from "@mapbox/mapbox-sdk/services/directions";
1054
1054
  // eslint-disable-next-line @definitelytyped/no-self-import
1055
1055
  import {
1056
- MapiRequest,
1057
- MapboxProfile,
1058
- DirectionsApproach,
1059
1056
  Coordinates,
1060
- } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
1057
+ DirectionsApproach,
1058
+ MapboxProfile,
1059
+ MapiRequest,
1060
+ } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
1061
1061
  // eslint-disable-next-line @definitelytyped/no-self-import
1062
- import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
1062
+ import MapiClient, { SdkConfig } from "@mapbox/mapbox-sdk/lib/classes/mapi-client";
1063
1063
 
1064
1064
  /*********************************************************************************************************************
1065
1065
  * Map Matching Types
@@ -1183,15 +1183,15 @@ declare module '@mapbox/mapbox-sdk/services/map-matching' {
1183
1183
  }
1184
1184
 
1185
1185
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
1186
- declare module '@mapbox/mapbox-sdk/services/matrix' {
1186
+ declare module "@mapbox/mapbox-sdk/services/matrix" {
1187
1187
  // eslint-disable-next-line @definitelytyped/no-self-import
1188
- import { DirectionsAnnotation } from '@mapbox/mapbox-sdk/services/directions';
1188
+ import { DirectionsAnnotation } from "@mapbox/mapbox-sdk/services/directions";
1189
1189
  // eslint-disable-next-line @definitelytyped/no-self-import
1190
- import { Point } from '@mapbox/mapbox-sdk/services/map-matching';
1190
+ import { Point } from "@mapbox/mapbox-sdk/services/map-matching";
1191
1191
  // eslint-disable-next-line @definitelytyped/no-self-import
1192
- import { MapiRequest, MapboxProfile } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
1192
+ import { MapboxProfile, MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
1193
1193
  // eslint-disable-next-line @definitelytyped/no-self-import
1194
- import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
1194
+ import MapiClient, { SdkConfig } from "@mapbox/mapbox-sdk/lib/classes/mapi-client";
1195
1195
 
1196
1196
  /*********************************************************************************************************************
1197
1197
  * Matrix Types
@@ -1209,8 +1209,8 @@ declare module '@mapbox/mapbox-sdk/services/matrix' {
1209
1209
  interface MatrixRequest {
1210
1210
  points: Point[];
1211
1211
  profile?: MapboxProfile | undefined;
1212
- sources?: number[] | 'all' | undefined;
1213
- destinations?: number[] | 'all' | undefined;
1212
+ sources?: number[] | "all" | undefined;
1213
+ destinations?: number[] | "all" | undefined;
1214
1214
  annotations?: DirectionsAnnotation[] | undefined;
1215
1215
  }
1216
1216
 
@@ -1229,13 +1229,13 @@ declare module '@mapbox/mapbox-sdk/services/matrix' {
1229
1229
  }
1230
1230
 
1231
1231
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
1232
- declare module '@mapbox/mapbox-sdk/services/optimization' {
1232
+ declare module "@mapbox/mapbox-sdk/services/optimization" {
1233
1233
  // eslint-disable-next-line @definitelytyped/no-self-import
1234
- import { Waypoint } from '@mapbox/mapbox-sdk/services/directions';
1234
+ import { Waypoint } from "@mapbox/mapbox-sdk/services/directions";
1235
1235
  // eslint-disable-next-line @definitelytyped/no-self-import
1236
- import { MapiRequest, MapboxProfile, DirectionsApproach } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
1236
+ import { DirectionsApproach, MapboxProfile, MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
1237
1237
  // eslint-disable-next-line @definitelytyped/no-self-import
1238
- import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
1238
+ import MapiClient, { SdkConfig } from "@mapbox/mapbox-sdk/lib/classes/mapi-client";
1239
1239
 
1240
1240
  /*********************************************************************************************************************
1241
1241
  * Optimization Types
@@ -1262,7 +1262,7 @@ declare module '@mapbox/mapbox-sdk/services/optimization' {
1262
1262
  /**
1263
1263
  * Specify the destination coordinate of the returned route. Accepts any (default) or last .
1264
1264
  */
1265
- destination?: 'any' | 'last' | undefined;
1265
+ destination?: "any" | "last" | undefined;
1266
1266
  /**
1267
1267
  * Specify pick-up and drop-off locations for a trip by providing a ; delimited list of number pairs that correspond with the coordinates list.
1268
1268
  * The first number of a pair indicates the index to the coordinate of the pick-up location in the coordinates list,
@@ -1274,7 +1274,7 @@ declare module '@mapbox/mapbox-sdk/services/optimization' {
1274
1274
  /**
1275
1275
  * The format of the returned geometry. Allowed values are: geojson (as LineString ), polyline (default, a polyline with precision 5), polyline6 (a polyline with precision 6).
1276
1276
  */
1277
- geometries?: 'geojson' | 'polyline' | 'polyline6' | undefined;
1277
+ geometries?: "geojson" | "polyline" | "polyline6" | undefined;
1278
1278
  /**
1279
1279
  * The language of returned turn-by-turn text instructions. See supported languages . The default is en (English).
1280
1280
  */
@@ -1283,11 +1283,11 @@ declare module '@mapbox/mapbox-sdk/services/optimization' {
1283
1283
  * The type of the returned overview geometry.
1284
1284
  * Can be 'full' (the most detailed geometry available), 'simplified' (default, a simplified version of the full geometry), or 'false' (no overview geometry).
1285
1285
  */
1286
- overview?: 'full' | 'simplified' | 'false' | undefined;
1286
+ overview?: "full" | "simplified" | "false" | undefined;
1287
1287
  /**
1288
1288
  * The coordinate at which to start the returned route. Accepts any (default) or first .
1289
1289
  */
1290
- source?: 'any' | 'first' | undefined;
1290
+ source?: "any" | "first" | undefined;
1291
1291
  /**
1292
1292
  * Whether to return steps and turn-by-turn instructions ( true ) or not ( false , default).
1293
1293
  */
@@ -1311,16 +1311,16 @@ declare module '@mapbox/mapbox-sdk/services/optimization' {
1311
1311
  dropoff: number;
1312
1312
  }
1313
1313
 
1314
- type OptimizationAnnotation = 'duration' | 'speed' | 'distance';
1314
+ type OptimizationAnnotation = "duration" | "speed" | "distance";
1315
1315
  }
1316
1316
 
1317
1317
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
1318
- declare module '@mapbox/mapbox-sdk/services/static' {
1319
- import { LngLatLike, LngLatBoundsLike, AnyLayer } from 'mapbox-gl';
1318
+ declare module "@mapbox/mapbox-sdk/services/static" {
1319
+ import { AnyLayer, LngLatBoundsLike, LngLatLike } from "mapbox-gl";
1320
1320
  // eslint-disable-next-line @definitelytyped/no-self-import
1321
- import { MapiRequest } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
1321
+ import { MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
1322
1322
  // eslint-disable-next-line @definitelytyped/no-self-import
1323
- import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
1323
+ import MapiClient, { SdkConfig } from "@mapbox/mapbox-sdk/lib/classes/mapi-client";
1324
1324
 
1325
1325
  /*********************************************************************************************************************
1326
1326
  * Static Map Types
@@ -1342,12 +1342,12 @@ declare module '@mapbox/mapbox-sdk/services/static' {
1342
1342
  height: number;
1343
1343
  position:
1344
1344
  | {
1345
- coordinates: LngLatLike | 'auto';
1346
- zoom: number;
1347
- bearing?: number | undefined;
1348
- pitch?: number | undefined;
1349
- }
1350
- | 'auto';
1345
+ coordinates: LngLatLike | "auto";
1346
+ zoom: number;
1347
+ bearing?: number | undefined;
1348
+ pitch?: number | undefined;
1349
+ }
1350
+ | "auto";
1351
1351
  padding?: string | undefined;
1352
1352
  overlays?: Array<CustomMarkerOverlay | SimpleMarkerOverlay | PathOverlay | GeoJsonOverlay> | undefined;
1353
1353
  highRes?: boolean | undefined;
@@ -1376,7 +1376,7 @@ declare module '@mapbox/mapbox-sdk/services/static' {
1376
1376
  coordinates: LngLatLike;
1377
1377
  label?: string | undefined;
1378
1378
  color?: string | undefined;
1379
- size?: 'large' | 'small' | undefined;
1379
+ size?: "large" | "small" | undefined;
1380
1380
  }
1381
1381
 
1382
1382
  interface PathOverlay {
@@ -1410,11 +1410,11 @@ declare module '@mapbox/mapbox-sdk/services/static' {
1410
1410
  }
1411
1411
 
1412
1412
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
1413
- declare module '@mapbox/mapbox-sdk/services/styles' {
1413
+ declare module "@mapbox/mapbox-sdk/services/styles" {
1414
1414
  // eslint-disable-next-line @definitelytyped/no-self-import
1415
- import { MapiRequest } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
1415
+ import { MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
1416
1416
  // eslint-disable-next-line @definitelytyped/no-self-import
1417
- import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
1417
+ import MapiClient, { SdkConfig } from "@mapbox/mapbox-sdk/lib/classes/mapi-client";
1418
1418
 
1419
1419
  /*********************************************************************************************************************
1420
1420
  * Style Types
@@ -1465,7 +1465,9 @@ declare module '@mapbox/mapbox-sdk/services/styles' {
1465
1465
  * @param start
1466
1466
  * @param ownerId
1467
1467
  */
1468
- listStyles(config: { start?: string | undefined; ownerId?: string | undefined; fresh?: boolean | undefined }): MapiRequest;
1468
+ listStyles(
1469
+ config: { start?: string | undefined; ownerId?: string | undefined; fresh?: boolean | undefined },
1470
+ ): MapiRequest;
1469
1471
  /**
1470
1472
  * Add an icon to a style, or update an existing one.
1471
1473
  * @param styleId
@@ -1486,7 +1488,9 @@ declare module '@mapbox/mapbox-sdk/services/styles' {
1486
1488
  * @param ownerId
1487
1489
  */
1488
1490
  // implicit any
1489
- deleteStyleIcon(config: { styleId: string; iconId: string; ownerId?: string | undefined; draft?: boolean | undefined }): void;
1491
+ deleteStyleIcon(
1492
+ config: { styleId: string; iconId: string; ownerId?: string | undefined; draft?: boolean | undefined },
1493
+ ): void;
1490
1494
  /**
1491
1495
  * Get a style sprite's image or JSON document.
1492
1496
  * @param styleId
@@ -1496,7 +1500,7 @@ declare module '@mapbox/mapbox-sdk/services/styles' {
1496
1500
  */
1497
1501
  getStyleSprite(config: {
1498
1502
  styleId: string;
1499
- format?: 'json' | 'png' | undefined;
1503
+ format?: "json" | "png" | undefined;
1500
1504
  highRes?: boolean | undefined;
1501
1505
  ownerId?: string | undefined;
1502
1506
  draft?: boolean | undefined;
@@ -1509,7 +1513,9 @@ declare module '@mapbox/mapbox-sdk/services/styles' {
1509
1513
  * @param end
1510
1514
  * @param ownerId
1511
1515
  */
1512
- getFontGlyphRange(config: { fonts: string[]; start: number; end: number; ownerId?: string | undefined }): MapiRequest;
1516
+ getFontGlyphRange(
1517
+ config: { fonts: string[]; start: number; end: number; ownerId?: string | undefined },
1518
+ ): MapiRequest;
1513
1519
  /**
1514
1520
  * Get embeddable HTML displaying a map.
1515
1521
  * @param config
@@ -1571,12 +1577,12 @@ declare module '@mapbox/mapbox-sdk/services/styles' {
1571
1577
  }
1572
1578
 
1573
1579
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
1574
- declare module '@mapbox/mapbox-sdk/services/tilequery' {
1575
- import * as mapboxgl from 'mapbox-gl';
1580
+ declare module "@mapbox/mapbox-sdk/services/tilequery" {
1581
+ import * as mapboxgl from "mapbox-gl";
1576
1582
  // eslint-disable-next-line @definitelytyped/no-self-import
1577
- import { MapiRequest, Coordinates } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
1583
+ import { Coordinates, MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
1578
1584
  // eslint-disable-next-line @definitelytyped/no-self-import
1579
- import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
1585
+ import MapiClient, { SdkConfig } from "@mapbox/mapbox-sdk/lib/classes/mapi-client";
1580
1586
 
1581
1587
  /*********************************************************************************************************************
1582
1588
  * Tile Query (Places) Types
@@ -1619,15 +1625,15 @@ declare module '@mapbox/mapbox-sdk/services/tilequery' {
1619
1625
  layers?: string[] | undefined;
1620
1626
  }
1621
1627
 
1622
- type GeometryType = 'polygon' | 'linestring' | 'point';
1628
+ type GeometryType = "polygon" | "linestring" | "point";
1623
1629
  }
1624
1630
 
1625
1631
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
1626
- declare module '@mapbox/mapbox-sdk/services/tilesets' {
1632
+ declare module "@mapbox/mapbox-sdk/services/tilesets" {
1627
1633
  // eslint-disable-next-line @definitelytyped/no-self-import
1628
- import { MapiRequest } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
1634
+ import { MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
1629
1635
  // eslint-disable-next-line @definitelytyped/no-self-import
1630
- import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
1636
+ import MapiClient, { SdkConfig } from "@mapbox/mapbox-sdk/lib/classes/mapi-client";
1631
1637
 
1632
1638
  /*********************************************************************************************************************
1633
1639
  * Tileset Types
@@ -1637,11 +1643,11 @@ declare module '@mapbox/mapbox-sdk/services/tilesets' {
1637
1643
  interface TilesetsService {
1638
1644
  listTilesets(config: {
1639
1645
  ownerId: string;
1640
- type?: 'raster' | 'vector' | undefined;
1646
+ type?: "raster" | "vector" | undefined;
1641
1647
  limit?: number | undefined;
1642
- sortBy?: 'created' | 'modified' | undefined;
1648
+ sortBy?: "created" | "modified" | undefined;
1643
1649
  start?: string | undefined;
1644
- visibility?: 'public' | 'private' | undefined;
1650
+ visibility?: "public" | "private" | undefined;
1645
1651
  }): MapiRequest;
1646
1652
  deleteTileset(config: { tilesetId: string }): MapiRequest;
1647
1653
  tileJSONMetadata(config: { tilesetId: string }): MapiRequest;
@@ -1651,7 +1657,9 @@ declare module '@mapbox/mapbox-sdk/services/tilesets' {
1651
1657
  ownerId?: string | undefined;
1652
1658
  }): MapiRequest;
1653
1659
  getTilesetSource(config: { id: string; ownerId?: string | undefined }): MapiRequest;
1654
- listTilesetSources(config: { ownerId?: string | undefined; limit?: number | undefined; start?: string | undefined }): MapiRequest;
1660
+ listTilesetSources(
1661
+ config: { ownerId?: string | undefined; limit?: number | undefined; start?: string | undefined },
1662
+ ): MapiRequest;
1655
1663
  deleteTilesetSource(config: { id: string; ownerId?: string | undefined }): MapiRequest;
1656
1664
  createTileset(config: {
1657
1665
  tilesetId: string;
@@ -1672,7 +1680,7 @@ declare module '@mapbox/mapbox-sdk/services/tilesets' {
1672
1680
  tilesetJob(config: { tilesetId: string; jobId: string }): MapiRequest;
1673
1681
  listTilesetJobs(config: {
1674
1682
  tilesetId: string;
1675
- stage?: 'processing' | 'queued' | 'success' | 'failed' | undefined;
1683
+ stage?: "processing" | "queued" | "success" | "failed" | undefined;
1676
1684
  limit?: number | undefined;
1677
1685
  start?: string | undefined;
1678
1686
  }): MapiRequest;
@@ -1697,11 +1705,11 @@ declare module '@mapbox/mapbox-sdk/services/tilesets' {
1697
1705
  }
1698
1706
 
1699
1707
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
1700
- declare module '@mapbox/mapbox-sdk/services/tokens' {
1708
+ declare module "@mapbox/mapbox-sdk/services/tokens" {
1701
1709
  // eslint-disable-next-line @definitelytyped/no-self-import
1702
- import { MapiRequest } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
1710
+ import { MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
1703
1711
  // eslint-disable-next-line @definitelytyped/no-self-import
1704
- import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
1712
+ import MapiClient, { SdkConfig } from "@mapbox/mapbox-sdk/lib/classes/mapi-client";
1705
1713
 
1706
1714
  /*********************************************************************************************************************
1707
1715
  * Token Types
@@ -1811,11 +1819,11 @@ declare module '@mapbox/mapbox-sdk/services/tokens' {
1811
1819
  }
1812
1820
 
1813
1821
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
1814
- declare module '@mapbox/mapbox-sdk/services/uploads' {
1822
+ declare module "@mapbox/mapbox-sdk/services/uploads" {
1815
1823
  // eslint-disable-next-line @definitelytyped/no-self-import
1816
- import { MapiRequest } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
1824
+ import { MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
1817
1825
  // eslint-disable-next-line @definitelytyped/no-self-import
1818
- import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
1826
+ import MapiClient, { SdkConfig } from "@mapbox/mapbox-sdk/lib/classes/mapi-client";
1819
1827
 
1820
1828
  /*********************************************************************************************************************
1821
1829
  * Uploads Types
@@ -1,34 +1,34 @@
1
1
  {
2
2
  "name": "@types/mapbox__mapbox-sdk",
3
- "version": "0.13.6",
3
+ "version": "0.13.8",
4
4
  "description": "TypeScript definitions for @mapbox/mapbox-sdk",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__mapbox-sdk",
6
6
  "license": "MIT",
7
7
  "contributors": [
8
8
  {
9
9
  "name": "Jeff Dye",
10
- "url": "https://github.com/jeffbdye",
11
- "githubUsername": "jeffbdye"
10
+ "githubUsername": "jeffbdye",
11
+ "url": "https://github.com/jeffbdye"
12
12
  },
13
13
  {
14
14
  "name": "Mike O'Meara",
15
- "url": "https://github.com/mikeomeara1",
16
- "githubUsername": "mikeomeara1"
15
+ "githubUsername": "mikeomeara1",
16
+ "url": "https://github.com/mikeomeara1"
17
17
  },
18
18
  {
19
19
  "name": "chachan",
20
- "url": "https://github.com/chachan",
21
- "githubUsername": "chachan"
20
+ "githubUsername": "chachan",
21
+ "url": "https://github.com/chachan"
22
22
  },
23
23
  {
24
24
  "name": "techieshark",
25
- "url": "https://github.com/techieshark",
26
- "githubUsername": "techieshark"
25
+ "githubUsername": "techieshark",
26
+ "url": "https://github.com/techieshark"
27
27
  },
28
28
  {
29
29
  "name": "Robin Heinemann",
30
- "url": "https://github.com/rroohhh",
31
- "githubUsername": "rroohhh"
30
+ "githubUsername": "rroohhh",
31
+ "url": "https://github.com/rroohhh"
32
32
  }
33
33
  ],
34
34
  "main": "",
@@ -44,6 +44,6 @@
44
44
  "@types/mapbox-gl": "*",
45
45
  "@types/node": "*"
46
46
  },
47
- "typesPublisherContentHash": "dbf35fc385e049475144d3b3e2eb5e2fa7811fc8e47c5e6d3ae7b780befbf9e5",
48
- "typeScriptVersion": "4.3"
47
+ "typesPublisherContentHash": "b743d65dfc376d77e7bc74fad0e1e31ea6882fe032a303299b5b021834c66275",
48
+ "typeScriptVersion": "4.5"
49
49
  }