@azure/maps-common 1.0.0-beta.1 → 1.0.0-beta.3

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 (164) hide show
  1. package/LICENSE +3 -3
  2. package/README.md +13 -2
  3. package/{types/3.1 → dist/browser}/credential/createAzureMapsKeyCredentialPolicy.d.ts +8 -8
  4. package/dist/browser/credential/createAzureMapsKeyCredentialPolicy.d.ts.map +1 -0
  5. package/{dist-esm → dist/browser}/credential/createAzureMapsKeyCredentialPolicy.js +1 -1
  6. package/dist/browser/credential/createAzureMapsKeyCredentialPolicy.js.map +1 -0
  7. package/{types/latest → dist/browser}/credential/createMapsClientIdPolicy.d.ts +1 -1
  8. package/dist/browser/credential/createMapsClientIdPolicy.d.ts.map +1 -0
  9. package/{dist-esm → dist/browser}/credential/createMapsClientIdPolicy.js +1 -1
  10. package/dist/browser/credential/createMapsClientIdPolicy.js.map +1 -0
  11. package/dist/browser/credential/index.d.ts +3 -0
  12. package/{types/latest → dist/browser}/credential/index.d.ts.map +1 -1
  13. package/dist/browser/credential/index.js +5 -0
  14. package/dist/browser/credential/index.js.map +1 -0
  15. package/dist/browser/index.d.ts +3 -0
  16. package/dist/browser/index.d.ts.map +1 -0
  17. package/dist/browser/index.js +5 -0
  18. package/dist/browser/index.js.map +1 -0
  19. package/{types/latest → dist/browser}/models/geojsons.d.ts +9 -9
  20. package/dist/browser/models/geojsons.d.ts.map +1 -0
  21. package/dist/browser/models/geojsons.js +4 -0
  22. package/dist/browser/models/geojsons.js.map +1 -0
  23. package/dist/browser/models/index.d.ts +4 -0
  24. package/dist/browser/models/index.d.ts.map +1 -0
  25. package/dist/browser/models/index.js +6 -0
  26. package/dist/browser/models/index.js.map +1 -0
  27. package/{types/latest → dist/browser}/models/lro.d.ts +3 -2
  28. package/dist/browser/models/lro.d.ts.map +1 -0
  29. package/{dist-esm → dist/browser}/models/lro.js +7 -4
  30. package/dist/browser/models/lro.js.map +1 -0
  31. package/{types/latest → dist/browser}/models/models.d.ts +1 -1
  32. package/dist/browser/models/models.d.ts.map +1 -0
  33. package/dist/browser/models/models.js +4 -0
  34. package/dist/browser/models/models.js.map +1 -0
  35. package/dist/browser/package.json +3 -0
  36. package/{types/latest → dist/commonjs}/credential/createAzureMapsKeyCredentialPolicy.d.ts +2 -2
  37. package/dist/commonjs/credential/createAzureMapsKeyCredentialPolicy.d.ts.map +1 -0
  38. package/dist/commonjs/credential/createAzureMapsKeyCredentialPolicy.js +26 -0
  39. package/dist/commonjs/credential/createAzureMapsKeyCredentialPolicy.js.map +1 -0
  40. package/{types/3.1 → dist/commonjs}/credential/createMapsClientIdPolicy.d.ts +7 -7
  41. package/dist/commonjs/credential/createMapsClientIdPolicy.d.ts.map +1 -0
  42. package/dist/commonjs/credential/createMapsClientIdPolicy.js +26 -0
  43. package/dist/commonjs/credential/createMapsClientIdPolicy.js.map +1 -0
  44. package/dist/commonjs/credential/index.d.ts +3 -0
  45. package/dist/commonjs/credential/index.d.ts.map +1 -0
  46. package/dist/commonjs/credential/index.js +8 -0
  47. package/dist/commonjs/credential/index.js.map +1 -0
  48. package/dist/commonjs/index.d.ts +3 -0
  49. package/dist/commonjs/index.d.ts.map +1 -0
  50. package/dist/commonjs/index.js +8 -0
  51. package/dist/commonjs/index.js.map +1 -0
  52. package/{types/3.1 → dist/commonjs}/models/geojsons.d.ts +104 -111
  53. package/dist/commonjs/models/geojsons.d.ts.map +1 -0
  54. package/dist/commonjs/models/geojsons.js +5 -0
  55. package/dist/commonjs/models/geojsons.js.map +1 -0
  56. package/dist/commonjs/models/index.d.ts +4 -0
  57. package/dist/commonjs/models/index.d.ts.map +1 -0
  58. package/dist/commonjs/models/index.js +9 -0
  59. package/dist/commonjs/models/index.js.map +1 -0
  60. package/{types/3.1 → dist/commonjs}/models/lro.d.ts +23 -22
  61. package/dist/commonjs/models/lro.d.ts.map +1 -0
  62. package/dist/commonjs/models/lro.js +41 -0
  63. package/dist/commonjs/models/lro.js.map +1 -0
  64. package/{types/3.1 → dist/commonjs}/models/models.d.ts +14 -17
  65. package/dist/commonjs/models/models.d.ts.map +1 -0
  66. package/dist/commonjs/models/models.js +5 -0
  67. package/dist/commonjs/models/models.js.map +1 -0
  68. package/dist/commonjs/package.json +3 -0
  69. package/dist/commonjs/tsdoc-metadata.json +11 -0
  70. package/dist/esm/credential/createAzureMapsKeyCredentialPolicy.d.ts +8 -0
  71. package/dist/esm/credential/createAzureMapsKeyCredentialPolicy.d.ts.map +1 -0
  72. package/dist/esm/credential/createAzureMapsKeyCredentialPolicy.js +23 -0
  73. package/dist/esm/credential/createAzureMapsKeyCredentialPolicy.js.map +1 -0
  74. package/dist/esm/credential/createMapsClientIdPolicy.d.ts +7 -0
  75. package/dist/esm/credential/createMapsClientIdPolicy.d.ts.map +1 -0
  76. package/dist/esm/credential/createMapsClientIdPolicy.js +23 -0
  77. package/dist/esm/credential/createMapsClientIdPolicy.js.map +1 -0
  78. package/dist/esm/credential/index.d.ts +3 -0
  79. package/dist/esm/credential/index.d.ts.map +1 -0
  80. package/dist/esm/credential/index.js +5 -0
  81. package/dist/esm/credential/index.js.map +1 -0
  82. package/dist/esm/index.d.ts +3 -0
  83. package/dist/esm/index.d.ts.map +1 -0
  84. package/dist/esm/index.js +5 -0
  85. package/dist/esm/index.js.map +1 -0
  86. package/dist/esm/models/geojsons.d.ts +104 -0
  87. package/dist/esm/models/geojsons.d.ts.map +1 -0
  88. package/dist/esm/models/geojsons.js +4 -0
  89. package/dist/esm/models/geojsons.js.map +1 -0
  90. package/dist/esm/models/index.d.ts +4 -0
  91. package/dist/esm/models/index.d.ts.map +1 -0
  92. package/dist/esm/models/index.js +6 -0
  93. package/dist/esm/models/index.js.map +1 -0
  94. package/dist/esm/models/lro.d.ts +23 -0
  95. package/dist/esm/models/lro.d.ts.map +1 -0
  96. package/dist/esm/models/lro.js +37 -0
  97. package/dist/esm/models/lro.js.map +1 -0
  98. package/dist/esm/models/models.d.ts +14 -0
  99. package/dist/esm/models/models.d.ts.map +1 -0
  100. package/dist/esm/models/models.js +4 -0
  101. package/dist/esm/models/models.js.map +1 -0
  102. package/dist/esm/package.json +3 -0
  103. package/dist/react-native/credential/createAzureMapsKeyCredentialPolicy.d.ts +8 -0
  104. package/dist/react-native/credential/createAzureMapsKeyCredentialPolicy.d.ts.map +1 -0
  105. package/dist/react-native/credential/createAzureMapsKeyCredentialPolicy.js +23 -0
  106. package/dist/react-native/credential/createAzureMapsKeyCredentialPolicy.js.map +1 -0
  107. package/dist/react-native/credential/createMapsClientIdPolicy.d.ts +7 -0
  108. package/dist/react-native/credential/createMapsClientIdPolicy.d.ts.map +1 -0
  109. package/dist/react-native/credential/createMapsClientIdPolicy.js +23 -0
  110. package/dist/react-native/credential/createMapsClientIdPolicy.js.map +1 -0
  111. package/dist/react-native/credential/index.d.ts +3 -0
  112. package/dist/react-native/credential/index.d.ts.map +1 -0
  113. package/dist/react-native/credential/index.js +5 -0
  114. package/dist/react-native/credential/index.js.map +1 -0
  115. package/dist/react-native/index.d.ts +3 -0
  116. package/dist/react-native/index.d.ts.map +1 -0
  117. package/dist/react-native/index.js +5 -0
  118. package/dist/react-native/index.js.map +1 -0
  119. package/dist/react-native/models/geojsons.d.ts +104 -0
  120. package/dist/react-native/models/geojsons.d.ts.map +1 -0
  121. package/dist/react-native/models/geojsons.js +4 -0
  122. package/dist/react-native/models/geojsons.js.map +1 -0
  123. package/dist/react-native/models/index.d.ts +4 -0
  124. package/dist/react-native/models/index.d.ts.map +1 -0
  125. package/dist/react-native/models/index.js +6 -0
  126. package/dist/react-native/models/index.js.map +1 -0
  127. package/dist/react-native/models/lro.d.ts +23 -0
  128. package/dist/react-native/models/lro.d.ts.map +1 -0
  129. package/dist/react-native/models/lro.js +37 -0
  130. package/dist/react-native/models/lro.js.map +1 -0
  131. package/dist/react-native/models/models.d.ts +14 -0
  132. package/dist/react-native/models/models.d.ts.map +1 -0
  133. package/dist/react-native/models/models.js +4 -0
  134. package/dist/react-native/models/models.js.map +1 -0
  135. package/dist/react-native/package.json +3 -0
  136. package/package.json +79 -57
  137. package/dist/index.js +0 -89
  138. package/dist/index.js.map +0 -1
  139. package/dist-esm/credential/createAzureMapsKeyCredentialPolicy.js.map +0 -1
  140. package/dist-esm/credential/createMapsClientIdPolicy.js.map +0 -1
  141. package/dist-esm/credential/index.js +0 -5
  142. package/dist-esm/credential/index.js.map +0 -1
  143. package/dist-esm/index.js +0 -5
  144. package/dist-esm/index.js.map +0 -1
  145. package/dist-esm/models/geojsons.js +0 -4
  146. package/dist-esm/models/geojsons.js.map +0 -1
  147. package/dist-esm/models/index.js +0 -6
  148. package/dist-esm/models/index.js.map +0 -1
  149. package/dist-esm/models/lro.js.map +0 -1
  150. package/dist-esm/models/models.js +0 -4
  151. package/dist-esm/models/models.js.map +0 -1
  152. package/types/3.1/credential/index.d.ts +0 -3
  153. package/types/3.1/index.d.ts +0 -3
  154. package/types/3.1/models/index.d.ts +0 -4
  155. package/types/latest/credential/createAzureMapsKeyCredentialPolicy.d.ts.map +0 -1
  156. package/types/latest/credential/createMapsClientIdPolicy.d.ts.map +0 -1
  157. package/types/latest/credential/index.d.ts +0 -3
  158. package/types/latest/index.d.ts +0 -3
  159. package/types/latest/index.d.ts.map +0 -1
  160. package/types/latest/models/geojsons.d.ts.map +0 -1
  161. package/types/latest/models/index.d.ts +0 -4
  162. package/types/latest/models/index.d.ts.map +0 -1
  163. package/types/latest/models/lro.d.ts.map +0 -1
  164. package/types/latest/models/models.d.ts.map +0 -1
@@ -1,111 +1,104 @@
1
- /** Geometry types */
2
- export declare type GeometryType = "Point" | "MultiPoint" | "LineString" | "MultiLineString" | "Polygon" | "MultiPolygon" | "GeometryCollection";
3
- /** GeoJSON types */
4
- export declare type GeoJsonType = GeometryType | "Feature" | "FeatureCollection";
5
- /** 2D bounding box */
6
- export declare type BBox2D = [
7
- /*southWestLongitude*/ number,
8
- /*southWestLatitude*/ number,
9
- /*northEastLongitude*/ number,
10
- /*northEastLatitude*/ number
11
- ];
12
- /** 3D bounding box */
13
- export declare type BBox3D = [
14
- /*southWestLongitude*/ number,
15
- /*southWestLatitude*/ number,
16
- /*southWestElevation*/ number,
17
- /*northEastLongitude*/ number,
18
- /*northEastLatitude*/ number,
19
- /*northEastElevation*/ number
20
- ];
21
- /** Bounding box including information on the coordinate range for its geometries */
22
- export declare type BBox = BBox2D | BBox3D;
23
- /** A GeoJSON object represents a Geometry, Feature, or collection of
24
- Features. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3) */
25
- export interface GeoJsonObject {
26
- /** Representing the type of this GeoJSON object, including the seven geometry type and "Feature", "FeatureCollection". [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-1.4) */
27
- type: GeoJsonType;
28
- /** Include information on the coordinate range for its Geometries, Features, or FeatureCollections. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-5) */
29
- bbox?: BBox;
30
- }
31
- /** 2D position */
32
- export declare type Position2D = [
33
- /*longitude*/ number,
34
- /*latitude*/ number
35
- ];
36
- /** 3D position */
37
- export declare type Position3D = [
38
- /*longitude*/ number,
39
- /*latitude*/ number,
40
- /*elevation*/ number
41
- ];
42
- /** An array of number representing a point */
43
- export declare type Position = Position2D | Position3D;
44
- /** GeoJSON Point. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.1.2) */
45
- export interface GeoJsonPoint extends GeoJsonObject {
46
- type: "Point";
47
- /** For type "Point", the "coordinates" member is a single position. */
48
- coordinates: Position;
49
- }
50
- /** GeoJSON MultiPoint. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.1.3) */
51
- export interface GeoJsonMultiPoint extends GeoJsonObject {
52
- type: "MultiPoint";
53
- /** For type "MultiPoint", the "coordinates" member is an array of positions. */
54
- coordinates: Position[];
55
- }
56
- /** GeoJSON LineString. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.1.4) */
57
- export interface GeoJsonLineString extends GeoJsonObject {
58
- type: "LineString";
59
- /** For type "LineString", the "coordinates" member is an array of two or more positions. */
60
- coordinates: Position[];
61
- }
62
- /** GeoJSON MultiLineString. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.1.5) */
63
- export interface GeoJsonMultiLineString extends GeoJsonObject {
64
- type: "MultiLineString";
65
- /** For type "MultiLineString", the "coordinates" member is an array of LineString coordinate arrays. */
66
- coordinates: Position[][];
67
- }
68
- /**
69
- * GeoJSON Polygon. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.1.6)
70
- *
71
- * To specify a constraint specific to Polygons, it is useful to introduce the concept of a linear ring:
72
- * - A linear ring is a closed LineString with four or more positions.
73
- * - The first and last positions are equivalent, and they MUST contain identical values; their representation SHOULD also be identical.
74
- * - A linear ring is the boundary of a surface or the boundary of a hole in a surface.
75
- * - A linear ring MUST follow the right-hand rule with respect to the area it bounds, i.e., exterior rings are counterclockwise, and holes are clockwise.
76
- * */
77
- export interface GeoJsonPolygon extends GeoJsonObject {
78
- type: "Polygon";
79
- /** For type "Polygon", the "coordinates" member MUST be an array of linear ring coordinate arrays. */
80
- coordinates: Position[][];
81
- }
82
- /** GeoJSON MultiPolygon. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.1.7) */
83
- export interface GeoJsonMultiPolygon extends GeoJsonObject {
84
- type: "MultiPolygon";
85
- /** For type "MultiPolygon", the "coordinates" member is an array of Polygon coordinate arrays. */
86
- coordinates: Position[][][];
87
- }
88
- /** GeoJSON Geometry */
89
- export declare type GeoJsonGeometry = GeoJsonPoint | GeoJsonMultiPoint | GeoJsonLineString | GeoJsonMultiLineString | GeoJsonPolygon | GeoJsonMultiPolygon;
90
- /** GeoJSON GeometryCollection. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.1.8) */
91
- export interface GeoJsonGeometryCollection extends GeoJsonObject {
92
- type: "GeometryCollection";
93
- geometries: GeoJsonGeometry[];
94
- }
95
- /**
96
- * GeoJSON Feature
97
- * A Feature object represents a spatially bounded thing. Every Feature
98
- object is a GeoJSON object. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.2)
99
- */
100
- export interface GeoJsonFeature extends GeoJsonObject {
101
- type: "Feature";
102
- geometry?: GeoJsonGeometry;
103
- properties?: Record<string, any>;
104
- id?: number | string;
105
- }
106
- /** GeoJSON FeatureCollection. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.3) */
107
- export interface GeoJsonFeatureCollection extends GeoJsonObject {
108
- type: "FeatureCollection";
109
- features: GeoJsonFeature[];
110
- }
111
- //# sourceMappingURL=geojsons.d.ts.map
1
+ /** Geometry types */
2
+ export type GeometryType = "Point" | "MultiPoint" | "LineString" | "MultiLineString" | "Polygon" | "MultiPolygon" | "GeometryCollection";
3
+ /** GeoJSON types */
4
+ export type GeoJsonType = GeometryType | "Feature" | "FeatureCollection";
5
+ /** 2D bounding box */
6
+ export type BBox2D = [
7
+ southWestLongitude: number,
8
+ southWestLatitude: number,
9
+ northEastLongitude: number,
10
+ northEastLatitude: number
11
+ ];
12
+ /** 3D bounding box */
13
+ export type BBox3D = [
14
+ southWestLongitude: number,
15
+ southWestLatitude: number,
16
+ southWestElevation: number,
17
+ northEastLongitude: number,
18
+ northEastLatitude: number,
19
+ northEastElevation: number
20
+ ];
21
+ /** Bounding box including information on the coordinate range for its geometries */
22
+ export type BBox = BBox2D | BBox3D;
23
+ /** A GeoJSON object represents a Geometry, Feature, or collection of
24
+ Features. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3) */
25
+ export interface GeoJsonObject {
26
+ /** Representing the type of this GeoJSON object, including the seven geometry type and "Feature", "FeatureCollection". [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-1.4) */
27
+ type: GeoJsonType;
28
+ /** Include information on the coordinate range for its Geometries, Features, or FeatureCollections. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-5) */
29
+ bbox?: BBox;
30
+ }
31
+ /** 2D position */
32
+ export type Position2D = [longitude: number, latitude: number];
33
+ /** 3D position */
34
+ export type Position3D = [longitude: number, latitude: number, elevation: number];
35
+ /** An array of number representing a point */
36
+ export type Position = Position2D | Position3D;
37
+ /** GeoJSON Point. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.1.2) */
38
+ export interface GeoJsonPoint extends GeoJsonObject {
39
+ type: "Point";
40
+ /** For type "Point", the "coordinates" member is a single position. */
41
+ coordinates: Position;
42
+ }
43
+ /** GeoJSON MultiPoint. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.1.3) */
44
+ export interface GeoJsonMultiPoint extends GeoJsonObject {
45
+ type: "MultiPoint";
46
+ /** For type "MultiPoint", the "coordinates" member is an array of positions. */
47
+ coordinates: Position[];
48
+ }
49
+ /** GeoJSON LineString. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.1.4) */
50
+ export interface GeoJsonLineString extends GeoJsonObject {
51
+ type: "LineString";
52
+ /** For type "LineString", the "coordinates" member is an array of two or more positions. */
53
+ coordinates: Position[];
54
+ }
55
+ /** GeoJSON MultiLineString. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.1.5) */
56
+ export interface GeoJsonMultiLineString extends GeoJsonObject {
57
+ type: "MultiLineString";
58
+ /** For type "MultiLineString", the "coordinates" member is an array of LineString coordinate arrays. */
59
+ coordinates: Position[][];
60
+ }
61
+ /**
62
+ * GeoJSON Polygon. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.1.6)
63
+ *
64
+ * To specify a constraint specific to Polygons, it is useful to introduce the concept of a linear ring:
65
+ * - A linear ring is a closed LineString with four or more positions.
66
+ * - The first and last positions are equivalent, and they MUST contain identical values; their representation SHOULD also be identical.
67
+ * - A linear ring is the boundary of a surface or the boundary of a hole in a surface.
68
+ * - A linear ring MUST follow the right-hand rule with respect to the area it bounds, i.e., exterior rings are counterclockwise, and holes are clockwise.
69
+ * */
70
+ export interface GeoJsonPolygon extends GeoJsonObject {
71
+ type: "Polygon";
72
+ /** For type "Polygon", the "coordinates" member MUST be an array of linear ring coordinate arrays. */
73
+ coordinates: Position[][];
74
+ }
75
+ /** GeoJSON MultiPolygon. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.1.7) */
76
+ export interface GeoJsonMultiPolygon extends GeoJsonObject {
77
+ type: "MultiPolygon";
78
+ /** For type "MultiPolygon", the "coordinates" member is an array of Polygon coordinate arrays. */
79
+ coordinates: Position[][][];
80
+ }
81
+ /** GeoJSON Geometry */
82
+ export type GeoJsonGeometry = GeoJsonPoint | GeoJsonMultiPoint | GeoJsonLineString | GeoJsonMultiLineString | GeoJsonPolygon | GeoJsonMultiPolygon;
83
+ /** GeoJSON GeometryCollection. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.1.8) */
84
+ export interface GeoJsonGeometryCollection extends GeoJsonObject {
85
+ type: "GeometryCollection";
86
+ geometries: GeoJsonGeometry[];
87
+ }
88
+ /**
89
+ * GeoJSON Feature
90
+ * A Feature object represents a spatially bounded thing. Every Feature
91
+ object is a GeoJSON object. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.2)
92
+ */
93
+ export interface GeoJsonFeature extends GeoJsonObject {
94
+ type: "Feature";
95
+ geometry?: GeoJsonGeometry;
96
+ properties?: Record<string, any>;
97
+ id?: number | string;
98
+ }
99
+ /** GeoJSON FeatureCollection. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.3) */
100
+ export interface GeoJsonFeatureCollection extends GeoJsonObject {
101
+ type: "FeatureCollection";
102
+ features: GeoJsonFeature[];
103
+ }
104
+ //# sourceMappingURL=geojsons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geojsons.d.ts","sourceRoot":"","sources":["../../../src/models/geojsons.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ //# sourceMappingURL=geojsons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geojsons.js","sourceRoot":"","sources":["../../../src/models/geojsons.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Definitions based on [RFC 7946](https://datatracker.ietf.org/doc/html/rfc7946)\n\n/** Geometry types */\nexport type GeometryType =\n | \"Point\"\n | \"MultiPoint\"\n | \"LineString\"\n | \"MultiLineString\"\n | \"Polygon\"\n | \"MultiPolygon\"\n | \"GeometryCollection\";\n\n/** GeoJSON types */\nexport type GeoJsonType = GeometryType | \"Feature\" | \"FeatureCollection\";\n\n/** 2D bounding box */\nexport type BBox2D = [\n southWestLongitude: number,\n southWestLatitude: number,\n northEastLongitude: number,\n northEastLatitude: number,\n];\n/** 3D bounding box */\nexport type BBox3D = [\n southWestLongitude: number,\n southWestLatitude: number,\n southWestElevation: number,\n northEastLongitude: number,\n northEastLatitude: number,\n northEastElevation: number,\n];\n/** Bounding box including information on the coordinate range for its geometries */\nexport type BBox = BBox2D | BBox3D;\n\n/** A GeoJSON object represents a Geometry, Feature, or collection of\n Features. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3) */\nexport interface GeoJsonObject {\n /** Representing the type of this GeoJSON object, including the seven geometry type and \"Feature\", \"FeatureCollection\". [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-1.4) */\n type: GeoJsonType;\n /** Include information on the coordinate range for its Geometries, Features, or FeatureCollections. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-5) */\n bbox?: BBox;\n}\n/** 2D position */\nexport type Position2D = [longitude: number, latitude: number];\n/** 3D position */\nexport type Position3D = [longitude: number, latitude: number, elevation: number];\n/** An array of number representing a point */\nexport type Position = Position2D | Position3D;\n\n/** GeoJSON Point. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.1.2) */\nexport interface GeoJsonPoint extends GeoJsonObject {\n type: \"Point\";\n /** For type \"Point\", the \"coordinates\" member is a single position. */\n coordinates: Position;\n}\n\n/** GeoJSON MultiPoint. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.1.3) */\nexport interface GeoJsonMultiPoint extends GeoJsonObject {\n type: \"MultiPoint\";\n /** For type \"MultiPoint\", the \"coordinates\" member is an array of positions. */\n coordinates: Position[];\n}\n\n/** GeoJSON LineString. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.1.4) */\nexport interface GeoJsonLineString extends GeoJsonObject {\n type: \"LineString\";\n /** For type \"LineString\", the \"coordinates\" member is an array of two or more positions. */\n coordinates: Position[];\n}\n\n/** GeoJSON MultiLineString. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.1.5) */\nexport interface GeoJsonMultiLineString extends GeoJsonObject {\n type: \"MultiLineString\";\n /** For type \"MultiLineString\", the \"coordinates\" member is an array of LineString coordinate arrays. */\n coordinates: Position[][];\n}\n\n/**\n * GeoJSON Polygon. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.1.6)\n *\n * To specify a constraint specific to Polygons, it is useful to introduce the concept of a linear ring:\n * - A linear ring is a closed LineString with four or more positions.\n * - The first and last positions are equivalent, and they MUST contain identical values; their representation SHOULD also be identical.\n * - A linear ring is the boundary of a surface or the boundary of a hole in a surface.\n * - A linear ring MUST follow the right-hand rule with respect to the area it bounds, i.e., exterior rings are counterclockwise, and holes are clockwise.\n * */\nexport interface GeoJsonPolygon extends GeoJsonObject {\n type: \"Polygon\";\n /** For type \"Polygon\", the \"coordinates\" member MUST be an array of linear ring coordinate arrays. */\n coordinates: Position[][];\n}\n\n/** GeoJSON MultiPolygon. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.1.7) */\nexport interface GeoJsonMultiPolygon extends GeoJsonObject {\n type: \"MultiPolygon\";\n /** For type \"MultiPolygon\", the \"coordinates\" member is an array of Polygon coordinate arrays. */\n coordinates: Position[][][];\n}\n\n/** GeoJSON Geometry */\nexport type GeoJsonGeometry =\n | GeoJsonPoint\n | GeoJsonMultiPoint\n | GeoJsonLineString\n | GeoJsonMultiLineString\n | GeoJsonPolygon\n | GeoJsonMultiPolygon;\n\n/** GeoJSON GeometryCollection. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.1.8) */\nexport interface GeoJsonGeometryCollection extends GeoJsonObject {\n type: \"GeometryCollection\";\n /* It's not recommended to include GeometryCollection recursively */\n geometries: GeoJsonGeometry[];\n}\n\n/** \n * GeoJSON Feature\n * A Feature object represents a spatially bounded thing. Every Feature\n object is a GeoJSON object. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.2)\n */\nexport interface GeoJsonFeature extends GeoJsonObject {\n type: \"Feature\";\n geometry?: GeoJsonGeometry;\n properties?: Record<string, any>;\n id?: number | string;\n}\n\n/** GeoJSON FeatureCollection. [Reference](https://www.rfc-editor.org/rfc/rfc7946#section-3.3) */\nexport interface GeoJsonFeatureCollection extends GeoJsonObject {\n type: \"FeatureCollection\";\n features: GeoJsonFeature[];\n}\n"]}
@@ -0,0 +1,4 @@
1
+ export * from "./geojsons.js";
2
+ export * from "./models.js";
3
+ export * from "./lro.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAGA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ const tslib_1 = require("tslib");
6
+ tslib_1.__exportStar(require("./geojsons.js"), exports);
7
+ tslib_1.__exportStar(require("./models.js"), exports);
8
+ tslib_1.__exportStar(require("./lro.js"), exports);
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,wDAA8B;AAC9B,sDAA4B;AAC5B,mDAAyB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./geojsons.js\";\nexport * from \"./models.js\";\nexport * from \"./lro.js\";\n"]}
@@ -1,22 +1,23 @@
1
- import { OperationOptions, OperationSpec, ServiceClient } from "@azure/core-client";
2
- import { LroResponse } from "@azure/core-lro";
3
- /**
4
- * Extract several fields of the response to the rawResponse
5
- *
6
- * @param getResponse - A async function that actually call the backend API.
7
- * @param options - The options for the getResponse callback
8
- * @returns A promise for the API call.
9
- */
10
- export declare function getRawResponse<TOptions extends OperationOptions, TResponse>(getResponse: (options: TOptions) => Promise<TResponse>, options: TOptions): Promise<LroResponse<TResponse>>;
11
- /**
12
- * Helper function to create a method that can be passed to sendPollRequest in createHttpPoller.
13
- *
14
- * @param settings - The settings of the poll request, including client, options and the spec
15
- * @returns A callback that accept the path as input and return the promise of Lro response.
16
- */
17
- export declare function createSendPollRequest<TOptions extends OperationOptions, TClient extends ServiceClient>(settings: {
18
- client: TClient;
19
- options: TOptions;
20
- spec: OperationSpec;
21
- }): (path: string) => Promise<LroResponse<unknown>>;
22
- //# sourceMappingURL=lro.d.ts.map
1
+ import type { ServiceClient } from "@azure/core-client";
2
+ import { type OperationOptions, type OperationSpec } from "@azure/core-client";
3
+ import type { LroResponse } from "@azure/core-lro";
4
+ /**
5
+ * Extract several fields of the response to the rawResponse
6
+ *
7
+ * @param getResponse - A async function that actually call the backend API.
8
+ * @param options - The options for the getResponse callback
9
+ * @returns A promise for the API call.
10
+ */
11
+ export declare function getRawResponse<TOptions extends OperationOptions, TResponse>(getResponse: (options: TOptions) => Promise<TResponse>, options: TOptions): Promise<LroResponse<TResponse>>;
12
+ /**
13
+ * Helper function to create a method that can be passed to sendPollRequest in createHttpPoller.
14
+ *
15
+ * @param settings - The settings of the poll request, including client, options and the spec
16
+ * @returns A callback that accept the path as input and return the promise of Lro response.
17
+ */
18
+ export declare function createSendPollRequest<TOptions extends OperationOptions, TClient extends ServiceClient>(settings: {
19
+ client: TClient;
20
+ options: TOptions;
21
+ spec: OperationSpec;
22
+ }): (path: string) => Promise<LroResponse<unknown>>;
23
+ //# sourceMappingURL=lro.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lro.d.ts","sourceRoot":"","sources":["../../../src/models/lro.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,aAAa,EACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAC,QAAQ,SAAS,gBAAgB,EAAE,SAAS,EAC/E,WAAW,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,OAAO,CAAC,SAAS,CAAC,EACtD,OAAO,EAAE,QAAQ,GAChB,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAkBjC;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,SAAS,gBAAgB,EACjC,OAAO,SAAS,aAAa,EAC7B,QAAQ,EAAE;IACV,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,QAAQ,CAAC;IAClB,IAAI,EAAE,aAAa,CAAC;CACrB,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAOlD"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRawResponse = getRawResponse;
4
+ exports.createSendPollRequest = createSendPollRequest;
5
+ /**
6
+ * Extract several fields of the response to the rawResponse
7
+ *
8
+ * @param getResponse - A async function that actually call the backend API.
9
+ * @param options - The options for the getResponse callback
10
+ * @returns A promise for the API call.
11
+ */
12
+ async function getRawResponse(getResponse, options) {
13
+ const { onResponse } = options || {};
14
+ let rawResponse;
15
+ const flatResponse = await getResponse({
16
+ ...options,
17
+ onResponse: (response, flatResponseParam) => {
18
+ rawResponse = response;
19
+ onResponse?.(response, flatResponseParam);
20
+ },
21
+ });
22
+ return {
23
+ flatResponse,
24
+ rawResponse: {
25
+ statusCode: rawResponse.status,
26
+ headers: rawResponse.headers.toJSON(),
27
+ body: rawResponse.parsedBody,
28
+ },
29
+ };
30
+ }
31
+ /**
32
+ * Helper function to create a method that can be passed to sendPollRequest in createHttpPoller.
33
+ *
34
+ * @param settings - The settings of the poll request, including client, options and the spec
35
+ * @returns A callback that accept the path as input and return the promise of Lro response.
36
+ */
37
+ function createSendPollRequest(settings) {
38
+ const { client, options, spec } = settings;
39
+ return async (path) => getRawResponse((paramOptions) => client.sendOperationRequest({ options: paramOptions }, { path, ...spec }), options);
40
+ }
41
+ //# sourceMappingURL=lro.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lro.js","sourceRoot":"","sources":["../../../src/models/lro.ts"],"names":[],"mappings":";;AAiBA,wCAqBC;AAQD,sDAcC;AAlDD;;;;;;GAMG;AACI,KAAK,UAAU,cAAc,CAClC,WAAsD,EACtD,OAAiB;IAEjB,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;IACrC,IAAI,WAAkC,CAAC;IACvC,MAAM,YAAY,GAAG,MAAM,WAAW,CAAC;QACrC,GAAG,OAAO;QACV,UAAU,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,EAAE;YAC1C,WAAW,GAAG,QAAQ,CAAC;YACvB,UAAU,EAAE,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;QAC5C,CAAC;KACF,CAAC,CAAC;IACH,OAAO;QACL,YAAY;QACZ,WAAW,EAAE;YACX,UAAU,EAAE,WAAY,CAAC,MAAM;YAC/B,OAAO,EAAE,WAAY,CAAC,OAAO,CAAC,MAAM,EAAE;YACtC,IAAI,EAAE,WAAY,CAAC,UAAU;SAC9B;KACF,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,SAAgB,qBAAqB,CAGnC,QAID;IACC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,QAAQ,CAAC;IAC3C,OAAO,KAAK,EAAE,IAAY,EAAE,EAAE,CAC5B,cAAc,CACZ,CAAC,YAAY,EAAE,EAAE,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,CAAC,EAC3F,OAAO,CACR,CAAC;AACN,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport type { ServiceClient } from \"@azure/core-client\";\nimport {\n type FullOperationResponse,\n type OperationOptions,\n type OperationSpec,\n} from \"@azure/core-client\";\nimport type { LroResponse } from \"@azure/core-lro\";\n\n/**\n * Extract several fields of the response to the rawResponse\n *\n * @param getResponse - A async function that actually call the backend API.\n * @param options - The options for the getResponse callback\n * @returns A promise for the API call.\n */\nexport async function getRawResponse<TOptions extends OperationOptions, TResponse>(\n getResponse: (options: TOptions) => Promise<TResponse>,\n options: TOptions,\n): Promise<LroResponse<TResponse>> {\n const { onResponse } = options || {};\n let rawResponse: FullOperationResponse;\n const flatResponse = await getResponse({\n ...options,\n onResponse: (response, flatResponseParam) => {\n rawResponse = response;\n onResponse?.(response, flatResponseParam);\n },\n });\n return {\n flatResponse,\n rawResponse: {\n statusCode: rawResponse!.status,\n headers: rawResponse!.headers.toJSON(),\n body: rawResponse!.parsedBody,\n },\n };\n}\n\n/**\n * Helper function to create a method that can be passed to sendPollRequest in createHttpPoller.\n *\n * @param settings - The settings of the poll request, including client, options and the spec\n * @returns A callback that accept the path as input and return the promise of Lro response.\n */\nexport function createSendPollRequest<\n TOptions extends OperationOptions,\n TClient extends ServiceClient,\n>(settings: {\n client: TClient;\n options: TOptions;\n spec: OperationSpec;\n}): (path: string) => Promise<LroResponse<unknown>> {\n const { client, options, spec } = settings;\n return async (path: string) =>\n getRawResponse(\n (paramOptions) => client.sendOperationRequest({ options: paramOptions }, { path, ...spec }),\n options,\n );\n}\n"]}
@@ -1,17 +1,14 @@
1
- /**
2
- * Latitude/Longitude Pair
3
- */
4
- export declare type LatLon = [
5
- /*latitude*/ number,
6
- /*longitude*/ number
7
- ];
8
- /**
9
- * Bounding Box
10
- */
11
- export interface BoundingBox {
12
- /** Top left corner of the bounding box */
13
- topLeft: LatLon;
14
- /** Bottom right corner of the bounding box */
15
- bottomRight: LatLon;
16
- }
17
- //# sourceMappingURL=models.d.ts.map
1
+ /**
2
+ * Latitude/Longitude Pair
3
+ */
4
+ export type LatLon = [latitude: number, longitude: number];
5
+ /**
6
+ * Bounding Box
7
+ */
8
+ export interface BoundingBox {
9
+ /** Top left corner of the bounding box */
10
+ topLeft: LatLon;
11
+ /** Bottom right corner of the bounding box */
12
+ bottomRight: LatLon;
13
+ }
14
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,0CAA0C;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,WAAW,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ //# sourceMappingURL=models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Latitude/Longitude Pair\n */\nexport type LatLon = [latitude: number, longitude: number];\n\n/**\n * Bounding Box\n */\nexport interface BoundingBox {\n /** Top left corner of the bounding box */\n topLeft: LatLon;\n /** Bottom right corner of the bounding box */\n bottomRight: LatLon;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -0,0 +1,11 @@
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "7.52.10"
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,8 @@
1
+ import type { PipelinePolicy } from "@azure/core-rest-pipeline";
2
+ import type { KeyCredential } from "@azure/core-auth";
3
+ /**
4
+ * Create an HTTP pipeline policy to authenticate a request
5
+ * using an `AzureKeyCredential` for Azure Maps
6
+ */
7
+ export declare function createAzureMapsKeyCredentialPolicy(azureKeyCredential: KeyCredential): PipelinePolicy;
8
+ //# sourceMappingURL=createAzureMapsKeyCredentialPolicy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createAzureMapsKeyCredentialPolicy.d.ts","sourceRoot":"","sources":["../../../src/credential/createAzureMapsKeyCredentialPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,cAAc,EAIf,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAStD;;;GAGG;AACH,wBAAgB,kCAAkC,CAChD,kBAAkB,EAAE,aAAa,GAChC,cAAc,CAUhB"}
@@ -0,0 +1,23 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ const API_KEY_HEADER_NAME = "subscription-key";
4
+ /**
5
+ * The programmatic identifier of the mapsAzureKeyCredentialPolicy.
6
+ */
7
+ const azureMapsKeyCredentialPolicyName = "mapsAzureKeyCredentialPolicy";
8
+ /**
9
+ * Create an HTTP pipeline policy to authenticate a request
10
+ * using an `AzureKeyCredential` for Azure Maps
11
+ */
12
+ export function createAzureMapsKeyCredentialPolicy(azureKeyCredential) {
13
+ return {
14
+ name: azureMapsKeyCredentialPolicyName,
15
+ async sendRequest(request, next) {
16
+ if (!request.headers.has(API_KEY_HEADER_NAME)) {
17
+ request.headers.set(API_KEY_HEADER_NAME, azureKeyCredential.key);
18
+ }
19
+ return next(request);
20
+ },
21
+ };
22
+ }
23
+ //# sourceMappingURL=createAzureMapsKeyCredentialPolicy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createAzureMapsKeyCredentialPolicy.js","sourceRoot":"","sources":["../../../src/credential/createAzureMapsKeyCredentialPolicy.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;AAE/C;;GAEG;AACH,MAAM,gCAAgC,GAAG,8BAA8B,CAAC;AAExE;;;GAGG;AACH,MAAM,UAAU,kCAAkC,CAChD,kBAAiC;IAEjC,OAAO;QACL,IAAI,EAAE,gCAAgC;QACtC,KAAK,CAAC,WAAW,CAAC,OAAwB,EAAE,IAAiB;YAC3D,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,EAAE,CAAC;gBAC9C,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,GAAG,CAAC,CAAC;YACnE,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;QACvB,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n PipelinePolicy,\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport type { KeyCredential } from \"@azure/core-auth\";\n\nconst API_KEY_HEADER_NAME = \"subscription-key\";\n\n/**\n * The programmatic identifier of the mapsAzureKeyCredentialPolicy.\n */\nconst azureMapsKeyCredentialPolicyName = \"mapsAzureKeyCredentialPolicy\";\n\n/**\n * Create an HTTP pipeline policy to authenticate a request\n * using an `AzureKeyCredential` for Azure Maps\n */\nexport function createAzureMapsKeyCredentialPolicy(\n azureKeyCredential: KeyCredential,\n): PipelinePolicy {\n return {\n name: azureMapsKeyCredentialPolicyName,\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n if (!request.headers.has(API_KEY_HEADER_NAME)) {\n request.headers.set(API_KEY_HEADER_NAME, azureKeyCredential.key);\n }\n return next(request);\n },\n };\n}\n"]}
@@ -0,0 +1,7 @@
1
+ import type { PipelinePolicy } from "@azure/core-rest-pipeline";
2
+ /**
3
+ * Create an HTTP pipeline policy to add x-ms-client-id header
4
+ * for `TokenCredential` based authentication for Azure Maps
5
+ */
6
+ export declare function createMapsClientIdPolicy(mapsClientId: string): PipelinePolicy;
7
+ //# sourceMappingURL=createMapsClientIdPolicy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createMapsClientIdPolicy.d.ts","sourceRoot":"","sources":["../../../src/credential/createMapsClientIdPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,cAAc,EAIf,MAAM,2BAA2B,CAAC;AASnC;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,YAAY,EAAE,MAAM,GAAG,cAAc,CAU7E"}
@@ -0,0 +1,23 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ const MAPS_CLIENT_ID_HEADER_NAME = "x-ms-client-id";
4
+ /**
5
+ * The programmatic identifier of the mapsTokenCredentialPolicy.
6
+ */
7
+ const mapsClientIdPolicyName = "mapsClientIdPolicy";
8
+ /**
9
+ * Create an HTTP pipeline policy to add x-ms-client-id header
10
+ * for `TokenCredential` based authentication for Azure Maps
11
+ */
12
+ export function createMapsClientIdPolicy(mapsClientId) {
13
+ return {
14
+ name: mapsClientIdPolicyName,
15
+ async sendRequest(request, next) {
16
+ if (!request.headers.has(MAPS_CLIENT_ID_HEADER_NAME)) {
17
+ request.headers.set(MAPS_CLIENT_ID_HEADER_NAME, mapsClientId);
18
+ }
19
+ return next(request);
20
+ },
21
+ };
22
+ }
23
+ //# sourceMappingURL=createMapsClientIdPolicy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createMapsClientIdPolicy.js","sourceRoot":"","sources":["../../../src/credential/createMapsClientIdPolicy.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,MAAM,0BAA0B,GAAG,gBAAgB,CAAC;AAEpD;;GAEG;AACH,MAAM,sBAAsB,GAAG,oBAAoB,CAAC;AAEpD;;;GAGG;AACH,MAAM,UAAU,wBAAwB,CAAC,YAAoB;IAC3D,OAAO;QACL,IAAI,EAAE,sBAAsB;QAC5B,KAAK,CAAC,WAAW,CAAC,OAAwB,EAAE,IAAiB;YAC3D,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,EAAE,CAAC;gBACrD,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,YAAY,CAAC,CAAC;YAChE,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;QACvB,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n PipelinePolicy,\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\n\nconst MAPS_CLIENT_ID_HEADER_NAME = \"x-ms-client-id\";\n\n/**\n * The programmatic identifier of the mapsTokenCredentialPolicy.\n */\nconst mapsClientIdPolicyName = \"mapsClientIdPolicy\";\n\n/**\n * Create an HTTP pipeline policy to add x-ms-client-id header\n * for `TokenCredential` based authentication for Azure Maps\n */\nexport function createMapsClientIdPolicy(mapsClientId: string): PipelinePolicy {\n return {\n name: mapsClientIdPolicyName,\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n if (!request.headers.has(MAPS_CLIENT_ID_HEADER_NAME)) {\n request.headers.set(MAPS_CLIENT_ID_HEADER_NAME, mapsClientId);\n }\n return next(request);\n },\n };\n}\n"]}
@@ -0,0 +1,3 @@
1
+ export * from "./createAzureMapsKeyCredentialPolicy.js";
2
+ export * from "./createMapsClientIdPolicy.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/credential/index.ts"],"names":[],"mappings":"AAGA,cAAc,yCAAyC,CAAC;AACxD,cAAc,+BAA+B,CAAC"}
@@ -0,0 +1,5 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export * from "./createAzureMapsKeyCredentialPolicy.js";
4
+ export * from "./createMapsClientIdPolicy.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/credential/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,yCAAyC,CAAC;AACxD,cAAc,+BAA+B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./createAzureMapsKeyCredentialPolicy.js\";\nexport * from \"./createMapsClientIdPolicy.js\";\n"]}
@@ -0,0 +1,3 @@
1
+ export * from "./credential/index.js";
2
+ export * from "./models/index.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,5 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export * from "./credential/index.js";
4
+ export * from "./models/index.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./credential/index.js\";\nexport * from \"./models/index.js\";\n"]}