@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.
Files changed (168) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +247 -0
  3. package/dist/browser/MapsTimeZone.d.ts +52 -0
  4. package/dist/browser/MapsTimeZone.d.ts.map +1 -0
  5. package/dist/browser/MapsTimeZone.js +40 -0
  6. package/dist/browser/MapsTimeZone.js.map +1 -0
  7. package/dist/browser/generated/clientDefinitions.d.ts +63 -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 +8 -0
  16. package/dist/browser/generated/isUnexpected.d.ts.map +1 -0
  17. package/dist/browser/generated/isUnexpected.js +76 -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/mapsTimeZoneClient.d.ts +15 -0
  24. package/dist/browser/generated/mapsTimeZoneClient.d.ts.map +1 -0
  25. package/dist/browser/generated/mapsTimeZoneClient.js +42 -0
  26. package/dist/browser/generated/mapsTimeZoneClient.js.map +1 -0
  27. package/dist/browser/generated/outputModels.d.ts +134 -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 +62 -0
  32. package/dist/browser/generated/parameters.d.ts.map +1 -0
  33. package/dist/browser/generated/parameters.js +4 -0
  34. package/dist/browser/generated/parameters.js.map +1 -0
  35. package/dist/browser/generated/responses.d.ts +99 -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/MapsTimeZone.d.ts +52 -0
  45. package/dist/commonjs/MapsTimeZone.d.ts.map +1 -0
  46. package/dist/commonjs/MapsTimeZone.js +44 -0
  47. package/dist/commonjs/MapsTimeZone.js.map +1 -0
  48. package/dist/commonjs/generated/clientDefinitions.d.ts +63 -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 +8 -0
  57. package/dist/commonjs/generated/isUnexpected.d.ts.map +1 -0
  58. package/dist/commonjs/generated/isUnexpected.js +79 -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/mapsTimeZoneClient.d.ts +15 -0
  65. package/dist/commonjs/generated/mapsTimeZoneClient.d.ts.map +1 -0
  66. package/dist/commonjs/generated/mapsTimeZoneClient.js +45 -0
  67. package/dist/commonjs/generated/mapsTimeZoneClient.js.map +1 -0
  68. package/dist/commonjs/generated/outputModels.d.ts +134 -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 +62 -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 +99 -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/MapsTimeZone.d.ts +52 -0
  87. package/dist/esm/MapsTimeZone.d.ts.map +1 -0
  88. package/dist/esm/MapsTimeZone.js +40 -0
  89. package/dist/esm/MapsTimeZone.js.map +1 -0
  90. package/dist/esm/generated/clientDefinitions.d.ts +63 -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 +8 -0
  99. package/dist/esm/generated/isUnexpected.d.ts.map +1 -0
  100. package/dist/esm/generated/isUnexpected.js +76 -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/mapsTimeZoneClient.d.ts +15 -0
  107. package/dist/esm/generated/mapsTimeZoneClient.d.ts.map +1 -0
  108. package/dist/esm/generated/mapsTimeZoneClient.js +42 -0
  109. package/dist/esm/generated/mapsTimeZoneClient.js.map +1 -0
  110. package/dist/esm/generated/outputModels.d.ts +134 -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 +62 -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 +99 -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/MapsTimeZone.d.ts +52 -0
  128. package/dist/react-native/MapsTimeZone.d.ts.map +1 -0
  129. package/dist/react-native/MapsTimeZone.js +40 -0
  130. package/dist/react-native/MapsTimeZone.js.map +1 -0
  131. package/dist/react-native/generated/clientDefinitions.d.ts +63 -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 +8 -0
  140. package/dist/react-native/generated/isUnexpected.d.ts.map +1 -0
  141. package/dist/react-native/generated/isUnexpected.js +76 -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/mapsTimeZoneClient.d.ts +15 -0
  148. package/dist/react-native/generated/mapsTimeZoneClient.d.ts.map +1 -0
  149. package/dist/react-native/generated/mapsTimeZoneClient.js +42 -0
  150. package/dist/react-native/generated/mapsTimeZoneClient.js.map +1 -0
  151. package/dist/react-native/generated/outputModels.d.ts +134 -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 +62 -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 +99 -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 +133 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/index.ts"],"names":[],"mappings":"AAGA,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;AAEzD,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAElC,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,11 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import MapsTimeZoneClient from "./mapsTimeZoneClient.js";
4
+ export * from "./mapsTimeZoneClient.js";
5
+ export * from "./parameters.js";
6
+ export * from "./responses.js";
7
+ export * from "./clientDefinitions.js";
8
+ export * from "./isUnexpected.js";
9
+ export * from "./outputModels.js";
10
+ export default MapsTimeZoneClient;
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;AAEzD,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAElC,eAAe,kBAAkB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport MapsTimeZoneClient from \"./mapsTimeZoneClient.js\";\n\nexport * from \"./mapsTimeZoneClient.js\";\nexport * from \"./parameters.js\";\nexport * from \"./responses.js\";\nexport * from \"./clientDefinitions.js\";\nexport * from \"./isUnexpected.js\";\nexport * from \"./outputModels.js\";\n\nexport default MapsTimeZoneClient;\n"]}
@@ -0,0 +1,8 @@
1
+ import { TimeZoneGetTimeZoneByID200Response, TimeZoneGetTimeZoneByIDDefaultResponse, TimeZoneGetTimeZoneByCoordinates200Response, TimeZoneGetTimeZoneByCoordinatesDefaultResponse, TimeZoneGetWindowsTimezoneIds200Response, TimeZoneGetWindowsTimezoneIdsDefaultResponse, TimeZoneGetIanaTimezoneIds200Response, TimeZoneGetIanaTimezoneIdsDefaultResponse, TimeZoneGetIanaVersion200Response, TimeZoneGetIanaVersionDefaultResponse, TimeZoneConvertWindowsTimezoneToIana200Response, TimeZoneConvertWindowsTimezoneToIanaDefaultResponse } from "./responses.js";
2
+ export declare function isUnexpected(response: TimeZoneGetTimeZoneByID200Response | TimeZoneGetTimeZoneByIDDefaultResponse): response is TimeZoneGetTimeZoneByIDDefaultResponse;
3
+ export declare function isUnexpected(response: TimeZoneGetTimeZoneByCoordinates200Response | TimeZoneGetTimeZoneByCoordinatesDefaultResponse): response is TimeZoneGetTimeZoneByCoordinatesDefaultResponse;
4
+ export declare function isUnexpected(response: TimeZoneGetWindowsTimezoneIds200Response | TimeZoneGetWindowsTimezoneIdsDefaultResponse): response is TimeZoneGetWindowsTimezoneIdsDefaultResponse;
5
+ export declare function isUnexpected(response: TimeZoneGetIanaTimezoneIds200Response | TimeZoneGetIanaTimezoneIdsDefaultResponse): response is TimeZoneGetIanaTimezoneIdsDefaultResponse;
6
+ export declare function isUnexpected(response: TimeZoneGetIanaVersion200Response | TimeZoneGetIanaVersionDefaultResponse): response is TimeZoneGetIanaVersionDefaultResponse;
7
+ export declare function isUnexpected(response: TimeZoneConvertWindowsTimezoneToIana200Response | TimeZoneConvertWindowsTimezoneToIanaDefaultResponse): response is TimeZoneConvertWindowsTimezoneToIanaDefaultResponse;
8
+ //# sourceMappingURL=isUnexpected.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isUnexpected.d.ts","sourceRoot":"","sources":["../../../src/generated/isUnexpected.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,kCAAkC,EAClC,sCAAsC,EACtC,2CAA2C,EAC3C,+CAA+C,EAC/C,wCAAwC,EACxC,4CAA4C,EAC5C,qCAAqC,EACrC,yCAAyC,EACzC,iCAAiC,EACjC,qCAAqC,EACrC,+CAA+C,EAC/C,mDAAmD,EACpD,MAAM,gBAAgB,CAAC;AAWxB,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,kCAAkC,GAClC,sCAAsC,GACzC,QAAQ,IAAI,sCAAsC,CAAC;AACtD,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,2CAA2C,GAC3C,+CAA+C,GAClD,QAAQ,IAAI,+CAA+C,CAAC;AAC/D,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,wCAAwC,GACxC,4CAA4C,GAC/C,QAAQ,IAAI,4CAA4C,CAAC;AAC5D,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,qCAAqC,GACrC,yCAAyC,GAC5C,QAAQ,IAAI,yCAAyC,CAAC;AACzD,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,iCAAiC,GACjC,qCAAqC,GACxC,QAAQ,IAAI,qCAAqC,CAAC;AACrD,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,+CAA+C,GAC/C,mDAAmD,GACtD,QAAQ,IAAI,mDAAmD,CAAC"}
@@ -0,0 +1,76 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ const responseMap = {
4
+ "GET /timezone/byId/{format}": ["200"],
5
+ "GET /timezone/byCoordinates/{format}": ["200"],
6
+ "GET /timezone/enumWindows/{format}": ["200"],
7
+ "GET /timezone/enumIana/{format}": ["200"],
8
+ "GET /timezone/ianaVersion/{format}": ["200"],
9
+ "GET /timezone/windowsToIana/{format}": ["200"],
10
+ };
11
+ export function isUnexpected(response) {
12
+ const lroOriginal = response.headers["x-ms-original-url"];
13
+ const url = new URL(lroOriginal !== null && lroOriginal !== void 0 ? lroOriginal : response.request.url);
14
+ const method = response.request.method;
15
+ let pathDetails = responseMap[`${method} ${url.pathname}`];
16
+ if (!pathDetails) {
17
+ pathDetails = getParametrizedPathSuccess(method, url.pathname);
18
+ }
19
+ return !pathDetails.includes(response.status);
20
+ }
21
+ function getParametrizedPathSuccess(method, path) {
22
+ var _a, _b, _c, _d;
23
+ const pathParts = path.split("/");
24
+ // Traverse list to match the longest candidate
25
+ // matchedLen: the length of candidate path
26
+ // matchedValue: the matched status code array
27
+ let matchedLen = -1, matchedValue = [];
28
+ // Iterate the responseMap to find a match
29
+ for (const [key, value] of Object.entries(responseMap)) {
30
+ // Extracting the path from the map key which is in format
31
+ // GET /path/foo
32
+ if (!key.startsWith(method)) {
33
+ continue;
34
+ }
35
+ const candidatePath = getPathFromMapKey(key);
36
+ // Get each part of the url path
37
+ const candidateParts = candidatePath.split("/");
38
+ // track if we have found a match to return the values found.
39
+ let found = true;
40
+ for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
41
+ if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) &&
42
+ ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
43
+ const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
44
+ // If the current part of the candidate is a "template" part
45
+ // Try to use the suffix of pattern to match the path
46
+ // {guid} ==> $
47
+ // {guid}:export ==> :export$
48
+ const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
49
+ if (!isMatched) {
50
+ found = false;
51
+ break;
52
+ }
53
+ continue;
54
+ }
55
+ // If the candidate part is not a template and
56
+ // the parts don't match mark the candidate as not found
57
+ // to move on with the next candidate path.
58
+ if (candidateParts[i] !== pathParts[j]) {
59
+ found = false;
60
+ break;
61
+ }
62
+ }
63
+ // We finished evaluating the current candidate parts
64
+ // Update the matched value if and only if we found the longer pattern
65
+ if (found && candidatePath.length > matchedLen) {
66
+ matchedLen = candidatePath.length;
67
+ matchedValue = value;
68
+ }
69
+ }
70
+ return matchedValue;
71
+ }
72
+ function getPathFromMapKey(mapKey) {
73
+ const pathStart = mapKey.indexOf("/");
74
+ return mapKey.slice(pathStart);
75
+ }
76
+ //# sourceMappingURL=isUnexpected.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["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CAAC;oBACd,MAAM;gBACR,CAAC;gBACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n TimeZoneGetTimeZoneByID200Response,\n TimeZoneGetTimeZoneByIDDefaultResponse,\n TimeZoneGetTimeZoneByCoordinates200Response,\n TimeZoneGetTimeZoneByCoordinatesDefaultResponse,\n TimeZoneGetWindowsTimezoneIds200Response,\n TimeZoneGetWindowsTimezoneIdsDefaultResponse,\n TimeZoneGetIanaTimezoneIds200Response,\n TimeZoneGetIanaTimezoneIdsDefaultResponse,\n TimeZoneGetIanaVersion200Response,\n TimeZoneGetIanaVersionDefaultResponse,\n TimeZoneConvertWindowsTimezoneToIana200Response,\n TimeZoneConvertWindowsTimezoneToIanaDefaultResponse,\n} from \"./responses.js\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /timezone/byId/{format}\": [\"200\"],\n \"GET /timezone/byCoordinates/{format}\": [\"200\"],\n \"GET /timezone/enumWindows/{format}\": [\"200\"],\n \"GET /timezone/enumIana/{format}\": [\"200\"],\n \"GET /timezone/ianaVersion/{format}\": [\"200\"],\n \"GET /timezone/windowsToIana/{format}\": [\"200\"],\n};\n\nexport function isUnexpected(\n response:\n | TimeZoneGetTimeZoneByID200Response\n | TimeZoneGetTimeZoneByIDDefaultResponse,\n): response is TimeZoneGetTimeZoneByIDDefaultResponse;\nexport function isUnexpected(\n response:\n | TimeZoneGetTimeZoneByCoordinates200Response\n | TimeZoneGetTimeZoneByCoordinatesDefaultResponse,\n): response is TimeZoneGetTimeZoneByCoordinatesDefaultResponse;\nexport function isUnexpected(\n response:\n | TimeZoneGetWindowsTimezoneIds200Response\n | TimeZoneGetWindowsTimezoneIdsDefaultResponse,\n): response is TimeZoneGetWindowsTimezoneIdsDefaultResponse;\nexport function isUnexpected(\n response:\n | TimeZoneGetIanaTimezoneIds200Response\n | TimeZoneGetIanaTimezoneIdsDefaultResponse,\n): response is TimeZoneGetIanaTimezoneIdsDefaultResponse;\nexport function isUnexpected(\n response:\n | TimeZoneGetIanaVersion200Response\n | TimeZoneGetIanaVersionDefaultResponse,\n): response is TimeZoneGetIanaVersionDefaultResponse;\nexport function isUnexpected(\n response:\n | TimeZoneConvertWindowsTimezoneToIana200Response\n | TimeZoneConvertWindowsTimezoneToIanaDefaultResponse,\n): response is TimeZoneConvertWindowsTimezoneToIanaDefaultResponse;\nexport function isUnexpected(\n response:\n | TimeZoneGetTimeZoneByID200Response\n | TimeZoneGetTimeZoneByIDDefaultResponse\n | TimeZoneGetTimeZoneByCoordinates200Response\n | TimeZoneGetTimeZoneByCoordinatesDefaultResponse\n | TimeZoneGetWindowsTimezoneIds200Response\n | TimeZoneGetWindowsTimezoneIdsDefaultResponse\n | TimeZoneGetIanaTimezoneIds200Response\n | TimeZoneGetIanaTimezoneIdsDefaultResponse\n | TimeZoneGetIanaVersion200Response\n | TimeZoneGetIanaVersionDefaultResponse\n | TimeZoneConvertWindowsTimezoneToIana200Response\n | TimeZoneConvertWindowsTimezoneToIanaDefaultResponse,\n): response is\n | TimeZoneGetTimeZoneByIDDefaultResponse\n | TimeZoneGetTimeZoneByCoordinatesDefaultResponse\n | TimeZoneGetWindowsTimezoneIdsDefaultResponse\n | TimeZoneGetIanaTimezoneIdsDefaultResponse\n | TimeZoneGetIanaVersionDefaultResponse\n | TimeZoneConvertWindowsTimezoneToIanaDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: string[] = [];\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (\n let i = candidateParts.length - 1, j = pathParts.length - 1;\n i >= 1 && j >= 1;\n i--, j--\n ) {\n if (\n candidateParts[i]?.startsWith(\"{\") &&\n candidateParts[i]?.indexOf(\"}\") !== -1\n ) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(\n `${candidateParts[i]?.slice(start, end)}`,\n ).test(pathParts[j] || \"\");\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const logger: import("@azure/logger").AzureLogger;
2
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/generated/logger.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,qCAAsC,CAAC"}
@@ -0,0 +1,5 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { createClientLogger } from "@azure/logger";
4
+ export const logger = createClientLogger("maps-timezone");
5
+ //# sourceMappingURL=logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/generated/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,eAAe,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"maps-timezone\");\n"]}
@@ -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,OAAO,cAAhC,cAAkC,CAAF;IAEhC,MAAM,WAAW,GACf,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO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ACzD,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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AAC,CAAC;IAC5C,iCAAiC;IACjC,QAAQ,CAAC,cAAc,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;CAC5D;AAED,qDAAqD;AACrD,MAAM,WAAW,yBAAyB;IACxC,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,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=outputModels.js.map
@@ -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,iCAAiC,GAC3C,iCAAiC,GAC/B,kCAAkC,GAClC,iBAAiB,CAAC;AAEtB,MAAM,WAAW,uCAAuC;IACtD,qQAAqQ;IACrQ,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,oDAAoD;IACnE,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,mSAAmS;IACnS,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,0CAA0C;IACzD,eAAe,EAAE,oDAAoD,CAAC;CACvE;AAED,MAAM,WAAW,2CAA2C;IAC1D,OAAO,CAAC,EAAE,mBAAmB,GAAG,uCAAuC,CAAC;CACzE;AAED,MAAM,MAAM,0CAA0C,GACpD,0CAA0C,GACxC,2CAA2C,GAC3C,iBAAiB,CAAC;AACtB,MAAM,MAAM,uCAAuC,GAAG,iBAAiB,CAAC;AACxE,MAAM,MAAM,oCAAoC,GAAG,iBAAiB,CAAC;AACrE,MAAM,MAAM,gCAAgC,GAAG,iBAAiB,CAAC;AAEjE,MAAM,WAAW,wDAAwD;IACvE,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,8CAA8C;IAC7D,eAAe,EAAE,wDAAwD,CAAC;CAC3E;AAED,MAAM,MAAM,8CAA8C,GACxD,8CAA8C,GAAG,iBAAiB,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=parameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/generated/parameters.ts"],"names":[],"mappings":"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,kCAAmC,SAAQ,YAAY;IACtE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,oBAAoB,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,sCAAuC,SAAQ,YAAY;IAC1E,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,2CACf,SAAQ,YAAY;IACpB,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,oBAAoB,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,+CACf,SAAQ,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,wCAAyC,SAAQ,YAAY;IAC5E,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;CACpC;AAED;;;GAGG;AACH,MAAM,WAAW,4CACf,SAAQ,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,qCAAsC,SAAQ,YAAY;IACzE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,yCACf,SAAQ,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,iCAAkC,SAAQ,YAAY;IACrE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,+BAA+B,CAAC;CACvC;AAED;;;GAGG;AACH,MAAM,WAAW,qCAAsC,SAAQ,YAAY;IACzE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,+CACf,SAAQ,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,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=responses.js.map
@@ -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,4 @@
1
+ import MapsTimeZone from "./MapsTimeZone.js";
2
+ export * from "./generated/index.js";
3
+ export default MapsTimeZone;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}