@types/mapbox__mapbox-sdk 0.15.1 → 0.16.1

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.
@@ -8,7 +8,7 @@ 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: Sat, 27 Jul 2024 21:36:11 GMT
11
+ * Last updated: Wed, 02 Apr 2025 17:02:14 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
13
 
14
14
  # Credits
@@ -316,16 +316,10 @@ declare module "@mapbox/mapbox-sdk/services/datasets" {
316
316
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
317
317
  declare module "@mapbox/mapbox-sdk/services/directions" {
318
318
  import * as GeoJSON from "geojson";
319
- import { LngLatLike } from "mapbox-gl";
320
319
  // eslint-disable-next-line @definitelytyped/no-self-import
321
320
  import MapiClient, { SdkConfig } from "@mapbox/mapbox-sdk/lib/classes/mapi-client";
322
321
  // eslint-disable-next-line @definitelytyped/no-self-import
323
- import {
324
- Coordinates,
325
- DirectionsApproach,
326
- MapboxProfile,
327
- MapiRequest,
328
- } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
322
+ import { Coordinates, DirectionsApproach, MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
329
323
 
330
324
  export default function Directions(config: SdkConfig | MapiClient): DirectionsService;
331
325
 
@@ -1122,6 +1116,31 @@ declare module "@mapbox/mapbox-sdk/services/geocoding-v6" {
1122
1116
  * available and applicable to a given country or area.
1123
1117
  */
1124
1118
  context: Context;
1119
+ /**
1120
+ * Feature id. The mapbox_id uniquely identifies a place in the Mapbox search database.
1121
+ * Mapbox ID's are accepted in requests to the Geocoding API as a forward search, and will
1122
+ * return the feature corresponding to that id.
1123
+ */
1124
+ mapbox_id: string;
1125
+ /**
1126
+ * Formatted string of address_number and street.
1127
+ */
1128
+ name: string;
1129
+ /**
1130
+ * The canonical or otherwise more common alias for the feature name. For example,
1131
+ * searching for "America" will return "America" as the name, and "United States" as
1132
+ * name_preferred.
1133
+ */
1134
+ name_preferred?: string;
1135
+ /**
1136
+ * Formatted string of result context: place region country postcode. The part of the result
1137
+ * which comes after name.
1138
+ */
1139
+ place_formatted?: string;
1140
+ /**
1141
+ * Full formatted string of the feature, combining name_preferred and place_formatted.
1142
+ */
1143
+ full_address?: string;
1125
1144
  }
1126
1145
 
1127
1146
  interface Coordinates {
@@ -1742,7 +1761,7 @@ declare module "@mapbox/mapbox-sdk/services/optimization" {
1742
1761
  // eslint-disable-next-line @definitelytyped/no-self-import
1743
1762
  import { Waypoint } from "@mapbox/mapbox-sdk/services/directions";
1744
1763
  // eslint-disable-next-line @definitelytyped/no-self-import
1745
- import { DirectionsApproach, MapboxProfile, MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
1764
+ import { MapboxProfile, MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
1746
1765
  // eslint-disable-next-line @definitelytyped/no-self-import
1747
1766
  import MapiClient, { SdkConfig } from "@mapbox/mapbox-sdk/lib/classes/mapi-client";
1748
1767
 
@@ -1841,7 +1860,7 @@ declare module "@mapbox/mapbox-sdk/services/static" {
1841
1860
  * Get a static map image..
1842
1861
  * @param request
1843
1862
  */
1844
- getStaticImage(request: StaticMapRequest): MapiRequest;
1863
+ getStaticImage(request: StaticMapRequest): MapiRequest<string>;
1845
1864
  }
1846
1865
 
1847
1866
  interface StaticMapRequest {
@@ -1856,6 +1875,7 @@ declare module "@mapbox/mapbox-sdk/services/static" {
1856
1875
  bearing?: number | undefined;
1857
1876
  pitch?: number | undefined;
1858
1877
  }
1878
+ | { bbox: [number, number, number, number] }
1859
1879
  | "auto";
1860
1880
  padding?: string | undefined;
1861
1881
  overlays?: Array<CustomMarkerOverlay | SimpleMarkerOverlay | PathOverlay | GeoJsonOverlay> | undefined;
@@ -2087,7 +2107,6 @@ declare module "@mapbox/mapbox-sdk/services/styles" {
2087
2107
 
2088
2108
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
2089
2109
  declare module "@mapbox/mapbox-sdk/services/tilequery" {
2090
- import * as mapboxgl from "mapbox-gl";
2091
2110
  // eslint-disable-next-line @definitelytyped/no-self-import
2092
2111
  import { Coordinates, MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
2093
2112
  // eslint-disable-next-line @definitelytyped/no-self-import
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/mapbox__mapbox-sdk",
3
- "version": "0.15.1",
3
+ "version": "0.16.1",
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",
@@ -44,6 +44,7 @@
44
44
  "@types/mapbox-gl": "*",
45
45
  "@types/node": "*"
46
46
  },
47
- "typesPublisherContentHash": "5a057401de7c87d8ca5636e0a1ce1917314edf58db55a57c3d5a6875b3edd95d",
48
- "typeScriptVersion": "4.8"
47
+ "peerDependencies": {},
48
+ "typesPublisherContentHash": "1afce6d6e035194e6d4612fe3fb16ebfedd11edd179624a9bcd0b35c14d68718",
49
+ "typeScriptVersion": "5.1"
49
50
  }