@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,298 @@
1
+ /** This object is returned from a successful Geocoding call */
2
+ export interface GeocodingResponseOutput {
3
+ /** The type of a FeatureCollection object must be FeatureCollection. */
4
+ type?: "FeatureCollection";
5
+ features?: Array<FeaturesItemOutput>;
6
+ /** The is the link to the next page of the features returned. If it's the last page, no this field. */
7
+ nextLink?: string;
8
+ }
9
+ export interface FeaturesItemOutput {
10
+ /** The type of a feature must be Feature. */
11
+ type?: "Feature";
12
+ /** ID for feature returned */
13
+ id?: string;
14
+ properties?: FeaturesItemPropertiesOutput;
15
+ /** A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details. */
16
+ geometry: GeoJsonPointOutput;
17
+ /** Bounding box. Projection used - EPSG:3857. Please refer to [RFC 7946](https://datatracker.ietf.org/doc/html/rfc7946#section-5) for details. */
18
+ bbox?: Array<number>;
19
+ }
20
+ export interface FeaturesItemPropertiesOutput {
21
+ /**
22
+ * One of:
23
+ * * Address
24
+ * * RoadBlock
25
+ * * RoadIntersection
26
+ * * Neighborhood
27
+ * * PopulatedPlace
28
+ * * Postcode1
29
+ * * AdminDivision1
30
+ * * AdminDivision2
31
+ * * CountryRegion
32
+ */
33
+ type?: string;
34
+ /**
35
+ * The level of confidence that the geocoded location result is a match. Use this value with the match code to determine for more complete information about the match.
36
+ *
37
+ * The confidence of a geocoded location is based on many factors including the relative importance of the geocoded location and the user’s location, if specified.
38
+ */
39
+ confidence?: "High" | "Medium" | "Low";
40
+ /**
41
+ * One or more match code values that represent the geocoding level for each location in the response.
42
+ *
43
+ * For example, a geocoded location with match codes of `Good` and `Ambiguous` means that more than one geocode location was found for the location information and that the geocode service did not have search up-hierarchy to find a match.
44
+ *
45
+ * Similarly, a geocoded location with match codes of `Ambiguous` and `UpHierarchy` implies that a geocode location could not be found that matched all the provided location information, so the geocode service had to search up-hierarchy and found multiple matches at that level. An example of up an `Ambiguous` and `UpHierarchy` result is when you provide complete address information, but the geocode service cannot locate a match for the street address and instead returns information for more than one RoadBlock value.
46
+ *
47
+ * The possible values are:
48
+ *
49
+ * `Good`: The location has only one match or all returned matches are considered strong matches. For example, a query for New York returns several Good matches.
50
+ *
51
+ * `Ambiguous`: The location is one of a set of possible matches. For example, when you query for the street address 128 Main St., the response may return two locations for 128 North Main St. and 128 South Main St. because there is not enough information to determine which option to choose.
52
+ *
53
+ * `UpHierarchy`: The location represents a move up the geographic hierarchy. This occurs when a match for the location request was not found, so a less precise result is returned. For example, if a match for the requested address cannot be found, then a match code of `UpHierarchy` with a RoadBlock entity type may be returned.
54
+ */
55
+ matchCodes?: Array<"Good" | "Ambiguous" | "UpHierarchy">;
56
+ /** The address of the result */
57
+ address?: AddressOutput;
58
+ /** A collection of geocode points that differ in how they were calculated and their suggested use. */
59
+ geocodePoints?: Array<GeocodePointsItemOutput>;
60
+ }
61
+ /** The address of the result */
62
+ export interface AddressOutput {
63
+ /** AddressLine that includes Street Name and Number */
64
+ addressLine?: string;
65
+ /** locality property */
66
+ locality?: string;
67
+ /** neighborhood property */
68
+ neighborhood?: string;
69
+ /** The subdivision name in the country or region for an address. This element is typically treated as the first order administrative subdivision, but in some cases it also contains the second, third, or fourth order subdivision in a country, dependency, or region. */
70
+ adminDistricts?: Array<AddressAdminDistrictsItemOutput>;
71
+ /** Postal Code property */
72
+ postalCode?: string;
73
+ countryRegion?: AddressCountryRegionOutput;
74
+ /** Formatted Address property */
75
+ formattedAddress?: string;
76
+ /** The address of the result. */
77
+ intersection?: IntersectionOutput;
78
+ }
79
+ export interface AddressAdminDistrictsItemOutput {
80
+ /**
81
+ * The name for the corresponding adminDistrict field,
82
+ * For adminDistrict[0], this could be full name of state such as Washington,
83
+ * For adminDistrict[1], this could be the full name of the county
84
+ */
85
+ name?: string;
86
+ /**
87
+ * The short name for the corresponding adminDistrict field,
88
+ * For adminDistrict[0], this could be short name of state such as WA,
89
+ * For adminDistrict[1], this could be the short name of the county
90
+ */
91
+ shortName?: string;
92
+ }
93
+ export interface AddressCountryRegionOutput {
94
+ /** ISO of country/region */
95
+ ISO?: string;
96
+ /** name of country/region */
97
+ name?: string;
98
+ }
99
+ /** The address of the result. */
100
+ export interface IntersectionOutput {
101
+ /** Primary street for the location. */
102
+ baseStreet?: string;
103
+ /** The first intersecting street. */
104
+ secondaryStreet1?: string;
105
+ /** If any, the second intersecting street. */
106
+ secondaryStreet2?: string;
107
+ /** Type of intersection. */
108
+ intersectionType?: string;
109
+ /** Complete name of the intersection. */
110
+ displayName?: string;
111
+ }
112
+ export interface GeocodePointsItemOutput {
113
+ /** A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details. */
114
+ geometry?: GeoJsonPointOutput;
115
+ /** The method that was used to compute the geocode point. */
116
+ calculationMethod?: "Interpolation" | "InterpolationOffset" | "Parcel" | "Rooftop";
117
+ /**
118
+ * The best use for the geocode point.
119
+ * Each geocode point is defined as a `Route` point, a `Display` point or both.
120
+ * Use `Route` points if you are creating a route to the location. Use `Display` points if you are showing the location on a map. For example, if the location is a park, a `Route` point may specify an entrance to the park where you can enter with a car, and a `Display` point may be a point that specifies the center of the park.
121
+ */
122
+ usageTypes?: Array<"Display" | "Route">;
123
+ }
124
+ /** A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details. */
125
+ export interface GeoJsonPointOutput extends GeoJsonGeometryOutputParent, GeoJsonPointDataOutput {
126
+ type: "Point";
127
+ }
128
+ /** A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details. */
129
+ export interface GeoJsonGeometryOutputParent extends GeoJsonObjectOutputParent {
130
+ type: "GeoJsonGeometry" | "Point" | "MultiPoint" | "LineString" | "MultiLineString" | "Polygon" | "MultiPolygon" | "GeometryCollection";
131
+ }
132
+ /** A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details. */
133
+ export interface GeoJsonObjectOutputParent {
134
+ /** Bounding box. Projection used - EPSG:3857. Please refer to [RFC 7946](https://datatracker.ietf.org/doc/html/rfc7946#section-5) for details. */
135
+ bbox?: Array<number>;
136
+ type: "GeoJsonObject" | "GeoJsonGeometry" | "Point" | "Feature" | "Boundary" | "MultiPoint" | "LineString" | "MultiLineString" | "Polygon" | "MultiPolygon" | "GeometryCollection" | "FeatureCollection";
137
+ }
138
+ /** Data contained by a `GeoJson Point`. */
139
+ export interface GeoJsonPointDataOutput {
140
+ /** A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details. */
141
+ coordinates: Array<number>;
142
+ }
143
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
144
+ export interface ErrorResponseOutput {
145
+ /** The error object. */
146
+ error?: ErrorDetailOutput;
147
+ }
148
+ /** The error detail. */
149
+ export interface ErrorDetailOutput {
150
+ /** The error code. */
151
+ readonly code?: string;
152
+ /** The error message. */
153
+ readonly message?: string;
154
+ /** The error target. */
155
+ readonly target?: string;
156
+ /** The error details. */
157
+ readonly details?: Array<ErrorDetailOutput>;
158
+ /** The error additional info. */
159
+ readonly additionalInfo?: Array<ErrorAdditionalInfoOutput>;
160
+ }
161
+ /** The resource management error additional info. */
162
+ export interface ErrorAdditionalInfoOutput {
163
+ /** The additional info type. */
164
+ readonly type?: string;
165
+ /** The additional info. */
166
+ readonly info?: Record<string, unknown>;
167
+ }
168
+ /** This object is returned from a successful Geocoding Batch service call. */
169
+ export interface GeocodingBatchResponseOutput {
170
+ /** Summary for the batch request */
171
+ summary?: GeocodingBatchResponseSummaryOutput;
172
+ /** Array containing the batch results. */
173
+ batchItems?: Array<GeocodingBatchResponseItemOutput>;
174
+ /** The is the link to the next page of the features returned. If it's the last page, no this field. */
175
+ nextLink?: string;
176
+ }
177
+ /** Summary for the batch request */
178
+ export interface GeocodingBatchResponseSummaryOutput {
179
+ /** Number of successful requests in the batch */
180
+ successfulRequests?: number;
181
+ /** Total number of requests in the batch */
182
+ totalRequests?: number;
183
+ }
184
+ export interface GeocodingBatchResponseItemOutput {
185
+ /** id of the batchItem which would be the same as the id in the request */
186
+ optionalId?: string;
187
+ /** The type of a FeatureCollection object must be FeatureCollection. */
188
+ type?: "FeatureCollection";
189
+ features?: Array<FeaturesItemOutput>;
190
+ /** The is the link to the next page of the features returned. If it's the last page, no this field. */
191
+ nextLink?: string;
192
+ /** The error detail. */
193
+ error?: ErrorDetailOutput;
194
+ }
195
+ /**
196
+ * `GeoJSON GeocodingFeature` object that describe the boundaries of a geographical area. Geometry of the feature is described with `GeoJSON GeometryCollection`.
197
+ *
198
+ * Please note, the service typically returns a GeometryCollection with Polygon or MultiPolygon sub-types.
199
+ */
200
+ export interface BoundaryOutput extends GeoJsonFeatureOutputParent, BoundaryPropertiesOutput {
201
+ type: "Boundary";
202
+ }
203
+ /** A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details. */
204
+ export interface GeoJsonFeatureOutputParent extends GeoJsonObjectOutputParent, GeoJsonFeatureDataOutput {
205
+ type: "Feature" | "Boundary";
206
+ }
207
+ export interface GeoJsonFeatureDataOutput {
208
+ /** A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details. */
209
+ geometry: GeoJsonGeometryOutput;
210
+ /** Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value */
211
+ properties?: Record<string, unknown>;
212
+ /** Identifier for the feature. */
213
+ id?: string;
214
+ /** The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value. */
215
+ featureType?: string;
216
+ }
217
+ /** Properties of a Boundary object. */
218
+ export interface BoundaryPropertiesOutput {
219
+ /** The name associated with the geographical area. */
220
+ name?: string;
221
+ /** The copyright string. */
222
+ copyright?: string;
223
+ /** A URL that lists many of the data providers for Azure Maps and their related copyright information. */
224
+ copyrightURL?: string;
225
+ /** A collection of copyright information for each geometry of the Boundary object in the same order they appear. */
226
+ geometriesCopyright?: Array<GeometryCopyrightOutput>;
227
+ }
228
+ /** Copyright information of a geometry of a Boundary object. */
229
+ export interface GeometryCopyrightOutput {
230
+ /** The name of the data provider */
231
+ sourceName?: string;
232
+ /** The copyright string for the data provider */
233
+ copyright?: string;
234
+ }
235
+ /** A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details. */
236
+ export interface GeoJsonMultiPointOutput extends GeoJsonGeometryOutputParent, GeoJsonMultiPointDataOutput {
237
+ type: "MultiPoint";
238
+ }
239
+ /** Data contained by a `GeoJson MultiPoint`. */
240
+ export interface GeoJsonMultiPointDataOutput {
241
+ /** Coordinates for the `GeoJson MultiPoint` geometry. */
242
+ coordinates: Array<Array<number>>;
243
+ }
244
+ /** A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details. */
245
+ export interface GeoJsonLineStringOutput extends GeoJsonGeometryOutputParent, GeoJsonLineStringDataOutput {
246
+ type: "LineString";
247
+ }
248
+ export interface GeoJsonLineStringDataOutput {
249
+ /** Coordinates for the `GeoJson LineString` geometry. */
250
+ coordinates: Array<Array<number>>;
251
+ }
252
+ /** A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details. */
253
+ export interface GeoJsonMultiLineStringOutput extends GeoJsonGeometryOutputParent, GeoJsonMultiLineStringDataOutput {
254
+ type: "MultiLineString";
255
+ }
256
+ export interface GeoJsonMultiLineStringDataOutput {
257
+ /** Coordinates for the `GeoJson MultiLineString` geometry. */
258
+ coordinates: Array<Array<Array<number>>>;
259
+ }
260
+ /** A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details. */
261
+ export interface GeoJsonPolygonOutput extends GeoJsonGeometryOutputParent, GeoJsonPolygonDataOutput {
262
+ type: "Polygon";
263
+ }
264
+ export interface GeoJsonPolygonDataOutput {
265
+ /** Coordinates for the `GeoJson Polygon` geometry type. */
266
+ coordinates: Array<Array<Array<number>>>;
267
+ }
268
+ /** A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details. */
269
+ export interface GeoJsonMultiPolygonOutput extends GeoJsonGeometryOutputParent, GeoJsonMultiPolygonDataOutput {
270
+ type: "MultiPolygon";
271
+ }
272
+ export interface GeoJsonMultiPolygonDataOutput {
273
+ /** Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude). */
274
+ coordinates: Array<Array<Array<Array<number>>>>;
275
+ }
276
+ /** A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details. */
277
+ export interface GeoJsonGeometryCollectionOutput extends GeoJsonGeometryOutputParent, GeoJsonGeometryCollectionDataOutput {
278
+ type: "GeometryCollection";
279
+ }
280
+ export interface GeoJsonGeometryCollectionDataOutput {
281
+ /** Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude). */
282
+ geometries: Array<GeoJsonGeometryOutput>;
283
+ }
284
+ /** A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details. */
285
+ export interface GeoJsonFeatureCollectionOutput extends GeoJsonObjectOutputParent, GeoJsonFeatureCollectionDataOutput {
286
+ type: "FeatureCollection";
287
+ }
288
+ export interface GeoJsonFeatureCollectionDataOutput {
289
+ /** Contains a list of valid `GeoJSON Feature` objects. */
290
+ features: Array<GeoJsonFeatureOutput>;
291
+ }
292
+ /** A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details. */
293
+ export type GeoJsonGeometryOutput = GeoJsonGeometryOutputParent | GeoJsonPointOutput | GeoJsonMultiPointOutput | GeoJsonLineStringOutput | GeoJsonMultiLineStringOutput | GeoJsonPolygonOutput | GeoJsonMultiPolygonOutput | GeoJsonGeometryCollectionOutput;
294
+ /** A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details. */
295
+ export type GeoJsonObjectOutput = GeoJsonGeometryOutput | GeoJsonPointOutput | GeoJsonFeatureOutput | BoundaryOutput | GeoJsonMultiPointOutput | GeoJsonLineStringOutput | GeoJsonMultiLineStringOutput | GeoJsonPolygonOutput | GeoJsonMultiPolygonOutput | GeoJsonGeometryCollectionOutput | GeoJsonFeatureCollectionOutput;
296
+ /** A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details. */
297
+ export type GeoJsonFeatureOutput = GeoJsonFeatureOutputParent | BoundaryOutput;
298
+ //# sourceMappingURL=outputModels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outputModels.d.ts","sourceRoot":"","sources":["../../../src/generated/outputModels.ts"],"names":[],"mappings":"AAGA,+DAA+D;AAC/D,MAAM,WAAW,uBAAuB;IACtC,wEAAwE;IACxE,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACrC,uGAAuG;IACvG,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,6CAA6C;IAC7C,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,8BAA8B;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,4BAA4B,CAAC;IAC1C,wIAAwI;IACxI,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,kJAAkJ;IAClJ,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,4BAA4B;IAC3C;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,UAAU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C;AAED,iSAAiS;AACjS,MAAM,MAAM,qBAAqB,GAC7B,2BAA2B,GAC3B,kBAAkB,GAClB,uBAAuB,GACvB,uBAAuB,GACvB,4BAA4B,GAC5B,oBAAoB,GACpB,yBAAyB,GACzB,+BAA+B,CAAC;AACpC,uHAAuH;AACvH,MAAM,MAAM,mBAAmB,GAC3B,qBAAqB,GACrB,kBAAkB,GAClB,oBAAoB,GACpB,cAAc,GACd,uBAAuB,GACvB,uBAAuB,GACvB,4BAA4B,GAC5B,oBAAoB,GACpB,yBAAyB,GACzB,+BAA+B,GAC/B,8BAA8B,CAAC;AACnC,sIAAsI;AACtI,MAAM,MAAM,oBAAoB,GAAG,0BAA0B,GAAG,cAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=outputModels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outputModels.js","sourceRoot":"","sources":["../../../src/generated/outputModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** This object is returned from a successful Geocoding call */\nexport interface GeocodingResponseOutput {\n /** The type of a FeatureCollection object must be FeatureCollection. */\n type?: \"FeatureCollection\";\n features?: Array<FeaturesItemOutput>;\n /** The is the link to the next page of the features returned. If it's the last page, no this field. */\n nextLink?: string;\n}\n\nexport interface FeaturesItemOutput {\n /** The type of a feature must be Feature. */\n type?: \"Feature\";\n /** ID for feature returned */\n id?: string;\n properties?: FeaturesItemPropertiesOutput;\n /** A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details. */\n geometry: GeoJsonPointOutput;\n /** Bounding box. Projection used - EPSG:3857. Please refer to [RFC 7946](https://datatracker.ietf.org/doc/html/rfc7946#section-5) for details. */\n bbox?: Array<number>;\n}\n\nexport interface FeaturesItemPropertiesOutput {\n /**\n * One of:\n * * Address\n * * RoadBlock\n * * RoadIntersection\n * * Neighborhood\n * * PopulatedPlace\n * * Postcode1\n * * AdminDivision1\n * * AdminDivision2\n * * CountryRegion\n */\n type?: string;\n /**\n * The level of confidence that the geocoded location result is a match. Use this value with the match code to determine for more complete information about the match.\n *\n * The confidence of a geocoded location is based on many factors including the relative importance of the geocoded location and the user’s location, if specified.\n */\n confidence?: \"High\" | \"Medium\" | \"Low\";\n /**\n * One or more match code values that represent the geocoding level for each location in the response.\n *\n * For example, a geocoded location with match codes of `Good` and `Ambiguous` means that more than one geocode location was found for the location information and that the geocode service did not have search up-hierarchy to find a match.\n *\n * Similarly, a geocoded location with match codes of `Ambiguous` and `UpHierarchy` implies that a geocode location could not be found that matched all the provided location information, so the geocode service had to search up-hierarchy and found multiple matches at that level. An example of up an `Ambiguous` and `UpHierarchy` result is when you provide complete address information, but the geocode service cannot locate a match for the street address and instead returns information for more than one RoadBlock value.\n *\n * The possible values are:\n *\n * `Good`: The location has only one match or all returned matches are considered strong matches. For example, a query for New York returns several Good matches.\n *\n * `Ambiguous`: The location is one of a set of possible matches. For example, when you query for the street address 128 Main St., the response may return two locations for 128 North Main St. and 128 South Main St. because there is not enough information to determine which option to choose.\n *\n * `UpHierarchy`: The location represents a move up the geographic hierarchy. This occurs when a match for the location request was not found, so a less precise result is returned. For example, if a match for the requested address cannot be found, then a match code of `UpHierarchy` with a RoadBlock entity type may be returned.\n */\n matchCodes?: Array<\"Good\" | \"Ambiguous\" | \"UpHierarchy\">;\n /** The address of the result */\n address?: AddressOutput;\n /** A collection of geocode points that differ in how they were calculated and their suggested use. */\n geocodePoints?: Array<GeocodePointsItemOutput>;\n}\n\n/** The address of the result */\nexport interface AddressOutput {\n /** AddressLine that includes Street Name and Number */\n addressLine?: string;\n /** locality property */\n locality?: string;\n /** neighborhood property */\n neighborhood?: string;\n /** The subdivision name in the country or region for an address. This element is typically treated as the first order administrative subdivision, but in some cases it also contains the second, third, or fourth order subdivision in a country, dependency, or region. */\n adminDistricts?: Array<AddressAdminDistrictsItemOutput>;\n /** Postal Code property */\n postalCode?: string;\n countryRegion?: AddressCountryRegionOutput;\n /** Formatted Address property */\n formattedAddress?: string;\n /** The address of the result. */\n intersection?: IntersectionOutput;\n}\n\nexport interface AddressAdminDistrictsItemOutput {\n /**\n * The name for the corresponding adminDistrict field,\n * For adminDistrict[0], this could be full name of state such as Washington,\n * For adminDistrict[1], this could be the full name of the county\n */\n name?: string;\n /**\n * The short name for the corresponding adminDistrict field,\n * For adminDistrict[0], this could be short name of state such as WA,\n * For adminDistrict[1], this could be the short name of the county\n */\n shortName?: string;\n}\n\nexport interface AddressCountryRegionOutput {\n /** ISO of country/region */\n ISO?: string;\n /** name of country/region */\n name?: string;\n}\n\n/** The address of the result. */\nexport interface IntersectionOutput {\n /** Primary street for the location. */\n baseStreet?: string;\n /** The first intersecting street. */\n secondaryStreet1?: string;\n /** If any, the second intersecting street. */\n secondaryStreet2?: string;\n /** Type of intersection. */\n intersectionType?: string;\n /** Complete name of the intersection. */\n displayName?: string;\n}\n\nexport interface GeocodePointsItemOutput {\n /** A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details. */\n geometry?: GeoJsonPointOutput;\n /** The method that was used to compute the geocode point. */\n calculationMethod?:\n | \"Interpolation\"\n | \"InterpolationOffset\"\n | \"Parcel\"\n | \"Rooftop\";\n /**\n * The best use for the geocode point.\n * Each geocode point is defined as a `Route` point, a `Display` point or both.\n * Use `Route` points if you are creating a route to the location. Use `Display` points if you are showing the location on a map. For example, if the location is a park, a `Route` point may specify an entrance to the park where you can enter with a car, and a `Display` point may be a point that specifies the center of the park.\n */\n usageTypes?: Array<\"Display\" | \"Route\">;\n}\n\n/** A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details. */\nexport interface GeoJsonPointOutput\n extends GeoJsonGeometryOutputParent,\n GeoJsonPointDataOutput {\n type: \"Point\";\n}\n\n/** A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details. */\nexport interface GeoJsonGeometryOutputParent extends GeoJsonObjectOutputParent {\n type:\n | \"GeoJsonGeometry\"\n | \"Point\"\n | \"MultiPoint\"\n | \"LineString\"\n | \"MultiLineString\"\n | \"Polygon\"\n | \"MultiPolygon\"\n | \"GeometryCollection\";\n}\n\n/** A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details. */\nexport interface GeoJsonObjectOutputParent {\n /** Bounding box. Projection used - EPSG:3857. Please refer to [RFC 7946](https://datatracker.ietf.org/doc/html/rfc7946#section-5) for details. */\n bbox?: Array<number>;\n type:\n | \"GeoJsonObject\"\n | \"GeoJsonGeometry\"\n | \"Point\"\n | \"Feature\"\n | \"Boundary\"\n | \"MultiPoint\"\n | \"LineString\"\n | \"MultiLineString\"\n | \"Polygon\"\n | \"MultiPolygon\"\n | \"GeometryCollection\"\n | \"FeatureCollection\";\n}\n\n/** Data contained by a `GeoJson Point`. */\nexport interface GeoJsonPointDataOutput {\n /** A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details. */\n coordinates: Array<number>;\n}\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */\nexport interface ErrorResponseOutput {\n /** The error object. */\n error?: ErrorDetailOutput;\n}\n\n/** The error detail. */\nexport interface ErrorDetailOutput {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: Array<ErrorDetailOutput>;\n /** The error additional info. */\n readonly additionalInfo?: Array<ErrorAdditionalInfoOutput>;\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfoOutput {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: Record<string, unknown>;\n}\n\n/** This object is returned from a successful Geocoding Batch service call. */\nexport interface GeocodingBatchResponseOutput {\n /** Summary for the batch request */\n summary?: GeocodingBatchResponseSummaryOutput;\n /** Array containing the batch results. */\n batchItems?: Array<GeocodingBatchResponseItemOutput>;\n /** The is the link to the next page of the features returned. If it's the last page, no this field. */\n nextLink?: string;\n}\n\n/** Summary for the batch request */\nexport interface GeocodingBatchResponseSummaryOutput {\n /** Number of successful requests in the batch */\n successfulRequests?: number;\n /** Total number of requests in the batch */\n totalRequests?: number;\n}\n\nexport interface GeocodingBatchResponseItemOutput {\n /** id of the batchItem which would be the same as the id in the request */\n optionalId?: string;\n /** The type of a FeatureCollection object must be FeatureCollection. */\n type?: \"FeatureCollection\";\n features?: Array<FeaturesItemOutput>;\n /** The is the link to the next page of the features returned. If it's the last page, no this field. */\n nextLink?: string;\n /** The error detail. */\n error?: ErrorDetailOutput;\n}\n\n/**\n * `GeoJSON GeocodingFeature` object that describe the boundaries of a geographical area. Geometry of the feature is described with `GeoJSON GeometryCollection`.\n *\n * Please note, the service typically returns a GeometryCollection with Polygon or MultiPolygon sub-types.\n */\nexport interface BoundaryOutput\n extends GeoJsonFeatureOutputParent,\n BoundaryPropertiesOutput {\n type: \"Boundary\";\n}\n\n/** A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details. */\nexport interface GeoJsonFeatureOutputParent\n extends GeoJsonObjectOutputParent,\n GeoJsonFeatureDataOutput {\n type: \"Feature\" | \"Boundary\";\n}\n\nexport interface GeoJsonFeatureDataOutput {\n /** A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details. */\n geometry: GeoJsonGeometryOutput;\n /** Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value */\n properties?: Record<string, unknown>;\n /** Identifier for the feature. */\n id?: string;\n /** The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value. */\n featureType?: string;\n}\n\n/** Properties of a Boundary object. */\nexport interface BoundaryPropertiesOutput {\n /** The name associated with the geographical area. */\n name?: string;\n /** The copyright string. */\n copyright?: string;\n /** A URL that lists many of the data providers for Azure Maps and their related copyright information. */\n copyrightURL?: string;\n /** A collection of copyright information for each geometry of the Boundary object in the same order they appear. */\n geometriesCopyright?: Array<GeometryCopyrightOutput>;\n}\n\n/** Copyright information of a geometry of a Boundary object. */\nexport interface GeometryCopyrightOutput {\n /** The name of the data provider */\n sourceName?: string;\n /** The copyright string for the data provider */\n copyright?: string;\n}\n\n/** A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details. */\nexport interface GeoJsonMultiPointOutput\n extends GeoJsonGeometryOutputParent,\n GeoJsonMultiPointDataOutput {\n type: \"MultiPoint\";\n}\n\n/** Data contained by a `GeoJson MultiPoint`. */\nexport interface GeoJsonMultiPointDataOutput {\n /** Coordinates for the `GeoJson MultiPoint` geometry. */\n coordinates: Array<Array<number>>;\n}\n\n/** A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details. */\nexport interface GeoJsonLineStringOutput\n extends GeoJsonGeometryOutputParent,\n GeoJsonLineStringDataOutput {\n type: \"LineString\";\n}\n\nexport interface GeoJsonLineStringDataOutput {\n /** Coordinates for the `GeoJson LineString` geometry. */\n coordinates: Array<Array<number>>;\n}\n\n/** A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details. */\nexport interface GeoJsonMultiLineStringOutput\n extends GeoJsonGeometryOutputParent,\n GeoJsonMultiLineStringDataOutput {\n type: \"MultiLineString\";\n}\n\nexport interface GeoJsonMultiLineStringDataOutput {\n /** Coordinates for the `GeoJson MultiLineString` geometry. */\n coordinates: Array<Array<Array<number>>>;\n}\n\n/** A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details. */\nexport interface GeoJsonPolygonOutput\n extends GeoJsonGeometryOutputParent,\n GeoJsonPolygonDataOutput {\n type: \"Polygon\";\n}\n\nexport interface GeoJsonPolygonDataOutput {\n /** Coordinates for the `GeoJson Polygon` geometry type. */\n coordinates: Array<Array<Array<number>>>;\n}\n\n/** A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details. */\nexport interface GeoJsonMultiPolygonOutput\n extends GeoJsonGeometryOutputParent,\n GeoJsonMultiPolygonDataOutput {\n type: \"MultiPolygon\";\n}\n\nexport interface GeoJsonMultiPolygonDataOutput {\n /** Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude). */\n coordinates: Array<Array<Array<Array<number>>>>;\n}\n\n/** A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details. */\nexport interface GeoJsonGeometryCollectionOutput\n extends GeoJsonGeometryOutputParent,\n GeoJsonGeometryCollectionDataOutput {\n type: \"GeometryCollection\";\n}\n\nexport interface GeoJsonGeometryCollectionDataOutput {\n /** Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude). */\n geometries: Array<GeoJsonGeometryOutput>;\n}\n\n/** A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details. */\nexport interface GeoJsonFeatureCollectionOutput\n extends GeoJsonObjectOutputParent,\n GeoJsonFeatureCollectionDataOutput {\n type: \"FeatureCollection\";\n}\n\nexport interface GeoJsonFeatureCollectionDataOutput {\n /** Contains a list of valid `GeoJSON Feature` objects. */\n features: Array<GeoJsonFeatureOutput>;\n}\n\n/** A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details. */\nexport type GeoJsonGeometryOutput =\n | GeoJsonGeometryOutputParent\n | GeoJsonPointOutput\n | GeoJsonMultiPointOutput\n | GeoJsonLineStringOutput\n | GeoJsonMultiLineStringOutput\n | GeoJsonPolygonOutput\n | GeoJsonMultiPolygonOutput\n | GeoJsonGeometryCollectionOutput;\n/** A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details. */\nexport type GeoJsonObjectOutput =\n | GeoJsonGeometryOutput\n | GeoJsonPointOutput\n | GeoJsonFeatureOutput\n | BoundaryOutput\n | GeoJsonMultiPointOutput\n | GeoJsonLineStringOutput\n | GeoJsonMultiLineStringOutput\n | GeoJsonPolygonOutput\n | GeoJsonMultiPolygonOutput\n | GeoJsonGeometryCollectionOutput\n | GeoJsonFeatureCollectionOutput;\n/** A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details. */\nexport type GeoJsonFeatureOutput = GeoJsonFeatureOutputParent | BoundaryOutput;\n"]}
@@ -0,0 +1,135 @@
1
+ import { RequestParameters } from "@azure-rest/core-client";
2
+ import { GeocodingBatchRequestBody, ReverseGeocodingBatchRequestBody } from "./models.js";
3
+ export interface SearchGetGeocodingQueryParamProperties {
4
+ /** Maximum number of responses that will be returned. Default: 5, minimum: 1 and maximum: 20. */
5
+ top?: number;
6
+ /** A string that contains information about a location, such as an address or landmark name. */
7
+ query?: string;
8
+ /**
9
+ * The official street line of an address relative to the area, as specified by the locality, or postalCode, properties. Typical use of this element would be to provide a street address or any official address.
10
+ *
11
+ * **If query is given, should not use this parameter.**
12
+ */
13
+ addressLine?: string;
14
+ /**
15
+ * Signal for the geocoding result to an [ISO 3166-1 Alpha-2 region/country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) that is specified e.g. FR./
16
+ *
17
+ * **If query is given, should not use this parameter.**
18
+ */
19
+ countryRegion?: string;
20
+ /**
21
+ * A rectangular area on the earth defined as a bounding box object. The sides of the rectangles are defined by longitude and latitude values. When you specify this parameter, the geographical area is taken into account when computing the results of a location query.
22
+ *
23
+ * Example: lon1,lat1,lon2,lat2
24
+ */
25
+ bbox?: Array<number>;
26
+ /**
27
+ * A string that represents an [ISO 3166-1 Alpha-2 region/country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will alter Geopolitical disputed borders and labels to align with the specified user region. By default, the View parameter is set to “Auto” even if you haven’t defined it in the request.
28
+ *
29
+ * Please refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views.
30
+ */
31
+ view?: string;
32
+ /** A point on the earth specified as a longitude and latitude. When you specify this parameter, the user’s location is taken into account and the results returned may be more relevant to the user. Example: &coordinates=lon,lat */
33
+ coordinates?: Array<number>;
34
+ /**
35
+ * The country subdivision portion of an address, such as WA.
36
+ *
37
+ * **If query is given, should not use this parameter.**
38
+ */
39
+ adminDistrict?: string;
40
+ /**
41
+ * The county for the structured address, such as King.
42
+ *
43
+ * **If query is given, should not use this parameter.**
44
+ */
45
+ adminDistrict2?: string;
46
+ /**
47
+ * The named area for the structured address.
48
+ *
49
+ * **If query is given, should not use this parameter.**
50
+ */
51
+ adminDistrict3?: string;
52
+ /**
53
+ * The locality portion of an address, such as Seattle.
54
+ *
55
+ * **If query is given, should not use this parameter.**
56
+ */
57
+ locality?: string;
58
+ /**
59
+ * The postal code portion of an address.
60
+ *
61
+ * **If query is given, should not use this parameter.**
62
+ */
63
+ postalCode?: string;
64
+ }
65
+ export interface SearchGetGeocodingQueryParam {
66
+ queryParameters?: SearchGetGeocodingQueryParamProperties;
67
+ }
68
+ export type SearchGetGeocodingParameters = SearchGetGeocodingQueryParam & RequestParameters;
69
+ export interface SearchGetGeocodingBatchBodyParam {
70
+ /** The list of address geocoding queries/requests to process. The list can contain a max of 100 queries and must contain at least 1 query. */
71
+ body: GeocodingBatchRequestBody;
72
+ }
73
+ export interface SearchGetGeocodingBatchMediaTypesParam {
74
+ /** Request content type */
75
+ contentType?: "application/json";
76
+ }
77
+ export type SearchGetGeocodingBatchParameters = SearchGetGeocodingBatchMediaTypesParam & SearchGetGeocodingBatchBodyParam & RequestParameters;
78
+ export interface SearchGetPolygonQueryParamProperties {
79
+ /** A point on the earth specified as a longitude and latitude. Example: &coordinates=lon,lat */
80
+ coordinates: Array<number>;
81
+ /**
82
+ * A string that represents an [ISO 3166-1 Alpha-2 region/country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will alter Geopolitical disputed borders and labels to align with the specified user region. By default, the View parameter is set to “Auto” even if you haven’t defined it in the request.
83
+ *
84
+ * Please refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views.
85
+ */
86
+ view?: string;
87
+ /** The geopolitical concept to return a boundary for. If not specified, the default is `countryRegion` result type. */
88
+ resultType?: "countryRegion" | "adminDistrict" | "adminDistrict2" | "postalCode" | "postalCode2" | "postalCode3" | "postalCode4" | "neighborhood" | "locality";
89
+ /** Resolution determines the amount of points to send back. If not specified, the default is medium resolution. */
90
+ resolution?: "small" | "medium" | "large" | "huge";
91
+ }
92
+ export interface SearchGetPolygonQueryParam {
93
+ queryParameters: SearchGetPolygonQueryParamProperties;
94
+ }
95
+ export type SearchGetPolygonParameters = SearchGetPolygonQueryParam & RequestParameters;
96
+ export interface SearchGetReverseGeocodingQueryParamProperties {
97
+ /** The coordinates of the location that you want to reverse geocode. Example: &coordinates=lon,lat */
98
+ coordinates: Array<number>;
99
+ /**
100
+ * Specify entity types that you want in the response. Only the types you specify will be returned. If the point cannot be mapped to the entity types you specify, no location information is returned in the response.
101
+ * Default value is all possible entities.
102
+ * A comma separated list of entity types selected from the following options.
103
+ *
104
+ * - Address
105
+ * - Neighborhood
106
+ * - PopulatedPlace
107
+ * - Postcode1
108
+ * - AdminDivision1
109
+ * - AdminDivision2
110
+ * - CountryRegion
111
+ *
112
+ * These entity types are ordered from the most specific entity to the least specific entity. When entities of more than one entity type are found, only the most specific entity is returned. For example, if you specify Address and AdminDistrict1 as entity types and entities were found for both types, only the Address entity information is returned in the response.
113
+ */
114
+ resultTypes?: Array<"Address" | "Neighborhood" | "PopulatedPlace" | "Postcode1" | "AdminDivision1" | "AdminDivision2" | "CountryRegion">;
115
+ /**
116
+ * A string that represents an [ISO 3166-1 Alpha-2 region/country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will alter Geopolitical disputed borders and labels to align with the specified user region. By default, the View parameter is set to “Auto” even if you haven’t defined it in the request.
117
+ *
118
+ * Please refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views.
119
+ */
120
+ view?: string;
121
+ }
122
+ export interface SearchGetReverseGeocodingQueryParam {
123
+ queryParameters: SearchGetReverseGeocodingQueryParamProperties;
124
+ }
125
+ export type SearchGetReverseGeocodingParameters = SearchGetReverseGeocodingQueryParam & RequestParameters;
126
+ export interface SearchGetReverseGeocodingBatchBodyParam {
127
+ /** The list of reverse geocoding queries/requests to process. The list can contain a max of 100 queries and must contain at least 1 query. */
128
+ body: ReverseGeocodingBatchRequestBody;
129
+ }
130
+ export interface SearchGetReverseGeocodingBatchMediaTypesParam {
131
+ /** Request content type */
132
+ contentType?: "application/json";
133
+ }
134
+ export type SearchGetReverseGeocodingBatchParameters = SearchGetReverseGeocodingBatchMediaTypesParam & SearchGetReverseGeocodingBatchBodyParam & RequestParameters;
135
+ //# sourceMappingURL=parameters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../src/generated/parameters.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,y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IG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uHAAuH;IACvH,UAAU,CAAC,EACP,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,YAAY,GACZ,aAAa,GACb,aAAa,GACb,aAAa,GACb,cAAc,GACd,UAAU,CAAC;IACf,mHAAmH;IACnH,UAAU,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;CACpD;AAED,MAAM,WAAW,0BAA0B;IACzC,eAAe,EAAE,oCAAoC,CAAC;CACvD;AAED,MAAM,MAAM,0BAA0B,GAAG,0BAA0B,GACjE,iBAAiB,CAAC;AAEpB,MAAM,WAAW,6CAA6C;IAC5D,sGAAsG;IACtG,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;;;;;;;;;;;;;OAcG;IACH,WAAW,CAAC,EAAE,KAAK,CACf,SAAS,GACT,cAAc,GACd,gBAAgB,GAChB,WAAW,GACX,gBAAgB,GAChB,gBAAgB,GAChB,eAAe,CAClB,CAAC;IACF;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mCAAmC;IAClD,eAAe,EAAE,6CAA6C,CAAC;CAChE;AAED,MAAM,MAAM,mCAAmC,GAC7C,mCAAmC,GAAG,iBAAiB,CAAC;AAE1D,MAAM,WAAW,uCAAuC;IACtD,8IAA8I;IAC9I,IAAI,EAAE,gCAAgC,CAAC;CACxC;AAED,MAAM,WAAW,6CAA6C;IAC5D,2BAA2B;IAC3B,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAClC;AAED,MAAM,MAAM,wCAAwC,GAClD,6CAA6C,GAC3C,uCAAuC,GACvC,iBAAiB,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=parameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/generated/parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { RequestParameters } from \"@azure-rest/core-client\";\nimport {\n GeocodingBatchRequestBody,\n ReverseGeocodingBatchRequestBody,\n} from \"./models.js\";\n\nexport interface SearchGetGeocodingQueryParamProperties {\n /** Maximum number of responses that will be returned. Default: 5, minimum: 1 and maximum: 20. */\n top?: number;\n /** A string that contains information about a location, such as an address or landmark name. */\n query?: string;\n /**\n * The official street line of an address relative to the area, as specified by the locality, or postalCode, properties. Typical use of this element would be to provide a street address or any official address.\n *\n * **If query is given, should not use this parameter.**\n */\n addressLine?: string;\n /**\n * Signal for the geocoding result to an [ISO 3166-1 Alpha-2 region/country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) that is specified e.g. FR./\n *\n * **If query is given, should not use this parameter.**\n */\n countryRegion?: string;\n /**\n * A rectangular area on the earth defined as a bounding box object. The sides of the rectangles are defined by longitude and latitude values. When you specify this parameter, the geographical area is taken into account when computing the results of a location query.\n *\n * Example: lon1,lat1,lon2,lat2\n */\n bbox?: Array<number>;\n /**\n * A string that represents an [ISO 3166-1 Alpha-2 region/country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will alter Geopolitical disputed borders and labels to align with the specified user region. By default, the View parameter is set to “Auto” even if you haven’t defined it in the request.\n *\n * Please refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views.\n */\n view?: string;\n /** A point on the earth specified as a longitude and latitude. When you specify this parameter, the user’s location is taken into account and the results returned may be more relevant to the user. Example: &coordinates=lon,lat */\n coordinates?: Array<number>;\n /**\n * The country subdivision portion of an address, such as WA.\n *\n * **If query is given, should not use this parameter.**\n */\n adminDistrict?: string;\n /**\n * The county for the structured address, such as King.\n *\n * **If query is given, should not use this parameter.**\n */\n adminDistrict2?: string;\n /**\n * The named area for the structured address.\n *\n * **If query is given, should not use this parameter.**\n */\n adminDistrict3?: string;\n /**\n * The locality portion of an address, such as Seattle.\n *\n * **If query is given, should not use this parameter.**\n */\n locality?: string;\n /**\n * The postal code portion of an address.\n *\n * **If query is given, should not use this parameter.**\n */\n postalCode?: string;\n}\n\nexport interface SearchGetGeocodingQueryParam {\n queryParameters?: SearchGetGeocodingQueryParamProperties;\n}\n\nexport type SearchGetGeocodingParameters = SearchGetGeocodingQueryParam &\n RequestParameters;\n\nexport interface SearchGetGeocodingBatchBodyParam {\n /** The list of address geocoding queries/requests to process. The list can contain a max of 100 queries and must contain at least 1 query. */\n body: GeocodingBatchRequestBody;\n}\n\nexport interface SearchGetGeocodingBatchMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type SearchGetGeocodingBatchParameters =\n SearchGetGeocodingBatchMediaTypesParam &\n SearchGetGeocodingBatchBodyParam &\n RequestParameters;\n\nexport interface SearchGetPolygonQueryParamProperties {\n /** A point on the earth specified as a longitude and latitude. Example: &coordinates=lon,lat */\n coordinates: Array<number>;\n /**\n * A string that represents an [ISO 3166-1 Alpha-2 region/country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will alter Geopolitical disputed borders and labels to align with the specified user region. By default, the View parameter is set to “Auto” even if you haven’t defined it in the request.\n *\n * Please refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views.\n */\n view?: string;\n /** The geopolitical concept to return a boundary for. If not specified, the default is `countryRegion` result type. */\n resultType?:\n | \"countryRegion\"\n | \"adminDistrict\"\n | \"adminDistrict2\"\n | \"postalCode\"\n | \"postalCode2\"\n | \"postalCode3\"\n | \"postalCode4\"\n | \"neighborhood\"\n | \"locality\";\n /** Resolution determines the amount of points to send back. If not specified, the default is medium resolution. */\n resolution?: \"small\" | \"medium\" | \"large\" | \"huge\";\n}\n\nexport interface SearchGetPolygonQueryParam {\n queryParameters: SearchGetPolygonQueryParamProperties;\n}\n\nexport type SearchGetPolygonParameters = SearchGetPolygonQueryParam &\n RequestParameters;\n\nexport interface SearchGetReverseGeocodingQueryParamProperties {\n /** The coordinates of the location that you want to reverse geocode. Example: &coordinates=lon,lat */\n coordinates: Array<number>;\n /**\n * Specify entity types that you want in the response. Only the types you specify will be returned. If the point cannot be mapped to the entity types you specify, no location information is returned in the response.\n * Default value is all possible entities.\n * A comma separated list of entity types selected from the following options.\n *\n * - Address\n * - Neighborhood\n * - PopulatedPlace\n * - Postcode1\n * - AdminDivision1\n * - AdminDivision2\n * - CountryRegion\n *\n * These entity types are ordered from the most specific entity to the least specific entity. When entities of more than one entity type are found, only the most specific entity is returned. For example, if you specify Address and AdminDistrict1 as entity types and entities were found for both types, only the Address entity information is returned in the response.\n */\n resultTypes?: Array<\n | \"Address\"\n | \"Neighborhood\"\n | \"PopulatedPlace\"\n | \"Postcode1\"\n | \"AdminDivision1\"\n | \"AdminDivision2\"\n | \"CountryRegion\"\n >;\n /**\n * A string that represents an [ISO 3166-1 Alpha-2 region/country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will alter Geopolitical disputed borders and labels to align with the specified user region. By default, the View parameter is set to “Auto” even if you haven’t defined it in the request.\n *\n * Please refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views.\n */\n view?: string;\n}\n\nexport interface SearchGetReverseGeocodingQueryParam {\n queryParameters: SearchGetReverseGeocodingQueryParamProperties;\n}\n\nexport type SearchGetReverseGeocodingParameters =\n SearchGetReverseGeocodingQueryParam & RequestParameters;\n\nexport interface SearchGetReverseGeocodingBatchBodyParam {\n /** The list of reverse geocoding queries/requests to process. The list can contain a max of 100 queries and must contain at least 1 query. */\n body: ReverseGeocodingBatchRequestBody;\n}\n\nexport interface SearchGetReverseGeocodingBatchMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type SearchGetReverseGeocodingBatchParameters =\n SearchGetReverseGeocodingBatchMediaTypesParam &\n SearchGetReverseGeocodingBatchBodyParam &\n RequestParameters;\n"]}