@azure-rest/maps-search 2.0.0-beta.1 → 2.0.0-beta.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.
- package/LICENSE +4 -4
- package/README.md +113 -123
- package/dist/browser/MapsSearch.d.ts +53 -0
- package/dist/browser/MapsSearch.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/MapsSearch.js +5 -5
- package/dist/browser/MapsSearch.js.map +1 -0
- package/dist/browser/generated/clientDefinitions.d.ts +137 -0
- package/dist/browser/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/browser/generated/clientDefinitions.js +4 -0
- package/dist/browser/generated/clientDefinitions.js.map +1 -0
- package/dist/browser/generated/index.d.ts +10 -0
- package/dist/browser/generated/index.d.ts.map +1 -0
- package/dist/browser/generated/index.js +12 -0
- package/dist/browser/generated/index.js.map +1 -0
- package/dist/browser/generated/isUnexpected.d.ts +7 -0
- package/dist/browser/generated/isUnexpected.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/isUnexpected.js +8 -7
- package/dist/browser/generated/isUnexpected.js.map +1 -0
- package/dist/browser/generated/logger.d.ts +2 -0
- package/dist/browser/generated/logger.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser/generated}/logger.js +1 -1
- package/dist/browser/generated/logger.js.map +1 -0
- package/dist/browser/generated/mapsSearchClient.d.ts +15 -0
- package/dist/browser/generated/mapsSearchClient.d.ts.map +1 -0
- package/dist/browser/generated/mapsSearchClient.js +42 -0
- package/dist/browser/generated/mapsSearchClient.js.map +1 -0
- package/dist/browser/generated/models.d.ts +97 -0
- package/dist/browser/generated/models.d.ts.map +1 -0
- package/dist/browser/generated/models.js +4 -0
- package/dist/browser/generated/models.js.map +1 -0
- package/dist/browser/generated/outputModels.d.ts +298 -0
- package/dist/browser/generated/outputModels.d.ts.map +1 -0
- package/dist/browser/generated/outputModels.js +4 -0
- package/{dist-esm/src → dist/browser}/generated/outputModels.js.map +1 -1
- package/dist/browser/generated/parameters.d.ts +135 -0
- package/dist/browser/generated/parameters.d.ts.map +1 -0
- package/dist/browser/generated/parameters.js +4 -0
- package/dist/browser/generated/parameters.js.map +1 -0
- package/dist/browser/generated/responses.d.ts +255 -0
- package/dist/browser/generated/responses.d.ts.map +1 -0
- package/dist/browser/generated/responses.js +4 -0
- package/dist/browser/generated/responses.js.map +1 -0
- package/dist/browser/index.d.ts +4 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +6 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.d.ts.map +1 -0
- package/dist/browser/logger.js +5 -0
- package/{dist-esm/src → dist/browser}/logger.js.map +1 -1
- package/dist/browser/package.json +3 -0
- package/dist/commonjs/MapsSearch.d.ts +53 -0
- package/dist/commonjs/MapsSearch.d.ts.map +1 -0
- package/dist/commonjs/MapsSearch.js +44 -0
- package/dist/commonjs/MapsSearch.js.map +1 -0
- package/dist/commonjs/generated/clientDefinitions.d.ts +137 -0
- package/dist/commonjs/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/commonjs/generated/clientDefinitions.js +5 -0
- package/dist/commonjs/generated/clientDefinitions.js.map +1 -0
- package/dist/commonjs/generated/index.d.ts +10 -0
- package/dist/commonjs/generated/index.d.ts.map +1 -0
- package/dist/commonjs/generated/index.js +15 -0
- package/dist/commonjs/generated/index.js.map +1 -0
- package/dist/commonjs/generated/isUnexpected.d.ts +7 -0
- package/dist/commonjs/generated/isUnexpected.d.ts.map +1 -0
- package/dist/commonjs/generated/isUnexpected.js +78 -0
- package/dist/commonjs/generated/isUnexpected.js.map +1 -0
- package/dist/commonjs/generated/logger.d.ts +2 -0
- package/dist/commonjs/generated/logger.d.ts.map +1 -0
- package/dist/commonjs/generated/logger.js +8 -0
- package/dist/commonjs/generated/logger.js.map +1 -0
- package/dist/commonjs/generated/mapsSearchClient.d.ts +15 -0
- package/dist/commonjs/generated/mapsSearchClient.d.ts.map +1 -0
- package/dist/commonjs/generated/mapsSearchClient.js +45 -0
- package/dist/commonjs/generated/mapsSearchClient.js.map +1 -0
- package/dist/commonjs/generated/models.d.ts +97 -0
- package/dist/commonjs/generated/models.d.ts.map +1 -0
- package/dist/commonjs/generated/models.js +5 -0
- package/dist/commonjs/generated/models.js.map +1 -0
- package/dist/commonjs/generated/outputModels.d.ts +298 -0
- package/dist/commonjs/generated/outputModels.d.ts.map +1 -0
- package/dist/commonjs/generated/outputModels.js +5 -0
- package/dist/commonjs/generated/outputModels.js.map +1 -0
- package/dist/commonjs/generated/parameters.d.ts +135 -0
- package/dist/commonjs/generated/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/parameters.js +5 -0
- package/dist/commonjs/generated/parameters.js.map +1 -0
- package/dist/commonjs/generated/responses.d.ts +255 -0
- package/dist/commonjs/generated/responses.d.ts.map +1 -0
- package/dist/commonjs/generated/responses.js +5 -0
- package/dist/commonjs/generated/responses.js.map +1 -0
- package/dist/commonjs/index.d.ts +4 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +9 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +8 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/MapsSearch.d.ts +53 -0
- package/dist/esm/MapsSearch.d.ts.map +1 -0
- package/dist/esm/MapsSearch.js +40 -0
- package/dist/esm/MapsSearch.js.map +1 -0
- package/dist/esm/generated/clientDefinitions.d.ts +137 -0
- package/dist/esm/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/esm/generated/clientDefinitions.js +4 -0
- package/dist/esm/generated/clientDefinitions.js.map +1 -0
- package/dist/esm/generated/index.d.ts +10 -0
- package/dist/esm/generated/index.d.ts.map +1 -0
- package/dist/esm/generated/index.js +12 -0
- package/dist/esm/generated/index.js.map +1 -0
- package/dist/esm/generated/isUnexpected.d.ts +7 -0
- package/dist/esm/generated/isUnexpected.d.ts.map +1 -0
- package/dist/esm/generated/isUnexpected.js +75 -0
- package/dist/esm/generated/isUnexpected.js.map +1 -0
- package/dist/esm/generated/logger.d.ts +2 -0
- package/dist/esm/generated/logger.d.ts.map +1 -0
- package/dist/esm/generated/logger.js +5 -0
- package/dist/esm/generated/logger.js.map +1 -0
- package/dist/esm/generated/mapsSearchClient.d.ts +15 -0
- package/dist/esm/generated/mapsSearchClient.d.ts.map +1 -0
- package/dist/esm/generated/mapsSearchClient.js +42 -0
- package/dist/esm/generated/mapsSearchClient.js.map +1 -0
- package/dist/esm/generated/models.d.ts +97 -0
- package/dist/esm/generated/models.d.ts.map +1 -0
- package/dist/esm/generated/models.js +4 -0
- package/dist/esm/generated/models.js.map +1 -0
- package/dist/esm/generated/outputModels.d.ts +298 -0
- package/dist/esm/generated/outputModels.d.ts.map +1 -0
- package/dist/esm/generated/outputModels.js +4 -0
- package/dist/esm/generated/outputModels.js.map +1 -0
- package/dist/esm/generated/parameters.d.ts +135 -0
- package/dist/esm/generated/parameters.d.ts.map +1 -0
- package/dist/esm/generated/parameters.js +4 -0
- package/dist/esm/generated/parameters.js.map +1 -0
- package/dist/esm/generated/responses.d.ts +255 -0
- package/dist/esm/generated/responses.d.ts.map +1 -0
- package/dist/esm/generated/responses.js +4 -0
- package/dist/esm/generated/responses.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/react-native/MapsSearch.d.ts +53 -0
- package/dist/react-native/MapsSearch.d.ts.map +1 -0
- package/dist/react-native/MapsSearch.js +40 -0
- package/dist/react-native/MapsSearch.js.map +1 -0
- package/dist/react-native/generated/clientDefinitions.d.ts +137 -0
- package/dist/react-native/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/react-native/generated/clientDefinitions.js +4 -0
- package/dist/react-native/generated/clientDefinitions.js.map +1 -0
- package/dist/react-native/generated/index.d.ts +10 -0
- package/dist/react-native/generated/index.d.ts.map +1 -0
- package/dist/react-native/generated/index.js +12 -0
- package/dist/react-native/generated/index.js.map +1 -0
- package/dist/react-native/generated/isUnexpected.d.ts +7 -0
- package/dist/react-native/generated/isUnexpected.d.ts.map +1 -0
- package/dist/react-native/generated/isUnexpected.js +75 -0
- package/dist/react-native/generated/isUnexpected.js.map +1 -0
- package/dist/react-native/generated/logger.d.ts +2 -0
- package/dist/react-native/generated/logger.d.ts.map +1 -0
- package/dist/react-native/generated/logger.js +5 -0
- package/dist/react-native/generated/logger.js.map +1 -0
- package/dist/react-native/generated/mapsSearchClient.d.ts +15 -0
- package/dist/react-native/generated/mapsSearchClient.d.ts.map +1 -0
- package/dist/react-native/generated/mapsSearchClient.js +42 -0
- package/dist/react-native/generated/mapsSearchClient.js.map +1 -0
- package/dist/react-native/generated/models.d.ts +97 -0
- package/dist/react-native/generated/models.d.ts.map +1 -0
- package/dist/react-native/generated/models.js +4 -0
- package/dist/react-native/generated/models.js.map +1 -0
- package/dist/react-native/generated/outputModels.d.ts +298 -0
- package/dist/react-native/generated/outputModels.d.ts.map +1 -0
- package/dist/react-native/generated/outputModels.js +4 -0
- package/dist/react-native/generated/outputModels.js.map +1 -0
- package/dist/react-native/generated/parameters.d.ts +135 -0
- package/dist/react-native/generated/parameters.d.ts.map +1 -0
- package/dist/react-native/generated/parameters.js +4 -0
- package/dist/react-native/generated/parameters.js.map +1 -0
- package/dist/react-native/generated/responses.d.ts +255 -0
- package/dist/react-native/generated/responses.d.ts.map +1 -0
- package/dist/react-native/generated/responses.js +4 -0
- package/dist/react-native/generated/responses.js.map +1 -0
- package/dist/react-native/index.d.ts +4 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +6 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/logger.d.ts +2 -0
- package/dist/react-native/logger.d.ts.map +1 -0
- package/dist/react-native/logger.js +5 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/package.json +83 -66
- package/dist/index.js +0 -160
- package/dist/index.js.map +0 -1
- package/dist-esm/src/MapsSearch.js.map +0 -1
- package/dist-esm/src/generated/clientDefinitions.js +0 -4
- package/dist-esm/src/generated/clientDefinitions.js.map +0 -1
- package/dist-esm/src/generated/index.js +0 -12
- package/dist-esm/src/generated/index.js.map +0 -1
- package/dist-esm/src/generated/isUnexpected.js.map +0 -1
- package/dist-esm/src/generated/mapsSearchClient.js +0 -32
- package/dist-esm/src/generated/mapsSearchClient.js.map +0 -1
- package/dist-esm/src/generated/models.js +0 -4
- package/dist-esm/src/generated/models.js.map +0 -1
- package/dist-esm/src/generated/outputModels.js +0 -4
- package/dist-esm/src/generated/parameters.js +0 -4
- package/dist-esm/src/generated/parameters.js.map +0 -1
- package/dist-esm/src/generated/pollingHelper.js +0 -55
- package/dist-esm/src/generated/pollingHelper.js.map +0 -1
- package/dist-esm/src/generated/responses.js +0 -4
- package/dist-esm/src/generated/responses.js.map +0 -1
- package/dist-esm/src/index.js +0 -6
- package/dist-esm/src/index.js.map +0 -1
- package/review/maps-search.api.md +0 -544
- package/types/maps-search-rest.d.ts +0 -1117
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import { RawHttpHeaders } from "@azure/core-rest-pipeline";
|
|
2
|
+
import { HttpResponse } from "@azure-rest/core-client";
|
|
3
|
+
import { GeocodingResponseOutput, ErrorResponseOutput, GeocodingBatchResponseOutput, BoundaryOutput } from "./outputModels.js";
|
|
4
|
+
export interface SearchGetGeocoding200Headers {
|
|
5
|
+
/** request id. */
|
|
6
|
+
"x-ms-request-id"?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* The `Get Geocoding` API is an HTTP `GET` request that returns the longitude and latitude coordinates of the location being searched.
|
|
11
|
+
*
|
|
12
|
+
* In many cases, the complete search service might be too much, for instance if you are only interested in traditional geocoding. Search can also be accessed for address look up exclusively. The geocoding is performed by hitting the geocoding endpoint with just the address or partial address in question. The geocoding search index will be queried for everything above the street level data. No Point of Interest (POIs) will be returned. Note that the geocoder is very tolerant of typos and incomplete addresses. It will also handle everything from exact street addresses or street or intersections as well as higher level geographies such as city centers, counties and states. The response also returns detailed address properties such as street, postal code, municipality, and country/region information.
|
|
13
|
+
*/
|
|
14
|
+
export interface SearchGetGeocoding200Response extends HttpResponse {
|
|
15
|
+
status: "200";
|
|
16
|
+
body: GeocodingResponseOutput;
|
|
17
|
+
headers: RawHttpHeaders & SearchGetGeocoding200Headers;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* The `Get Geocoding` API is an HTTP `GET` request that returns the longitude and latitude coordinates of the location being searched.
|
|
22
|
+
*
|
|
23
|
+
* In many cases, the complete search service might be too much, for instance if you are only interested in traditional geocoding. Search can also be accessed for address look up exclusively. The geocoding is performed by hitting the geocoding endpoint with just the address or partial address in question. The geocoding search index will be queried for everything above the street level data. No Point of Interest (POIs) will be returned. Note that the geocoder is very tolerant of typos and incomplete addresses. It will also handle everything from exact street addresses or street or intersections as well as higher level geographies such as city centers, counties and states. The response also returns detailed address properties such as street, postal code, municipality, and country/region information.
|
|
24
|
+
*/
|
|
25
|
+
export interface SearchGetGeocodingDefaultResponse extends HttpResponse {
|
|
26
|
+
status: string;
|
|
27
|
+
body: ErrorResponseOutput;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* The `Get Geocoding Batch` API is an HTTP `POST` request that sends batches of up to **100** queries to the [Geocoding](/rest/api/maps/search/get-geocoding) API in a single request.
|
|
32
|
+
*
|
|
33
|
+
* ### Submit Synchronous Batch Request
|
|
34
|
+
* The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.
|
|
35
|
+
* ```
|
|
36
|
+
* POST https://atlas.microsoft.com/geocode:batch?api-version=2023-06-01
|
|
37
|
+
* ```
|
|
38
|
+
* ### POST Body for Batch Request
|
|
39
|
+
* To send the _geocoding_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 2 _geocoding_ queries:
|
|
40
|
+
*
|
|
41
|
+
*
|
|
42
|
+
* ```
|
|
43
|
+
* {
|
|
44
|
+
* "batchItems": [
|
|
45
|
+
* {
|
|
46
|
+
* "addressLine": "One, Microsoft Way, Redmond, WA 98052",
|
|
47
|
+
* "top": 2
|
|
48
|
+
* },
|
|
49
|
+
* {
|
|
50
|
+
* "addressLine": "Pike Pl",
|
|
51
|
+
* "adminDistrict": "WA",
|
|
52
|
+
* "locality": "Seattle",
|
|
53
|
+
* "top": 3
|
|
54
|
+
* }
|
|
55
|
+
* ]
|
|
56
|
+
* }
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* A _geocoding_ batchItem object can accept any of the supported _geocoding_ [URI parameters](/rest/api/maps/search/get-geocoding#uri-parameters).
|
|
60
|
+
*
|
|
61
|
+
*
|
|
62
|
+
* The batch should contain at least **1** query.
|
|
63
|
+
*
|
|
64
|
+
*
|
|
65
|
+
* ### Batch Response Model
|
|
66
|
+
* The batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests` i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item is of one of the following types:
|
|
67
|
+
*
|
|
68
|
+
* - [`GeocodingResponse`](/rest/api/maps/search/get-geocoding#geocodingresponse) - If the query completed successfully.
|
|
69
|
+
*
|
|
70
|
+
* - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
|
|
71
|
+
*
|
|
72
|
+
*
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
export interface SearchGetGeocodingBatch200Response extends HttpResponse {
|
|
76
|
+
status: "200";
|
|
77
|
+
body: GeocodingBatchResponseOutput;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* The `Get Geocoding Batch` API is an HTTP `POST` request that sends batches of up to **100** queries to the [Geocoding](/rest/api/maps/search/get-geocoding) API in a single request.
|
|
82
|
+
*
|
|
83
|
+
* ### Submit Synchronous Batch Request
|
|
84
|
+
* The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.
|
|
85
|
+
* ```
|
|
86
|
+
* POST https://atlas.microsoft.com/geocode:batch?api-version=2023-06-01
|
|
87
|
+
* ```
|
|
88
|
+
* ### POST Body for Batch Request
|
|
89
|
+
* To send the _geocoding_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 2 _geocoding_ queries:
|
|
90
|
+
*
|
|
91
|
+
*
|
|
92
|
+
* ```
|
|
93
|
+
* {
|
|
94
|
+
* "batchItems": [
|
|
95
|
+
* {
|
|
96
|
+
* "addressLine": "One, Microsoft Way, Redmond, WA 98052",
|
|
97
|
+
* "top": 2
|
|
98
|
+
* },
|
|
99
|
+
* {
|
|
100
|
+
* "addressLine": "Pike Pl",
|
|
101
|
+
* "adminDistrict": "WA",
|
|
102
|
+
* "locality": "Seattle",
|
|
103
|
+
* "top": 3
|
|
104
|
+
* }
|
|
105
|
+
* ]
|
|
106
|
+
* }
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
109
|
+
* A _geocoding_ batchItem object can accept any of the supported _geocoding_ [URI parameters](/rest/api/maps/search/get-geocoding#uri-parameters).
|
|
110
|
+
*
|
|
111
|
+
*
|
|
112
|
+
* The batch should contain at least **1** query.
|
|
113
|
+
*
|
|
114
|
+
*
|
|
115
|
+
* ### Batch Response Model
|
|
116
|
+
* The batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests` i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item is of one of the following types:
|
|
117
|
+
*
|
|
118
|
+
* - [`GeocodingResponse`](/rest/api/maps/search/get-geocoding#geocodingresponse) - If the query completed successfully.
|
|
119
|
+
*
|
|
120
|
+
* - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
|
|
121
|
+
*
|
|
122
|
+
*
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
export interface SearchGetGeocodingBatchDefaultResponse extends HttpResponse {
|
|
126
|
+
status: string;
|
|
127
|
+
body: ErrorResponseOutput;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* The `Get Polygon` API is an HTTP `GET` request that supplies polygon data of a geographical area outline such as a city or a country region.
|
|
132
|
+
*/
|
|
133
|
+
export interface SearchGetPolygon200Response extends HttpResponse {
|
|
134
|
+
status: "200";
|
|
135
|
+
body: BoundaryOutput;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* The `Get Polygon` API is an HTTP `GET` request that supplies polygon data of a geographical area outline such as a city or a country region.
|
|
140
|
+
*/
|
|
141
|
+
export interface SearchGetPolygonDefaultResponse extends HttpResponse {
|
|
142
|
+
status: string;
|
|
143
|
+
body: ErrorResponseOutput;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* The `Get Reverse Geocoding` API is an HTTP `GET` request used to translate a coordinate (example: 37.786505, -122.3862) into a human understandable street address. Useful in tracking applications where you receive a GPS feed from the device or asset and wish to know the address associated with the coordinates. This endpoint will return address information for a given coordinate.
|
|
148
|
+
*/
|
|
149
|
+
export interface SearchGetReverseGeocoding200Response extends HttpResponse {
|
|
150
|
+
status: "200";
|
|
151
|
+
body: GeocodingResponseOutput;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* The `Get Reverse Geocoding` API is an HTTP `GET` request used to translate a coordinate (example: 37.786505, -122.3862) into a human understandable street address. Useful in tracking applications where you receive a GPS feed from the device or asset and wish to know the address associated with the coordinates. This endpoint will return address information for a given coordinate.
|
|
156
|
+
*/
|
|
157
|
+
export interface SearchGetReverseGeocodingDefaultResponse extends HttpResponse {
|
|
158
|
+
status: string;
|
|
159
|
+
body: ErrorResponseOutput;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
* The `Get Reverse Geocoding Batch` API is an HTTP `POST` request that sends batches of up to **100** queries to [Reverse Geocoding](/rest/api/maps/search/get-reverse-geocoding) API using a single request.
|
|
164
|
+
*
|
|
165
|
+
* ### Submit Synchronous Batch Request
|
|
166
|
+
* The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.
|
|
167
|
+
* ```
|
|
168
|
+
* POST https://atlas.microsoft.com/reverseGeocode:batch?api-version=2023-06-01
|
|
169
|
+
* ```
|
|
170
|
+
* ### POST Body for Batch Request
|
|
171
|
+
* To send the _reverse geocoding_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 2 _reverse geocoding_ queries:
|
|
172
|
+
*
|
|
173
|
+
*
|
|
174
|
+
* ```
|
|
175
|
+
* {
|
|
176
|
+
* "batchItems": [
|
|
177
|
+
* {
|
|
178
|
+
* "coordinates": [-122.128275, 47.639429],
|
|
179
|
+
* "resultTypes": ["Address", "PopulatedPlace"]
|
|
180
|
+
* },
|
|
181
|
+
* {
|
|
182
|
+
* "coordinates": [-122.341979399674, 47.6095253501216]
|
|
183
|
+
* }
|
|
184
|
+
* ]
|
|
185
|
+
* }
|
|
186
|
+
* ```
|
|
187
|
+
*
|
|
188
|
+
* A _reverse geocoding_ batchItem object can accept any of the supported _reverse geocoding_ [URI parameters](/rest/api/maps/search/get-reverse-geocoding#uri-parameters).
|
|
189
|
+
*
|
|
190
|
+
*
|
|
191
|
+
* The batch should contain at least **1** query.
|
|
192
|
+
*
|
|
193
|
+
*
|
|
194
|
+
* ### Batch Response Model
|
|
195
|
+
* The batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests` i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item is of one of the following types:
|
|
196
|
+
*
|
|
197
|
+
* - [`GeocodingResponse`](/rest/api/maps/search/get-reverse-geocoding#geocodingresponse) - If the query completed successfully.
|
|
198
|
+
*
|
|
199
|
+
* - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
|
|
200
|
+
*
|
|
201
|
+
*
|
|
202
|
+
*
|
|
203
|
+
*/
|
|
204
|
+
export interface SearchGetReverseGeocodingBatch200Response extends HttpResponse {
|
|
205
|
+
status: "200";
|
|
206
|
+
body: GeocodingBatchResponseOutput;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* The `Get Reverse Geocoding Batch` API is an HTTP `POST` request that sends batches of up to **100** queries to [Reverse Geocoding](/rest/api/maps/search/get-reverse-geocoding) API using a single request.
|
|
211
|
+
*
|
|
212
|
+
* ### Submit Synchronous Batch Request
|
|
213
|
+
* The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.
|
|
214
|
+
* ```
|
|
215
|
+
* POST https://atlas.microsoft.com/reverseGeocode:batch?api-version=2023-06-01
|
|
216
|
+
* ```
|
|
217
|
+
* ### POST Body for Batch Request
|
|
218
|
+
* To send the _reverse geocoding_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 2 _reverse geocoding_ queries:
|
|
219
|
+
*
|
|
220
|
+
*
|
|
221
|
+
* ```
|
|
222
|
+
* {
|
|
223
|
+
* "batchItems": [
|
|
224
|
+
* {
|
|
225
|
+
* "coordinates": [-122.128275, 47.639429],
|
|
226
|
+
* "resultTypes": ["Address", "PopulatedPlace"]
|
|
227
|
+
* },
|
|
228
|
+
* {
|
|
229
|
+
* "coordinates": [-122.341979399674, 47.6095253501216]
|
|
230
|
+
* }
|
|
231
|
+
* ]
|
|
232
|
+
* }
|
|
233
|
+
* ```
|
|
234
|
+
*
|
|
235
|
+
* A _reverse geocoding_ batchItem object can accept any of the supported _reverse geocoding_ [URI parameters](/rest/api/maps/search/get-reverse-geocoding#uri-parameters).
|
|
236
|
+
*
|
|
237
|
+
*
|
|
238
|
+
* The batch should contain at least **1** query.
|
|
239
|
+
*
|
|
240
|
+
*
|
|
241
|
+
* ### Batch Response Model
|
|
242
|
+
* The batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests` i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item is of one of the following types:
|
|
243
|
+
*
|
|
244
|
+
* - [`GeocodingResponse`](/rest/api/maps/search/get-reverse-geocoding#geocodingresponse) - If the query completed successfully.
|
|
245
|
+
*
|
|
246
|
+
* - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
|
|
247
|
+
*
|
|
248
|
+
*
|
|
249
|
+
*
|
|
250
|
+
*/
|
|
251
|
+
export interface SearchGetReverseGeocodingBatchDefaultResponse extends HttpResponse {
|
|
252
|
+
status: string;
|
|
253
|
+
body: ErrorResponseOutput;
|
|
254
|
+
}
|
|
255
|
+
//# sourceMappingURL=responses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/generated/responses.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,4BAA4B,EAC5B,cAAc,EACf,MAAM,mBAAmB,CAAC;AAE3B,MAAM,WAAW,4BAA4B;IAC3C,kBAAkB;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;GAKG;AACH,MAAM,WAAW,6BAA8B,SAAQ,YAAY;IACjE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,uBAAuB,CAAC;IAC9B,OAAO,EAAE,cAAc,GAAG,4BAA4B,CAAC;CACxD;AAED;;;;;GAKG;AACH,MAAM,WAAW,iCAAkC,SAAQ,YAAY;IACrE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAM,WAAW,kCAAmC,SAAQ,YAAY;IACtE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,4BAA4B,CAAC;CACpC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAM,WAAW,sCAAuC,SAAQ,YAAY;IAC1E,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,cAAc,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,+BAAgC,SAAQ,YAAY;IACnE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,oCAAqC,SAAQ,YAAY;IACxE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,uBAAuB,CAAC;CAC/B;AAED;;;GAGG;AACH,MAAM,WAAW,wCAAyC,SAAQ,YAAY;IAC5E,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,WAAW,yCACf,SAAQ,YAAY;IACpB,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,4BAA4B,CAAC;CACpC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,WAAW,6CACf,SAAQ,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../src/generated/responses.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\nimport { HttpResponse } from \"@azure-rest/core-client\";\nimport {\n GeocodingResponseOutput,\n ErrorResponseOutput,\n GeocodingBatchResponseOutput,\n BoundaryOutput,\n} from \"./outputModels.js\";\n\nexport interface SearchGetGeocoding200Headers {\n /** request id. */\n \"x-ms-request-id\"?: string;\n}\n\n/**\n *\n * The `Get Geocoding` API is an HTTP `GET` request that returns the longitude and latitude coordinates of the location being searched.\n *\n * In many cases, the complete search service might be too much, for instance if you are only interested in traditional geocoding. Search can also be accessed for address look up exclusively. The geocoding is performed by hitting the geocoding endpoint with just the address or partial address in question. The geocoding search index will be queried for everything above the street level data. No Point of Interest (POIs) will be returned. Note that the geocoder is very tolerant of typos and incomplete addresses. It will also handle everything from exact street addresses or street or intersections as well as higher level geographies such as city centers, counties and states. The response also returns detailed address properties such as street, postal code, municipality, and country/region information.\n */\nexport interface SearchGetGeocoding200Response extends HttpResponse {\n status: \"200\";\n body: GeocodingResponseOutput;\n headers: RawHttpHeaders & SearchGetGeocoding200Headers;\n}\n\n/**\n *\n * The `Get Geocoding` API is an HTTP `GET` request that returns the longitude and latitude coordinates of the location being searched.\n *\n * In many cases, the complete search service might be too much, for instance if you are only interested in traditional geocoding. Search can also be accessed for address look up exclusively. The geocoding is performed by hitting the geocoding endpoint with just the address or partial address in question. The geocoding search index will be queried for everything above the street level data. No Point of Interest (POIs) will be returned. Note that the geocoder is very tolerant of typos and incomplete addresses. It will also handle everything from exact street addresses or street or intersections as well as higher level geographies such as city centers, counties and states. The response also returns detailed address properties such as street, postal code, municipality, and country/region information.\n */\nexport interface SearchGetGeocodingDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/**\n *\n * The `Get Geocoding Batch` API is an HTTP `POST` request that sends batches of up to **100** queries to the [Geocoding](/rest/api/maps/search/get-geocoding) API in a single request.\n *\n * ### Submit Synchronous Batch Request\n * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n * ```\n * POST https://atlas.microsoft.com/geocode:batch?api-version=2023-06-01\n * ```\n * ### POST Body for Batch Request\n * To send the _geocoding_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 2 _geocoding_ queries:\n *\n *\n * ```\n * {\n * \"batchItems\": [\n * {\n * \"addressLine\": \"One, Microsoft Way, Redmond, WA 98052\",\n * \"top\": 2\n * },\n * {\n * \"addressLine\": \"Pike Pl\",\n * \"adminDistrict\": \"WA\",\n * \"locality\": \"Seattle\",\n * \"top\": 3\n * }\n * ]\n * }\n * ```\n *\n * A _geocoding_ batchItem object can accept any of the supported _geocoding_ [URI parameters](/rest/api/maps/search/get-geocoding#uri-parameters).\n *\n *\n * The batch should contain at least **1** query.\n *\n *\n * ### Batch Response Model\n * The batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests` i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item is of one of the following types:\n *\n * - [`GeocodingResponse`](/rest/api/maps/search/get-geocoding#geocodingresponse) - If the query completed successfully.\n *\n * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n *\n *\n *\n */\nexport interface SearchGetGeocodingBatch200Response extends HttpResponse {\n status: \"200\";\n body: GeocodingBatchResponseOutput;\n}\n\n/**\n *\n * The `Get Geocoding Batch` API is an HTTP `POST` request that sends batches of up to **100** queries to the [Geocoding](/rest/api/maps/search/get-geocoding) API in a single request.\n *\n * ### Submit Synchronous Batch Request\n * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n * ```\n * POST https://atlas.microsoft.com/geocode:batch?api-version=2023-06-01\n * ```\n * ### POST Body for Batch Request\n * To send the _geocoding_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 2 _geocoding_ queries:\n *\n *\n * ```\n * {\n * \"batchItems\": [\n * {\n * \"addressLine\": \"One, Microsoft Way, Redmond, WA 98052\",\n * \"top\": 2\n * },\n * {\n * \"addressLine\": \"Pike Pl\",\n * \"adminDistrict\": \"WA\",\n * \"locality\": \"Seattle\",\n * \"top\": 3\n * }\n * ]\n * }\n * ```\n *\n * A _geocoding_ batchItem object can accept any of the supported _geocoding_ [URI parameters](/rest/api/maps/search/get-geocoding#uri-parameters).\n *\n *\n * The batch should contain at least **1** query.\n *\n *\n * ### Batch Response Model\n * The batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests` i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item is of one of the following types:\n *\n * - [`GeocodingResponse`](/rest/api/maps/search/get-geocoding#geocodingresponse) - If the query completed successfully.\n *\n * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n *\n *\n *\n */\nexport interface SearchGetGeocodingBatchDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/**\n *\n * The `Get Polygon` API is an HTTP `GET` request that supplies polygon data of a geographical area outline such as a city or a country region.\n */\nexport interface SearchGetPolygon200Response extends HttpResponse {\n status: \"200\";\n body: BoundaryOutput;\n}\n\n/**\n *\n * The `Get Polygon` API is an HTTP `GET` request that supplies polygon data of a geographical area outline such as a city or a country region.\n */\nexport interface SearchGetPolygonDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/**\n *\n * The `Get Reverse Geocoding` API is an HTTP `GET` request used to translate a coordinate (example: 37.786505, -122.3862) into a human understandable street address. Useful in tracking applications where you receive a GPS feed from the device or asset and wish to know the address associated with the coordinates. This endpoint will return address information for a given coordinate.\n */\nexport interface SearchGetReverseGeocoding200Response extends HttpResponse {\n status: \"200\";\n body: GeocodingResponseOutput;\n}\n\n/**\n *\n * The `Get Reverse Geocoding` API is an HTTP `GET` request used to translate a coordinate (example: 37.786505, -122.3862) into a human understandable street address. Useful in tracking applications where you receive a GPS feed from the device or asset and wish to know the address associated with the coordinates. This endpoint will return address information for a given coordinate.\n */\nexport interface SearchGetReverseGeocodingDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/**\n *\n * The `Get Reverse Geocoding Batch` API is an HTTP `POST` request that sends batches of up to **100** queries to [Reverse Geocoding](/rest/api/maps/search/get-reverse-geocoding) API using a single request.\n *\n * ### Submit Synchronous Batch Request\n * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n * ```\n * POST https://atlas.microsoft.com/reverseGeocode:batch?api-version=2023-06-01\n * ```\n * ### POST Body for Batch Request\n * To send the _reverse geocoding_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 2 _reverse geocoding_ queries:\n *\n *\n * ```\n * {\n * \"batchItems\": [\n * {\n * \"coordinates\": [-122.128275, 47.639429],\n * \"resultTypes\": [\"Address\", \"PopulatedPlace\"]\n * },\n * {\n * \"coordinates\": [-122.341979399674, 47.6095253501216]\n * }\n * ]\n * }\n * ```\n *\n * A _reverse geocoding_ batchItem object can accept any of the supported _reverse geocoding_ [URI parameters](/rest/api/maps/search/get-reverse-geocoding#uri-parameters).\n *\n *\n * The batch should contain at least **1** query.\n *\n *\n * ### Batch Response Model\n * The batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests` i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item is of one of the following types:\n *\n * - [`GeocodingResponse`](/rest/api/maps/search/get-reverse-geocoding#geocodingresponse) - If the query completed successfully.\n *\n * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n *\n *\n *\n */\nexport interface SearchGetReverseGeocodingBatch200Response\n extends HttpResponse {\n status: \"200\";\n body: GeocodingBatchResponseOutput;\n}\n\n/**\n *\n * The `Get Reverse Geocoding Batch` API is an HTTP `POST` request that sends batches of up to **100** queries to [Reverse Geocoding](/rest/api/maps/search/get-reverse-geocoding) API using a single request.\n *\n * ### Submit Synchronous Batch Request\n * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n * ```\n * POST https://atlas.microsoft.com/reverseGeocode:batch?api-version=2023-06-01\n * ```\n * ### POST Body for Batch Request\n * To send the _reverse geocoding_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 2 _reverse geocoding_ queries:\n *\n *\n * ```\n * {\n * \"batchItems\": [\n * {\n * \"coordinates\": [-122.128275, 47.639429],\n * \"resultTypes\": [\"Address\", \"PopulatedPlace\"]\n * },\n * {\n * \"coordinates\": [-122.341979399674, 47.6095253501216]\n * }\n * ]\n * }\n * ```\n *\n * A _reverse geocoding_ batchItem object can accept any of the supported _reverse geocoding_ [URI parameters](/rest/api/maps/search/get-reverse-geocoding#uri-parameters).\n *\n *\n * The batch should contain at least **1** query.\n *\n *\n * ### Batch Response Model\n * The batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests` i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item is of one of the following types:\n *\n * - [`GeocodingResponse`](/rest/api/maps/search/get-reverse-geocoding#geocodingresponse) - If the query completed successfully.\n *\n * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n *\n *\n *\n */\nexport interface SearchGetReverseGeocodingBatchDefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,UAAU,MAAM,iBAAiB,CAAC;AAEzC,cAAc,sBAAsB,CAAC;AACrC,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,UAAU,MAAM,iBAAiB,CAAC;AAEzC,cAAc,sBAAsB,CAAC;AACrC,eAAe,UAAU,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport MapsSearch from \"./MapsSearch.js\";\n\nexport * from \"./generated/index.js\";\nexport default MapsSearch;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,qCAAoC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,aAAa,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"maps-search\");\n"]}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@azure-rest/maps-search",
|
|
3
3
|
"sdk-type": "client",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
|
-
"version": "2.0.0-beta.
|
|
5
|
+
"version": "2.0.0-beta.3",
|
|
6
6
|
"description": "A generated SDK for MapsSearchClient.",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"node",
|
|
@@ -13,96 +13,76 @@
|
|
|
13
13
|
"isomorphic"
|
|
14
14
|
],
|
|
15
15
|
"license": "MIT",
|
|
16
|
-
"main": "dist/index.js",
|
|
17
|
-
"module": "./dist
|
|
18
|
-
"types": "./
|
|
16
|
+
"main": "./dist/commonjs/index.js",
|
|
17
|
+
"module": "./dist/esm/index.js",
|
|
18
|
+
"types": "./dist/commonjs/index.d.ts",
|
|
19
19
|
"repository": "github:Azure/azure-sdk-for-js",
|
|
20
20
|
"bugs": {
|
|
21
21
|
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
|
22
22
|
},
|
|
23
23
|
"files": [
|
|
24
24
|
"dist/",
|
|
25
|
-
"dist-esm/src/",
|
|
26
|
-
"types/maps-search-rest.d.ts",
|
|
27
25
|
"README.md",
|
|
28
|
-
"LICENSE"
|
|
29
|
-
"review/*"
|
|
26
|
+
"LICENSE"
|
|
30
27
|
],
|
|
31
28
|
"engines": {
|
|
32
29
|
"node": ">=18.0.0"
|
|
33
30
|
},
|
|
34
31
|
"scripts": {
|
|
35
|
-
"
|
|
36
|
-
"build:browser": "
|
|
37
|
-
"build:
|
|
32
|
+
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
|
|
33
|
+
"build:browser": "dev-tool run build-package && dev-tool run bundle",
|
|
34
|
+
"build:debug": "dev-tool run build-package && dev-tool run bundle && dev-tool run extract-api",
|
|
35
|
+
"build:node": "dev-tool run build-package && dev-tool run bundle --browser-test false",
|
|
38
36
|
"build:samples": "dev-tool samples publish --force",
|
|
39
|
-
"build:test": "
|
|
40
|
-
"build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local",
|
|
37
|
+
"build:test": "dev-tool run build-package && dev-tool run bundle",
|
|
41
38
|
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
|
|
42
|
-
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
39
|
+
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
43
40
|
"execute:samples": "dev-tool samples run samples-dev",
|
|
44
|
-
"extract-api": "
|
|
41
|
+
"extract-api": "dev-tool run vendored rimraf review && dev-tool run extract-api",
|
|
45
42
|
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
|
|
46
43
|
"generate:client": "autorest --typescript swagger/README.md && npm run format",
|
|
47
|
-
"integration-test:browser": "dev-tool run test:browser",
|
|
48
|
-
"integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'",
|
|
49
44
|
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
50
|
-
"
|
|
51
|
-
"
|
|
45
|
+
"integration-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
|
|
46
|
+
"integration-test:node": "dev-tool run test:vitest --esm",
|
|
47
|
+
"lint": "eslint package.json api-extractor.json src test",
|
|
48
|
+
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
|
|
52
49
|
"pack": "npm pack 2>&1",
|
|
50
|
+
"test": "npm run clean && npm run build:test && npm run unit-test",
|
|
53
51
|
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
|
|
54
52
|
"test:node": "npm run clean && npm run build:test && npm run unit-test:node",
|
|
55
|
-
"test": "npm run clean && npm run build:test && npm run unit-test",
|
|
56
53
|
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
57
|
-
"unit-test:
|
|
58
|
-
"unit-test:
|
|
59
|
-
"
|
|
54
|
+
"unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
|
|
55
|
+
"unit-test:node": "dev-tool run test:vitest",
|
|
56
|
+
"update-snippets": "dev-tool run update-snippets"
|
|
60
57
|
},
|
|
61
58
|
"sideEffects": false,
|
|
62
59
|
"autoPublish": false,
|
|
63
60
|
"dependencies": {
|
|
64
|
-
"@azure/core-
|
|
65
|
-
"@azure
|
|
66
|
-
"@azure/core-
|
|
67
|
-
"
|
|
68
|
-
"@azure/
|
|
61
|
+
"@azure-rest/core-client": "^2.3.1",
|
|
62
|
+
"@azure/core-auth": "^1.9.0",
|
|
63
|
+
"@azure/core-lro": "^2.7.2",
|
|
64
|
+
"@azure/core-rest-pipeline": "^1.19.0",
|
|
65
|
+
"@azure/logger": "^1.1.4",
|
|
69
66
|
"@azure/maps-common": "1.0.0-beta.2",
|
|
70
|
-
"
|
|
67
|
+
"tslib": "^2.8.1"
|
|
71
68
|
},
|
|
72
69
|
"devDependencies": {
|
|
73
|
-
"@
|
|
74
|
-
"
|
|
75
|
-
"@
|
|
76
|
-
"
|
|
77
|
-
"eslint": "^8.0.0",
|
|
78
|
-
"mkdirp": "^1.0.4",
|
|
79
|
-
"rimraf": "^3.0.0",
|
|
80
|
-
"source-map-support": "^0.5.9",
|
|
81
|
-
"typescript": "~5.2.0",
|
|
70
|
+
"@azure-tools/test-credential": "^2.0.0",
|
|
71
|
+
"@azure-tools/test-recorder": "^4.1.0",
|
|
72
|
+
"@azure-tools/test-utils-vitest": "^1.0.0",
|
|
73
|
+
"@azure/core-util": "^1.11.0",
|
|
82
74
|
"@azure/dev-tool": "^1.0.0",
|
|
83
75
|
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
|
|
84
|
-
"@azure
|
|
85
|
-
"@
|
|
86
|
-
"@
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"karma-env-preprocessor": "^0.1.1",
|
|
95
|
-
"karma-firefox-launcher": "^1.1.0",
|
|
96
|
-
"karma-junit-reporter": "^2.0.1",
|
|
97
|
-
"karma-mocha-reporter": "^2.2.5",
|
|
98
|
-
"karma-mocha": "^2.0.1",
|
|
99
|
-
"karma-source-map-support": "~1.4.0",
|
|
100
|
-
"karma-sourcemap-loader": "^0.3.8",
|
|
101
|
-
"karma": "^6.2.0",
|
|
102
|
-
"c8": "^8.0.0",
|
|
103
|
-
"@azure/test-utils": "~1.0.0",
|
|
104
|
-
"ts-node": "^10.0.0",
|
|
105
|
-
"esm": "^3.2.18"
|
|
76
|
+
"@azure/identity": "^4.6.0",
|
|
77
|
+
"@types/node": "^18.0.0",
|
|
78
|
+
"@vitest/browser": "^3.0.5",
|
|
79
|
+
"@vitest/coverage-istanbul": "^3.0.5",
|
|
80
|
+
"autorest": "latest",
|
|
81
|
+
"dotenv": "^16.0.0",
|
|
82
|
+
"eslint": "^9.9.0",
|
|
83
|
+
"playwright": "^1.50.1",
|
|
84
|
+
"typescript": "~5.7.2",
|
|
85
|
+
"vitest": "^3.0.5"
|
|
106
86
|
},
|
|
107
87
|
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/maps/maps-search-rest/README.md",
|
|
108
88
|
"//metadata": {
|
|
@@ -113,9 +93,7 @@
|
|
|
113
93
|
}
|
|
114
94
|
]
|
|
115
95
|
},
|
|
116
|
-
"browser":
|
|
117
|
-
"./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js"
|
|
118
|
-
},
|
|
96
|
+
"browser": "./dist/browser/index.js",
|
|
119
97
|
"//sampleConfiguration": {
|
|
120
98
|
"productName": "MapsSearchClient",
|
|
121
99
|
"productSlugs": [
|
|
@@ -123,9 +101,48 @@
|
|
|
123
101
|
"azure-maps"
|
|
124
102
|
],
|
|
125
103
|
"requiredResources": {
|
|
126
|
-
"Azure Maps Resource": "https://
|
|
104
|
+
"Azure Maps Resource": "https://learn.microsoft.com/azure/azure-maps/how-to-create-template"
|
|
127
105
|
},
|
|
128
|
-
"apiRefLink": "https://
|
|
106
|
+
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure-rest/maps-search",
|
|
129
107
|
"disableDocsMs": true
|
|
130
|
-
}
|
|
108
|
+
},
|
|
109
|
+
"type": "module",
|
|
110
|
+
"tshy": {
|
|
111
|
+
"project": "./tsconfig.src.json",
|
|
112
|
+
"exports": {
|
|
113
|
+
"./package.json": "./package.json",
|
|
114
|
+
".": "./src/index.ts"
|
|
115
|
+
},
|
|
116
|
+
"dialects": [
|
|
117
|
+
"esm",
|
|
118
|
+
"commonjs"
|
|
119
|
+
],
|
|
120
|
+
"esmDialects": [
|
|
121
|
+
"browser",
|
|
122
|
+
"react-native"
|
|
123
|
+
],
|
|
124
|
+
"selfLink": false
|
|
125
|
+
},
|
|
126
|
+
"exports": {
|
|
127
|
+
"./package.json": "./package.json",
|
|
128
|
+
".": {
|
|
129
|
+
"browser": {
|
|
130
|
+
"types": "./dist/browser/index.d.ts",
|
|
131
|
+
"default": "./dist/browser/index.js"
|
|
132
|
+
},
|
|
133
|
+
"react-native": {
|
|
134
|
+
"types": "./dist/react-native/index.d.ts",
|
|
135
|
+
"default": "./dist/react-native/index.js"
|
|
136
|
+
},
|
|
137
|
+
"import": {
|
|
138
|
+
"types": "./dist/esm/index.d.ts",
|
|
139
|
+
"default": "./dist/esm/index.js"
|
|
140
|
+
},
|
|
141
|
+
"require": {
|
|
142
|
+
"types": "./dist/commonjs/index.d.ts",
|
|
143
|
+
"default": "./dist/commonjs/index.js"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"react-native": "./dist/react-native/index.js"
|
|
131
148
|
}
|