@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,75 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ const responseMap = {
4
+ "GET /geocode": ["200"],
5
+ "POST /geocode:batch": ["200"],
6
+ "GET /search/polygon": ["200"],
7
+ "GET /reverseGeocode": ["200"],
8
+ "POST /reverseGeocode:batch": ["200"],
9
+ };
10
+ export function isUnexpected(response) {
11
+ const lroOriginal = response.headers["x-ms-original-url"];
12
+ const url = new URL(lroOriginal !== null && lroOriginal !== void 0 ? lroOriginal : response.request.url);
13
+ const method = response.request.method;
14
+ let pathDetails = responseMap[`${method} ${url.pathname}`];
15
+ if (!pathDetails) {
16
+ pathDetails = getParametrizedPathSuccess(method, url.pathname);
17
+ }
18
+ return !pathDetails.includes(response.status);
19
+ }
20
+ function getParametrizedPathSuccess(method, path) {
21
+ var _a, _b, _c, _d;
22
+ const pathParts = path.split("/");
23
+ // Traverse list to match the longest candidate
24
+ // matchedLen: the length of candidate path
25
+ // matchedValue: the matched status code array
26
+ let matchedLen = -1, matchedValue = [];
27
+ // Iterate the responseMap to find a match
28
+ for (const [key, value] of Object.entries(responseMap)) {
29
+ // Extracting the path from the map key which is in format
30
+ // GET /path/foo
31
+ if (!key.startsWith(method)) {
32
+ continue;
33
+ }
34
+ const candidatePath = getPathFromMapKey(key);
35
+ // Get each part of the url path
36
+ const candidateParts = candidatePath.split("/");
37
+ // track if we have found a match to return the values found.
38
+ let found = true;
39
+ for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
40
+ if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) &&
41
+ ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
42
+ const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
43
+ // If the current part of the candidate is a "template" part
44
+ // Try to use the suffix of pattern to match the path
45
+ // {guid} ==> $
46
+ // {guid}:export ==> :export$
47
+ const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
48
+ if (!isMatched) {
49
+ found = false;
50
+ break;
51
+ }
52
+ continue;
53
+ }
54
+ // If the candidate part is not a template and
55
+ // the parts don't match mark the candidate as not found
56
+ // to move on with the next candidate path.
57
+ if (candidateParts[i] !== pathParts[j]) {
58
+ found = false;
59
+ break;
60
+ }
61
+ }
62
+ // We finished evaluating the current candidate parts
63
+ // Update the matched value if and only if we found the longer pattern
64
+ if (found && candidatePath.length > matchedLen) {
65
+ matchedLen = candidatePath.length;
66
+ matchedValue = value;
67
+ }
68
+ }
69
+ return matchedValue;
70
+ }
71
+ function getPathFromMapKey(mapKey) {
72
+ const pathStart = mapKey.indexOf("/");
73
+ return mapKey.slice(pathStart);
74
+ }
75
+ //# sourceMappingURL=isUnexpected.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["../../../src/generated/isUnexpected.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAelC,MAAM,WAAW,GAA6B;IAC5C,cAAc,EAAE,CAAC,KAAK,CAAC;IACvB,qBAAqB,EAAE,CAAC,KAAK,CAAC;IAC9B,qBAAqB,EAAE,CAAC,KAAK,CAAC;IAC9B,qBAAqB,EAAE,CAAC,KAAK,CAAC;IAC9B,4BAA4B,EAAE,CAAC,KAAK,CAAC;CACtC,CAAC;AAuBF,MAAM,UAAU,YAAY,CAC1B,QAUiD;IAOjD,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC1D,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACzD,MAAM,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC;IACvC,IAAI,WAAW,GAAG,WAAW,CAAC,GAAG,MAAM,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC3D,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,WAAW,GAAG,0BAA0B,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;IACjE,CAAC;IACD,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AAChD,CAAC;AAED,SAAS,0BAA0B,CAAC,MAAc,EAAE,IAAY;;IAC9D,MAAM,SAAS,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,CAC1B,GAAG,MAAA,cAAc,CAAC,CAAC,CAAC,0CAAE,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAC1C,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;gBAE3B,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,KAAK,GAAG,KAAK,CAAC;oBACd,MAAM;gBACR,CAAC;gBACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n SearchGetGeocoding200Response,\n SearchGetGeocodingDefaultResponse,\n SearchGetGeocodingBatch200Response,\n SearchGetGeocodingBatchDefaultResponse,\n SearchGetPolygon200Response,\n SearchGetPolygonDefaultResponse,\n SearchGetReverseGeocoding200Response,\n SearchGetReverseGeocodingDefaultResponse,\n SearchGetReverseGeocodingBatch200Response,\n SearchGetReverseGeocodingBatchDefaultResponse,\n} from \"./responses.js\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /geocode\": [\"200\"],\n \"POST /geocode:batch\": [\"200\"],\n \"GET /search/polygon\": [\"200\"],\n \"GET /reverseGeocode\": [\"200\"],\n \"POST /reverseGeocode:batch\": [\"200\"],\n};\n\nexport function isUnexpected(\n response: SearchGetGeocoding200Response | SearchGetGeocodingDefaultResponse,\n): response is SearchGetGeocodingDefaultResponse;\nexport function isUnexpected(\n response:\n | SearchGetGeocodingBatch200Response\n | SearchGetGeocodingBatchDefaultResponse,\n): response is SearchGetGeocodingBatchDefaultResponse;\nexport function isUnexpected(\n response: SearchGetPolygon200Response | SearchGetPolygonDefaultResponse,\n): response is SearchGetPolygonDefaultResponse;\nexport function isUnexpected(\n response:\n | SearchGetReverseGeocoding200Response\n | SearchGetReverseGeocodingDefaultResponse,\n): response is SearchGetReverseGeocodingDefaultResponse;\nexport function isUnexpected(\n response:\n | SearchGetReverseGeocodingBatch200Response\n | SearchGetReverseGeocodingBatchDefaultResponse,\n): response is SearchGetReverseGeocodingBatchDefaultResponse;\nexport function isUnexpected(\n response:\n | SearchGetGeocoding200Response\n | SearchGetGeocodingDefaultResponse\n | SearchGetGeocodingBatch200Response\n | SearchGetGeocodingBatchDefaultResponse\n | SearchGetPolygon200Response\n | SearchGetPolygonDefaultResponse\n | SearchGetReverseGeocoding200Response\n | SearchGetReverseGeocodingDefaultResponse\n | SearchGetReverseGeocodingBatch200Response\n | SearchGetReverseGeocodingBatchDefaultResponse,\n): response is\n | SearchGetGeocodingDefaultResponse\n | SearchGetGeocodingBatchDefaultResponse\n | SearchGetPolygonDefaultResponse\n | SearchGetReverseGeocodingDefaultResponse\n | SearchGetReverseGeocodingBatchDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: string[] = [];\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (\n let i = candidateParts.length - 1, j = pathParts.length - 1;\n i >= 1 && j >= 1;\n i--, j--\n ) {\n if (\n candidateParts[i]?.startsWith(\"{\") &&\n candidateParts[i]?.indexOf(\"}\") !== -1\n ) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(\n `${candidateParts[i]?.slice(start, end)}`,\n ).test(pathParts[j] || \"\");\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const logger: import("@azure/logger").AzureLogger;
2
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/generated/logger.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,qCAAoC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/generated/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,aAAa,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"maps-search\");\n"]}
@@ -0,0 +1,15 @@
1
+ import { ClientOptions } from "@azure-rest/core-client";
2
+ import { KeyCredential } from "@azure/core-auth";
3
+ import { MapsSearchClient } from "./clientDefinitions.js";
4
+ /** The optional parameters for the client */
5
+ export interface MapsSearchClientOptions extends ClientOptions {
6
+ /** The api version option of the client */
7
+ apiVersion?: string;
8
+ }
9
+ /**
10
+ * Initialize a new instance of `MapsSearchClient`
11
+ * @param credentials - uniquely identify client credential
12
+ * @param options - the parameter for all optional parameters
13
+ */
14
+ export default function createClient(credentials: KeyCredential, { apiVersion, ...options }?: MapsSearchClientOptions): MapsSearchClient;
15
+ //# sourceMappingURL=mapsSearchClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapsSearchClient.d.ts","sourceRoot":"","sources":["../../../src/generated/mapsSearchClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,6CAA6C;AAC7C,MAAM,WAAW,uBAAwB,SAAQ,aAAa;IAC5D,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,WAAW,EAAE,aAAa,EAC1B,EAAE,UAAyB,EAAE,GAAG,OAAO,EAAE,GAAE,uBAA4B,GACtE,gBAAgB,CA6ClB"}
@@ -0,0 +1,42 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { __rest } from "tslib";
4
+ import { getClient } from "@azure-rest/core-client";
5
+ import { logger } from "./logger.js";
6
+ /**
7
+ * Initialize a new instance of `MapsSearchClient`
8
+ * @param credentials - uniquely identify client credential
9
+ * @param options - the parameter for all optional parameters
10
+ */
11
+ export default function createClient(credentials, _a = {}) {
12
+ var _b, _c, _d, _e, _f, _g;
13
+ var { apiVersion = "2023-06-01" } = _a, options = __rest(_a, ["apiVersion"]);
14
+ const endpointUrl = (_c = (_b = options.endpoint) !== null && _b !== void 0 ? _b : options.baseUrl) !== null && _c !== void 0 ? _c : `https://atlas.microsoft.com`;
15
+ const userAgentInfo = `azsdk-js-maps-search-rest/2.0.0-beta.2`;
16
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
17
+ ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
18
+ : `${userAgentInfo}`;
19
+ options = Object.assign(Object.assign({}, options), { userAgentOptions: {
20
+ userAgentPrefix,
21
+ }, loggingOptions: {
22
+ logger: (_e = (_d = options.loggingOptions) === null || _d === void 0 ? void 0 : _d.logger) !== null && _e !== void 0 ? _e : logger.info,
23
+ }, credentials: {
24
+ apiKeyHeaderName: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.apiKeyHeaderName) !== null && _g !== void 0 ? _g : "subscription-key",
25
+ } });
26
+ const client = getClient(endpointUrl, credentials, options);
27
+ client.pipeline.removePolicy({ name: "ApiVersionPolicy" });
28
+ client.pipeline.addPolicy({
29
+ name: "ClientApiVersionPolicy",
30
+ sendRequest: (req, next) => {
31
+ // Use the apiVersion defined in request url directly
32
+ // Append one if there is no apiVersion and we have one at client options
33
+ const url = new URL(req.url);
34
+ if (!url.searchParams.get("api-version") && apiVersion) {
35
+ req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?"}api-version=${apiVersion}`;
36
+ }
37
+ return next(req);
38
+ },
39
+ });
40
+ return client;
41
+ }
42
+ //# sourceMappingURL=mapsSearchClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapsSearchClient.js","sourceRoot":"","sources":["../../../src/generated/mapsSearchClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,OAAO,EAAE,SAAS,EAAiB,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAUrC;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,WAA0B,EAC1B,KAAqE,EAAE;;QAAvE,EAAE,UAAU,GAAG,YAAY,OAA4C,EAAvC,OAAO,cAAvC,cAAyC,CAAF;IAEvC,MAAM,WAAW,GACf,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,6BAA6B,CAAC;IACvE,MAAM,aAAa,GAAG,wCAAwC,CAAC;IAC/D,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,EACD,cAAc,EAAE;YACd,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,MAAM,CAAC,IAAI;SACtD,EACD,WAAW,EAAE;YACX,gBAAgB,EACd,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,gBAAgB,mCAAI,kBAAkB;SAC9D,GACF,CAAC;IACF,MAAM,MAAM,GAAG,SAAS,CACtB,WAAW,EACX,WAAW,EACX,OAAO,CACY,CAAC;IAEtB,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAC3D,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC;QACxB,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,qDAAqD;YACrD,yEAAyE;YACzE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,UAAU,EAAE,CAAC;gBACvD,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { getClient, ClientOptions } from \"@azure-rest/core-client\";\nimport { logger } from \"./logger.js\";\nimport { KeyCredential } from \"@azure/core-auth\";\nimport { MapsSearchClient } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface MapsSearchClientOptions extends ClientOptions {\n /** The api version option of the client */\n apiVersion?: string;\n}\n\n/**\n * Initialize a new instance of `MapsSearchClient`\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n credentials: KeyCredential,\n { apiVersion = \"2023-06-01\", ...options }: MapsSearchClientOptions = {},\n): MapsSearchClient {\n const endpointUrl =\n options.endpoint ?? options.baseUrl ?? `https://atlas.microsoft.com`;\n const userAgentInfo = `azsdk-js-maps-search-rest/2.0.0-beta.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n loggingOptions: {\n logger: options.loggingOptions?.logger ?? logger.info,\n },\n credentials: {\n apiKeyHeaderName:\n options.credentials?.apiKeyHeaderName ?? \"subscription-key\",\n },\n };\n const client = getClient(\n endpointUrl,\n credentials,\n options,\n ) as MapsSearchClient;\n\n client.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n client.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\") && apiVersion) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n\n return client;\n}\n"]}
@@ -0,0 +1,97 @@
1
+ /** 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. */
2
+ export interface GeocodingBatchRequestBody {
3
+ /** The list of queries to process. */
4
+ batchItems?: Array<GeocodingBatchRequestItem>;
5
+ }
6
+ /** Batch Query object */
7
+ export interface GeocodingBatchRequestItem {
8
+ /** id of the request which would show in corresponding batchItem */
9
+ optionalId?: string;
10
+ /** Maximum number of responses that will be returned. Default: 5, minimum: 1 and maximum: 20. */
11
+ top?: number;
12
+ /** A string that contains information about a location, such as an address or landmark name. */
13
+ query?: string;
14
+ /**
15
+ * 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.
16
+ *
17
+ * **If query is given, should not use this parameter.**
18
+ */
19
+ addressLine?: string;
20
+ /**
21
+ * 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./
22
+ *
23
+ * **If query is given, should not use this parameter.**
24
+ */
25
+ countryRegion?: string;
26
+ /**
27
+ * A rectangular area on the earth defined as a bounding box object. The sides of the rectangles are defined by longitude and latitude values. For more information, see Location and Area Types. When you specify this parameter, the geographical area is taken into account when computing the results of a location query.
28
+ *
29
+ * Example: [lon1, lat1, lon2, lat2]
30
+ */
31
+ bbox?: Array<number>;
32
+ /** A string that specifies 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. */
33
+ view?: string;
34
+ /** 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: [lon, lat] */
35
+ coordinates?: Array<number>;
36
+ /**
37
+ * The country subdivision portion of an address, such as WA.
38
+ *
39
+ * **If query is given, should not use this parameter.**
40
+ */
41
+ adminDistrict?: string;
42
+ /**
43
+ * The county for the structured address, such as King.
44
+ *
45
+ * **If query is given, should not use this parameter.**
46
+ */
47
+ adminDistrict2?: string;
48
+ /**
49
+ * The named area for the structured address.
50
+ *
51
+ * **If query is given, should not use this parameter.**
52
+ */
53
+ adminDistrict3?: string;
54
+ /**
55
+ * The locality portion of an address, such as Seattle.
56
+ *
57
+ * **If query is given, should not use this parameter.**
58
+ */
59
+ locality?: string;
60
+ /**
61
+ * The postal code portion of an address.
62
+ *
63
+ * **If query is given, should not use this parameter.**
64
+ */
65
+ postalCode?: string;
66
+ }
67
+ /** 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. */
68
+ export interface ReverseGeocodingBatchRequestBody {
69
+ /** The list of queries to process. */
70
+ batchItems?: Array<ReverseGeocodingBatchRequestItem>;
71
+ }
72
+ /** Batch Query object */
73
+ export interface ReverseGeocodingBatchRequestItem {
74
+ /** id of the request which would show in corresponding batchItem */
75
+ optionalId?: string;
76
+ /** The coordinates of the location that you want to reverse geocode. Example: [lon,lat] */
77
+ coordinates?: Array<number>;
78
+ /**
79
+ * 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.
80
+ * Default value is all possible entities.
81
+ * A comma separated list of entity types selected from the following options.
82
+ *
83
+ * - Address
84
+ * - Neighborhood
85
+ * - PopulatedPlace
86
+ * - Postcode1
87
+ * - AdminDivision1
88
+ * - AdminDivision2
89
+ * - CountryRegion
90
+ *
91
+ * 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.
92
+ */
93
+ resultTypes?: Array<"Address" | "Neighborhood" | "PopulatedPlace" | "Postcode1" | "AdminDivision1" | "AdminDivision2" | "CountryRegion">;
94
+ /** A string that specifies 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. */
95
+ view?: string;
96
+ }
97
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/generated/models.ts"],"names":[],"mappings":"AAGA,8IAA8I;AAC9I,MAAM,WAAW,yBAAyB;IACxC,sCAAsC;IACtC,UAAU,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;CAC/C;AAED,yBAAyB;AACzB,MAAM,WAAW,yBAAyB;IACxC,oEAAoE;IACpE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iGAAiG;IACjG,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,gGAAgG;IAChG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrB,+NAA+N;IAC/N,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4NAA4N;IAC5N,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,8IAA8I;AAC9I,MAAM,WAAW,gCAAgC;IAC/C,sCAAsC;IACtC,UAAU,CAAC,EAAE,KAAK,CAAC,gCAAgC,CAAC,CAAC;CACtD;AAED,yBAAyB;AACzB,MAAM,WAAW,gCAAgC;IAC/C,oEAAoE;IACpE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2FAA2F;IAC3F,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B;;;;;;;;;;;;;;OAcG;IACH,WAAW,CAAC,EAAE,KAAK,CACf,SAAS,GACT,cAAc,GACd,gBAAgB,GAChB,WAAW,GACX,gBAAgB,GAChB,gBAAgB,GAChB,eAAe,CAClB,CAAC;IACF,+NAA+N;IAC/N,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/generated/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\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. */\nexport interface GeocodingBatchRequestBody {\n /** The list of queries to process. */\n batchItems?: Array<GeocodingBatchRequestItem>;\n}\n\n/** Batch Query object */\nexport interface GeocodingBatchRequestItem {\n /** id of the request which would show in corresponding batchItem */\n optionalId?: string;\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. For more information, see Location and Area Types. 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 /** A string that specifies 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. */\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: [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\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. */\nexport interface ReverseGeocodingBatchRequestBody {\n /** The list of queries to process. */\n batchItems?: Array<ReverseGeocodingBatchRequestItem>;\n}\n\n/** Batch Query object */\nexport interface ReverseGeocodingBatchRequestItem {\n /** id of the request which would show in corresponding batchItem */\n optionalId?: string;\n /** The coordinates of the location that you want to reverse geocode. Example: [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 /** A string that specifies 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. */\n view?: string;\n}\n"]}
@@ -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,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;IACvC;;;;;;;;;;;;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kB,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