@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
@@ -1,549 +0,0 @@
1
- ## API Report File for "@azure-rest/maps-search"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- import type { AzureKeyCredential } from '@azure/core-auth';
8
- import type { AzureSASCredential } from '@azure/core-auth';
9
- import { Client } from '@azure-rest/core-client';
10
- import { ClientOptions } from '@azure-rest/core-client';
11
- import { HttpResponse } from '@azure-rest/core-client';
12
- import { RawHttpHeaders } from '@azure/core-rest-pipeline';
13
- import { RequestParameters } from '@azure-rest/core-client';
14
- import { StreamableMethod } from '@azure-rest/core-client';
15
- import type { TokenCredential } from '@azure/core-auth';
16
-
17
- // @public (undocumented)
18
- export interface AddressAdminDistrictsItemOutput {
19
- name?: string;
20
- shortName?: string;
21
- }
22
-
23
- // @public (undocumented)
24
- export interface AddressCountryRegionOutput {
25
- ISO?: string;
26
- name?: string;
27
- }
28
-
29
- // @public
30
- export interface AddressOutput {
31
- addressLine?: string;
32
- adminDistricts?: Array<AddressAdminDistrictsItemOutput>;
33
- // (undocumented)
34
- countryRegion?: AddressCountryRegionOutput;
35
- formattedAddress?: string;
36
- intersection?: IntersectionOutput;
37
- locality?: string;
38
- neighborhood?: string;
39
- postalCode?: string;
40
- }
41
-
42
- // @public
43
- export interface BoundaryOutput extends GeoJsonFeatureOutputParent, BoundaryPropertiesOutput {
44
- // (undocumented)
45
- type: "Boundary";
46
- }
47
-
48
- // @public
49
- export interface BoundaryPropertiesOutput {
50
- copyright?: string;
51
- copyrightURL?: string;
52
- geometriesCopyright?: Array<GeometryCopyrightOutput>;
53
- name?: string;
54
- }
55
-
56
- // @public
57
- export interface ErrorAdditionalInfoOutput {
58
- readonly info?: Record<string, unknown>;
59
- readonly type?: string;
60
- }
61
-
62
- // @public
63
- export interface ErrorDetailOutput {
64
- readonly additionalInfo?: Array<ErrorAdditionalInfoOutput>;
65
- readonly code?: string;
66
- readonly details?: Array<ErrorDetailOutput>;
67
- readonly message?: string;
68
- readonly target?: string;
69
- }
70
-
71
- // @public
72
- export interface ErrorResponseOutput {
73
- error?: ErrorDetailOutput;
74
- }
75
-
76
- // @public (undocumented)
77
- export interface FeaturesItemOutput {
78
- bbox?: Array<number>;
79
- geometry: GeoJsonPointOutput;
80
- id?: string;
81
- // (undocumented)
82
- properties?: FeaturesItemPropertiesOutput;
83
- type?: "Feature";
84
- }
85
-
86
- // @public (undocumented)
87
- export interface FeaturesItemPropertiesOutput {
88
- address?: AddressOutput;
89
- confidence?: "High" | "Medium" | "Low";
90
- geocodePoints?: Array<GeocodePointsItemOutput>;
91
- matchCodes?: Array<"Good" | "Ambiguous" | "UpHierarchy">;
92
- type?: string;
93
- }
94
-
95
- // @public (undocumented)
96
- export interface GeocodePointsItemOutput {
97
- calculationMethod?: "Interpolation" | "InterpolationOffset" | "Parcel" | "Rooftop";
98
- geometry?: GeoJsonPointOutput;
99
- usageTypes?: Array<"Display" | "Route">;
100
- }
101
-
102
- // @public
103
- export interface GeocodingBatchRequestBody {
104
- batchItems?: Array<GeocodingBatchRequestItem>;
105
- }
106
-
107
- // @public
108
- export interface GeocodingBatchRequestItem {
109
- addressLine?: string;
110
- adminDistrict?: string;
111
- adminDistrict2?: string;
112
- adminDistrict3?: string;
113
- bbox?: Array<number>;
114
- coordinates?: Array<number>;
115
- countryRegion?: string;
116
- locality?: string;
117
- optionalId?: string;
118
- postalCode?: string;
119
- query?: string;
120
- top?: number;
121
- view?: string;
122
- }
123
-
124
- // @public (undocumented)
125
- export interface GeocodingBatchResponseItemOutput {
126
- error?: ErrorDetailOutput;
127
- // (undocumented)
128
- features?: Array<FeaturesItemOutput>;
129
- nextLink?: string;
130
- optionalId?: string;
131
- type?: "FeatureCollection";
132
- }
133
-
134
- // @public
135
- export interface GeocodingBatchResponseOutput {
136
- batchItems?: Array<GeocodingBatchResponseItemOutput>;
137
- nextLink?: string;
138
- summary?: GeocodingBatchResponseSummaryOutput;
139
- }
140
-
141
- // @public
142
- export interface GeocodingBatchResponseSummaryOutput {
143
- successfulRequests?: number;
144
- totalRequests?: number;
145
- }
146
-
147
- // @public
148
- export interface GeocodingResponseOutput {
149
- // (undocumented)
150
- features?: Array<FeaturesItemOutput>;
151
- nextLink?: string;
152
- type?: "FeatureCollection";
153
- }
154
-
155
- // @public (undocumented)
156
- export interface GeoJsonFeatureCollectionDataOutput {
157
- features: Array<GeoJsonFeatureOutput>;
158
- }
159
-
160
- // @public
161
- export interface GeoJsonFeatureCollectionOutput extends GeoJsonObjectOutputParent, GeoJsonFeatureCollectionDataOutput {
162
- // (undocumented)
163
- type: "FeatureCollection";
164
- }
165
-
166
- // @public (undocumented)
167
- export interface GeoJsonFeatureDataOutput {
168
- featureType?: string;
169
- geometry: GeoJsonGeometryOutput;
170
- id?: string;
171
- properties?: Record<string, unknown>;
172
- }
173
-
174
- // @public
175
- export type GeoJsonFeatureOutput = GeoJsonFeatureOutputParent | BoundaryOutput;
176
-
177
- // @public
178
- export interface GeoJsonFeatureOutputParent extends GeoJsonObjectOutputParent, GeoJsonFeatureDataOutput {
179
- // (undocumented)
180
- type: "Feature" | "Boundary";
181
- }
182
-
183
- // @public (undocumented)
184
- export interface GeoJsonGeometryCollectionDataOutput {
185
- geometries: Array<GeoJsonGeometryOutput>;
186
- }
187
-
188
- // @public
189
- export interface GeoJsonGeometryCollectionOutput extends GeoJsonGeometryOutputParent, GeoJsonGeometryCollectionDataOutput {
190
- // (undocumented)
191
- type: "GeometryCollection";
192
- }
193
-
194
- // @public
195
- export type GeoJsonGeometryOutput = GeoJsonGeometryOutputParent | GeoJsonPointOutput | GeoJsonMultiPointOutput | GeoJsonLineStringOutput | GeoJsonMultiLineStringOutput | GeoJsonPolygonOutput | GeoJsonMultiPolygonOutput | GeoJsonGeometryCollectionOutput;
196
-
197
- // @public
198
- export interface GeoJsonGeometryOutputParent extends GeoJsonObjectOutputParent {
199
- // (undocumented)
200
- type: "GeoJsonGeometry" | "Point" | "MultiPoint" | "LineString" | "MultiLineString" | "Polygon" | "MultiPolygon" | "GeometryCollection";
201
- }
202
-
203
- // @public (undocumented)
204
- export interface GeoJsonLineStringDataOutput {
205
- coordinates: Array<Array<number>>;
206
- }
207
-
208
- // @public
209
- export interface GeoJsonLineStringOutput extends GeoJsonGeometryOutputParent, GeoJsonLineStringDataOutput {
210
- // (undocumented)
211
- type: "LineString";
212
- }
213
-
214
- // @public (undocumented)
215
- export interface GeoJsonMultiLineStringDataOutput {
216
- coordinates: Array<Array<Array<number>>>;
217
- }
218
-
219
- // @public
220
- export interface GeoJsonMultiLineStringOutput extends GeoJsonGeometryOutputParent, GeoJsonMultiLineStringDataOutput {
221
- // (undocumented)
222
- type: "MultiLineString";
223
- }
224
-
225
- // @public
226
- export interface GeoJsonMultiPointDataOutput {
227
- coordinates: Array<Array<number>>;
228
- }
229
-
230
- // @public
231
- export interface GeoJsonMultiPointOutput extends GeoJsonGeometryOutputParent, GeoJsonMultiPointDataOutput {
232
- // (undocumented)
233
- type: "MultiPoint";
234
- }
235
-
236
- // @public (undocumented)
237
- export interface GeoJsonMultiPolygonDataOutput {
238
- coordinates: Array<Array<Array<Array<number>>>>;
239
- }
240
-
241
- // @public
242
- export interface GeoJsonMultiPolygonOutput extends GeoJsonGeometryOutputParent, GeoJsonMultiPolygonDataOutput {
243
- // (undocumented)
244
- type: "MultiPolygon";
245
- }
246
-
247
- // @public
248
- export type GeoJsonObjectOutput = GeoJsonGeometryOutput | GeoJsonPointOutput | GeoJsonFeatureOutput | BoundaryOutput | GeoJsonMultiPointOutput | GeoJsonLineStringOutput | GeoJsonMultiLineStringOutput | GeoJsonPolygonOutput | GeoJsonMultiPolygonOutput | GeoJsonGeometryCollectionOutput | GeoJsonFeatureCollectionOutput;
249
-
250
- // @public
251
- export interface GeoJsonObjectOutputParent {
252
- bbox?: Array<number>;
253
- // (undocumented)
254
- type: "GeoJsonObject" | "GeoJsonGeometry" | "Point" | "Feature" | "Boundary" | "MultiPoint" | "LineString" | "MultiLineString" | "Polygon" | "MultiPolygon" | "GeometryCollection" | "FeatureCollection";
255
- }
256
-
257
- // @public
258
- export interface GeoJsonPointDataOutput {
259
- coordinates: Array<number>;
260
- }
261
-
262
- // @public
263
- export interface GeoJsonPointOutput extends GeoJsonGeometryOutputParent, GeoJsonPointDataOutput {
264
- // (undocumented)
265
- type: "Point";
266
- }
267
-
268
- // @public (undocumented)
269
- export interface GeoJsonPolygonDataOutput {
270
- coordinates: Array<Array<Array<number>>>;
271
- }
272
-
273
- // @public
274
- export interface GeoJsonPolygonOutput extends GeoJsonGeometryOutputParent, GeoJsonPolygonDataOutput {
275
- // (undocumented)
276
- type: "Polygon";
277
- }
278
-
279
- // @public
280
- export interface GeometryCopyrightOutput {
281
- copyright?: string;
282
- sourceName?: string;
283
- }
284
-
285
- // @public (undocumented)
286
- export interface GetGeocoding {
287
- get(options?: SearchGetGeocodingParameters): StreamableMethod<SearchGetGeocoding200Response | SearchGetGeocodingDefaultResponse>;
288
- }
289
-
290
- // @public (undocumented)
291
- export interface GetGeocodingBatch {
292
- post(options: SearchGetGeocodingBatchParameters): StreamableMethod<SearchGetGeocodingBatch200Response | SearchGetGeocodingBatchDefaultResponse>;
293
- }
294
-
295
- // @public (undocumented)
296
- export interface GetPolygon {
297
- get(options: SearchGetPolygonParameters): StreamableMethod<SearchGetPolygon200Response | SearchGetPolygonDefaultResponse>;
298
- }
299
-
300
- // @public (undocumented)
301
- export interface GetReverseGeocoding {
302
- get(options: SearchGetReverseGeocodingParameters): StreamableMethod<SearchGetReverseGeocoding200Response | SearchGetReverseGeocodingDefaultResponse>;
303
- }
304
-
305
- // @public (undocumented)
306
- export interface GetReverseGeocodingBatch {
307
- post(options: SearchGetReverseGeocodingBatchParameters): StreamableMethod<SearchGetReverseGeocodingBatch200Response | SearchGetReverseGeocodingBatchDefaultResponse>;
308
- }
309
-
310
- // @public
311
- export interface IntersectionOutput {
312
- baseStreet?: string;
313
- displayName?: string;
314
- intersectionType?: string;
315
- secondaryStreet1?: string;
316
- secondaryStreet2?: string;
317
- }
318
-
319
- // @public (undocumented)
320
- export function isUnexpected(response: SearchGetGeocoding200Response | SearchGetGeocodingDefaultResponse): response is SearchGetGeocodingDefaultResponse;
321
-
322
- // @public (undocumented)
323
- export function isUnexpected(response: SearchGetGeocodingBatch200Response | SearchGetGeocodingBatchDefaultResponse): response is SearchGetGeocodingBatchDefaultResponse;
324
-
325
- // @public (undocumented)
326
- export function isUnexpected(response: SearchGetPolygon200Response | SearchGetPolygonDefaultResponse): response is SearchGetPolygonDefaultResponse;
327
-
328
- // @public (undocumented)
329
- export function isUnexpected(response: SearchGetReverseGeocoding200Response | SearchGetReverseGeocodingDefaultResponse): response is SearchGetReverseGeocodingDefaultResponse;
330
-
331
- // @public (undocumented)
332
- export function isUnexpected(response: SearchGetReverseGeocodingBatch200Response | SearchGetReverseGeocodingBatchDefaultResponse): response is SearchGetReverseGeocodingBatchDefaultResponse;
333
-
334
- // @public
335
- function MapsSearch(credential: AzureKeyCredential, options?: ClientOptions): MapsSearchClient;
336
-
337
- // @public
338
- function MapsSearch(credential: TokenCredential, mapsAccountClientId: string, options?: ClientOptions): MapsSearchClient;
339
-
340
- // @public
341
- function MapsSearch(credential: AzureSASCredential, options?: ClientOptions): MapsSearchClient;
342
- export default MapsSearch;
343
-
344
- // @public (undocumented)
345
- export type MapsSearchClient = Client & {
346
- path: Routes;
347
- };
348
-
349
- // @public
350
- export interface MapsSearchClientOptions extends ClientOptions {
351
- apiVersion?: string;
352
- }
353
-
354
- // @public
355
- export interface ReverseGeocodingBatchRequestBody {
356
- batchItems?: Array<ReverseGeocodingBatchRequestItem>;
357
- }
358
-
359
- // @public
360
- export interface ReverseGeocodingBatchRequestItem {
361
- coordinates?: Array<number>;
362
- optionalId?: string;
363
- resultTypes?: Array<"Address" | "Neighborhood" | "PopulatedPlace" | "Postcode1" | "AdminDivision1" | "AdminDivision2" | "CountryRegion">;
364
- view?: string;
365
- }
366
-
367
- // @public (undocumented)
368
- export interface Routes {
369
- (path: "/geocode"): GetGeocoding;
370
- (path: "/geocode:batch"): GetGeocodingBatch;
371
- (path: "/search/polygon"): GetPolygon;
372
- (path: "/reverseGeocode"): GetReverseGeocoding;
373
- (path: "/reverseGeocode:batch"): GetReverseGeocodingBatch;
374
- }
375
-
376
- // @public (undocumented)
377
- export interface SearchGetGeocoding200Headers {
378
- "x-ms-request-id"?: string;
379
- }
380
-
381
- // @public
382
- export interface SearchGetGeocoding200Response extends HttpResponse {
383
- // (undocumented)
384
- body: GeocodingResponseOutput;
385
- // (undocumented)
386
- headers: RawHttpHeaders & SearchGetGeocoding200Headers;
387
- // (undocumented)
388
- status: "200";
389
- }
390
-
391
- // @public
392
- export interface SearchGetGeocodingBatch200Response extends HttpResponse {
393
- // (undocumented)
394
- body: GeocodingBatchResponseOutput;
395
- // (undocumented)
396
- status: "200";
397
- }
398
-
399
- // @public (undocumented)
400
- export interface SearchGetGeocodingBatchBodyParam {
401
- body: GeocodingBatchRequestBody;
402
- }
403
-
404
- // @public
405
- export interface SearchGetGeocodingBatchDefaultResponse extends HttpResponse {
406
- // (undocumented)
407
- body: ErrorResponseOutput;
408
- // (undocumented)
409
- status: string;
410
- }
411
-
412
- // @public (undocumented)
413
- export interface SearchGetGeocodingBatchMediaTypesParam {
414
- contentType?: "application/json";
415
- }
416
-
417
- // @public (undocumented)
418
- export type SearchGetGeocodingBatchParameters = SearchGetGeocodingBatchMediaTypesParam & SearchGetGeocodingBatchBodyParam & RequestParameters;
419
-
420
- // @public
421
- export interface SearchGetGeocodingDefaultResponse extends HttpResponse {
422
- // (undocumented)
423
- body: ErrorResponseOutput;
424
- // (undocumented)
425
- status: string;
426
- }
427
-
428
- // @public (undocumented)
429
- export type SearchGetGeocodingParameters = SearchGetGeocodingQueryParam & RequestParameters;
430
-
431
- // @public (undocumented)
432
- export interface SearchGetGeocodingQueryParam {
433
- // (undocumented)
434
- queryParameters?: SearchGetGeocodingQueryParamProperties;
435
- }
436
-
437
- // @public (undocumented)
438
- export interface SearchGetGeocodingQueryParamProperties {
439
- addressLine?: string;
440
- adminDistrict?: string;
441
- adminDistrict2?: string;
442
- adminDistrict3?: string;
443
- bbox?: Array<number>;
444
- coordinates?: Array<number>;
445
- countryRegion?: string;
446
- locality?: string;
447
- postalCode?: string;
448
- query?: string;
449
- top?: number;
450
- view?: string;
451
- }
452
-
453
- // @public
454
- export interface SearchGetPolygon200Response extends HttpResponse {
455
- // (undocumented)
456
- body: BoundaryOutput;
457
- // (undocumented)
458
- status: "200";
459
- }
460
-
461
- // @public
462
- export interface SearchGetPolygonDefaultResponse extends HttpResponse {
463
- // (undocumented)
464
- body: ErrorResponseOutput;
465
- // (undocumented)
466
- status: string;
467
- }
468
-
469
- // @public (undocumented)
470
- export type SearchGetPolygonParameters = SearchGetPolygonQueryParam & RequestParameters;
471
-
472
- // @public (undocumented)
473
- export interface SearchGetPolygonQueryParam {
474
- // (undocumented)
475
- queryParameters: SearchGetPolygonQueryParamProperties;
476
- }
477
-
478
- // @public (undocumented)
479
- export interface SearchGetPolygonQueryParamProperties {
480
- coordinates: Array<number>;
481
- resolution?: "small" | "medium" | "large" | "huge";
482
- resultType?: "countryRegion" | "adminDistrict" | "adminDistrict2" | "postalCode" | "postalCode2" | "postalCode3" | "postalCode4" | "neighborhood" | "locality";
483
- view?: string;
484
- }
485
-
486
- // @public
487
- export interface SearchGetReverseGeocoding200Response extends HttpResponse {
488
- // (undocumented)
489
- body: GeocodingResponseOutput;
490
- // (undocumented)
491
- status: "200";
492
- }
493
-
494
- // @public
495
- export interface SearchGetReverseGeocodingBatch200Response extends HttpResponse {
496
- // (undocumented)
497
- body: GeocodingBatchResponseOutput;
498
- // (undocumented)
499
- status: "200";
500
- }
501
-
502
- // @public (undocumented)
503
- export interface SearchGetReverseGeocodingBatchBodyParam {
504
- body: ReverseGeocodingBatchRequestBody;
505
- }
506
-
507
- // @public
508
- export interface SearchGetReverseGeocodingBatchDefaultResponse extends HttpResponse {
509
- // (undocumented)
510
- body: ErrorResponseOutput;
511
- // (undocumented)
512
- status: string;
513
- }
514
-
515
- // @public (undocumented)
516
- export interface SearchGetReverseGeocodingBatchMediaTypesParam {
517
- contentType?: "application/json";
518
- }
519
-
520
- // @public (undocumented)
521
- export type SearchGetReverseGeocodingBatchParameters = SearchGetReverseGeocodingBatchMediaTypesParam & SearchGetReverseGeocodingBatchBodyParam & RequestParameters;
522
-
523
- // @public
524
- export interface SearchGetReverseGeocodingDefaultResponse extends HttpResponse {
525
- // (undocumented)
526
- body: ErrorResponseOutput;
527
- // (undocumented)
528
- status: string;
529
- }
530
-
531
- // @public (undocumented)
532
- export type SearchGetReverseGeocodingParameters = SearchGetReverseGeocodingQueryParam & RequestParameters;
533
-
534
- // @public (undocumented)
535
- export interface SearchGetReverseGeocodingQueryParam {
536
- // (undocumented)
537
- queryParameters: SearchGetReverseGeocodingQueryParamProperties;
538
- }
539
-
540
- // @public (undocumented)
541
- export interface SearchGetReverseGeocodingQueryParamProperties {
542
- coordinates: Array<number>;
543
- resultTypes?: Array<"Address" | "Neighborhood" | "PopulatedPlace" | "Postcode1" | "AdminDivision1" | "AdminDivision2" | "CountryRegion">;
544
- view?: string;
545
- }
546
-
547
- // (No @packageDocumentation comment for this package)
548
-
549
- ```