@azure-rest/maps-search 2.0.0-beta.2 → 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.
Files changed (207) hide show
  1. package/LICENSE +4 -4
  2. package/README.md +80 -90
  3. package/dist/browser/MapsSearch.d.ts +53 -0
  4. package/dist/browser/MapsSearch.d.ts.map +1 -0
  5. package/{dist-esm/src → dist/browser}/MapsSearch.js +1 -1
  6. package/dist/browser/MapsSearch.js.map +1 -0
  7. package/dist/browser/generated/clientDefinitions.d.ts +137 -0
  8. package/dist/browser/generated/clientDefinitions.d.ts.map +1 -0
  9. package/dist/browser/generated/clientDefinitions.js +4 -0
  10. package/dist/browser/generated/clientDefinitions.js.map +1 -0
  11. package/dist/browser/generated/index.d.ts +10 -0
  12. package/dist/browser/generated/index.d.ts.map +1 -0
  13. package/dist/browser/generated/index.js +12 -0
  14. package/dist/browser/generated/index.js.map +1 -0
  15. package/dist/browser/generated/isUnexpected.d.ts +7 -0
  16. package/dist/browser/generated/isUnexpected.d.ts.map +1 -0
  17. package/dist/browser/generated/isUnexpected.js +75 -0
  18. package/dist/browser/generated/isUnexpected.js.map +1 -0
  19. package/dist/browser/generated/logger.d.ts +2 -0
  20. package/dist/browser/generated/logger.d.ts.map +1 -0
  21. package/dist/browser/generated/logger.js.map +1 -0
  22. package/dist/browser/generated/mapsSearchClient.d.ts +15 -0
  23. package/dist/browser/generated/mapsSearchClient.d.ts.map +1 -0
  24. package/dist/browser/generated/mapsSearchClient.js +42 -0
  25. package/dist/browser/generated/mapsSearchClient.js.map +1 -0
  26. package/dist/browser/generated/models.d.ts +97 -0
  27. package/dist/browser/generated/models.d.ts.map +1 -0
  28. package/dist/browser/generated/models.js +4 -0
  29. package/dist/browser/generated/models.js.map +1 -0
  30. package/dist/browser/generated/outputModels.d.ts +298 -0
  31. package/dist/browser/generated/outputModels.d.ts.map +1 -0
  32. package/dist/browser/generated/outputModels.js +4 -0
  33. package/dist/browser/generated/outputModels.js.map +1 -0
  34. package/dist/browser/generated/parameters.d.ts +135 -0
  35. package/dist/browser/generated/parameters.d.ts.map +1 -0
  36. package/dist/browser/generated/parameters.js +4 -0
  37. package/dist/browser/generated/parameters.js.map +1 -0
  38. package/dist/browser/generated/responses.d.ts +255 -0
  39. package/dist/browser/generated/responses.d.ts.map +1 -0
  40. package/dist/browser/generated/responses.js +4 -0
  41. package/dist/browser/generated/responses.js.map +1 -0
  42. package/dist/browser/index.d.ts +4 -0
  43. package/dist/browser/index.d.ts.map +1 -0
  44. package/dist/browser/index.js +6 -0
  45. package/dist/browser/index.js.map +1 -0
  46. package/dist/browser/logger.d.ts +2 -0
  47. package/dist/browser/logger.d.ts.map +1 -0
  48. package/dist/browser/logger.js +5 -0
  49. package/dist/browser/package.json +3 -0
  50. package/dist/commonjs/MapsSearch.d.ts +53 -0
  51. package/dist/commonjs/MapsSearch.d.ts.map +1 -0
  52. package/dist/commonjs/MapsSearch.js +44 -0
  53. package/dist/commonjs/MapsSearch.js.map +1 -0
  54. package/dist/commonjs/generated/clientDefinitions.d.ts +137 -0
  55. package/dist/commonjs/generated/clientDefinitions.d.ts.map +1 -0
  56. package/dist/commonjs/generated/clientDefinitions.js +5 -0
  57. package/dist/commonjs/generated/clientDefinitions.js.map +1 -0
  58. package/dist/commonjs/generated/index.d.ts +10 -0
  59. package/dist/commonjs/generated/index.d.ts.map +1 -0
  60. package/dist/commonjs/generated/index.js +15 -0
  61. package/dist/commonjs/generated/index.js.map +1 -0
  62. package/dist/commonjs/generated/isUnexpected.d.ts +7 -0
  63. package/dist/commonjs/generated/isUnexpected.d.ts.map +1 -0
  64. package/dist/commonjs/generated/isUnexpected.js +78 -0
  65. package/dist/commonjs/generated/isUnexpected.js.map +1 -0
  66. package/dist/commonjs/generated/logger.d.ts +2 -0
  67. package/dist/commonjs/generated/logger.d.ts.map +1 -0
  68. package/dist/commonjs/generated/logger.js +8 -0
  69. package/dist/commonjs/generated/logger.js.map +1 -0
  70. package/dist/commonjs/generated/mapsSearchClient.d.ts +15 -0
  71. package/dist/commonjs/generated/mapsSearchClient.d.ts.map +1 -0
  72. package/dist/commonjs/generated/mapsSearchClient.js +45 -0
  73. package/dist/commonjs/generated/mapsSearchClient.js.map +1 -0
  74. package/dist/commonjs/generated/models.d.ts +97 -0
  75. package/dist/commonjs/generated/models.d.ts.map +1 -0
  76. package/dist/commonjs/generated/models.js +5 -0
  77. package/dist/commonjs/generated/models.js.map +1 -0
  78. package/dist/commonjs/generated/outputModels.d.ts +298 -0
  79. package/dist/commonjs/generated/outputModels.d.ts.map +1 -0
  80. package/dist/commonjs/generated/outputModels.js +5 -0
  81. package/dist/commonjs/generated/outputModels.js.map +1 -0
  82. package/dist/commonjs/generated/parameters.d.ts +135 -0
  83. package/dist/commonjs/generated/parameters.d.ts.map +1 -0
  84. package/dist/commonjs/generated/parameters.js +5 -0
  85. package/dist/commonjs/generated/parameters.js.map +1 -0
  86. package/dist/commonjs/generated/responses.d.ts +255 -0
  87. package/dist/commonjs/generated/responses.d.ts.map +1 -0
  88. package/dist/commonjs/generated/responses.js +5 -0
  89. package/dist/commonjs/generated/responses.js.map +1 -0
  90. package/dist/commonjs/index.d.ts +4 -0
  91. package/dist/commonjs/index.d.ts.map +1 -0
  92. package/dist/commonjs/index.js +9 -0
  93. package/dist/commonjs/index.js.map +1 -0
  94. package/dist/commonjs/logger.d.ts +2 -0
  95. package/dist/commonjs/logger.d.ts.map +1 -0
  96. package/dist/commonjs/logger.js +8 -0
  97. package/dist/commonjs/logger.js.map +1 -0
  98. package/dist/commonjs/package.json +3 -0
  99. package/dist/commonjs/tsdoc-metadata.json +11 -0
  100. package/dist/esm/MapsSearch.d.ts +53 -0
  101. package/dist/esm/MapsSearch.d.ts.map +1 -0
  102. package/dist/esm/MapsSearch.js +40 -0
  103. package/dist/esm/MapsSearch.js.map +1 -0
  104. package/dist/esm/generated/clientDefinitions.d.ts +137 -0
  105. package/dist/esm/generated/clientDefinitions.d.ts.map +1 -0
  106. package/dist/esm/generated/clientDefinitions.js +4 -0
  107. package/dist/esm/generated/clientDefinitions.js.map +1 -0
  108. package/dist/esm/generated/index.d.ts +10 -0
  109. package/dist/esm/generated/index.d.ts.map +1 -0
  110. package/dist/esm/generated/index.js +12 -0
  111. package/dist/esm/generated/index.js.map +1 -0
  112. package/dist/esm/generated/isUnexpected.d.ts +7 -0
  113. package/dist/esm/generated/isUnexpected.d.ts.map +1 -0
  114. package/dist/esm/generated/isUnexpected.js +75 -0
  115. package/dist/esm/generated/isUnexpected.js.map +1 -0
  116. package/dist/esm/generated/logger.d.ts +2 -0
  117. package/dist/esm/generated/logger.d.ts.map +1 -0
  118. package/dist/esm/generated/logger.js +5 -0
  119. package/dist/esm/generated/logger.js.map +1 -0
  120. package/dist/esm/generated/mapsSearchClient.d.ts +15 -0
  121. package/dist/esm/generated/mapsSearchClient.d.ts.map +1 -0
  122. package/dist/esm/generated/mapsSearchClient.js +42 -0
  123. package/dist/esm/generated/mapsSearchClient.js.map +1 -0
  124. package/dist/esm/generated/models.d.ts +97 -0
  125. package/dist/esm/generated/models.d.ts.map +1 -0
  126. package/dist/esm/generated/models.js +4 -0
  127. package/dist/esm/generated/models.js.map +1 -0
  128. package/dist/esm/generated/outputModels.d.ts +298 -0
  129. package/dist/esm/generated/outputModels.d.ts.map +1 -0
  130. package/dist/esm/generated/outputModels.js +4 -0
  131. package/dist/esm/generated/outputModels.js.map +1 -0
  132. package/dist/esm/generated/parameters.d.ts +135 -0
  133. package/dist/esm/generated/parameters.d.ts.map +1 -0
  134. package/dist/esm/generated/parameters.js +4 -0
  135. package/dist/esm/generated/parameters.js.map +1 -0
  136. package/dist/esm/generated/responses.d.ts +255 -0
  137. package/dist/esm/generated/responses.d.ts.map +1 -0
  138. package/dist/esm/generated/responses.js +4 -0
  139. package/dist/esm/generated/responses.js.map +1 -0
  140. package/dist/esm/index.d.ts +4 -0
  141. package/dist/esm/index.d.ts.map +1 -0
  142. package/dist/esm/index.js +6 -0
  143. package/dist/esm/index.js.map +1 -0
  144. package/dist/esm/logger.d.ts +2 -0
  145. package/dist/esm/logger.d.ts.map +1 -0
  146. package/dist/esm/logger.js +5 -0
  147. package/dist/esm/logger.js.map +1 -0
  148. package/dist/esm/package.json +3 -0
  149. package/dist/react-native/MapsSearch.d.ts +53 -0
  150. package/dist/react-native/MapsSearch.d.ts.map +1 -0
  151. package/dist/react-native/MapsSearch.js +40 -0
  152. package/dist/react-native/MapsSearch.js.map +1 -0
  153. package/dist/react-native/generated/clientDefinitions.d.ts +137 -0
  154. package/dist/react-native/generated/clientDefinitions.d.ts.map +1 -0
  155. package/dist/react-native/generated/clientDefinitions.js +4 -0
  156. package/dist/react-native/generated/clientDefinitions.js.map +1 -0
  157. package/dist/react-native/generated/index.d.ts +10 -0
  158. package/dist/react-native/generated/index.d.ts.map +1 -0
  159. package/dist/react-native/generated/index.js +12 -0
  160. package/dist/react-native/generated/index.js.map +1 -0
  161. package/dist/react-native/generated/isUnexpected.d.ts +7 -0
  162. package/dist/react-native/generated/isUnexpected.d.ts.map +1 -0
  163. package/dist/react-native/generated/isUnexpected.js +75 -0
  164. package/dist/react-native/generated/isUnexpected.js.map +1 -0
  165. package/dist/react-native/generated/logger.d.ts +2 -0
  166. package/dist/react-native/generated/logger.d.ts.map +1 -0
  167. package/dist/react-native/generated/logger.js +5 -0
  168. package/dist/react-native/generated/logger.js.map +1 -0
  169. package/dist/react-native/generated/mapsSearchClient.d.ts +15 -0
  170. package/dist/react-native/generated/mapsSearchClient.d.ts.map +1 -0
  171. package/dist/react-native/generated/mapsSearchClient.js +42 -0
  172. package/dist/react-native/generated/mapsSearchClient.js.map +1 -0
  173. package/dist/react-native/generated/models.d.ts +97 -0
  174. package/dist/react-native/generated/models.d.ts.map +1 -0
  175. package/dist/react-native/generated/models.js +4 -0
  176. package/dist/react-native/generated/models.js.map +1 -0
  177. package/dist/react-native/generated/outputModels.d.ts +298 -0
  178. package/dist/react-native/generated/outputModels.d.ts.map +1 -0
  179. package/dist/react-native/generated/outputModels.js +4 -0
  180. package/dist/react-native/generated/outputModels.js.map +1 -0
  181. package/dist/react-native/generated/parameters.d.ts +135 -0
  182. package/dist/react-native/generated/parameters.d.ts.map +1 -0
  183. package/dist/react-native/generated/parameters.js +4 -0
  184. package/dist/react-native/generated/parameters.js.map +1 -0
  185. package/dist/react-native/generated/responses.d.ts +255 -0
  186. package/dist/react-native/generated/responses.d.ts.map +1 -0
  187. package/dist/react-native/generated/responses.js +4 -0
  188. package/dist/react-native/generated/responses.js.map +1 -0
  189. package/dist/react-native/index.d.ts +4 -0
  190. package/dist/react-native/index.d.ts.map +1 -0
  191. package/dist/react-native/index.js +6 -0
  192. package/dist/react-native/index.js.map +1 -0
  193. package/dist/react-native/logger.d.ts +2 -0
  194. package/dist/react-native/logger.d.ts.map +1 -0
  195. package/dist/react-native/logger.js +5 -0
  196. package/dist/react-native/logger.js.map +1 -0
  197. package/dist/react-native/package.json +3 -0
  198. package/package.json +75 -54
  199. package/dist/index.js +0 -171
  200. package/dist/index.js.map +0 -1
  201. package/dist-esm/src/MapsSearch.js.map +0 -1
  202. package/dist-esm/src/index.js +0 -6
  203. package/dist-esm/src/index.js.map +0 -1
  204. package/review/maps-search.api.md +0 -549
  205. package/types/maps-search-rest.d.ts +0 -1066
  206. /package/{dist-esm/src → dist/browser/generated}/logger.js +0 -0
  207. /package/{dist-esm/src → dist/browser}/logger.js.map +0 -0
@@ -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,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=responses.js.map
@@ -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,4 @@
1
+ import MapsSearch from "./MapsSearch.js";
2
+ export * from "./generated/index.js";
3
+ export default MapsSearch;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -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,6 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import MapsSearch from "./MapsSearch.js";
4
+ export * from "./generated/index.js";
5
+ export default MapsSearch;
6
+ //# sourceMappingURL=index.js.map
@@ -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,2 @@
1
+ export declare const logger: import("@azure/logger").AzureLogger;
2
+ //# sourceMappingURL=logger.d.ts.map
@@ -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,5 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { createClientLogger } from "@azure/logger";
4
+ export const logger = createClientLogger("maps-search");
5
+ //# sourceMappingURL=logger.js.map
@@ -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"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
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.2",
5
+ "version": "2.0.0-beta.3",
6
6
  "description": "A generated SDK for MapsSearchClient.",
7
7
  "keywords": [
8
8
  "node",
@@ -13,40 +13,37 @@
13
13
  "isomorphic"
14
14
  ],
15
15
  "license": "MIT",
16
- "main": "dist/index.js",
17
- "module": "./dist-esm/src/index.js",
18
- "types": "./types/maps-search-rest.d.ts",
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
- "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
36
- "build:browser": "tsc -p . && dev-tool run bundle",
37
- "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api",
38
- "build:node": "tsc -p . && dev-tool run bundle --browser-test false",
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",
39
36
  "build:samples": "dev-tool samples publish --force",
40
- "build:test": "tsc -p . && dev-tool run bundle",
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
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": "dev-tool run vendored rimraf review && dev-tool run vendored mkdirp ./review && dev-tool run 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
44
  "integration-test": "npm run integration-test:node && npm run integration-test:browser",
48
- "integration-test:browser": "dev-tool run test:browser",
49
- "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'",
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",
50
47
  "lint": "eslint package.json api-extractor.json src test",
51
48
  "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
52
49
  "pack": "npm pack 2>&1",
@@ -54,51 +51,38 @@
54
51
  "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
55
52
  "test:node": "npm run clean && npm run build:test && npm run unit-test:node",
56
53
  "unit-test": "npm run unit-test:node && npm run unit-test:browser",
57
- "unit-test:browser": "dev-tool run test:browser",
58
- "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'",
59
- "update-snippets": "echo skipped"
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-rest/core-client": "^1.0.0",
65
- "@azure/core-auth": "^1.3.0",
66
- "@azure/core-lro": "^2.2.0",
67
- "@azure/core-rest-pipeline": "^1.8.0",
68
- "@azure/logger": "^1.0.4",
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
- "tslib": "^2.2.0"
67
+ "tslib": "^2.8.1"
71
68
  },
72
69
  "devDependencies": {
73
- "@azure-tools/test-credential": "^1.0.0",
74
- "@azure-tools/test-recorder": "^3.0.0",
75
- "@azure-tools/test-utils": "~1.0.0",
76
- "@azure/core-util": "^1.9.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",
77
74
  "@azure/dev-tool": "^1.0.0",
78
75
  "@azure/eslint-plugin-azure-sdk": "^3.0.0",
79
- "@azure/identity": "^4.0.1",
80
- "@types/chai": "^4.2.8",
81
- "@types/mocha": "^10.0.0",
76
+ "@azure/identity": "^4.6.0",
82
77
  "@types/node": "^18.0.0",
78
+ "@vitest/browser": "^3.0.5",
79
+ "@vitest/coverage-istanbul": "^3.0.5",
83
80
  "autorest": "latest",
84
- "chai": "^4.2.0",
85
81
  "dotenv": "^16.0.0",
86
82
  "eslint": "^9.9.0",
87
- "karma": "^6.2.0",
88
- "karma-chrome-launcher": "^3.0.0",
89
- "karma-coverage": "^2.0.0",
90
- "karma-env-preprocessor": "^0.1.1",
91
- "karma-firefox-launcher": "^1.1.0",
92
- "karma-junit-reporter": "^2.0.1",
93
- "karma-mocha": "^2.0.1",
94
- "karma-mocha-reporter": "^2.2.5",
95
- "karma-source-map-support": "~1.4.0",
96
- "karma-sourcemap-loader": "^0.3.8",
97
- "mocha": "^10.0.0",
98
- "nyc": "^17.0.0",
99
- "source-map-support": "^0.5.9",
100
- "ts-node": "^10.0.0",
101
- "typescript": "~5.6.2"
83
+ "playwright": "^1.50.1",
84
+ "typescript": "~5.7.2",
85
+ "vitest": "^3.0.5"
102
86
  },
103
87
  "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/maps/maps-search-rest/README.md",
104
88
  "//metadata": {
@@ -109,9 +93,7 @@
109
93
  }
110
94
  ]
111
95
  },
112
- "browser": {
113
- "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js"
114
- },
96
+ "browser": "./dist/browser/index.js",
115
97
  "//sampleConfiguration": {
116
98
  "productName": "MapsSearchClient",
117
99
  "productSlugs": [
@@ -119,9 +101,48 @@
119
101
  "azure-maps"
120
102
  ],
121
103
  "requiredResources": {
122
- "Azure Maps Resource": "https://docs.microsoft.com/azure/azure-maps/how-to-create-template"
104
+ "Azure Maps Resource": "https://learn.microsoft.com/azure/azure-maps/how-to-create-template"
123
105
  },
124
- "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure-rest/maps-search",
106
+ "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure-rest/maps-search",
125
107
  "disableDocsMs": true
126
- }
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"
127
148
  }