@azure-rest/maps-geolocation 1.0.0-alpha.20250618.1 → 1.0.0-alpha.20250717.1
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/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.20250717.1",
|
|
6
6
|
"description": "A generated SDK for MapsGeolocationClient.",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"node",
|
|
@@ -1,112 +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
|
-
```
|
|
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
|
+
```
|