@azure-rest/maps-timezone 1.0.0-beta.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/LICENSE +21 -0
- package/README.md +247 -0
- package/dist/browser/MapsTimeZone.d.ts +52 -0
- package/dist/browser/MapsTimeZone.d.ts.map +1 -0
- package/dist/browser/MapsTimeZone.js +40 -0
- package/dist/browser/MapsTimeZone.js.map +1 -0
- package/dist/browser/generated/clientDefinitions.d.ts +63 -0
- package/dist/browser/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/browser/generated/clientDefinitions.js +4 -0
- package/dist/browser/generated/clientDefinitions.js.map +1 -0
- package/dist/browser/generated/index.d.ts +9 -0
- package/dist/browser/generated/index.d.ts.map +1 -0
- package/dist/browser/generated/index.js +11 -0
- package/dist/browser/generated/index.js.map +1 -0
- package/dist/browser/generated/isUnexpected.d.ts +8 -0
- package/dist/browser/generated/isUnexpected.d.ts.map +1 -0
- package/dist/browser/generated/isUnexpected.js +76 -0
- package/dist/browser/generated/isUnexpected.js.map +1 -0
- package/dist/browser/generated/logger.d.ts +2 -0
- package/dist/browser/generated/logger.d.ts.map +1 -0
- package/dist/browser/generated/logger.js +5 -0
- package/dist/browser/generated/logger.js.map +1 -0
- package/dist/browser/generated/mapsTimeZoneClient.d.ts +15 -0
- package/dist/browser/generated/mapsTimeZoneClient.d.ts.map +1 -0
- package/dist/browser/generated/mapsTimeZoneClient.js +42 -0
- package/dist/browser/generated/mapsTimeZoneClient.js.map +1 -0
- package/dist/browser/generated/outputModels.d.ts +134 -0
- package/dist/browser/generated/outputModels.d.ts.map +1 -0
- package/dist/browser/generated/outputModels.js +4 -0
- package/dist/browser/generated/outputModels.js.map +1 -0
- package/dist/browser/generated/parameters.d.ts +62 -0
- package/dist/browser/generated/parameters.d.ts.map +1 -0
- package/dist/browser/generated/parameters.js +4 -0
- package/dist/browser/generated/parameters.js.map +1 -0
- package/dist/browser/generated/responses.d.ts +99 -0
- package/dist/browser/generated/responses.d.ts.map +1 -0
- package/dist/browser/generated/responses.js +4 -0
- package/dist/browser/generated/responses.js.map +1 -0
- package/dist/browser/index.d.ts +4 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +6 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/commonjs/MapsTimeZone.d.ts +52 -0
- package/dist/commonjs/MapsTimeZone.d.ts.map +1 -0
- package/dist/commonjs/MapsTimeZone.js +44 -0
- package/dist/commonjs/MapsTimeZone.js.map +1 -0
- package/dist/commonjs/generated/clientDefinitions.d.ts +63 -0
- package/dist/commonjs/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/commonjs/generated/clientDefinitions.js +5 -0
- package/dist/commonjs/generated/clientDefinitions.js.map +1 -0
- package/dist/commonjs/generated/index.d.ts +9 -0
- package/dist/commonjs/generated/index.d.ts.map +1 -0
- package/dist/commonjs/generated/index.js +14 -0
- package/dist/commonjs/generated/index.js.map +1 -0
- package/dist/commonjs/generated/isUnexpected.d.ts +8 -0
- package/dist/commonjs/generated/isUnexpected.d.ts.map +1 -0
- package/dist/commonjs/generated/isUnexpected.js +79 -0
- package/dist/commonjs/generated/isUnexpected.js.map +1 -0
- package/dist/commonjs/generated/logger.d.ts +2 -0
- package/dist/commonjs/generated/logger.d.ts.map +1 -0
- package/dist/commonjs/generated/logger.js +8 -0
- package/dist/commonjs/generated/logger.js.map +1 -0
- package/dist/commonjs/generated/mapsTimeZoneClient.d.ts +15 -0
- package/dist/commonjs/generated/mapsTimeZoneClient.d.ts.map +1 -0
- package/dist/commonjs/generated/mapsTimeZoneClient.js +45 -0
- package/dist/commonjs/generated/mapsTimeZoneClient.js.map +1 -0
- package/dist/commonjs/generated/outputModels.d.ts +134 -0
- package/dist/commonjs/generated/outputModels.d.ts.map +1 -0
- package/dist/commonjs/generated/outputModels.js +5 -0
- package/dist/commonjs/generated/outputModels.js.map +1 -0
- package/dist/commonjs/generated/parameters.d.ts +62 -0
- package/dist/commonjs/generated/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/parameters.js +5 -0
- package/dist/commonjs/generated/parameters.js.map +1 -0
- package/dist/commonjs/generated/responses.d.ts +99 -0
- package/dist/commonjs/generated/responses.d.ts.map +1 -0
- package/dist/commonjs/generated/responses.js +5 -0
- package/dist/commonjs/generated/responses.js.map +1 -0
- package/dist/commonjs/index.d.ts +4 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +9 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/MapsTimeZone.d.ts +52 -0
- package/dist/esm/MapsTimeZone.d.ts.map +1 -0
- package/dist/esm/MapsTimeZone.js +40 -0
- package/dist/esm/MapsTimeZone.js.map +1 -0
- package/dist/esm/generated/clientDefinitions.d.ts +63 -0
- package/dist/esm/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/esm/generated/clientDefinitions.js +4 -0
- package/dist/esm/generated/clientDefinitions.js.map +1 -0
- package/dist/esm/generated/index.d.ts +9 -0
- package/dist/esm/generated/index.d.ts.map +1 -0
- package/dist/esm/generated/index.js +11 -0
- package/dist/esm/generated/index.js.map +1 -0
- package/dist/esm/generated/isUnexpected.d.ts +8 -0
- package/dist/esm/generated/isUnexpected.d.ts.map +1 -0
- package/dist/esm/generated/isUnexpected.js +76 -0
- package/dist/esm/generated/isUnexpected.js.map +1 -0
- package/dist/esm/generated/logger.d.ts +2 -0
- package/dist/esm/generated/logger.d.ts.map +1 -0
- package/dist/esm/generated/logger.js +5 -0
- package/dist/esm/generated/logger.js.map +1 -0
- package/dist/esm/generated/mapsTimeZoneClient.d.ts +15 -0
- package/dist/esm/generated/mapsTimeZoneClient.d.ts.map +1 -0
- package/dist/esm/generated/mapsTimeZoneClient.js +42 -0
- package/dist/esm/generated/mapsTimeZoneClient.js.map +1 -0
- package/dist/esm/generated/outputModels.d.ts +134 -0
- package/dist/esm/generated/outputModels.d.ts.map +1 -0
- package/dist/esm/generated/outputModels.js +4 -0
- package/dist/esm/generated/outputModels.js.map +1 -0
- package/dist/esm/generated/parameters.d.ts +62 -0
- package/dist/esm/generated/parameters.d.ts.map +1 -0
- package/dist/esm/generated/parameters.js +4 -0
- package/dist/esm/generated/parameters.js.map +1 -0
- package/dist/esm/generated/responses.d.ts +99 -0
- package/dist/esm/generated/responses.d.ts.map +1 -0
- package/dist/esm/generated/responses.js +4 -0
- package/dist/esm/generated/responses.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/react-native/MapsTimeZone.d.ts +52 -0
- package/dist/react-native/MapsTimeZone.d.ts.map +1 -0
- package/dist/react-native/MapsTimeZone.js +40 -0
- package/dist/react-native/MapsTimeZone.js.map +1 -0
- package/dist/react-native/generated/clientDefinitions.d.ts +63 -0
- package/dist/react-native/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/react-native/generated/clientDefinitions.js +4 -0
- package/dist/react-native/generated/clientDefinitions.js.map +1 -0
- package/dist/react-native/generated/index.d.ts +9 -0
- package/dist/react-native/generated/index.d.ts.map +1 -0
- package/dist/react-native/generated/index.js +11 -0
- package/dist/react-native/generated/index.js.map +1 -0
- package/dist/react-native/generated/isUnexpected.d.ts +8 -0
- package/dist/react-native/generated/isUnexpected.d.ts.map +1 -0
- package/dist/react-native/generated/isUnexpected.js +76 -0
- package/dist/react-native/generated/isUnexpected.js.map +1 -0
- package/dist/react-native/generated/logger.d.ts +2 -0
- package/dist/react-native/generated/logger.d.ts.map +1 -0
- package/dist/react-native/generated/logger.js +5 -0
- package/dist/react-native/generated/logger.js.map +1 -0
- package/dist/react-native/generated/mapsTimeZoneClient.d.ts +15 -0
- package/dist/react-native/generated/mapsTimeZoneClient.d.ts.map +1 -0
- package/dist/react-native/generated/mapsTimeZoneClient.js +42 -0
- package/dist/react-native/generated/mapsTimeZoneClient.js.map +1 -0
- package/dist/react-native/generated/outputModels.d.ts +134 -0
- package/dist/react-native/generated/outputModels.d.ts.map +1 -0
- package/dist/react-native/generated/outputModels.js +4 -0
- package/dist/react-native/generated/outputModels.js.map +1 -0
- package/dist/react-native/generated/parameters.d.ts +62 -0
- package/dist/react-native/generated/parameters.d.ts.map +1 -0
- package/dist/react-native/generated/parameters.js +4 -0
- package/dist/react-native/generated/parameters.js.map +1 -0
- package/dist/react-native/generated/responses.d.ts +99 -0
- package/dist/react-native/generated/responses.d.ts.map +1 -0
- package/dist/react-native/generated/responses.js +4 -0
- package/dist/react-native/generated/responses.js.map +1 -0
- package/dist/react-native/index.d.ts +4 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +6 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/package.json +133 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ClientOptions } from "@azure-rest/core-client";
|
|
2
|
+
import { KeyCredential } from "@azure/core-auth";
|
|
3
|
+
import { MapsTimeZoneClient } from "./clientDefinitions.js";
|
|
4
|
+
/** The optional parameters for the client */
|
|
5
|
+
export interface MapsTimeZoneClientOptions extends ClientOptions {
|
|
6
|
+
/** The api version option of the client */
|
|
7
|
+
apiVersion?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of `MapsTimeZoneClient`
|
|
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 }?: MapsTimeZoneClientOptions): MapsTimeZoneClient;
|
|
15
|
+
//# sourceMappingURL=mapsTimeZoneClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapsTimeZoneClient.d.ts","sourceRoot":"","sources":["../../../src/generated/mapsTimeZoneClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,6CAA6C;AAC7C,MAAM,WAAW,yBAA0B,SAAQ,aAAa;IAC9D,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,WAAW,EAAE,aAAa,EAC1B,EAAE,UAAkB,EAAE,GAAG,OAAO,EAAE,GAAE,yBAA8B,GACjE,kBAAkB,CA6CpB"}
|
|
@@ -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 `MapsTimeZoneClient`
|
|
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 = "1.0" } = _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-timezone-rest/1.0.0-beta.1`;
|
|
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=mapsTimeZoneClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapsTimeZoneClient.js","sourceRoot":"","sources":["../../../src/generated/mapsTimeZoneClient.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,KAAgE,EAAE;;QAAlE,EAAE,UAAU,GAAG,KAAK,OAA8C,EAAzC,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Y,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 { MapsTimeZoneClient } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface MapsTimeZoneClientOptions extends ClientOptions {\n /** The api version option of the client */\n apiVersion?: string;\n}\n\n/**\n * Initialize a new instance of `MapsTimeZoneClient`\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 = \"1.0\", ...options }: MapsTimeZoneClientOptions = {},\n): MapsTimeZoneClient {\n const endpointUrl =\n options.endpoint ?? options.baseUrl ?? `https://atlas.microsoft.com`;\n const userAgentInfo = `azsdk-js-maps-timezone-rest/1.0.0-beta.1`;\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 MapsTimeZoneClient;\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,134 @@
|
|
|
1
|
+
/** This object is returned from a successful Timezone By ID call or By Coordinates call */
|
|
2
|
+
export interface TimeZoneResultOutput {
|
|
3
|
+
/** Version property */
|
|
4
|
+
readonly Version?: string;
|
|
5
|
+
/** Reference Utc Timestamp property */
|
|
6
|
+
readonly ReferenceUtcTimestamp?: string;
|
|
7
|
+
/** TimeZoneId array */
|
|
8
|
+
readonly TimeZones?: Array<TimeZoneIdOutput>;
|
|
9
|
+
}
|
|
10
|
+
export interface TimeZoneIdOutput {
|
|
11
|
+
/** Id property */
|
|
12
|
+
readonly Id?: string;
|
|
13
|
+
/**
|
|
14
|
+
* An array of time zone ID aliases. Only returned when [options]=*zoneinfo* or *all*.
|
|
15
|
+
*
|
|
16
|
+
* Note: may be null.
|
|
17
|
+
*/
|
|
18
|
+
readonly Aliases?: Array<string>;
|
|
19
|
+
/** An array of country/region records. Only returned when [options]=*zoneinfo* or *all*. */
|
|
20
|
+
readonly Countries?: Array<CountryRecordOutput>;
|
|
21
|
+
/** Timezone names object. */
|
|
22
|
+
Names?: TimeZoneNamesOutput;
|
|
23
|
+
/** Details in effect at the local time. */
|
|
24
|
+
readonly ReferenceTime?: ReferenceTimeOutput;
|
|
25
|
+
/** Representative point property */
|
|
26
|
+
readonly RepresentativePoint?: RepresentativePointOutput;
|
|
27
|
+
/** Time zone DST transitions from [transitionsFrom] until timestamp + 1 year. */
|
|
28
|
+
readonly TimeTransitions?: Array<TimeTransitionOutput>;
|
|
29
|
+
}
|
|
30
|
+
/** A country/region record. */
|
|
31
|
+
export interface CountryRecordOutput {
|
|
32
|
+
/** country/region Name */
|
|
33
|
+
readonly Name?: string;
|
|
34
|
+
/** ISO-3166 2-letter country/region code for the country/region. */
|
|
35
|
+
readonly Code?: string;
|
|
36
|
+
}
|
|
37
|
+
/** Timezone names object. */
|
|
38
|
+
export interface TimeZoneNamesOutput {
|
|
39
|
+
/** The ISO 639-1 language code of the Names */
|
|
40
|
+
readonly ISO6391LanguageCode?: string;
|
|
41
|
+
/** Generic Name */
|
|
42
|
+
readonly Generic?: string;
|
|
43
|
+
/** Standard Name */
|
|
44
|
+
readonly Standard?: string;
|
|
45
|
+
/** Daylight Name */
|
|
46
|
+
readonly Daylight?: string;
|
|
47
|
+
}
|
|
48
|
+
/** Details in effect at the local time. */
|
|
49
|
+
export interface ReferenceTimeOutput {
|
|
50
|
+
/** Time zone name in effect at the reference timestamp (i.e. PST or PDT depending whether Daylight Savings Time is in effect). */
|
|
51
|
+
readonly Tag?: string;
|
|
52
|
+
/** UTC offset in effect at the `ReferenceUTCTimestamp`. */
|
|
53
|
+
readonly StandardOffset?: string;
|
|
54
|
+
/** Time saving in minutes in effect at the `ReferenceUTCTimestamp`. */
|
|
55
|
+
readonly DaylightSavings?: string;
|
|
56
|
+
/** Current wall time at the given time zone as shown in the `Tag` property. */
|
|
57
|
+
readonly WallTime?: string;
|
|
58
|
+
/** The year this POSIX string is valid for. Note: A POSIX string will only be valid in the given year. */
|
|
59
|
+
readonly PosixTzValidYear?: number;
|
|
60
|
+
/** POSIX string used to set the time zone environment variable. */
|
|
61
|
+
readonly PosixTz?: string;
|
|
62
|
+
/** Sunrise at the given time zone as shown in the `Tag` property, populated only when the call is `byCoordinates`. The sunrise is described in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Note that the Timezone API does not return sunrise and sunset times when solar day is observed in the requested region. */
|
|
63
|
+
readonly Sunrise?: string;
|
|
64
|
+
/** Sunset at the given time zone as shown in the `Tag` property, populated only when the call is `byCoordinates`. The sunset is described in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Note that the Timezone API does not return sunrise and sunset times when solar day is observed in the requested region. */
|
|
65
|
+
readonly Sunset?: string;
|
|
66
|
+
}
|
|
67
|
+
/** Representative point property */
|
|
68
|
+
export interface RepresentativePointOutput {
|
|
69
|
+
/** Latitude property */
|
|
70
|
+
readonly Latitude?: number;
|
|
71
|
+
/** Longitude property */
|
|
72
|
+
readonly Longitude?: number;
|
|
73
|
+
}
|
|
74
|
+
export interface TimeTransitionOutput {
|
|
75
|
+
/** Tag property */
|
|
76
|
+
readonly Tag?: string;
|
|
77
|
+
/** StandardOffset property */
|
|
78
|
+
readonly StandardOffset?: string;
|
|
79
|
+
/** DaylightSavings property */
|
|
80
|
+
readonly DaylightSavings?: string;
|
|
81
|
+
/** Start date, start time for this transition period */
|
|
82
|
+
readonly UtcStart?: string;
|
|
83
|
+
/** End date, end time for this transition period */
|
|
84
|
+
readonly UtcEnd?: string;
|
|
85
|
+
}
|
|
86
|
+
/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
|
|
87
|
+
export interface ErrorResponseOutput {
|
|
88
|
+
/** The error object. */
|
|
89
|
+
error?: ErrorDetailOutput;
|
|
90
|
+
}
|
|
91
|
+
/** The error detail. */
|
|
92
|
+
export interface ErrorDetailOutput {
|
|
93
|
+
/** The error code. */
|
|
94
|
+
readonly code?: string;
|
|
95
|
+
/** The error message. */
|
|
96
|
+
readonly message?: string;
|
|
97
|
+
/** The error target. */
|
|
98
|
+
readonly target?: string;
|
|
99
|
+
/** The error details. */
|
|
100
|
+
readonly details?: Array<ErrorDetailOutput>;
|
|
101
|
+
/** The error additional info. */
|
|
102
|
+
readonly additionalInfo?: Array<ErrorAdditionalInfoOutput>;
|
|
103
|
+
}
|
|
104
|
+
/** The resource management error additional info. */
|
|
105
|
+
export interface ErrorAdditionalInfoOutput {
|
|
106
|
+
/** The additional info type. */
|
|
107
|
+
readonly type?: string;
|
|
108
|
+
/** The additional info. */
|
|
109
|
+
readonly info?: Record<string, unknown>;
|
|
110
|
+
}
|
|
111
|
+
export interface WindowsTimeZoneOutput {
|
|
112
|
+
/** Windows Id property */
|
|
113
|
+
readonly WindowsId?: string;
|
|
114
|
+
/** Territory property */
|
|
115
|
+
readonly Territory?: string;
|
|
116
|
+
/** IanaIds array */
|
|
117
|
+
IanaIds?: Array<string>;
|
|
118
|
+
}
|
|
119
|
+
export interface IanaIdOutput {
|
|
120
|
+
/** Id property */
|
|
121
|
+
readonly Id?: string;
|
|
122
|
+
/** IsAlias property */
|
|
123
|
+
readonly IsAlias?: boolean;
|
|
124
|
+
/** AliasOf property */
|
|
125
|
+
readonly AliasOf?: string;
|
|
126
|
+
/** This attribute returns `True` if the IanaId has any country/zone associated with it. */
|
|
127
|
+
readonly HasZone1970Location?: boolean;
|
|
128
|
+
}
|
|
129
|
+
/** This object is returned from a successful Timezone IANA Version call */
|
|
130
|
+
export interface TimeZoneIanaVersionResultOutput {
|
|
131
|
+
/** Version property */
|
|
132
|
+
readonly Version?: string;
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=outputModels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outputModels.d.ts","sourceRoot":"","sources":["../../../src/generated/outputModels.ts"],"names":[],"mappings":"AAGA,2FAA2F;AAC3F,MAAM,WAAW,oBAAoB;IACnC,uBAAuB;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,uCAAuC;IACvC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IACxC,uBAAuB;IACvB,QAAQ,CAAC,SAAS,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;CAC9C;AAED,MAAM,WAAW,gBAAgB;IAC/B,kBAAkB;IAClB,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC,4FAA4F;IAC5F,QAAQ,CAAC,SAAS,CAAC,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,gCAAgC;IAChC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,2BAA2B;IAC3B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,qBAAqB;IACpC,0BAA0B;IAC1B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,yBAAyB;IACzB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB;IACpB,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB;AAED,MAAM,WAAW,YAAY;IAC3B,kBAAkB;IAClB,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,uBAAuB;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,uBAAuB;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,2FAA2F;IAC3F,QAAQ,CAAC,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACxC;AAED,2EAA2E;AAC3E,MAAM,WAAW,+BAA+B;IAC9C,uBAAuB;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outputModels.js","sourceRoot":"","sources":["../../../src/generated/outputModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** This object is returned from a successful Timezone By ID call or By Coordinates call */\nexport interface TimeZoneResultOutput {\n /** Version property */\n readonly Version?: string;\n /** Reference Utc Timestamp property */\n readonly ReferenceUtcTimestamp?: string;\n /** TimeZoneId array */\n readonly TimeZones?: Array<TimeZoneIdOutput>;\n}\n\nexport interface TimeZoneIdOutput {\n /** Id property */\n readonly Id?: string;\n /**\n * An array of time zone ID aliases. Only returned when [options]=*zoneinfo* or *all*.\n *\n * Note: may be null.\n */\n readonly Aliases?: Array<string>;\n /** An array of country/region records. Only returned when [options]=*zoneinfo* or *all*. */\n readonly Countries?: Array<CountryRecordOutput>;\n /** Timezone names object. */\n Names?: TimeZoneNamesOutput;\n /** Details in effect at the local time. */\n readonly ReferenceTime?: ReferenceTimeOutput;\n /** Representative point property */\n readonly RepresentativePoint?: RepresentativePointOutput;\n /** Time zone DST transitions from [transitionsFrom] until timestamp + 1 year. */\n readonly TimeTransitions?: Array<TimeTransitionOutput>;\n}\n\n/** A country/region record. */\nexport interface CountryRecordOutput {\n /** country/region Name */\n readonly Name?: string;\n /** ISO-3166 2-letter country/region code for the country/region. */\n readonly Code?: string;\n}\n\n/** Timezone names object. */\nexport interface TimeZoneNamesOutput {\n /** The ISO 639-1 language code of the Names */\n readonly ISO6391LanguageCode?: string;\n /** Generic Name */\n readonly Generic?: string;\n /** Standard Name */\n readonly Standard?: string;\n /** Daylight Name */\n readonly Daylight?: string;\n}\n\n/** Details in effect at the local time. */\nexport interface ReferenceTimeOutput {\n /** Time zone name in effect at the reference timestamp (i.e. PST or PDT depending whether Daylight Savings Time is in effect). */\n readonly Tag?: string;\n /** UTC offset in effect at the `ReferenceUTCTimestamp`. */\n readonly StandardOffset?: string;\n /** Time saving in minutes in effect at the `ReferenceUTCTimestamp`. */\n readonly DaylightSavings?: string;\n /** Current wall time at the given time zone as shown in the `Tag` property. */\n readonly WallTime?: string;\n /** The year this POSIX string is valid for. Note: A POSIX string will only be valid in the given year. */\n readonly PosixTzValidYear?: number;\n /** POSIX string used to set the time zone environment variable. */\n readonly PosixTz?: string;\n /** Sunrise at the given time zone as shown in the `Tag` property, populated only when the call is `byCoordinates`. The sunrise is described in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Note that the Timezone API does not return sunrise and sunset times when solar day is observed in the requested region. */\n readonly Sunrise?: string;\n /** Sunset at the given time zone as shown in the `Tag` property, populated only when the call is `byCoordinates`. The sunset is described in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Note that the Timezone API does not return sunrise and sunset times when solar day is observed in the requested region. */\n readonly Sunset?: string;\n}\n\n/** Representative point property */\nexport interface RepresentativePointOutput {\n /** Latitude property */\n readonly Latitude?: number;\n /** Longitude property */\n readonly Longitude?: number;\n}\n\nexport interface TimeTransitionOutput {\n /** Tag property */\n readonly Tag?: string;\n /** StandardOffset property */\n readonly StandardOffset?: string;\n /** DaylightSavings property */\n readonly DaylightSavings?: string;\n /** Start date, start time for this transition period */\n readonly UtcStart?: string;\n /** End date, end time for this transition period */\n readonly UtcEnd?: string;\n}\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */\nexport interface ErrorResponseOutput {\n /** The error object. */\n error?: ErrorDetailOutput;\n}\n\n/** The error detail. */\nexport interface ErrorDetailOutput {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: Array<ErrorDetailOutput>;\n /** The error additional info. */\n readonly additionalInfo?: Array<ErrorAdditionalInfoOutput>;\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfoOutput {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: Record<string, unknown>;\n}\n\nexport interface WindowsTimeZoneOutput {\n /** Windows Id property */\n readonly WindowsId?: string;\n /** Territory property */\n readonly Territory?: string;\n /** IanaIds array */\n IanaIds?: Array<string>;\n}\n\nexport interface IanaIdOutput {\n /** Id property */\n readonly Id?: string;\n /** IsAlias property */\n readonly IsAlias?: boolean;\n /** AliasOf property */\n readonly AliasOf?: string;\n /** This attribute returns `True` if the IanaId has any country/zone associated with it. */\n readonly HasZone1970Location?: boolean;\n}\n\n/** This object is returned from a successful Timezone IANA Version call */\nexport interface TimeZoneIanaVersionResultOutput {\n /** Version property */\n readonly Version?: string;\n}\n"]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { RawHttpHeadersInput } from "@azure/core-rest-pipeline";
|
|
2
|
+
import { RequestParameters } from "@azure-rest/core-client";
|
|
3
|
+
export interface TimeZoneGetTimeZoneByIDHeaders {
|
|
4
|
+
/** Specifies the language code in which the timezone names should be returned. If no language code is provided, the response will be in "EN". Please refer to [Supported Languages](https://docs.microsoft.com/azure/azure-maps/supported-languages) for details. */
|
|
5
|
+
"Accept-Language"?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface TimeZoneGetTimeZoneByIDQueryParamProperties {
|
|
8
|
+
/** Alternatively, use alias "o". Options available for types of information returned in the result. */
|
|
9
|
+
options?: "none" | "zoneInfo" | "transitions" | "all";
|
|
10
|
+
/** Alternatively, use alias "stamp", or "s". Reference time, if omitted, the API will use the machine time serving the request. */
|
|
11
|
+
timeStamp?: Date | string;
|
|
12
|
+
/** Alternatively, use alias "tf". The start date from which daylight savings time (DST) transitions are requested, only applies when "options" = all or "options" = transitions. */
|
|
13
|
+
transitionsFrom?: Date | string;
|
|
14
|
+
/** Alternatively, use alias "ty". The number of years from "transitionsFrom" for which DST transitions are requested, only applies when "options" = all or "options" = transitions. */
|
|
15
|
+
transitionsYears?: number;
|
|
16
|
+
/** The IANA time zone ID. */
|
|
17
|
+
query: string;
|
|
18
|
+
}
|
|
19
|
+
export interface TimeZoneGetTimeZoneByIDQueryParam {
|
|
20
|
+
queryParameters: TimeZoneGetTimeZoneByIDQueryParamProperties;
|
|
21
|
+
}
|
|
22
|
+
export interface TimeZoneGetTimeZoneByIDHeaderParam {
|
|
23
|
+
headers?: RawHttpHeadersInput & TimeZoneGetTimeZoneByIDHeaders;
|
|
24
|
+
}
|
|
25
|
+
export type TimeZoneGetTimeZoneByIDParameters = TimeZoneGetTimeZoneByIDQueryParam & TimeZoneGetTimeZoneByIDHeaderParam & RequestParameters;
|
|
26
|
+
export interface TimeZoneGetTimeZoneByCoordinatesHeaders {
|
|
27
|
+
/** Specifies the language code in which the timezone names should be returned. If no language code is provided, the response will be in "EN". Please refer to [Supported Languages](https://docs.microsoft.com/azure/azure-maps/supported-languages) for details. */
|
|
28
|
+
"Accept-Language"?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface TimeZoneGetTimeZoneByCoordinatesQueryParamProperties {
|
|
31
|
+
/** Alternatively, use alias "o". Options available for types of information returned in the result. */
|
|
32
|
+
options?: "none" | "zoneInfo" | "transitions" | "all";
|
|
33
|
+
/** Alternatively, use alias "stamp", or "s". Reference time, if omitted, the API will use the machine time serving the request. */
|
|
34
|
+
timeStamp?: Date | string;
|
|
35
|
+
/** Alternatively, use alias "tf". The start date from which daylight savings time (DST) transitions are requested, only applies when "options" = all or "options" = transitions. */
|
|
36
|
+
transitionsFrom?: Date | string;
|
|
37
|
+
/** Alternatively, use alias "ty". The number of years from "transitionsFrom" for which DST transitions are requested, only applies when "options" = all or "options" = transitions. */
|
|
38
|
+
transitionsYears?: number;
|
|
39
|
+
/** Coordinates of the point for which time zone information is requested. This parameter is a list of coordinates, containing a pair of coordinate(lat, long). When this endpoint is called directly, coordinates are passed in as a single string containing coordinates, separated by commas. */
|
|
40
|
+
query: Array<number>;
|
|
41
|
+
}
|
|
42
|
+
export interface TimeZoneGetTimeZoneByCoordinatesQueryParam {
|
|
43
|
+
queryParameters: TimeZoneGetTimeZoneByCoordinatesQueryParamProperties;
|
|
44
|
+
}
|
|
45
|
+
export interface TimeZoneGetTimeZoneByCoordinatesHeaderParam {
|
|
46
|
+
headers?: RawHttpHeadersInput & TimeZoneGetTimeZoneByCoordinatesHeaders;
|
|
47
|
+
}
|
|
48
|
+
export type TimeZoneGetTimeZoneByCoordinatesParameters = TimeZoneGetTimeZoneByCoordinatesQueryParam & TimeZoneGetTimeZoneByCoordinatesHeaderParam & RequestParameters;
|
|
49
|
+
export type TimeZoneGetWindowsTimezoneIdsParameters = RequestParameters;
|
|
50
|
+
export type TimeZoneGetIanaTimezoneIdsParameters = RequestParameters;
|
|
51
|
+
export type TimeZoneGetIanaVersionParameters = RequestParameters;
|
|
52
|
+
export interface TimeZoneConvertWindowsTimezoneToIanaQueryParamProperties {
|
|
53
|
+
/** The Windows time zone ID. */
|
|
54
|
+
query: string;
|
|
55
|
+
/** Windows Time Zone territory code. */
|
|
56
|
+
territory?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface TimeZoneConvertWindowsTimezoneToIanaQueryParam {
|
|
59
|
+
queryParameters: TimeZoneConvertWindowsTimezoneToIanaQueryParamProperties;
|
|
60
|
+
}
|
|
61
|
+
export type TimeZoneConvertWindowsTimezoneToIanaParameters = TimeZoneConvertWindowsTimezoneToIanaQueryParam & RequestParameters;
|
|
62
|
+
//# sourceMappingURL=parameters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../src/generated/parameters.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,WAAW,8BAA8B;IAC7C,qQAAqQ;IACrQ,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,2CAA2C;IAC1D,uGAAuG;IACvG,OAAO,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,aAAa,GAAG,KAAK,CAAC;IACtD,mIAAmI;IACnI,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAC1B,oLAAoL;IACpL,eAAe,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAChC,uLAAuL;IACvL,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iCAAiC;IAChD,eAAe,EAAE,2CAA2C,CAAC;CAC9D;AAED,MAAM,WAAW,kCAAkC;IACjD,OAAO,CAAC,EAAE,mBAAmB,GAAG,8BAA8B,CAAC;CAChE;AAED,MAAM,MAAM,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appings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { RawHttpHeadersInput } from \"@azure/core-rest-pipeline\";\nimport { RequestParameters } from \"@azure-rest/core-client\";\n\nexport interface TimeZoneGetTimeZoneByIDHeaders {\n /** Specifies the language code in which the timezone names should be returned. If no language code is provided, the response will be in \"EN\". Please refer to [Supported Languages](https://docs.microsoft.com/azure/azure-maps/supported-languages) for details. */\n \"Accept-Language\"?: string;\n}\n\nexport interface TimeZoneGetTimeZoneByIDQueryParamProperties {\n /** Alternatively, use alias \"o\". Options available for types of information returned in the result. */\n options?: \"none\" | \"zoneInfo\" | \"transitions\" | \"all\";\n /** Alternatively, use alias \"stamp\", or \"s\". Reference time, if omitted, the API will use the machine time serving the request. */\n timeStamp?: Date | string;\n /** Alternatively, use alias \"tf\". The start date from which daylight savings time (DST) transitions are requested, only applies when \"options\" = all or \"options\" = transitions. */\n transitionsFrom?: Date | string;\n /** Alternatively, use alias \"ty\". The number of years from \"transitionsFrom\" for which DST transitions are requested, only applies when \"options\" = all or \"options\" = transitions. */\n transitionsYears?: number;\n /** The IANA time zone ID. */\n query: string;\n}\n\nexport interface TimeZoneGetTimeZoneByIDQueryParam {\n queryParameters: TimeZoneGetTimeZoneByIDQueryParamProperties;\n}\n\nexport interface TimeZoneGetTimeZoneByIDHeaderParam {\n headers?: RawHttpHeadersInput & TimeZoneGetTimeZoneByIDHeaders;\n}\n\nexport type TimeZoneGetTimeZoneByIDParameters =\n TimeZoneGetTimeZoneByIDQueryParam &\n TimeZoneGetTimeZoneByIDHeaderParam &\n RequestParameters;\n\nexport interface TimeZoneGetTimeZoneByCoordinatesHeaders {\n /** Specifies the language code in which the timezone names should be returned. If no language code is provided, the response will be in \"EN\". Please refer to [Supported Languages](https://docs.microsoft.com/azure/azure-maps/supported-languages) for details. */\n \"Accept-Language\"?: string;\n}\n\nexport interface TimeZoneGetTimeZoneByCoordinatesQueryParamProperties {\n /** Alternatively, use alias \"o\". Options available for types of information returned in the result. */\n options?: \"none\" | \"zoneInfo\" | \"transitions\" | \"all\";\n /** Alternatively, use alias \"stamp\", or \"s\". Reference time, if omitted, the API will use the machine time serving the request. */\n timeStamp?: Date | string;\n /** Alternatively, use alias \"tf\". The start date from which daylight savings time (DST) transitions are requested, only applies when \"options\" = all or \"options\" = transitions. */\n transitionsFrom?: Date | string;\n /** Alternatively, use alias \"ty\". The number of years from \"transitionsFrom\" for which DST transitions are requested, only applies when \"options\" = all or \"options\" = transitions. */\n transitionsYears?: number;\n /** Coordinates of the point for which time zone information is requested. This parameter is a list of coordinates, containing a pair of coordinate(lat, long). When this endpoint is called directly, coordinates are passed in as a single string containing coordinates, separated by commas. */\n query: Array<number>;\n}\n\nexport interface TimeZoneGetTimeZoneByCoordinatesQueryParam {\n queryParameters: TimeZoneGetTimeZoneByCoordinatesQueryParamProperties;\n}\n\nexport interface TimeZoneGetTimeZoneByCoordinatesHeaderParam {\n headers?: RawHttpHeadersInput & TimeZoneGetTimeZoneByCoordinatesHeaders;\n}\n\nexport type TimeZoneGetTimeZoneByCoordinatesParameters =\n TimeZoneGetTimeZoneByCoordinatesQueryParam &\n TimeZoneGetTimeZoneByCoordinatesHeaderParam &\n RequestParameters;\nexport type TimeZoneGetWindowsTimezoneIdsParameters = RequestParameters;\nexport type TimeZoneGetIanaTimezoneIdsParameters = RequestParameters;\nexport type TimeZoneGetIanaVersionParameters = RequestParameters;\n\nexport interface TimeZoneConvertWindowsTimezoneToIanaQueryParamProperties {\n /** The Windows time zone ID. */\n query: string;\n /** Windows Time Zone territory code. */\n territory?: string;\n}\n\nexport interface TimeZoneConvertWindowsTimezoneToIanaQueryParam {\n queryParameters: TimeZoneConvertWindowsTimezoneToIanaQueryParamProperties;\n}\n\nexport type TimeZoneConvertWindowsTimezoneToIanaParameters =\n TimeZoneConvertWindowsTimezoneToIanaQueryParam & RequestParameters;\n"]}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { HttpResponse } from "@azure-rest/core-client";
|
|
2
|
+
import { TimeZoneResultOutput, ErrorResponseOutput, WindowsTimeZoneOutput, IanaIdOutput, TimeZoneIanaVersionResultOutput } from "./outputModels.js";
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* The `Get Timezone By ID` API is an HTTP `GET` request that returns current, historical, and future time zone information for the specified IANA time zone ID.
|
|
6
|
+
*/
|
|
7
|
+
export interface TimeZoneGetTimeZoneByID200Response extends HttpResponse {
|
|
8
|
+
status: "200";
|
|
9
|
+
body: TimeZoneResultOutput;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* The `Get Timezone By ID` API is an HTTP `GET` request that returns current, historical, and future time zone information for the specified IANA time zone ID.
|
|
14
|
+
*/
|
|
15
|
+
export interface TimeZoneGetTimeZoneByIDDefaultResponse extends HttpResponse {
|
|
16
|
+
status: string;
|
|
17
|
+
body: ErrorResponseOutput;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* The `Get Timezone By Coordinates` API is an HTTP `GET` request that returns current, historical, and future time zone information for a specified latitude-longitude pair. In addition, the API provides sunset and sunrise times for a given location, with the exception of regions that observe solar days.
|
|
22
|
+
*/
|
|
23
|
+
export interface TimeZoneGetTimeZoneByCoordinates200Response extends HttpResponse {
|
|
24
|
+
status: "200";
|
|
25
|
+
body: TimeZoneResultOutput;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* The `Get Timezone By Coordinates` API is an HTTP `GET` request that returns current, historical, and future time zone information for a specified latitude-longitude pair. In addition, the API provides sunset and sunrise times for a given location, with the exception of regions that observe solar days.
|
|
30
|
+
*/
|
|
31
|
+
export interface TimeZoneGetTimeZoneByCoordinatesDefaultResponse extends HttpResponse {
|
|
32
|
+
status: string;
|
|
33
|
+
body: ErrorResponseOutput;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* The `Get Windows Time Zones` API is an HTTP `GET` request that returns a full list of Windows Time Zone IDs.
|
|
38
|
+
*/
|
|
39
|
+
export interface TimeZoneGetWindowsTimezoneIds200Response extends HttpResponse {
|
|
40
|
+
status: "200";
|
|
41
|
+
body: Array<WindowsTimeZoneOutput>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* The `Get Windows Time Zones` API is an HTTP `GET` request that returns a full list of Windows Time Zone IDs.
|
|
46
|
+
*/
|
|
47
|
+
export interface TimeZoneGetWindowsTimezoneIdsDefaultResponse extends HttpResponse {
|
|
48
|
+
status: string;
|
|
49
|
+
body: ErrorResponseOutput;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* The `Get IANA Time Zones` API is an HTTP `GET` request that returns a full list of Internet Assigned Numbers Authority (IANA) time zone IDs. Updates to the IANA service are reflected in the system within one day.
|
|
54
|
+
*/
|
|
55
|
+
export interface TimeZoneGetIanaTimezoneIds200Response extends HttpResponse {
|
|
56
|
+
status: "200";
|
|
57
|
+
body: Array<IanaIdOutput>;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* The `Get IANA Time Zones` API is an HTTP `GET` request that returns a full list of Internet Assigned Numbers Authority (IANA) time zone IDs. Updates to the IANA service are reflected in the system within one day.
|
|
62
|
+
*/
|
|
63
|
+
export interface TimeZoneGetIanaTimezoneIdsDefaultResponse extends HttpResponse {
|
|
64
|
+
status: string;
|
|
65
|
+
body: ErrorResponseOutput;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* The `Get Time Zone IANA Version` API is an HTTP `GET` request that returns the current Internet Assigned Numbers Authority (IANA) version number as Metadata.
|
|
70
|
+
*/
|
|
71
|
+
export interface TimeZoneGetIanaVersion200Response extends HttpResponse {
|
|
72
|
+
status: "200";
|
|
73
|
+
body: TimeZoneIanaVersionResultOutput;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* The `Get Time Zone IANA Version` API is an HTTP `GET` request that returns the current Internet Assigned Numbers Authority (IANA) version number as Metadata.
|
|
78
|
+
*/
|
|
79
|
+
export interface TimeZoneGetIanaVersionDefaultResponse extends HttpResponse {
|
|
80
|
+
status: string;
|
|
81
|
+
body: ErrorResponseOutput;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* The `Get Windows to IANA Time Zone` API is an HTTP `GET` request that returns a corresponding Internet Assigned Numbers Authority (IANA) ID, given a valid Windows Time Zone ID. Multiple IANA IDs may be returned for a single Windows ID. It is possible to narrow these results by adding an optional territory parameter.
|
|
86
|
+
*/
|
|
87
|
+
export interface TimeZoneConvertWindowsTimezoneToIana200Response extends HttpResponse {
|
|
88
|
+
status: "200";
|
|
89
|
+
body: Array<IanaIdOutput>;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* The `Get Windows to IANA Time Zone` API is an HTTP `GET` request that returns a corresponding Internet Assigned Numbers Authority (IANA) ID, given a valid Windows Time Zone ID. Multiple IANA IDs may be returned for a single Windows ID. It is possible to narrow these results by adding an optional territory parameter.
|
|
94
|
+
*/
|
|
95
|
+
export interface TimeZoneConvertWindowsTimezoneToIanaDefaultResponse extends HttpResponse {
|
|
96
|
+
status: string;
|
|
97
|
+
body: ErrorResponseOutput;
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=responses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/generated/responses.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,YAAY,EACZ,+BAA+B,EAChC,MAAM,mBAAmB,CAAC;AAE3B;;;GAGG;AACH,MAAM,WAAW,kCA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AQ,YAAY;IACpB,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,mDACf,SAAQ,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../src/generated/responses.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { HttpResponse } from \"@azure-rest/core-client\";\nimport {\n TimeZoneResultOutput,\n ErrorResponseOutput,\n WindowsTimeZoneOutput,\n IanaIdOutput,\n TimeZoneIanaVersionResultOutput,\n} from \"./outputModels.js\";\n\n/**\n *\n * The `Get Timezone By ID` API is an HTTP `GET` request that returns current, historical, and future time zone information for the specified IANA time zone ID.\n */\nexport interface TimeZoneGetTimeZoneByID200Response extends HttpResponse {\n status: \"200\";\n body: TimeZoneResultOutput;\n}\n\n/**\n *\n * The `Get Timezone By ID` API is an HTTP `GET` request that returns current, historical, and future time zone information for the specified IANA time zone ID.\n */\nexport interface TimeZoneGetTimeZoneByIDDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/**\n *\n * The `Get Timezone By Coordinates` API is an HTTP `GET` request that returns current, historical, and future time zone information for a specified latitude-longitude pair. In addition, the API provides sunset and sunrise times for a given location, with the exception of regions that observe solar days.\n */\nexport interface TimeZoneGetTimeZoneByCoordinates200Response\n extends HttpResponse {\n status: \"200\";\n body: TimeZoneResultOutput;\n}\n\n/**\n *\n * The `Get Timezone By Coordinates` API is an HTTP `GET` request that returns current, historical, and future time zone information for a specified latitude-longitude pair. In addition, the API provides sunset and sunrise times for a given location, with the exception of regions that observe solar days.\n */\nexport interface TimeZoneGetTimeZoneByCoordinatesDefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/**\n *\n * The `Get Windows Time Zones` API is an HTTP `GET` request that returns a full list of Windows Time Zone IDs.\n */\nexport interface TimeZoneGetWindowsTimezoneIds200Response extends HttpResponse {\n status: \"200\";\n body: Array<WindowsTimeZoneOutput>;\n}\n\n/**\n *\n * The `Get Windows Time Zones` API is an HTTP `GET` request that returns a full list of Windows Time Zone IDs.\n */\nexport interface TimeZoneGetWindowsTimezoneIdsDefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/**\n *\n * The `Get IANA Time Zones` API is an HTTP `GET` request that returns a full list of Internet Assigned Numbers Authority (IANA) time zone IDs. Updates to the IANA service are reflected in the system within one day.\n */\nexport interface TimeZoneGetIanaTimezoneIds200Response extends HttpResponse {\n status: \"200\";\n body: Array<IanaIdOutput>;\n}\n\n/**\n *\n * The `Get IANA Time Zones` API is an HTTP `GET` request that returns a full list of Internet Assigned Numbers Authority (IANA) time zone IDs. Updates to the IANA service are reflected in the system within one day.\n */\nexport interface TimeZoneGetIanaTimezoneIdsDefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/**\n *\n * The `Get Time Zone IANA Version` API is an HTTP `GET` request that returns the current Internet Assigned Numbers Authority (IANA) version number as Metadata.\n */\nexport interface TimeZoneGetIanaVersion200Response extends HttpResponse {\n status: \"200\";\n body: TimeZoneIanaVersionResultOutput;\n}\n\n/**\n *\n * The `Get Time Zone IANA Version` API is an HTTP `GET` request that returns the current Internet Assigned Numbers Authority (IANA) version number as Metadata.\n */\nexport interface TimeZoneGetIanaVersionDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/**\n *\n * The `Get Windows to IANA Time Zone` API is an HTTP `GET` request that returns a corresponding Internet Assigned Numbers Authority (IANA) ID, given a valid Windows Time Zone ID. Multiple IANA IDs may be returned for a single Windows ID. It is possible to narrow these results by adding an optional territory parameter.\n */\nexport interface TimeZoneConvertWindowsTimezoneToIana200Response\n extends HttpResponse {\n status: \"200\";\n body: Array<IanaIdOutput>;\n}\n\n/**\n *\n * The `Get Windows to IANA Time Zone` API is an HTTP `GET` request that returns a corresponding Internet Assigned Numbers Authority (IANA) ID, given a valid Windows Time Zone ID. Multiple IANA IDs may be returned for a single Windows ID. It is possible to narrow these results by adding an optional territory parameter.\n */\nexport interface TimeZoneConvertWindowsTimezoneToIanaDefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAE7C,cAAc,sBAAsB,CAAC;AACrC,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAE7C,cAAc,sBAAsB,CAAC;AACrC,eAAe,YAAY,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport MapsTimeZone from \"./MapsTimeZone.js\";\n\nexport * from \"./generated/index.js\";\nexport default MapsTimeZone;\n"]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { ClientOptions } from "@azure-rest/core-client";
|
|
2
|
+
import type { AzureKeyCredential, AzureSASCredential, TokenCredential } from "@azure/core-auth";
|
|
3
|
+
import type { MapsTimeZoneClient } from "./generated/index.js";
|
|
4
|
+
/**
|
|
5
|
+
* Creates an instance of MapsTimeZoneClient from a subscription key.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* import MapsTimeZone from "@azure-rest/maps-timezone";
|
|
10
|
+
*
|
|
11
|
+
* const credential = new AzureKeyCredential("<subscription-key>");
|
|
12
|
+
* const client = MapsTimeZone(credential);
|
|
13
|
+
*```
|
|
14
|
+
*
|
|
15
|
+
* @param credential - An AzureKeyCredential instance used to authenticate requests to the service
|
|
16
|
+
* @param options - Options used to configure the TimeZone Client
|
|
17
|
+
*/
|
|
18
|
+
export default function MapsTimeZone(credential: AzureKeyCredential, options?: ClientOptions): MapsTimeZoneClient;
|
|
19
|
+
/**
|
|
20
|
+
* Creates an instance of MapsTimeZone from an Azure Identity `TokenCredential`.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* import MapsTimeZoneClient from "@azure-rest/maps-timezone";
|
|
25
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
26
|
+
*
|
|
27
|
+
* const credential = new DefaultAzureCredential();
|
|
28
|
+
* const client = MapsTimeZone(credential, "<maps-account-client-id>");
|
|
29
|
+
*```
|
|
30
|
+
*
|
|
31
|
+
* @param credential - An TokenCredential instance used to authenticate requests to the service
|
|
32
|
+
* @param mapsAccountClientId - The Azure Maps client id of a specific map resource
|
|
33
|
+
* @param options - Options used to configure the TimeZone Client
|
|
34
|
+
*/
|
|
35
|
+
export default function MapsTimeZone(credential: TokenCredential, mapsAccountClientId: string, options?: ClientOptions): MapsTimeZoneClient;
|
|
36
|
+
/**
|
|
37
|
+
* Creates an instance of MapsTimeZone from an Azure Identity `AzureSASCredential`.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* import MapsTimeZone from "@azure-rest/maps-timezone";
|
|
42
|
+
* import { AzureSASCredential } from "@azure/core-auth";
|
|
43
|
+
*
|
|
44
|
+
* const credential = new AzureSASCredential("<SAS Token>");
|
|
45
|
+
* const client = MapsTimeZone(credential);
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param credential - An AzureSASCredential instance used to authenticate requests to the service
|
|
49
|
+
* @param options - Options used to configure the TimeZone Client
|
|
50
|
+
*/
|
|
51
|
+
export default function MapsTimeZone(credential: AzureSASCredential, options?: ClientOptions): MapsTimeZoneClient;
|
|
52
|
+
//# sourceMappingURL=MapsTimeZone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapsTimeZone.d.ts","sourceRoot":"","sources":["../../src/MapsTimeZone.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAIhG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG/D;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,UAAU,EAAE,kBAAkB,EAC9B,OAAO,CAAC,EAAE,aAAa,GACtB,kBAAkB,CAAC;AACtB;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,UAAU,EAAE,eAAe,EAC3B,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,aAAa,GACtB,kBAAkB,CAAC;AACtB;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,UAAU,EAAE,kBAAkB,EAC9B,OAAO,CAAC,EAAE,aAAa,GACtB,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.default = MapsTimeZone;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
const core_auth_1 = require("@azure/core-auth");
|
|
8
|
+
const core_rest_pipeline_1 = require("@azure/core-rest-pipeline");
|
|
9
|
+
const maps_common_1 = require("@azure/maps-common");
|
|
10
|
+
const mapsTimeZoneClient_js_1 = tslib_1.__importDefault(require("./generated/mapsTimeZoneClient.js"));
|
|
11
|
+
function MapsTimeZone(credential, clientIdOrOptions = {}, maybeOptions = {}) {
|
|
12
|
+
const options = typeof clientIdOrOptions === "string" ? maybeOptions : clientIdOrOptions;
|
|
13
|
+
/**
|
|
14
|
+
* maps service requires a header "ms-x-client-id", which is different from the standard Microsoft Entra ID.
|
|
15
|
+
* So we need to do our own implementation.
|
|
16
|
+
* This customized authentication is following by this guide: https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/RLC-customization.md#custom-authentication
|
|
17
|
+
*/
|
|
18
|
+
if ((0, core_auth_1.isTokenCredential)(credential)) {
|
|
19
|
+
const clientId = typeof clientIdOrOptions === "string" ? clientIdOrOptions : "";
|
|
20
|
+
if (!clientId) {
|
|
21
|
+
throw Error("Client id is needed for TokenCredential");
|
|
22
|
+
}
|
|
23
|
+
const client = (0, mapsTimeZoneClient_js_1.default)(undefined, options);
|
|
24
|
+
client.pipeline.addPolicy((0, core_rest_pipeline_1.bearerTokenAuthenticationPolicy)({
|
|
25
|
+
credential,
|
|
26
|
+
scopes: "https://atlas.microsoft.com/.default",
|
|
27
|
+
}));
|
|
28
|
+
client.pipeline.addPolicy((0, maps_common_1.createMapsClientIdPolicy)(clientId));
|
|
29
|
+
return client;
|
|
30
|
+
}
|
|
31
|
+
if ((0, core_auth_1.isSASCredential)(credential)) {
|
|
32
|
+
const client = (0, mapsTimeZoneClient_js_1.default)(undefined, options);
|
|
33
|
+
client.pipeline.addPolicy({
|
|
34
|
+
name: "mapsSASCredentialPolicy",
|
|
35
|
+
async sendRequest(request, next) {
|
|
36
|
+
request.headers.set("Authorization", `jwt-sas ${credential.signature}`);
|
|
37
|
+
return next(request);
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
return client;
|
|
41
|
+
}
|
|
42
|
+
return (0, mapsTimeZoneClient_js_1.default)(credential, options);
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=MapsTimeZone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,CAAC,OAAO,EAAE,IAAI;gBAC7B,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,WAAW,UAAU,CAAC,SAAS,EAAE,CAAC,CAAC;gBACxE,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,IAAA,+BAAY,EAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAC3C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport type { AzureKeyCredential, AzureSASCredential, TokenCredential } from \"@azure/core-auth\";\nimport { isSASCredential, isTokenCredential } from \"@azure/core-auth\";\nimport { bearerTokenAuthenticationPolicy } from \"@azure/core-rest-pipeline\";\nimport { createMapsClientIdPolicy } from \"@azure/maps-common\";\nimport type { MapsTimeZoneClient } from \"./generated/index.js\";\nimport createClient from \"./generated/mapsTimeZoneClient.js\";\n\n/**\n * Creates an instance of MapsTimeZoneClient from a subscription key.\n *\n * @example\n * ```ts\n * import MapsTimeZone from \"@azure-rest/maps-timezone\";\n *\n * const credential = new AzureKeyCredential(\"<subscription-key>\");\n * const client = MapsTimeZone(credential);\n *```\n *\n * @param credential - An AzureKeyCredential instance used to authenticate requests to the service\n * @param options - Options used to configure the TimeZone Client\n */\nexport default function MapsTimeZone(\n credential: AzureKeyCredential,\n options?: ClientOptions,\n): MapsTimeZoneClient;\n/**\n * Creates an instance of MapsTimeZone from an Azure Identity `TokenCredential`.\n *\n * @example\n * ```ts\n * import MapsTimeZoneClient from \"@azure-rest/maps-timezone\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = MapsTimeZone(credential, \"<maps-account-client-id>\");\n *```\n *\n * @param credential - An TokenCredential instance used to authenticate requests to the service\n * @param mapsAccountClientId - The Azure Maps client id of a specific map resource\n * @param options - Options used to configure the TimeZone Client\n */\nexport default function MapsTimeZone(\n credential: TokenCredential,\n mapsAccountClientId: string,\n options?: ClientOptions,\n): MapsTimeZoneClient;\n/**\n * Creates an instance of MapsTimeZone from an Azure Identity `AzureSASCredential`.\n *\n * @example\n * ```ts\n * import MapsTimeZone from \"@azure-rest/maps-timezone\";\n * import { AzureSASCredential } from \"@azure/core-auth\";\n *\n * const credential = new AzureSASCredential(\"<SAS Token>\");\n * const client = MapsTimeZone(credential);\n * ```\n *\n * @param credential - An AzureSASCredential instance used to authenticate requests to the service\n * @param options - Options used to configure the TimeZone Client\n */\nexport default function MapsTimeZone(\n credential: AzureSASCredential,\n options?: ClientOptions,\n): MapsTimeZoneClient;\nexport default function MapsTimeZone(\n credential: TokenCredential | AzureKeyCredential | AzureSASCredential,\n clientIdOrOptions: string | ClientOptions = {},\n maybeOptions: ClientOptions = {},\n): MapsTimeZoneClient {\n const options = typeof clientIdOrOptions === \"string\" ? maybeOptions : clientIdOrOptions;\n\n /**\n * maps service requires a header \"ms-x-client-id\", which is different from the standard Microsoft Entra ID.\n * So we need to do our own implementation.\n * This customized authentication is following by this guide: https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/RLC-customization.md#custom-authentication\n */\n if (isTokenCredential(credential)) {\n const clientId = typeof clientIdOrOptions === \"string\" ? clientIdOrOptions : \"\";\n if (!clientId) {\n throw Error(\"Client id is needed for TokenCredential\");\n }\n const client = createClient(undefined as any, options);\n client.pipeline.addPolicy(\n bearerTokenAuthenticationPolicy({\n credential,\n scopes: \"https://atlas.microsoft.com/.default\",\n }),\n );\n client.pipeline.addPolicy(createMapsClientIdPolicy(clientId));\n return client;\n }\n\n if (isSASCredential(credential)) {\n const client = createClient(undefined as any, options);\n client.pipeline.addPolicy({\n name: \"mapsSASCredentialPolicy\",\n async sendRequest(request, next) {\n request.headers.set(\"Authorization\", `jwt-sas ${credential.signature}`);\n return next(request);\n },\n });\n return client;\n }\n\n return createClient(credential, options);\n}\n"]}
|