@azure-rest/maps-geolocation 1.0.0-beta.3 → 1.0.0-beta.5

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 (188) hide show
  1. package/LICENSE +4 -4
  2. package/README.md +61 -52
  3. package/dist/browser/MapsGeolocation.d.ts +53 -0
  4. package/dist/browser/MapsGeolocation.d.ts.map +1 -0
  5. package/{dist-esm/src → dist/browser}/MapsGeolocation.js +5 -5
  6. package/dist/browser/MapsGeolocation.js.map +1 -0
  7. package/dist/browser/generated/clientDefinitions.d.ts +18 -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 +9 -0
  12. package/dist/browser/generated/index.d.ts.map +1 -0
  13. package/dist/browser/generated/index.js +11 -0
  14. package/dist/browser/generated/index.js.map +1 -0
  15. package/dist/browser/generated/isUnexpected.d.ts +3 -0
  16. package/dist/browser/generated/isUnexpected.d.ts.map +1 -0
  17. package/dist/browser/generated/isUnexpected.js +71 -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 +5 -0
  22. package/dist/browser/generated/logger.js.map +1 -0
  23. package/dist/browser/generated/mapsGeolocationClient.d.ts +15 -0
  24. package/dist/browser/generated/mapsGeolocationClient.d.ts.map +1 -0
  25. package/dist/browser/generated/mapsGeolocationClient.js +42 -0
  26. package/dist/browser/generated/mapsGeolocationClient.js.map +1 -0
  27. package/dist/browser/generated/outputModels.d.ts +38 -0
  28. package/dist/browser/generated/outputModels.d.ts.map +1 -0
  29. package/dist/browser/generated/outputModels.js +4 -0
  30. package/dist/browser/generated/outputModels.js.map +1 -0
  31. package/dist/browser/generated/parameters.d.ts +10 -0
  32. package/dist/browser/generated/parameters.d.ts.map +1 -0
  33. package/dist/browser/generated/parameters.js +4 -0
  34. package/{dist-esm/src → dist/browser}/generated/parameters.js.map +1 -1
  35. package/dist/browser/generated/responses.d.ts +19 -0
  36. package/dist/browser/generated/responses.d.ts.map +1 -0
  37. package/dist/browser/generated/responses.js +4 -0
  38. package/dist/browser/generated/responses.js.map +1 -0
  39. package/dist/browser/index.d.ts +4 -0
  40. package/dist/browser/index.d.ts.map +1 -0
  41. package/dist/browser/index.js +6 -0
  42. package/dist/browser/index.js.map +1 -0
  43. package/dist/browser/package.json +3 -0
  44. package/dist/commonjs/MapsGeolocation.d.ts +53 -0
  45. package/dist/commonjs/MapsGeolocation.d.ts.map +1 -0
  46. package/dist/commonjs/MapsGeolocation.js +44 -0
  47. package/dist/commonjs/MapsGeolocation.js.map +1 -0
  48. package/dist/commonjs/generated/clientDefinitions.d.ts +18 -0
  49. package/dist/commonjs/generated/clientDefinitions.d.ts.map +1 -0
  50. package/dist/commonjs/generated/clientDefinitions.js +5 -0
  51. package/dist/commonjs/generated/clientDefinitions.js.map +1 -0
  52. package/dist/commonjs/generated/index.d.ts +9 -0
  53. package/dist/commonjs/generated/index.d.ts.map +1 -0
  54. package/dist/commonjs/generated/index.js +14 -0
  55. package/dist/commonjs/generated/index.js.map +1 -0
  56. package/dist/commonjs/generated/isUnexpected.d.ts +3 -0
  57. package/dist/commonjs/generated/isUnexpected.d.ts.map +1 -0
  58. package/dist/commonjs/generated/isUnexpected.js +74 -0
  59. package/dist/commonjs/generated/isUnexpected.js.map +1 -0
  60. package/dist/commonjs/generated/logger.d.ts +2 -0
  61. package/dist/commonjs/generated/logger.d.ts.map +1 -0
  62. package/dist/commonjs/generated/logger.js +8 -0
  63. package/dist/commonjs/generated/logger.js.map +1 -0
  64. package/dist/commonjs/generated/mapsGeolocationClient.d.ts +15 -0
  65. package/dist/commonjs/generated/mapsGeolocationClient.d.ts.map +1 -0
  66. package/dist/commonjs/generated/mapsGeolocationClient.js +45 -0
  67. package/dist/commonjs/generated/mapsGeolocationClient.js.map +1 -0
  68. package/dist/commonjs/generated/outputModels.d.ts +38 -0
  69. package/dist/commonjs/generated/outputModels.d.ts.map +1 -0
  70. package/dist/commonjs/generated/outputModels.js +5 -0
  71. package/dist/commonjs/generated/outputModels.js.map +1 -0
  72. package/dist/commonjs/generated/parameters.d.ts +10 -0
  73. package/dist/commonjs/generated/parameters.d.ts.map +1 -0
  74. package/dist/commonjs/generated/parameters.js +5 -0
  75. package/dist/commonjs/generated/parameters.js.map +1 -0
  76. package/dist/commonjs/generated/responses.d.ts +19 -0
  77. package/dist/commonjs/generated/responses.d.ts.map +1 -0
  78. package/dist/commonjs/generated/responses.js +5 -0
  79. package/dist/commonjs/generated/responses.js.map +1 -0
  80. package/dist/commonjs/index.d.ts +4 -0
  81. package/dist/commonjs/index.d.ts.map +1 -0
  82. package/dist/commonjs/index.js +9 -0
  83. package/dist/commonjs/index.js.map +1 -0
  84. package/dist/commonjs/package.json +3 -0
  85. package/dist/commonjs/tsdoc-metadata.json +11 -0
  86. package/dist/esm/MapsGeolocation.d.ts +53 -0
  87. package/dist/esm/MapsGeolocation.d.ts.map +1 -0
  88. package/dist/esm/MapsGeolocation.js +40 -0
  89. package/dist/esm/MapsGeolocation.js.map +1 -0
  90. package/dist/esm/generated/clientDefinitions.d.ts +18 -0
  91. package/dist/esm/generated/clientDefinitions.d.ts.map +1 -0
  92. package/dist/esm/generated/clientDefinitions.js +4 -0
  93. package/dist/esm/generated/clientDefinitions.js.map +1 -0
  94. package/dist/esm/generated/index.d.ts +9 -0
  95. package/dist/esm/generated/index.d.ts.map +1 -0
  96. package/dist/esm/generated/index.js +11 -0
  97. package/dist/esm/generated/index.js.map +1 -0
  98. package/dist/esm/generated/isUnexpected.d.ts +3 -0
  99. package/dist/esm/generated/isUnexpected.d.ts.map +1 -0
  100. package/dist/esm/generated/isUnexpected.js +71 -0
  101. package/dist/esm/generated/isUnexpected.js.map +1 -0
  102. package/dist/esm/generated/logger.d.ts +2 -0
  103. package/dist/esm/generated/logger.d.ts.map +1 -0
  104. package/dist/esm/generated/logger.js +5 -0
  105. package/dist/esm/generated/logger.js.map +1 -0
  106. package/dist/esm/generated/mapsGeolocationClient.d.ts +15 -0
  107. package/dist/esm/generated/mapsGeolocationClient.d.ts.map +1 -0
  108. package/dist/esm/generated/mapsGeolocationClient.js +42 -0
  109. package/dist/esm/generated/mapsGeolocationClient.js.map +1 -0
  110. package/dist/esm/generated/outputModels.d.ts +38 -0
  111. package/dist/esm/generated/outputModels.d.ts.map +1 -0
  112. package/dist/esm/generated/outputModels.js +4 -0
  113. package/dist/esm/generated/outputModels.js.map +1 -0
  114. package/dist/esm/generated/parameters.d.ts +10 -0
  115. package/dist/esm/generated/parameters.d.ts.map +1 -0
  116. package/dist/esm/generated/parameters.js +4 -0
  117. package/dist/esm/generated/parameters.js.map +1 -0
  118. package/dist/esm/generated/responses.d.ts +19 -0
  119. package/dist/esm/generated/responses.d.ts.map +1 -0
  120. package/dist/esm/generated/responses.js +4 -0
  121. package/dist/esm/generated/responses.js.map +1 -0
  122. package/dist/esm/index.d.ts +4 -0
  123. package/dist/esm/index.d.ts.map +1 -0
  124. package/dist/esm/index.js +6 -0
  125. package/dist/esm/index.js.map +1 -0
  126. package/dist/esm/package.json +3 -0
  127. package/dist/react-native/MapsGeolocation.d.ts +53 -0
  128. package/dist/react-native/MapsGeolocation.d.ts.map +1 -0
  129. package/dist/react-native/MapsGeolocation.js +40 -0
  130. package/dist/react-native/MapsGeolocation.js.map +1 -0
  131. package/dist/react-native/generated/clientDefinitions.d.ts +18 -0
  132. package/dist/react-native/generated/clientDefinitions.d.ts.map +1 -0
  133. package/dist/react-native/generated/clientDefinitions.js +4 -0
  134. package/dist/react-native/generated/clientDefinitions.js.map +1 -0
  135. package/dist/react-native/generated/index.d.ts +9 -0
  136. package/dist/react-native/generated/index.d.ts.map +1 -0
  137. package/dist/react-native/generated/index.js +11 -0
  138. package/dist/react-native/generated/index.js.map +1 -0
  139. package/dist/react-native/generated/isUnexpected.d.ts +3 -0
  140. package/dist/react-native/generated/isUnexpected.d.ts.map +1 -0
  141. package/dist/react-native/generated/isUnexpected.js +71 -0
  142. package/dist/react-native/generated/isUnexpected.js.map +1 -0
  143. package/dist/react-native/generated/logger.d.ts +2 -0
  144. package/dist/react-native/generated/logger.d.ts.map +1 -0
  145. package/dist/react-native/generated/logger.js +5 -0
  146. package/dist/react-native/generated/logger.js.map +1 -0
  147. package/dist/react-native/generated/mapsGeolocationClient.d.ts +15 -0
  148. package/dist/react-native/generated/mapsGeolocationClient.d.ts.map +1 -0
  149. package/dist/react-native/generated/mapsGeolocationClient.js +42 -0
  150. package/dist/react-native/generated/mapsGeolocationClient.js.map +1 -0
  151. package/dist/react-native/generated/outputModels.d.ts +38 -0
  152. package/dist/react-native/generated/outputModels.d.ts.map +1 -0
  153. package/dist/react-native/generated/outputModels.js +4 -0
  154. package/dist/react-native/generated/outputModels.js.map +1 -0
  155. package/dist/react-native/generated/parameters.d.ts +10 -0
  156. package/dist/react-native/generated/parameters.d.ts.map +1 -0
  157. package/dist/react-native/generated/parameters.js +4 -0
  158. package/dist/react-native/generated/parameters.js.map +1 -0
  159. package/dist/react-native/generated/responses.d.ts +19 -0
  160. package/dist/react-native/generated/responses.d.ts.map +1 -0
  161. package/dist/react-native/generated/responses.js +4 -0
  162. package/dist/react-native/generated/responses.js.map +1 -0
  163. package/dist/react-native/index.d.ts +4 -0
  164. package/dist/react-native/index.d.ts.map +1 -0
  165. package/dist/react-native/index.js +6 -0
  166. package/dist/react-native/index.js.map +1 -0
  167. package/dist/react-native/package.json +3 -0
  168. package/package.json +78 -63
  169. package/dist/index.js +0 -148
  170. package/dist/index.js.map +0 -1
  171. package/dist-esm/src/MapsGeolocation.js.map +0 -1
  172. package/dist-esm/src/generated/clientDefinitions.js +0 -4
  173. package/dist-esm/src/generated/clientDefinitions.js.map +0 -1
  174. package/dist-esm/src/generated/index.js +0 -11
  175. package/dist-esm/src/generated/index.js.map +0 -1
  176. package/dist-esm/src/generated/isUnexpected.js +0 -68
  177. package/dist-esm/src/generated/isUnexpected.js.map +0 -1
  178. package/dist-esm/src/generated/mapsGeolocationClient.js +0 -30
  179. package/dist-esm/src/generated/mapsGeolocationClient.js.map +0 -1
  180. package/dist-esm/src/generated/outputModels.js +0 -4
  181. package/dist-esm/src/generated/outputModels.js.map +0 -1
  182. package/dist-esm/src/generated/parameters.js +0 -4
  183. package/dist-esm/src/generated/responses.js +0 -4
  184. package/dist-esm/src/generated/responses.js.map +0 -1
  185. package/dist-esm/src/index.js +0 -6
  186. package/dist-esm/src/index.js.map +0 -1
  187. package/review/maps-geolocation.api.md +0 -107
  188. package/types/maps-geolocation-rest.d.ts +0 -159
@@ -1,107 +0,0 @@
1
- ## API Report File for "@azure-rest/maps-geolocation"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- import { AzureKeyCredential } from '@azure/core-auth';
8
- import { AzureSASCredential } from '@azure/core-auth';
9
- import { Client } from '@azure-rest/core-client';
10
- import { ClientOptions } from '@azure-rest/core-client';
11
- import { HttpResponse } from '@azure-rest/core-client';
12
- import { RequestParameters } from '@azure-rest/core-client';
13
- import { StreamableMethod } from '@azure-rest/core-client';
14
- import { TokenCredential } from '@azure/core-auth';
15
-
16
- // @public
17
- export interface CountryRegionOutput {
18
- isoCode?: string;
19
- }
20
-
21
- // @public
22
- export interface ErrorAdditionalInfoOutput {
23
- info?: Record<string, unknown>;
24
- type?: string;
25
- }
26
-
27
- // @public
28
- export interface ErrorDetailOutput {
29
- additionalInfo?: Array<ErrorAdditionalInfoOutput>;
30
- code?: string;
31
- details?: Array<ErrorDetailOutput>;
32
- message?: string;
33
- target?: string;
34
- }
35
-
36
- // @public
37
- export interface ErrorResponseOutput {
38
- error?: ErrorDetailOutput;
39
- }
40
-
41
- // @public
42
- export interface GeolocationGetLocation200Response extends HttpResponse {
43
- // (undocumented)
44
- body: IpAddressToLocationResultOutput;
45
- // (undocumented)
46
- status: "200";
47
- }
48
-
49
- // @public
50
- export interface GeolocationGetLocationDefaultResponse extends HttpResponse {
51
- // (undocumented)
52
- body: ErrorResponseOutput;
53
- // (undocumented)
54
- status: string;
55
- }
56
-
57
- // @public (undocumented)
58
- export type GeolocationGetLocationParameters = GeolocationGetLocationQueryParam & RequestParameters;
59
-
60
- // @public (undocumented)
61
- export interface GeolocationGetLocationQueryParam {
62
- // (undocumented)
63
- queryParameters: GeolocationGetLocationQueryParamProperties;
64
- }
65
-
66
- // @public (undocumented)
67
- export interface GeolocationGetLocationQueryParamProperties {
68
- ip: string;
69
- }
70
-
71
- // @public (undocumented)
72
- export interface GetLocation {
73
- get(options: GeolocationGetLocationParameters): StreamableMethod<GeolocationGetLocation200Response | GeolocationGetLocationDefaultResponse>;
74
- }
75
-
76
- // @public
77
- export interface IpAddressToLocationResultOutput {
78
- countryRegion?: CountryRegionOutput;
79
- ipAddress?: string;
80
- }
81
-
82
- // @public (undocumented)
83
- export function isUnexpected(response: GeolocationGetLocation200Response | GeolocationGetLocationDefaultResponse): response is GeolocationGetLocationDefaultResponse;
84
-
85
- // @public
86
- function MapsGeolocation(credential: AzureKeyCredential, options?: ClientOptions): MapsGeolocationClient;
87
-
88
- // @public
89
- function MapsGeolocation(credential: TokenCredential, mapsAccountClientId: string, options?: ClientOptions): MapsGeolocationClient;
90
-
91
- // @public
92
- function MapsGeolocation(credential: AzureSASCredential, options?: ClientOptions): MapsGeolocationClient;
93
- export default MapsGeolocation;
94
-
95
- // @public (undocumented)
96
- export type MapsGeolocationClient = Client & {
97
- path: Routes;
98
- };
99
-
100
- // @public (undocumented)
101
- export interface Routes {
102
- (path: "/geolocation/ip/{format}", format: "json"): GetLocation;
103
- }
104
-
105
- // (No @packageDocumentation comment for this package)
106
-
107
- ```
@@ -1,159 +0,0 @@
1
- import { AzureKeyCredential } from '@azure/core-auth';
2
- import { AzureSASCredential } from '@azure/core-auth';
3
- import { Client } from '@azure-rest/core-client';
4
- import { ClientOptions } from '@azure-rest/core-client';
5
- import { HttpResponse } from '@azure-rest/core-client';
6
- import { RequestParameters } from '@azure-rest/core-client';
7
- import { StreamableMethod } from '@azure-rest/core-client';
8
- import { TokenCredential } from '@azure/core-auth';
9
-
10
- /** The object containing the country/region information. */
11
- export declare interface CountryRegionOutput {
12
- /** The IP Address's 2-character code [(ISO 3166-1)](https://www.iso.org/iso-3166-country-codes.html) of the country or region. Please note, IP address in ranges reserved for special purpose will return Null for country/region. */
13
- isoCode?: string;
14
- }
15
-
16
- /** The resource management error additional info. */
17
- export declare interface ErrorAdditionalInfoOutput {
18
- /** The additional info type. */
19
- type?: string;
20
- /** The additional info. */
21
- info?: Record<string, unknown>;
22
- }
23
-
24
- /** The error detail. */
25
- export declare interface ErrorDetailOutput {
26
- /** The error code. */
27
- code?: string;
28
- /** The error message. */
29
- message?: string;
30
- /** The error target. */
31
- target?: string;
32
- /** The error details. */
33
- details?: Array<ErrorDetailOutput>;
34
- /** The error additional info. */
35
- additionalInfo?: Array<ErrorAdditionalInfoOutput>;
36
- }
37
-
38
- /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
39
- export declare interface ErrorResponseOutput {
40
- /** The error object. */
41
- error?: ErrorDetailOutput;
42
- }
43
-
44
- /**
45
- * **Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
46
- *
47
- *
48
- * This service will return the ISO country code for the provided IP address. Developers can use this information to block or alter certain content based on geographical locations where the application is being viewed from.
49
- */
50
- export declare interface GeolocationGetLocation200Response extends HttpResponse {
51
- status: "200";
52
- body: IpAddressToLocationResultOutput;
53
- }
54
-
55
- /**
56
- * **Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
57
- *
58
- *
59
- * This service will return the ISO country code for the provided IP address. Developers can use this information to block or alter certain content based on geographical locations where the application is being viewed from.
60
- */
61
- export declare interface GeolocationGetLocationDefaultResponse extends HttpResponse {
62
- status: string;
63
- body: ErrorResponseOutput;
64
- }
65
-
66
- export declare type GeolocationGetLocationParameters = GeolocationGetLocationQueryParam & RequestParameters;
67
-
68
- export declare interface GeolocationGetLocationQueryParam {
69
- queryParameters: GeolocationGetLocationQueryParamProperties;
70
- }
71
-
72
- export declare interface GeolocationGetLocationQueryParamProperties {
73
- /** The IP address. Both IPv4 and IPv6 are allowed. */
74
- ip: string;
75
- }
76
-
77
- export declare interface GetLocation {
78
- /**
79
- * **Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
80
- *
81
- *
82
- * This service will return the ISO country code for the provided IP address. Developers can use this information to block or alter certain content based on geographical locations where the application is being viewed from.
83
- */
84
- get(options: GeolocationGetLocationParameters): StreamableMethod<GeolocationGetLocation200Response | GeolocationGetLocationDefaultResponse>;
85
- }
86
-
87
- /** This object is returned from a successful call to IP Address to country/region API */
88
- export declare interface IpAddressToLocationResultOutput {
89
- /** The object containing the country/region information. */
90
- countryRegion?: CountryRegionOutput;
91
- /** The IP Address of the request. */
92
- ipAddress?: string;
93
- }
94
-
95
- export declare function isUnexpected(response: GeolocationGetLocation200Response | GeolocationGetLocationDefaultResponse): response is GeolocationGetLocationDefaultResponse;
96
-
97
- /**
98
- * Creates an instance of MapsGeolocationClient from a subscription key.
99
- *
100
- * @example
101
- * ```ts
102
- * import MapsGeolocation from "@azure-rest/maps-geolocation";
103
- * import { AzureKeyCredential } from "@azure/core-auth";
104
- *
105
- * const credential = new AzureKeyCredential("<subscription-key>");
106
- * const client = MapsGeolocation(credential);
107
- *```
108
- *
109
- * @param credential - An AzureKeyCredential instance used to authenticate requests to the service
110
- * @param options - Options used to configure the Geolocation Client
111
- */
112
- declare function MapsGeolocation(credential: AzureKeyCredential, options?: ClientOptions): MapsGeolocationClient;
113
-
114
- /**
115
- * Creates an instance of MapsGeolocation from an Azure Identity `TokenCredential`.
116
- *
117
- * @example
118
- * ```ts
119
- * import MapsGeolocation from "@azure-rest/maps-geo-location";
120
- * import { DefaultAzureCredential } from "@azure/identity";
121
- *
122
- * const credential = new DefaultAzureCredential();
123
- * const client = MapsGeolocation(credential, "<maps-account-client-id>");
124
- *```
125
- *
126
- * @param credential - An TokenCredential instance used to authenticate requests to the service
127
- * @param mapsAccountClientId - The Azure Maps client id of a specific map resource
128
- * @param options - Options used to configure the Route Client
129
- */
130
- declare function MapsGeolocation(credential: TokenCredential, mapsAccountClientId: string, options?: ClientOptions): MapsGeolocationClient;
131
-
132
- /**
133
- * Creates an instance of MapsGeolocation from an Azure Identity `AzureSASCredential`.
134
- *
135
- * @example
136
- * ```ts
137
- * import MapsGeolocation from "@azure-rest/maps-geo-location";
138
- * import { AzureSASCredential } from "@azure/core-auth";
139
- *
140
- * const credential = new AzureSASCredential("<SAS Token>");
141
- * const client = MapsGeolocation(credential);
142
- * ```
143
- *
144
- * @param credential - An AzureSASCredential instance used to authenticate requests to the service
145
- * @param options - Options used to configure the Geolocation Client
146
- */
147
- declare function MapsGeolocation(credential: AzureSASCredential, options?: ClientOptions): MapsGeolocationClient;
148
- export default MapsGeolocation;
149
-
150
- export declare type MapsGeolocationClient = Client & {
151
- path: Routes;
152
- };
153
-
154
- export declare interface Routes {
155
- /** Resource for '/geolocation/ip/\{format\}' has methods for the following verbs: get */
156
- (path: "/geolocation/ip/{format}", format: "json"): GetLocation;
157
- }
158
-
159
- export { }