@azure-rest/maps-geolocation 1.0.0-alpha.20250331.1 → 1.0.0-alpha.20250401.2
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.
- package/CHANGELOG.md +45 -0
- package/package.json +4 -2
- package/review/maps-geolocation.api.md +112 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Release History
|
|
2
|
+
|
|
3
|
+
## 1.0.0-beta.6 (Unreleased)
|
|
4
|
+
|
|
5
|
+
### Features Added
|
|
6
|
+
|
|
7
|
+
### Breaking Changes
|
|
8
|
+
|
|
9
|
+
### Bugs Fixed
|
|
10
|
+
|
|
11
|
+
### Other Changes
|
|
12
|
+
|
|
13
|
+
## 1.0.0-beta.5 (2025-03-14)
|
|
14
|
+
|
|
15
|
+
### Bugs Fixed
|
|
16
|
+
|
|
17
|
+
- Fix ESM module file not found.
|
|
18
|
+
|
|
19
|
+
## 1.0.0-beta.4 (2024-12-10)
|
|
20
|
+
|
|
21
|
+
### Breaking Changes
|
|
22
|
+
|
|
23
|
+
- Marked fields in various interfaces as readonly, which may impact code that previously modified these properties.
|
|
24
|
+
|
|
25
|
+
### Bugs Fixed
|
|
26
|
+
|
|
27
|
+
- Fix the Microsoft Entra ID authentication when providing `baseUrl`.
|
|
28
|
+
|
|
29
|
+
## 1.0.0-beta.3 (2024-01-09)
|
|
30
|
+
|
|
31
|
+
### Features Added
|
|
32
|
+
|
|
33
|
+
- Support SAS token authentication.
|
|
34
|
+
|
|
35
|
+
## 1.0.0-beta.2 (2023-07-11)
|
|
36
|
+
|
|
37
|
+
### Other Changes
|
|
38
|
+
|
|
39
|
+
- Update README.
|
|
40
|
+
|
|
41
|
+
## 1.0.0-beta.1 (2023-01-10)
|
|
42
|
+
|
|
43
|
+
### Features Added
|
|
44
|
+
|
|
45
|
+
- Initial Release
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@azure-rest/maps-geolocation",
|
|
3
3
|
"sdk-type": "client",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
|
-
"version": "1.0.0-alpha.
|
|
5
|
+
"version": "1.0.0-alpha.20250401.2",
|
|
6
6
|
"description": "A generated SDK for MapsGeolocationClient.",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"node",
|
|
@@ -23,7 +23,9 @@
|
|
|
23
23
|
"files": [
|
|
24
24
|
"dist/",
|
|
25
25
|
"README.md",
|
|
26
|
-
"LICENSE"
|
|
26
|
+
"LICENSE",
|
|
27
|
+
"review/",
|
|
28
|
+
"CHANGELOG.md"
|
|
27
29
|
],
|
|
28
30
|
"engines": {
|
|
29
31
|
"node": ">=18.0.0"
|
|
@@ -0,0 +1,112 @@
|
|
|
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 type { AzureKeyCredential } from '@azure/core-auth';
|
|
8
|
+
import type { AzureSASCredential } from '@azure/core-auth';
|
|
9
|
+
import { Client } from '@azure-rest/core-client';
|
|
10
|
+
import { ClientOptions } from '@azure-rest/core-client';
|
|
11
|
+
import { HttpResponse } from '@azure-rest/core-client';
|
|
12
|
+
import { RequestParameters } from '@azure-rest/core-client';
|
|
13
|
+
import { StreamableMethod } from '@azure-rest/core-client';
|
|
14
|
+
import type { TokenCredential } from '@azure/core-auth';
|
|
15
|
+
|
|
16
|
+
// @public
|
|
17
|
+
export interface CountryRegionOutput {
|
|
18
|
+
readonly isoCode?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// @public
|
|
22
|
+
export interface ErrorAdditionalInfoOutput {
|
|
23
|
+
readonly info?: Record<string, unknown>;
|
|
24
|
+
readonly type?: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// @public
|
|
28
|
+
export interface ErrorDetailOutput {
|
|
29
|
+
readonly additionalInfo?: Array<ErrorAdditionalInfoOutput>;
|
|
30
|
+
readonly code?: string;
|
|
31
|
+
readonly details?: Array<ErrorDetailOutput>;
|
|
32
|
+
readonly message?: string;
|
|
33
|
+
readonly 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
|
+
readonly countryRegion?: CountryRegionOutput;
|
|
79
|
+
readonly 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
|
|
101
|
+
export interface MapsGeolocationClientOptions extends ClientOptions {
|
|
102
|
+
apiVersion?: string;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// @public (undocumented)
|
|
106
|
+
export interface Routes {
|
|
107
|
+
(path: "/geolocation/ip/{format}", format: "json"): GetLocation;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// (No @packageDocumentation comment for this package)
|
|
111
|
+
|
|
112
|
+
```
|