@itwin/core-common 3.0.0-extension.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/CHANGELOG.md +170 -17
  2. package/LICENSE.md +1 -1
  3. package/lib/cjs/BackgroundMapSettings.d.ts +1 -1
  4. package/lib/cjs/BackgroundMapSettings.d.ts.map +1 -1
  5. package/lib/cjs/BackgroundMapSettings.js.map +1 -1
  6. package/lib/cjs/ConcurrentQuery.d.ts +28 -11
  7. package/lib/cjs/ConcurrentQuery.d.ts.map +1 -1
  8. package/lib/cjs/ConcurrentQuery.js +26 -12
  9. package/lib/cjs/ConcurrentQuery.js.map +1 -1
  10. package/lib/cjs/ContextRealityModel.d.ts +36 -16
  11. package/lib/cjs/ContextRealityModel.d.ts.map +1 -1
  12. package/lib/cjs/ContextRealityModel.js +46 -7
  13. package/lib/cjs/ContextRealityModel.js.map +1 -1
  14. package/lib/cjs/DisplayStyleSettings.d.ts +30 -24
  15. package/lib/cjs/DisplayStyleSettings.d.ts.map +1 -1
  16. package/lib/cjs/DisplayStyleSettings.js +43 -16
  17. package/lib/cjs/DisplayStyleSettings.js.map +1 -1
  18. package/lib/cjs/ECSqlReader.d.ts +17 -5
  19. package/lib/cjs/ECSqlReader.d.ts.map +1 -1
  20. package/lib/cjs/ECSqlReader.js +55 -22
  21. package/lib/cjs/ECSqlReader.js.map +1 -1
  22. package/lib/cjs/ECSqlTypes.d.ts +3 -3
  23. package/lib/cjs/ECSqlTypes.js +3 -3
  24. package/lib/cjs/ECSqlTypes.js.map +1 -1
  25. package/lib/cjs/EntityProps.d.ts +8 -1
  26. package/lib/cjs/EntityProps.d.ts.map +1 -1
  27. package/lib/cjs/EntityProps.js.map +1 -1
  28. package/lib/cjs/Environment.d.ts +61 -0
  29. package/lib/cjs/Environment.d.ts.map +1 -0
  30. package/lib/cjs/Environment.js +74 -0
  31. package/lib/cjs/Environment.js.map +1 -0
  32. package/lib/cjs/FeatureSymbology.d.ts +97 -18
  33. package/lib/cjs/FeatureSymbology.d.ts.map +1 -1
  34. package/lib/cjs/FeatureSymbology.js +83 -27
  35. package/lib/cjs/FeatureSymbology.js.map +1 -1
  36. package/lib/cjs/GeoCoordinateServices.d.ts +66 -1
  37. package/lib/cjs/GeoCoordinateServices.d.ts.map +1 -1
  38. package/lib/cjs/GeoCoordinateServices.js +39 -1
  39. package/lib/cjs/GeoCoordinateServices.js.map +1 -1
  40. package/lib/cjs/Gradient.d.ts.map +1 -1
  41. package/lib/cjs/Gradient.js +10 -0
  42. package/lib/cjs/Gradient.js.map +1 -1
  43. package/lib/cjs/GroundPlane.d.ts +26 -15
  44. package/lib/cjs/GroundPlane.d.ts.map +1 -1
  45. package/lib/cjs/GroundPlane.js +40 -39
  46. package/lib/cjs/GroundPlane.js.map +1 -1
  47. package/lib/cjs/IModel.d.ts +33 -4
  48. package/lib/cjs/IModel.d.ts.map +1 -1
  49. package/lib/cjs/IModel.js +27 -10
  50. package/lib/cjs/IModel.js.map +1 -1
  51. package/lib/cjs/Localization.d.ts +1 -1
  52. package/lib/cjs/Localization.js.map +1 -1
  53. package/lib/cjs/MapLayerSettings.d.ts +2 -2
  54. package/lib/cjs/MapLayerSettings.js +5 -5
  55. package/lib/cjs/MapLayerSettings.js.map +1 -1
  56. package/lib/cjs/NativeAppProps.d.ts +2 -36
  57. package/lib/cjs/NativeAppProps.d.ts.map +1 -1
  58. package/lib/cjs/NativeAppProps.js.map +1 -1
  59. package/lib/cjs/PlanarClipMask.d.ts +73 -8
  60. package/lib/cjs/PlanarClipMask.d.ts.map +1 -1
  61. package/lib/cjs/PlanarClipMask.js +17 -24
  62. package/lib/cjs/PlanarClipMask.js.map +1 -1
  63. package/lib/cjs/RealityDataAccessProps.d.ts +42 -0
  64. package/lib/cjs/RealityDataAccessProps.d.ts.map +1 -0
  65. package/lib/cjs/RealityDataAccessProps.js +20 -0
  66. package/lib/cjs/RealityDataAccessProps.js.map +1 -0
  67. package/lib/cjs/RenderSchedule.d.ts +4 -0
  68. package/lib/cjs/RenderSchedule.d.ts.map +1 -1
  69. package/lib/cjs/RenderSchedule.js +5 -1
  70. package/lib/cjs/RenderSchedule.js.map +1 -1
  71. package/lib/cjs/RenderTexture.d.ts +8 -1
  72. package/lib/cjs/RenderTexture.d.ts.map +1 -1
  73. package/lib/cjs/RenderTexture.js.map +1 -1
  74. package/lib/cjs/SkyBox.d.ts +142 -34
  75. package/lib/cjs/SkyBox.d.ts.map +1 -1
  76. package/lib/cjs/SkyBox.js +192 -6
  77. package/lib/cjs/SkyBox.js.map +1 -1
  78. package/lib/cjs/TextureProps.d.ts +21 -2
  79. package/lib/cjs/TextureProps.d.ts.map +1 -1
  80. package/lib/cjs/TextureProps.js +19 -0
  81. package/lib/cjs/TextureProps.js.map +1 -1
  82. package/lib/cjs/ThematicDisplay.d.ts +6 -0
  83. package/lib/cjs/ThematicDisplay.d.ts.map +1 -1
  84. package/lib/cjs/ThematicDisplay.js +26 -0
  85. package/lib/cjs/ThematicDisplay.js.map +1 -1
  86. package/lib/cjs/TileProps.d.ts +6 -0
  87. package/lib/cjs/TileProps.d.ts.map +1 -1
  88. package/lib/cjs/TileProps.js.map +1 -1
  89. package/lib/cjs/ViewFlags.d.ts +8 -0
  90. package/lib/cjs/ViewFlags.d.ts.map +1 -1
  91. package/lib/cjs/ViewFlags.js +30 -10
  92. package/lib/cjs/ViewFlags.js.map +1 -1
  93. package/lib/cjs/core-common.d.ts +7 -0
  94. package/lib/cjs/core-common.d.ts.map +1 -1
  95. package/lib/cjs/core-common.js +7 -0
  96. package/lib/cjs/core-common.js.map +1 -1
  97. package/lib/cjs/geometry/FrustumPlanes.d.ts +1 -1
  98. package/lib/cjs/geometry/FrustumPlanes.d.ts.map +1 -1
  99. package/lib/cjs/geometry/FrustumPlanes.js +26 -13
  100. package/lib/cjs/geometry/FrustumPlanes.js.map +1 -1
  101. package/lib/cjs/geometry/GeometryStream.d.ts +3 -3
  102. package/lib/cjs/geometry/GeometryStream.d.ts.map +1 -1
  103. package/lib/cjs/geometry/GeometryStream.js.map +1 -1
  104. package/lib/cjs/ipc/IpcWebSocket.d.ts +12 -5
  105. package/lib/cjs/ipc/IpcWebSocket.d.ts.map +1 -1
  106. package/lib/cjs/ipc/IpcWebSocket.js +32 -8
  107. package/lib/cjs/ipc/IpcWebSocket.js.map +1 -1
  108. package/lib/cjs/ipc/IpcWebSocketTransport.d.ts +15 -0
  109. package/lib/cjs/ipc/IpcWebSocketTransport.d.ts.map +1 -0
  110. package/lib/cjs/ipc/IpcWebSocketTransport.js +142 -0
  111. package/lib/cjs/ipc/IpcWebSocketTransport.js.map +1 -0
  112. package/lib/cjs/rpc/core/RpcInvocation.d.ts +4 -4
  113. package/lib/cjs/rpc/core/RpcInvocation.d.ts.map +1 -1
  114. package/lib/cjs/rpc/core/RpcInvocation.js +4 -7
  115. package/lib/cjs/rpc/core/RpcInvocation.js.map +1 -1
  116. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.d.ts.map +1 -1
  117. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.js +3 -2
  118. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
  119. package/lib/cjs/tile/ElementGraphics.d.ts +5 -1
  120. package/lib/cjs/tile/ElementGraphics.d.ts.map +1 -1
  121. package/lib/cjs/tile/ElementGraphics.js.map +1 -1
  122. package/lib/cjs/tile/GltfTileIO.d.ts +16 -79
  123. package/lib/cjs/tile/GltfTileIO.d.ts.map +1 -1
  124. package/lib/cjs/tile/GltfTileIO.js +72 -153
  125. package/lib/cjs/tile/GltfTileIO.js.map +1 -1
  126. package/lib/cjs/tile/TileMetadata.d.ts +20 -8
  127. package/lib/cjs/tile/TileMetadata.d.ts.map +1 -1
  128. package/lib/cjs/tile/TileMetadata.js +50 -53
  129. package/lib/cjs/tile/TileMetadata.js.map +1 -1
  130. package/lib/esm/BackgroundMapSettings.d.ts +1 -1
  131. package/lib/esm/BackgroundMapSettings.d.ts.map +1 -1
  132. package/lib/esm/BackgroundMapSettings.js.map +1 -1
  133. package/lib/esm/ConcurrentQuery.d.ts +28 -11
  134. package/lib/esm/ConcurrentQuery.d.ts.map +1 -1
  135. package/lib/esm/ConcurrentQuery.js +26 -12
  136. package/lib/esm/ConcurrentQuery.js.map +1 -1
  137. package/lib/esm/ContextRealityModel.d.ts +36 -16
  138. package/lib/esm/ContextRealityModel.d.ts.map +1 -1
  139. package/lib/esm/ContextRealityModel.js +45 -6
  140. package/lib/esm/ContextRealityModel.js.map +1 -1
  141. package/lib/esm/DisplayStyleSettings.d.ts +30 -24
  142. package/lib/esm/DisplayStyleSettings.d.ts.map +1 -1
  143. package/lib/esm/DisplayStyleSettings.js +43 -16
  144. package/lib/esm/DisplayStyleSettings.js.map +1 -1
  145. package/lib/esm/ECSqlReader.d.ts +17 -5
  146. package/lib/esm/ECSqlReader.d.ts.map +1 -1
  147. package/lib/esm/ECSqlReader.js +56 -23
  148. package/lib/esm/ECSqlReader.js.map +1 -1
  149. package/lib/esm/ECSqlTypes.d.ts +3 -3
  150. package/lib/esm/ECSqlTypes.js +3 -3
  151. package/lib/esm/ECSqlTypes.js.map +1 -1
  152. package/lib/esm/EntityProps.d.ts +8 -1
  153. package/lib/esm/EntityProps.d.ts.map +1 -1
  154. package/lib/esm/EntityProps.js.map +1 -1
  155. package/lib/esm/Environment.d.ts +61 -0
  156. package/lib/esm/Environment.d.ts.map +1 -0
  157. package/lib/esm/Environment.js +70 -0
  158. package/lib/esm/Environment.js.map +1 -0
  159. package/lib/esm/FeatureSymbology.d.ts +97 -18
  160. package/lib/esm/FeatureSymbology.d.ts.map +1 -1
  161. package/lib/esm/FeatureSymbology.js +84 -28
  162. package/lib/esm/FeatureSymbology.js.map +1 -1
  163. package/lib/esm/GeoCoordinateServices.d.ts +66 -1
  164. package/lib/esm/GeoCoordinateServices.d.ts.map +1 -1
  165. package/lib/esm/GeoCoordinateServices.js +39 -1
  166. package/lib/esm/GeoCoordinateServices.js.map +1 -1
  167. package/lib/esm/Gradient.d.ts.map +1 -1
  168. package/lib/esm/Gradient.js +10 -0
  169. package/lib/esm/Gradient.js.map +1 -1
  170. package/lib/esm/GroundPlane.d.ts +26 -15
  171. package/lib/esm/GroundPlane.d.ts.map +1 -1
  172. package/lib/esm/GroundPlane.js +40 -39
  173. package/lib/esm/GroundPlane.js.map +1 -1
  174. package/lib/esm/IModel.d.ts +33 -4
  175. package/lib/esm/IModel.d.ts.map +1 -1
  176. package/lib/esm/IModel.js +27 -10
  177. package/lib/esm/IModel.js.map +1 -1
  178. package/lib/esm/Localization.d.ts +1 -1
  179. package/lib/esm/Localization.js.map +1 -1
  180. package/lib/esm/MapLayerSettings.d.ts +2 -2
  181. package/lib/esm/MapLayerSettings.js +5 -5
  182. package/lib/esm/MapLayerSettings.js.map +1 -1
  183. package/lib/esm/NativeAppProps.d.ts +2 -36
  184. package/lib/esm/NativeAppProps.d.ts.map +1 -1
  185. package/lib/esm/NativeAppProps.js.map +1 -1
  186. package/lib/esm/PlanarClipMask.d.ts +73 -8
  187. package/lib/esm/PlanarClipMask.d.ts.map +1 -1
  188. package/lib/esm/PlanarClipMask.js +17 -24
  189. package/lib/esm/PlanarClipMask.js.map +1 -1
  190. package/lib/esm/RealityDataAccessProps.d.ts +42 -0
  191. package/lib/esm/RealityDataAccessProps.d.ts.map +1 -0
  192. package/lib/esm/RealityDataAccessProps.js +17 -0
  193. package/lib/esm/RealityDataAccessProps.js.map +1 -0
  194. package/lib/esm/RenderSchedule.d.ts +4 -0
  195. package/lib/esm/RenderSchedule.d.ts.map +1 -1
  196. package/lib/esm/RenderSchedule.js +5 -1
  197. package/lib/esm/RenderSchedule.js.map +1 -1
  198. package/lib/esm/RenderTexture.d.ts +8 -1
  199. package/lib/esm/RenderTexture.d.ts.map +1 -1
  200. package/lib/esm/RenderTexture.js.map +1 -1
  201. package/lib/esm/SkyBox.d.ts +142 -34
  202. package/lib/esm/SkyBox.d.ts.map +1 -1
  203. package/lib/esm/SkyBox.js +187 -5
  204. package/lib/esm/SkyBox.js.map +1 -1
  205. package/lib/esm/TextureProps.d.ts +21 -2
  206. package/lib/esm/TextureProps.d.ts.map +1 -1
  207. package/lib/esm/TextureProps.js +18 -1
  208. package/lib/esm/TextureProps.js.map +1 -1
  209. package/lib/esm/ThematicDisplay.d.ts +6 -0
  210. package/lib/esm/ThematicDisplay.d.ts.map +1 -1
  211. package/lib/esm/ThematicDisplay.js +26 -0
  212. package/lib/esm/ThematicDisplay.js.map +1 -1
  213. package/lib/esm/TileProps.d.ts +6 -0
  214. package/lib/esm/TileProps.d.ts.map +1 -1
  215. package/lib/esm/TileProps.js.map +1 -1
  216. package/lib/esm/ViewFlags.d.ts +8 -0
  217. package/lib/esm/ViewFlags.d.ts.map +1 -1
  218. package/lib/esm/ViewFlags.js +30 -10
  219. package/lib/esm/ViewFlags.js.map +1 -1
  220. package/lib/esm/core-common.d.ts +7 -0
  221. package/lib/esm/core-common.d.ts.map +1 -1
  222. package/lib/esm/core-common.js +7 -0
  223. package/lib/esm/core-common.js.map +1 -1
  224. package/lib/esm/geometry/FrustumPlanes.d.ts +1 -1
  225. package/lib/esm/geometry/FrustumPlanes.d.ts.map +1 -1
  226. package/lib/esm/geometry/FrustumPlanes.js +26 -13
  227. package/lib/esm/geometry/FrustumPlanes.js.map +1 -1
  228. package/lib/esm/geometry/GeometryStream.d.ts +3 -3
  229. package/lib/esm/geometry/GeometryStream.d.ts.map +1 -1
  230. package/lib/esm/geometry/GeometryStream.js.map +1 -1
  231. package/lib/esm/ipc/IpcWebSocket.d.ts +12 -5
  232. package/lib/esm/ipc/IpcWebSocket.d.ts.map +1 -1
  233. package/lib/esm/ipc/IpcWebSocket.js +31 -6
  234. package/lib/esm/ipc/IpcWebSocket.js.map +1 -1
  235. package/lib/esm/ipc/IpcWebSocketTransport.d.ts +15 -0
  236. package/lib/esm/ipc/IpcWebSocketTransport.d.ts.map +1 -0
  237. package/lib/esm/ipc/IpcWebSocketTransport.js +138 -0
  238. package/lib/esm/ipc/IpcWebSocketTransport.js.map +1 -0
  239. package/lib/esm/rpc/core/RpcInvocation.d.ts +4 -4
  240. package/lib/esm/rpc/core/RpcInvocation.d.ts.map +1 -1
  241. package/lib/esm/rpc/core/RpcInvocation.js +4 -7
  242. package/lib/esm/rpc/core/RpcInvocation.js.map +1 -1
  243. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.d.ts.map +1 -1
  244. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.js +2 -1
  245. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
  246. package/lib/esm/tile/ElementGraphics.d.ts +5 -1
  247. package/lib/esm/tile/ElementGraphics.d.ts.map +1 -1
  248. package/lib/esm/tile/ElementGraphics.js.map +1 -1
  249. package/lib/esm/tile/GltfTileIO.d.ts +16 -79
  250. package/lib/esm/tile/GltfTileIO.d.ts.map +1 -1
  251. package/lib/esm/tile/GltfTileIO.js +70 -149
  252. package/lib/esm/tile/GltfTileIO.js.map +1 -1
  253. package/lib/esm/tile/TileMetadata.d.ts +20 -8
  254. package/lib/esm/tile/TileMetadata.d.ts.map +1 -1
  255. package/lib/esm/tile/TileMetadata.js +50 -53
  256. package/lib/esm/tile/TileMetadata.js.map +1 -1
  257. package/package.json +9 -10
package/CHANGELOG.md CHANGED
@@ -1,6 +1,159 @@
1
1
  # Change Log - @itwin/core-common
2
2
 
3
- This log was last generated on Tue, 21 Sep 2021 21:06:40 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 10 Mar 2022 21:18:13 GMT and should not be manually modified.
4
+
5
+ ## 3.0.2
6
+ Thu, 10 Mar 2022 21:18:13 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 3.0.1
11
+ Thu, 24 Feb 2022 15:26:55 GMT
12
+
13
+ ### Updates
14
+
15
+ - Migrated from deprecated MapBox api.
16
+
17
+ ## 3.0.0
18
+ Mon, 24 Jan 2022 14:00:52 GMT
19
+
20
+ ### Updates
21
+
22
+ - Add support for producing larger tiles.
23
+ - The Cartographic creation API now takes an interface as an argument with named properties. This will avoid callers mixing up the order of longitude, latitude, and height.
24
+ - improve concurrent query changes
25
+ - Upgrade target to ES2019 and deliver both a CommonJs and ESModule version of package
26
+ - Added additional documentation for ecefLocation iniModel
27
+ - Add support for indexed edges in tile graphics.
28
+ - Added non-existent property to EntityProps to make the compiler discriminate between EntityProps and Entity.
29
+ - Add compare method to ThematicGradientSettings. Fix Gradient.Symb.compareSymb method to also compare thematicSettings.
30
+ - Clean up SkyBox and GroundPlane APIs.
31
+ - improve getMetaData() and provide extended error codes
32
+ - Added support to LightSettings for Fresnel effect.
33
+ - Add new GeoServices class and first method to interpret WKT or complete GCS JSON."
34
+ - GeoCoordStatus documentation added
35
+ - getAccessToken always returns a token
36
+ - Fix frustum translate method.
37
+ - Make ViewFlags immutable. Simplify ViewFlagOverrides.
38
+ - Added LOCAL_ELLIPSOID vertical datum identifier.
39
+ - Added ability to convert iModel coordinates to or from any Geographic CRS
40
+ - rename contextId -> iTwinId
41
+ - MapLayerSettings.fromJSON, BaseLayerSettings.fromJSON and MapSubLayerSettings.fromJSON no longer return undefined.
42
+ - Fix problem with RealityDataSourceKey string convertion
43
+ - Promote RealityDataSource and RealityDataSourceKey API to beta and update documentation
44
+ - Removed internal tag from EGFBAccessors
45
+ - Moved RealityDataAccessProps from core-frontend to core-common
46
+ - FeatureOverrides now merge by default in case of conflicts.
47
+ - rename to @itwin/core-common
48
+ - Fix an import which would cause consumers of core-common to fail during build
49
+ - move js-base64 from devDeps to deps
50
+ - Improve conformance with the glTF 2.0 spec when reading glb chunks.
51
+ - remove ClientRequestContext and its subclasses
52
+ - Added AuthorizationClient
53
+ - Add support for inverting planar clip mask (inside vs outside)
54
+ - Remove deprecated APIs for 3.0.
55
+ - Generalize the way to attach a reality data by adding a RealityDataSourceKey to ContextRealityModelProps
56
+ - Enhance RealityDataSource class
57
+ - Replace usage of I18N with generic Localization interface.
58
+ - GeometryContainmentRequestProps.clip and SnapRequestProps.viewFlags use stricter type than `any`.
59
+ - removed deprecated apis
60
+ - Move map imagery provider from BackgroundMapSettings to MapImagerySettings.backgroundBase.
61
+ - remove IModelWriteRpcInterface
62
+ - Rename AnalysisStyleScalar to AnalysisStyleThematic
63
+ - Rename AnalysisStyleScalar to AnalysisStyleThematic.
64
+ - remove ClientRequestContext.current
65
+ - rework locks
66
+ - Fix for IModel._ecefTrans not being updated when setting IModel._ecefLocation.
67
+ - Deprecate RenderTexture.Params
68
+ - Renamed an iModel's parent container to iTwin
69
+ - Support Open City Planner (OCP) that stores orbit point clouds (OPC) in their own azure environment.
70
+ - FeatureAppearance transparency override by default ignores render mode and transparency view flag.
71
+ - Adding WebEditServer (test scenarios only for now)
72
+ - Concurrency fix within web IPC transport system.
73
+ - Add ViewFlags.wiremesh to control wiremesh display.
74
+
75
+ ## 2.19.28
76
+ Wed, 12 Jan 2022 14:52:38 GMT
77
+
78
+ _Version update only_
79
+
80
+ ## 2.19.27
81
+ Wed, 05 Jan 2022 20:07:20 GMT
82
+
83
+ ### Updates
84
+
85
+ - Add compare method to ThematicGradientSettings. Fix Gradient.Symb.compareSymb method to also compare thematicSettings.
86
+
87
+ ## 2.19.26
88
+ Wed, 08 Dec 2021 20:54:52 GMT
89
+
90
+ _Version update only_
91
+
92
+ ## 2.19.25
93
+ Fri, 03 Dec 2021 20:05:49 GMT
94
+
95
+ _Version update only_
96
+
97
+ ## 2.19.24
98
+ Mon, 29 Nov 2021 18:44:31 GMT
99
+
100
+ _Version update only_
101
+
102
+ ## 2.19.23
103
+ Mon, 22 Nov 2021 20:41:39 GMT
104
+
105
+ _Version update only_
106
+
107
+ ## 2.19.22
108
+ Wed, 17 Nov 2021 01:23:26 GMT
109
+
110
+ _Version update only_
111
+
112
+ ## 2.19.21
113
+ Wed, 10 Nov 2021 10:58:24 GMT
114
+
115
+ _Version update only_
116
+
117
+ ## 2.19.20
118
+ Fri, 29 Oct 2021 16:14:22 GMT
119
+
120
+ _Version update only_
121
+
122
+ ## 2.19.19
123
+ Mon, 25 Oct 2021 16:16:25 GMT
124
+
125
+ _Version update only_
126
+
127
+ ## 2.19.18
128
+ Thu, 21 Oct 2021 20:59:44 GMT
129
+
130
+ ### Updates
131
+
132
+ - Backport from PR#2451 enable reprojection and merge
133
+
134
+ ## 2.19.17
135
+ Thu, 14 Oct 2021 21:19:43 GMT
136
+
137
+ ### Updates
138
+
139
+ - Support Open City Planner (OCP) that stores orbit point clouds (OPC) in their own azure environment.
140
+
141
+ ## 2.19.16
142
+ Mon, 11 Oct 2021 17:37:46 GMT
143
+
144
+ _Version update only_
145
+
146
+ ## 2.19.15
147
+ Fri, 08 Oct 2021 16:44:23 GMT
148
+
149
+ ### Updates
150
+
151
+ - Add a new property to ContextRealityModelState named rdSourecKey that provide a new way of attaching Reality Data that will resolve tilesetUrl at runtime.
152
+
153
+ ## 2.19.14
154
+ Fri, 01 Oct 2021 13:07:03 GMT
155
+
156
+ _Version update only_
4
157
 
5
158
  ## 2.19.13
6
159
  Tue, 21 Sep 2021 21:06:40 GMT
@@ -110,8 +263,8 @@ Fri, 09 Jul 2021 18:11:24 GMT
110
263
 
111
264
  ### Updates
112
265
 
113
- - Accomodated the inability to reverse Changesets when creating change summaries.
114
- - Use ecef location calculated for projected models.
266
+ - Accomodated the inability to reverse Changesets when creating change summaries.
267
+ - Use ecef location calculated for projected models.
115
268
  - Clean up and promote AnalysisStyle APIs.
116
269
  - Added support for section clip to ElementGraphicsRequestProps.
117
270
  - Add internal API for reconstructing TileOptions from tree and content Ids.
@@ -377,7 +530,7 @@ Thu, 28 Jan 2021 13:39:27 GMT
377
530
  ### Updates
378
531
 
379
532
  - Fix brep DataProps to/from flatbuffer to account for base64 string header.
380
- - Element geometry creation by brep operations.
533
+ - Element geometry creation by brep operations.
381
534
  - add EditCommand
382
535
  - Improve ElementGeometry documentation.
383
536
  - Remove assertion in supplyPathForOperation when defaulting changeSetId.
@@ -533,8 +686,8 @@ Fri, 02 Oct 2020 18:03:32 GMT
533
686
 
534
687
  - Add documentation for ContextRealityModelProps.
535
688
  - Fix calculation of cartographic range.
536
- - Fixes to front end methods to pull, merge and push.
537
- - Fixed desktop authorization after recent changes.
689
+ - Fixes to front end methods to pull, merge and push.
690
+ - Fixed desktop authorization after recent changes.
538
691
  - Update Tile version due to changes to indexes for tesselated polylines
539
692
  - On iOS download in background
540
693
  - Introduce NoContentError (transmitted via 204)
@@ -666,7 +819,7 @@ Fri, 10 Jul 2020 17:23:14 GMT
666
819
  - Add ability to create selective overrides from display style settings, and apply the overrides to another settings.
667
820
  - Fix orientation of Ecef.createFromCartographicOrigin
668
821
  - Add non-locatable flag to TerrainSettings.
669
- - Setup BriefcaseDb.open() to allow profile and domain schema validation and upgrades.
822
+ - Setup BriefcaseDb.open() to allow profile and domain schema validation and upgrades.
670
823
  - Support for multiple RPC interface clients and attaching interfaces after startup.
671
824
  - Add function to convert solar angles to solar direction.
672
825
  - enforce max texture size for stepped gradients.
@@ -700,7 +853,7 @@ Thu, 28 May 2020 22:48:59 GMT
700
853
  ### Updates
701
854
 
702
855
  - Improved log message written on rpc error
703
- - Change default origin mode for terrain to Geodetic.
856
+ - Change default origin mode for terrain to Geodetic.
704
857
  - Fix transforms for creating and querying part instance geometry in world coordinate.
705
858
  - channel rules
706
859
  - Optimize thematic sensor display by culling sensors based on a distanceCutoff property on ThematicDisplaySensorSettings.
@@ -715,7 +868,7 @@ Wed, 06 May 2020 13:17:49 GMT
715
868
  - Show min/max window error for mouse wheel zoom.
716
869
  - Make animation state of a display style persistent.
717
870
  - Send a default pending message since Azure strips content-type header if no data is present
718
- - Monitor progress of downloading briefcases, ability to cancel download of briefcases.
871
+ - Monitor progress of downloading briefcases, ability to cancel download of briefcases.
719
872
  - Added to DisplayStyle3dSettings: MonochromeMode, LightSettings.
720
873
  - Simplify GeometryStreamIteratorEntry (breaking API change).
721
874
  - constructor of ColorDef wasn't setting transparency properly for rgba() strings
@@ -738,11 +891,11 @@ Wed, 06 May 2020 13:17:49 GMT
738
891
  - Added file size.
739
892
  - Supply RPC routing props for SnapshotIModelRpcInterface open methods"
740
893
  - MobileRpcConfiguration throws exception
741
- - Added NativeApp.deleteBriefcase, avoided authorization exceptions when offline.
742
- - Refactored NativeApp API and RPC interfaces. This continues to be WIP.
743
- - Added DownloadBriefcaseOptions and OpenBriefcaseOptions as parameters to the download/open calls for a briefcase.
894
+ - Added NativeApp.deleteBriefcase, avoided authorization exceptions when offline.
895
+ - Refactored NativeApp API and RPC interfaces. This continues to be WIP.
896
+ - Added DownloadBriefcaseOptions and OpenBriefcaseOptions as parameters to the download/open calls for a briefcase.
744
897
  - Added new interface for native app
745
- - VSTS#217447, 162382: Cleanups to implementation of downloading/opening/discovering briefcases in native applications (WIP).
898
+ - VSTS#217447, 162382: Cleanups to implementation of downloading/opening/discovering briefcases in native applications (WIP).
746
899
  - Handle null JSON in ViewDetails.
747
900
  - Renamed OIDC constructs for consistency; Removed SAML support.
748
901
  - OrbitGT point cloud interface.
@@ -792,7 +945,7 @@ Wed, 12 Feb 2020 17:45:50 GMT
792
945
  - iModel write API development
793
946
  - Fix issue with constructing the tile cache URL() on Safari.
794
947
  - Prevent reuse of cached tiles after project extents change.
795
- - VSTS#256133: Fixed issue with reopening connections if the backend crashes. Fixes to integration tests.
948
+ - VSTS#256133: Fixed issue with reopening connections if the backend crashes. Fixes to integration tests.
796
949
  - Define ViewDetails for manipulating optional detail settings of ViewDefinition and ViewState.
797
950
  - Add support for plan projection models with 3d display priority.
798
951
  - Add settings to control display of plan projection models.
@@ -954,7 +1107,7 @@ Mon, 13 May 2019 15:52:05 GMT
954
1107
 
955
1108
  ### Updates
956
1109
 
957
- - Support spatial classification of context reality models.
1110
+ - Support spatial classification of context reality models.
958
1111
  - Added OpenAPIInfo to the barrel file
959
1112
  - Adds parameter for api-extractor to validate missing release tags
960
1113
  - Adds ignoreMissingTags flag
@@ -967,14 +1120,14 @@ Mon, 13 May 2019 15:52:05 GMT
967
1120
  - LoggerCategory -> CommonLoggerCategory
968
1121
  - Fix default line pattern for hidden edges.
969
1122
  - Introduce LoggerCategory enum to advertise logger categories used by this package.
970
- - Logging fixes.
1123
+ - Logging fixes.
971
1124
  - Put sourcemap in npm package.
972
1125
  - Add SVG to ImageSourceFormat
973
1126
  - Add imodeljs-markup
974
1127
  - New tile cache naming scheme.
975
1128
  - queryPage use memoization/pending pattern
976
1129
  - Remove StandaloneIModelRpcInterface
977
- - Setup a generic context for tracking client requests, and made various related enhancements to logging, usage tracking and authorization.
1130
+ - Setup a generic context for tracking client requests, and made various related enhancements to logging, usage tracking and authorization.
978
1131
  - Prefer the IModelToken values in the url (if different from values in JSON body -- should never happen except in a malicious request).
979
1132
  - Exports interface MarshalingBinaryMarker to prevent errors in api-extractor V7
980
1133
  - Add SnapshotIModelRpcInterface
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MIT License
2
2
 
3
- Copyright © 2017-2021 Bentley Systems, Incorporated. All rights reserved.
3
+ Copyright © 2017-2022 Bentley Systems, Incorporated. All rights reserved.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
6
 
@@ -86,7 +86,7 @@ export declare class BackgroundMapSettings {
86
86
  readonly useDepthBuffer: boolean;
87
87
  /** If true, terrain heights will be applied to the map; otherwise the map will be rendered as a plane. */
88
88
  readonly applyTerrain: boolean;
89
- /** Settings associated with terrain display. */
89
+ /** Settings associated with terrain display. */
90
90
  readonly terrainSettings: TerrainSettings;
91
91
  /** Globe display mode. */
92
92
  readonly globeMode: GlobeMode;
@@ -1 +1 @@
1
- {"version":3,"file":"BackgroundMapSettings.d.ts","sourceRoot":"","sources":["../../src/BackgroundMapSettings.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAyB,iBAAiB,EAAE,MAAM,yBAAyB,C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AM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE;YACjJ,cAAc,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE;YAC5I,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI;YACjC,YAAY,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE;SAC/C,CAAC;QAEF,OAAO,qBAAqB,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC;CACF;AAvJD,sDAuJC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module DisplayStyles\r\n */\r\n\r\nimport { BackgroundMapProvider, BackgroundMapType } from \"./BackgroundMapProvider\";\r\nimport { PlanarClipMaskProps, PlanarClipMaskSettings } from \"./PlanarClipMask\";\r\nimport { TerrainProps, TerrainSettings } from \"./TerrainSettings\";\r\n\r\n/** Describes the projection of the background map\r\n * @see [[BackgroundMapProps]]\r\n * @see [[DisplayStyleSettingsProps]]\r\n * @public\r\n */\r\nexport enum GlobeMode {\r\n /** Display Earth as 3d ellipsoid */\r\n Ellipsoid = 0,\r\n /** Display Earth as plane. */\r\n Plane = 1,\r\n}\r\n\r\n/** In-memory JSON representation of a [[BackgroundMapSettings]].\r\n * @see [[PersistentBackgroundMapProps]] for the persistent JSON representation.\r\n * @public\r\n */\r\nexport interface BackgroundMapProps {\r\n /** The elevation of the map in meters relative the WGS84 ellipsoid. Default value: 0. */\r\n groundBias?: number;\r\n /** A transparency value from 0.0 (fully opaque) to 1.0 (fully transparent) to apply to map graphics when drawing, or false to indicate the transparency should not be overridden.\r\n * Default value: false.\r\n */\r\n transparency?: number | false;\r\n /** If set to true, the map tiles will be rendered with depth, allowing them to obscure other geometry. Otherwise, they are always rendered behind all other geometry. Default value: false. */\r\n useDepthBuffer?: boolean;\r\n /** If true, terrain heights will be applied to the map; otherwise the map will be rendered as a plane. */\r\n applyTerrain?: boolean;\r\n /** Properties associated with terrain display. */\r\n terrainSettings?: TerrainProps;\r\n /** Globe Mode. Default value: GlobeMode.Ellipsoid */\r\n globeMode?: GlobeMode;\r\n /** If true, the map will be treated as non-locatable - i.e., tools will not interact with it. This is particularly useful when the map is transparent - it\r\n * allows the user to select elements that are behind the map.\r\n */\r\n nonLocatable?: boolean;\r\n /** A planar mask applied to the map geometry\r\n * @beta\r\n */\r\n planarClipMask?: PlanarClipMaskProps;\r\n\r\n /** @see [[DeprecatedBackgroundMapProps.providerName]]. */\r\n providerName?: never;\r\n /** @see [[DeprecatedBackgroundMapProps.providerData]]. */\r\n providerData?: never;\r\n}\r\n\r\n/** Properties of [[PersistentBackgroundMapProps]] that have been deprecated, but are retained for backwards compatibility.\r\n * These properties are omitted from [[BackgroundMapProps]] as they are no longer part of the API, but are included in\r\n * [[PersistentBackgroundMapProps]] because they remain part of the persistence format.\r\n * @public\r\n */\r\nexport interface DeprecatedBackgroundMapProps {\r\n /** Identifies the source of the map tiles. Currently supported providers are \"BingProvider\" and \"MapBoxProvider\".\r\n * Default value: \"BingProvider\"\r\n * @deprecated use MapImageryProps.backgroundBase.\r\n */\r\n providerName?: string;\r\n /** Options for customizing the tiles supplied by the provider. If undefined, default values of all members are used.\r\n * @deprecated use MapImageryProps.backgroundBase\r\n */\r\n providerData?: {\r\n /** The type of map graphics to request. Default value: BackgroundMapType.Hybrid. */\r\n mapType?: BackgroundMapType;\r\n };\r\n}\r\n\r\n/** Persistent JSON representation of a [[BackgroundMapSettings]].\r\n * @public\r\n */\r\nexport type PersistentBackgroundMapProps = Omit<BackgroundMapProps, keyof DeprecatedBackgroundMapProps> & DeprecatedBackgroundMapProps;\r\n\r\nfunction normalizeGlobeMode(mode?: GlobeMode): GlobeMode {\r\n return GlobeMode.Plane === mode ? mode : GlobeMode.Ellipsoid;\r\n}\r\n\r\nfunction normalizeTransparency(trans?: number | false): number | false {\r\n if (\"number\" === typeof trans)\r\n return Math.min(1, Math.max(0, trans));\r\n\r\n return false;\r\n}\r\n\r\n/** As part of a [[DisplayStyleSettings]], controls aspects of how the background map is displayed.\r\n * @see [[DisplayStyleSettings.backgroundMap]] to query or change these settings for a display style.\r\n * @see [[MapImagerySettings]] to control the type of imagery applied to the background map.\r\n * @public\r\n */\r\nexport class BackgroundMapSettings {\r\n /** Retained strictly for persistence. */\r\n private readonly _provider: BackgroundMapProvider;\r\n\r\n /** Elevation in meters, relative to WGS84 Ellipsoid.. */\r\n public readonly groundBias: number;\r\n /** A transparency value from 0.0 (fully opaque) to 1.0 (fully transparent) to apply to map graphics when drawing, or false to indicate the transparency should not be overridden. Default value: false. */\r\n public readonly transparency: number | false;\r\n /** If set to true, the map tiles will be rendered with depth, allowing them to obscure other geometry. Otherwise, they are always rendered behind all other geometry. Default value: false. */\r\n public readonly useDepthBuffer: boolean;\r\n /** If true, terrain heights will be applied to the map; otherwise the map will be rendered as a plane. */\r\n public readonly applyTerrain: boolean;\r\n /** Settings associated with terrain display. */\r\n public readonly terrainSettings: TerrainSettings;\r\n /** Globe display mode. */\r\n public readonly globeMode: GlobeMode;\r\n /** Planar Mask - used to mask the background map to avoid overlapping with other geometry\r\n * @beta\r\n */\r\n public readonly planarClipMask: PlanarClipMaskSettings;\r\n private readonly _locatable: boolean;\r\n /** If false, the map will be treated as non-locatable - i.e., tools will not interact with it. This is particularly useful when the map is transparent - it\r\n * allows the user to select elements that are behind the map.\r\n */\r\n public get locatable(): boolean {\r\n // Handle legacy TerrainProps.nonLocatable:\r\n // - If TerrainProps.nonLocatable=true and terrain is on, terrain is not locatable.\r\n // - Otherwise, use BackgroundMapProps.nonLocatable.\r\n if (this.applyTerrain && this.terrainSettings.nonLocatable)\r\n return false;\r\n\r\n return this._locatable;\r\n }\r\n\r\n /** If transparency is overridden, the transparency to apply; otherwise, undefined. */\r\n public get transparencyOverride(): number | undefined { return false !== this.transparency ? this.transparency : undefined; }\r\n\r\n private constructor(props: BackgroundMapProps | PersistentBackgroundMapProps) {\r\n this.groundBias = props.groundBias ?? 0;\r\n this.transparency = normalizeTransparency(props.transparency);\r\n this.useDepthBuffer = props.useDepthBuffer ?? false;\r\n this.applyTerrain = props.applyTerrain ?? false;\r\n this.terrainSettings = TerrainSettings.fromJSON(props.terrainSettings);\r\n this.globeMode = normalizeGlobeMode(props.globeMode);\r\n this._locatable = true !== props.nonLocatable;\r\n this.planarClipMask = PlanarClipMaskSettings.fromJSON(props.planarClipMask);\r\n this._provider = BackgroundMapProvider.fromBackgroundMapProps(props);\r\n }\r\n\r\n /** Create settings from their persistent representation. In general, this method should only be used when reading the settings directly from\r\n * the iModel - otherwise, prefer [[fromJSON]].\r\n */\r\n public static fromPersistentJSON(json?: PersistentBackgroundMapProps): BackgroundMapSettings {\r\n return new this(json ?? {});\r\n }\r\n\r\n /** Construct from JSON, performing validation and applying default values for undefined fields.\r\n * @see [[fromPersistentJSON]] if you are reading the settings directly from the iModel.\r\n */\r\n public static fromJSON(json?: BackgroundMapProps): BackgroundMapSettings {\r\n return new BackgroundMapSettings(json ?? {});\r\n }\r\n\r\n /** Convert these settings to their in-memory JSON representation.\r\n * @see [[toPersistentJSON]] if you intend to write the JSON directly to an iModel.\r\n */\r\n public toJSON(): BackgroundMapProps {\r\n const props: BackgroundMapProps = {};\r\n if (0 !== this.groundBias)\r\n props.groundBias = this.groundBias;\r\n if (this.applyTerrain)\r\n props.applyTerrain = true;\r\n if (false !== this.transparency)\r\n props.transparency = this.transparency;\r\n if (GlobeMode.Ellipsoid !== this.globeMode)\r\n props.globeMode = this.globeMode;\r\n if (this.useDepthBuffer)\r\n props.useDepthBuffer = true;\r\n if (!this._locatable)\r\n props.nonLocatable = true;\r\n\r\n const terrainSettings = this.terrainSettings.toJSON();\r\n for (const prop of Object.values(terrainSettings)) {\r\n if (undefined !== prop) {\r\n props.terrainSettings = terrainSettings;\r\n break;\r\n }\r\n }\r\n\r\n if (this.planarClipMask.isValid)\r\n props.planarClipMask = this.planarClipMask.toJSON();\r\n\r\n return props;\r\n }\r\n\r\n /** Convert these settings to their persistent representation. In general, this method should only be used when writing the settings directly to\r\n * the iModel - otherwise, prefer [[toJSON]].\r\n */\r\n public toPersistentJSON(): PersistentBackgroundMapProps {\r\n const props = this.toJSON() as PersistentBackgroundMapProps;\r\n\r\n // Preserve deprecated imagery provider properties.\r\n if (\"BingProvider\" !== this._provider.name)\r\n props.providerName = this._provider.name; // eslint-disable-line deprecation/deprecation\r\n if (BackgroundMapType.Hybrid !== this._provider.type)\r\n props.providerData = { mapType: this._provider.type }; // eslint-disable-line deprecation/deprecation\r\n\r\n return props;\r\n }\r\n\r\n /** Returns true if these settings are equivalent to the supplied JSON settings. */\r\n public equalsJSON(json?: BackgroundMapProps): boolean {\r\n return this.equals(BackgroundMapSettings.fromJSON(json));\r\n }\r\n\r\n /** Returns true if the persistent representation of these settings is equivalent to `json`. */\r\n public equalsPersistentJSON(json?: PersistentBackgroundMapProps): boolean {\r\n return this.equals(BackgroundMapSettings.fromPersistentJSON(json));\r\n }\r\n\r\n /** Returns true if these settings are equivalent to `other`. */\r\n public equals(other: BackgroundMapSettings): boolean {\r\n return this.groundBias === other.groundBias && this.useDepthBuffer === other.useDepthBuffer && this.transparency === other.transparency\r\n && this.globeMode === other.globeMode && this._locatable === other._locatable && this.applyTerrain === other.applyTerrain\r\n && this.terrainSettings.equals(other.terrainSettings) && this.planarClipMask.equals(other.planarClipMask)\r\n && this._provider.name === other._provider.name && this._provider.type === other._provider.type;\r\n }\r\n\r\n /** Create a copy of this BackgroundMapSettings, optionally modifying some of its properties.\r\n * @param changedProps JSON representation of the properties to change.\r\n * @returns A BackgroundMapSettings with all of its properties set to match those of `this`, except those explicitly defined in `changedProps`.\r\n */\r\n public clone(changedProps?: BackgroundMapProps): BackgroundMapSettings {\r\n if (undefined === changedProps)\r\n return this;\r\n\r\n const props = {\r\n groundBias: changedProps.groundBias ?? this.groundBias,\r\n transparency: changedProps.transparency ?? this.transparency,\r\n useDepthBuffer: changedProps.useDepthBuffer ?? this.useDepthBuffer,\r\n globeMode: changedProps.globeMode ?? this.globeMode,\r\n nonLocatable: changedProps.nonLocatable ?? !this._locatable,\r\n applyTerrain: changedProps.applyTerrain ?? this.applyTerrain,\r\n terrainSettings: changedProps.terrainSettings ? this.terrainSettings.clone(changedProps.terrainSettings).toJSON() : this.terrainSettings.toJSON(),\r\n planarClipMask: changedProps.planarClipMask ? this.planarClipMask.clone(changedProps.planarClipMask).toJSON() : this.planarClipMask.toJSON(),\r\n providerName: this._provider.name,\r\n providerData: { mapType: this._provider.type },\r\n };\r\n\r\n return BackgroundMapSettings.fromPersistentJSON(props);\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"BackgroundMapSettings.js","sourceRoot":"","sources":["../../src/BackgroundMapSettings.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,mEAAmF;AACnF,qDAA+E;AAC/E,uDAAkE;AAElE;;;;GAIG;AACH,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,oCAAoC;IACpC,mDAAa,CAAA;IACb,8BAA8B;IAC9B,2CAAS,CAAA;AACX,CAAC,EALW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAKpB;AA6DD,SAAS,kBAAkB,CAAC,IAAgB;IAC1C,OAAO,SAAS,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC;AAC/D,CAAC;AAED,SAAS,qBAAqB,CAAC,KAAsB;IACnD,IAAI,QAAQ,KAAK,OAAO,KAAK;QAC3B,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,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AAkB,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC;CACF;AAvJD,sDAuJC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module DisplayStyles\r\n */\r\n\r\nimport { BackgroundMapProvider, BackgroundMapType } from \"./BackgroundMapProvider\";\r\nimport { PlanarClipMaskProps, PlanarClipMaskSettings } from \"./PlanarClipMask\";\r\nimport { TerrainProps, TerrainSettings } from \"./TerrainSettings\";\r\n\r\n/** Describes the projection of the background map\r\n * @see [[BackgroundMapProps]]\r\n * @see [[DisplayStyleSettingsProps]]\r\n * @public\r\n */\r\nexport enum GlobeMode {\r\n /** Display Earth as 3d ellipsoid */\r\n Ellipsoid = 0,\r\n /** Display Earth as plane. */\r\n Plane = 1,\r\n}\r\n\r\n/** In-memory JSON representation of a [[BackgroundMapSettings]].\r\n * @see [[PersistentBackgroundMapProps]] for the persistent JSON representation.\r\n * @public\r\n */\r\nexport interface BackgroundMapProps {\r\n /** The elevation of the map in meters relative the WGS84 ellipsoid. Default value: 0. */\r\n groundBias?: number;\r\n /** A transparency value from 0.0 (fully opaque) to 1.0 (fully transparent) to apply to map graphics when drawing, or false to indicate the transparency should not be overridden.\r\n * Default value: false.\r\n */\r\n transparency?: number | false;\r\n /** If set to true, the map tiles will be rendered with depth, allowing them to obscure other geometry. Otherwise, they are always rendered behind all other geometry. Default value: false. */\r\n useDepthBuffer?: boolean;\r\n /** If true, terrain heights will be applied to the map; otherwise the map will be rendered as a plane. */\r\n applyTerrain?: boolean;\r\n /** Properties associated with terrain display. */\r\n terrainSettings?: TerrainProps;\r\n /** Globe Mode. Default value: GlobeMode.Ellipsoid */\r\n globeMode?: GlobeMode;\r\n /** If true, the map will be treated as non-locatable - i.e., tools will not interact with it. This is particularly useful when the map is transparent - it\r\n * allows the user to select elements that are behind the map.\r\n */\r\n nonLocatable?: boolean;\r\n /** A planar mask applied to the map geometry\r\n * @beta\r\n */\r\n planarClipMask?: PlanarClipMaskProps;\r\n\r\n /** @see [[DeprecatedBackgroundMapProps.providerName]]. */\r\n providerName?: never;\r\n /** @see [[DeprecatedBackgroundMapProps.providerData]]. */\r\n providerData?: never;\r\n}\r\n\r\n/** Properties of [[PersistentBackgroundMapProps]] that have been deprecated, but are retained for backwards compatibility.\r\n * These properties are omitted from [[BackgroundMapProps]] as they are no longer part of the API, but are included in\r\n * [[PersistentBackgroundMapProps]] because they remain part of the persistence format.\r\n * @public\r\n */\r\nexport interface DeprecatedBackgroundMapProps {\r\n /** Identifies the source of the map tiles. Currently supported providers are \"BingProvider\" and \"MapBoxProvider\".\r\n * Default value: \"BingProvider\"\r\n * @deprecated use MapImageryProps.backgroundBase.\r\n */\r\n providerName?: string;\r\n /** Options for customizing the tiles supplied by the provider. If undefined, default values of all members are used.\r\n * @deprecated use MapImageryProps.backgroundBase\r\n */\r\n providerData?: {\r\n /** The type of map graphics to request. Default value: BackgroundMapType.Hybrid. */\r\n mapType?: BackgroundMapType;\r\n };\r\n}\r\n\r\n/** Persistent JSON representation of a [[BackgroundMapSettings]].\r\n * @public\r\n */\r\nexport type PersistentBackgroundMapProps = Omit<BackgroundMapProps, keyof DeprecatedBackgroundMapProps> & DeprecatedBackgroundMapProps;\r\n\r\nfunction normalizeGlobeMode(mode?: GlobeMode): GlobeMode {\r\n return GlobeMode.Plane === mode ? mode : GlobeMode.Ellipsoid;\r\n}\r\n\r\nfunction normalizeTransparency(trans?: number | false): number | false {\r\n if (\"number\" === typeof trans)\r\n return Math.min(1, Math.max(0, trans));\r\n\r\n return false;\r\n}\r\n\r\n/** As part of a [[DisplayStyleSettings]], controls aspects of how the background map is displayed.\r\n * @see [[DisplayStyleSettings.backgroundMap]] to query or change these settings for a display style.\r\n * @see [[MapImagerySettings]] to control the type of imagery applied to the background map.\r\n * @public\r\n */\r\nexport class BackgroundMapSettings {\r\n /** Retained strictly for persistence. */\r\n private readonly _provider: BackgroundMapProvider;\r\n\r\n /** Elevation in meters, relative to WGS84 Ellipsoid.. */\r\n public readonly groundBias: number;\r\n /** A transparency value from 0.0 (fully opaque) to 1.0 (fully transparent) to apply to map graphics when drawing, or false to indicate the transparency should not be overridden. Default value: false. */\r\n public readonly transparency: number | false;\r\n /** If set to true, the map tiles will be rendered with depth, allowing them to obscure other geometry. Otherwise, they are always rendered behind all other geometry. Default value: false. */\r\n public readonly useDepthBuffer: boolean;\r\n /** If true, terrain heights will be applied to the map; otherwise the map will be rendered as a plane. */\r\n public readonly applyTerrain: boolean;\r\n /** Settings associated with terrain display. */\r\n public readonly terrainSettings: TerrainSettings;\r\n /** Globe display mode. */\r\n public readonly globeMode: GlobeMode;\r\n /** Planar Mask - used to mask the background map to avoid overlapping with other geometry\r\n * @beta\r\n */\r\n public readonly planarClipMask: PlanarClipMaskSettings;\r\n private readonly _locatable: boolean;\r\n /** If false, the map will be treated as non-locatable - i.e., tools will not interact with it. This is particularly useful when the map is transparent - it\r\n * allows the user to select elements that are behind the map.\r\n */\r\n public get locatable(): boolean {\r\n // Handle legacy TerrainProps.nonLocatable:\r\n // - If TerrainProps.nonLocatable=true and terrain is on, terrain is not locatable.\r\n // - Otherwise, use BackgroundMapProps.nonLocatable.\r\n if (this.applyTerrain && this.terrainSettings.nonLocatable)\r\n return false;\r\n\r\n return this._locatable;\r\n }\r\n\r\n /** If transparency is overridden, the transparency to apply; otherwise, undefined. */\r\n public get transparencyOverride(): number | undefined { return false !== this.transparency ? this.transparency : undefined; }\r\n\r\n private constructor(props: BackgroundMapProps | PersistentBackgroundMapProps) {\r\n this.groundBias = props.groundBias ?? 0;\r\n this.transparency = normalizeTransparency(props.transparency);\r\n this.useDepthBuffer = props.useDepthBuffer ?? false;\r\n this.applyTerrain = props.applyTerrain ?? false;\r\n this.terrainSettings = TerrainSettings.fromJSON(props.terrainSettings);\r\n this.globeMode = normalizeGlobeMode(props.globeMode);\r\n this._locatable = true !== props.nonLocatable;\r\n this.planarClipMask = PlanarClipMaskSettings.fromJSON(props.planarClipMask);\r\n this._provider = BackgroundMapProvider.fromBackgroundMapProps(props);\r\n }\r\n\r\n /** Create settings from their persistent representation. In general, this method should only be used when reading the settings directly from\r\n * the iModel - otherwise, prefer [[fromJSON]].\r\n */\r\n public static fromPersistentJSON(json?: PersistentBackgroundMapProps): BackgroundMapSettings {\r\n return new this(json ?? {});\r\n }\r\n\r\n /** Construct from JSON, performing validation and applying default values for undefined fields.\r\n * @see [[fromPersistentJSON]] if you are reading the settings directly from the iModel.\r\n */\r\n public static fromJSON(json?: BackgroundMapProps): BackgroundMapSettings {\r\n return new BackgroundMapSettings(json ?? {});\r\n }\r\n\r\n /** Convert these settings to their in-memory JSON representation.\r\n * @see [[toPersistentJSON]] if you intend to write the JSON directly to an iModel.\r\n */\r\n public toJSON(): BackgroundMapProps {\r\n const props: BackgroundMapProps = {};\r\n if (0 !== this.groundBias)\r\n props.groundBias = this.groundBias;\r\n if (this.applyTerrain)\r\n props.applyTerrain = true;\r\n if (false !== this.transparency)\r\n props.transparency = this.transparency;\r\n if (GlobeMode.Ellipsoid !== this.globeMode)\r\n props.globeMode = this.globeMode;\r\n if (this.useDepthBuffer)\r\n props.useDepthBuffer = true;\r\n if (!this._locatable)\r\n props.nonLocatable = true;\r\n\r\n const terrainSettings = this.terrainSettings.toJSON();\r\n for (const prop of Object.values(terrainSettings)) {\r\n if (undefined !== prop) {\r\n props.terrainSettings = terrainSettings;\r\n break;\r\n }\r\n }\r\n\r\n if (this.planarClipMask.isValid)\r\n props.planarClipMask = this.planarClipMask.toJSON();\r\n\r\n return props;\r\n }\r\n\r\n /** Convert these settings to their persistent representation. In general, this method should only be used when writing the settings directly to\r\n * the iModel - otherwise, prefer [[toJSON]].\r\n */\r\n public toPersistentJSON(): PersistentBackgroundMapProps {\r\n const props = this.toJSON() as PersistentBackgroundMapProps;\r\n\r\n // Preserve deprecated imagery provider properties.\r\n if (\"BingProvider\" !== this._provider.name)\r\n props.providerName = this._provider.name; // eslint-disable-line deprecation/deprecation\r\n if (BackgroundMapType.Hybrid !== this._provider.type)\r\n props.providerData = { mapType: this._provider.type }; // eslint-disable-line deprecation/deprecation\r\n\r\n return props;\r\n }\r\n\r\n /** Returns true if these settings are equivalent to the supplied JSON settings. */\r\n public equalsJSON(json?: BackgroundMapProps): boolean {\r\n return this.equals(BackgroundMapSettings.fromJSON(json));\r\n }\r\n\r\n /** Returns true if the persistent representation of these settings is equivalent to `json`. */\r\n public equalsPersistentJSON(json?: PersistentBackgroundMapProps): boolean {\r\n return this.equals(BackgroundMapSettings.fromPersistentJSON(json));\r\n }\r\n\r\n /** Returns true if these settings are equivalent to `other`. */\r\n public equals(other: BackgroundMapSettings): boolean {\r\n return this.groundBias === other.groundBias && this.useDepthBuffer === other.useDepthBuffer && this.transparency === other.transparency\r\n && this.globeMode === other.globeMode && this._locatable === other._locatable && this.applyTerrain === other.applyTerrain\r\n && this.terrainSettings.equals(other.terrainSettings) && this.planarClipMask.equals(other.planarClipMask)\r\n && this._provider.name === other._provider.name && this._provider.type === other._provider.type;\r\n }\r\n\r\n /** Create a copy of this BackgroundMapSettings, optionally modifying some of its properties.\r\n * @param changedProps JSON representation of the properties to change.\r\n * @returns A BackgroundMapSettings with all of its properties set to match those of `this`, except those explicitly defined in `changedProps`.\r\n */\r\n public clone(changedProps?: BackgroundMapProps): BackgroundMapSettings {\r\n if (undefined === changedProps)\r\n return this;\r\n\r\n const props = {\r\n groundBias: changedProps.groundBias ?? this.groundBias,\r\n transparency: changedProps.transparency ?? this.transparency,\r\n useDepthBuffer: changedProps.useDepthBuffer ?? this.useDepthBuffer,\r\n globeMode: changedProps.globeMode ?? this.globeMode,\r\n nonLocatable: changedProps.nonLocatable ?? !this._locatable,\r\n applyTerrain: changedProps.applyTerrain ?? this.applyTerrain,\r\n terrainSettings: changedProps.terrainSettings ? this.terrainSettings.clone(changedProps.terrainSettings).toJSON() : this.terrainSettings.toJSON(),\r\n planarClipMask: changedProps.planarClipMask ? this.planarClipMask.clone(changedProps.planarClipMask).toJSON() : this.planarClipMask.toJSON(),\r\n providerName: this._provider.name,\r\n providerData: { mapType: this._provider.type },\r\n };\r\n\r\n return BackgroundMapSettings.fromPersistentJSON(props);\r\n }\r\n}\r\n"]}
@@ -8,20 +8,20 @@ import { Point2d, Point3d } from "@itwin/core-geometry";
8
8
  * [IModelConnection]($frontend), [IModelDb]($backend), and [ECDb]($backend).
9
9
  *
10
10
  * @public
11
- * */
11
+ */
12
12
  export declare enum QueryRowFormat {
13
13
  /** Each row is an object in which each non-null column value can be accessed by its name as defined in the ECSql.
14
14
  * Null values are omitted.
15
15
  */
16
16
  UseECSqlPropertyNames = 0,
17
- /** Each row is an object in which each non-null column value can be accessed by a [remapped property name]($docs/learning/ECSqlRowFormat.md).
18
- * This format is backwards-compatible with the format produced by iModel.js version 2.x. Null values are omitted.
19
- */
20
- UseJsPropertyNames = 1,
21
17
  /** Each row is an array of values accessed by an index corresponding to the property's position in the ECSql SELECT statement.
22
18
  * Null values are included if they are followed by a non-null column, but trailing null values at the end of the array are omitted.
23
19
  */
24
- UseArrayIndexes = 2
20
+ UseECSqlPropertyIndexes = 1,
21
+ /** Each row is an object in which each non-null column value can be accessed by a [remapped property name]($docs/learning/ECSqlRowFormat.md).
22
+ * This format is backwards-compatible with the format produced by iTwin.js 2.x. Null values are omitted.
23
+ */
24
+ UseJsPropertyNames = 2
25
25
  }
26
26
  /**
27
27
  * Specify limit or range of rows to return
@@ -40,7 +40,7 @@ export interface QueryPropertyMetaData {
40
40
  index: number;
41
41
  jsonName: string;
42
42
  name: string;
43
- system: boolean;
43
+ extendType: string;
44
44
  typeName: string;
45
45
  }
46
46
  /** @beta */
@@ -101,6 +101,10 @@ export interface QueryOptions extends BaseReaderOptions {
101
101
  * When true, XXXXClassId property will be returned as className.
102
102
  * */
103
103
  convertClassIdsToClassNames?: boolean;
104
+ /**
105
+ * Determine row format.
106
+ */
107
+ rowFormat?: QueryRowFormat;
104
108
  }
105
109
  /** @beta */
106
110
  export declare type BlobRange = QueryLimit;
@@ -121,6 +125,7 @@ export declare class QueryOptionsBuilder {
121
125
  setSuppressLogErrors(val: boolean): this;
122
126
  setConvertClassIdsToNames(val: boolean): this;
123
127
  setLimit(val: QueryLimit): this;
128
+ setRowFormat(val: QueryRowFormat): this;
124
129
  }
125
130
  /** @beta */
126
131
  export declare class BlobOptionsBuilder {
@@ -166,19 +171,31 @@ export declare enum DbResponseKind {
166
171
  }
167
172
  /** @internal */
168
173
  export declare enum DbResponseStatus {
169
- Error = 0,
170
174
  Done = 1,
171
175
  Cancel = 2,
172
176
  Partial = 3,
173
- TimeOut = 4,
174
- QueueFull = 5
177
+ Timeout = 4,
178
+ QueueFull = 5,
179
+ Error = 100,
180
+ Error_ECSql_PreparedFailed = 101,
181
+ Error_ECSql_StepFailed = 102,
182
+ Error_ECSql_RowToJsonFailed = 103,
183
+ Error_ECSql_BindingFailed = 104,
184
+ Error_BlobIO_OpenFailed = 105,
185
+ Error_BlobIO_OutOfRange = 106
186
+ }
187
+ /** @internal */
188
+ export declare enum DbValueFormat {
189
+ ECSqlNames = 0,
190
+ JsNames = 1
175
191
  }
176
192
  /** @internal */
177
193
  export interface DbRequest extends BaseReaderOptions {
178
- kind: DbRequestKind;
194
+ kind?: DbRequestKind;
179
195
  }
180
196
  /** @internal */
181
197
  export interface DbQueryRequest extends DbRequest, QueryOptions {
198
+ valueFormat?: DbValueFormat;
182
199
  query: string;
183
200
  args?: object;
184
201
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ConcurrentQuery.d.ts","sourceRoot":"","sources":["../../src/ConcurrentQuery.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAqB,QAAQ,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AACjH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;;;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AI,EAAE,qBAAqB,EAAE,CAAC;IAC9B,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;CAClB;AACD,gBAAgB;AAChB,MAAM,WAAW,cAAe,SAAQ,UAAU;IAChD,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AACD,cAAc;AACd,qBAAa,YAAa,SAAQ,YAAY;aACT,QAAQ,EAAE,GAAG;aAAkB,OAAO,CAAC;gBAAvC,QAAQ,EAAE,GAAG,EAAkB,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,QAAQ;WAGhF,YAAY,CAAC,QAAQ,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG;CAQxD;AACD,gBAAgB;AAChB,MAAM,WAAW,iBAAiB,CAAC,QAAQ,SAAS,SAAS,EAAE,SAAS,SAAS,UAAU;IACzF,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;CAChD"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DbQueryError = exports.DbResponseStatus = exports.DbResponseKind = exports.DbRequestKind = exports.QueryBinder = exports.BlobOptionsBuilder = exports.QueryOptionsBuilder = exports.QueryRowFormat = void 0;
3
+ exports.DbQueryError = exports.DbValueFormat = exports.DbResponseStatus = exports.DbResponseKind = exports.DbRequestKind = exports.QueryBinder = exports.BlobOptionsBuilder = exports.QueryOptionsBuilder = exports.QueryRowFormat = void 0;
4
4
  /*---------------------------------------------------------------------------------------------
5
5
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
6
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -15,21 +15,21 @@ const core_geometry_1 = require("@itwin/core-geometry");
15
15
  * [IModelConnection]($frontend), [IModelDb]($backend), and [ECDb]($backend).
16
16
  *
17
17
  * @public
18
- * */
18
+ */
19
19
  var QueryRowFormat;
20
20
  (function (QueryRowFormat) {
21
21
  /** Each row is an object in which each non-null column value can be accessed by its name as defined in the ECSql.
22
22
  * Null values are omitted.
23
23
  */
24
24
  QueryRowFormat[QueryRowFormat["UseECSqlPropertyNames"] = 0] = "UseECSqlPropertyNames";
25
- /** Each row is an object in which each non-null column value can be accessed by a [remapped property name]($docs/learning/ECSqlRowFormat.md).
26
- * This format is backwards-compatible with the format produced by iModel.js version 2.x. Null values are omitted.
27
- */
28
- QueryRowFormat[QueryRowFormat["UseJsPropertyNames"] = 1] = "UseJsPropertyNames";
29
25
  /** Each row is an array of values accessed by an index corresponding to the property's position in the ECSql SELECT statement.
30
26
  * Null values are included if they are followed by a non-null column, but trailing null values at the end of the array are omitted.
31
27
  */
32
- QueryRowFormat[QueryRowFormat["UseArrayIndexes"] = 2] = "UseArrayIndexes";
28
+ QueryRowFormat[QueryRowFormat["UseECSqlPropertyIndexes"] = 1] = "UseECSqlPropertyIndexes";
29
+ /** Each row is an object in which each non-null column value can be accessed by a [remapped property name]($docs/learning/ECSqlRowFormat.md).
30
+ * This format is backwards-compatible with the format produced by iTwin.js 2.x. Null values are omitted.
31
+ */
32
+ QueryRowFormat[QueryRowFormat["UseJsPropertyNames"] = 2] = "UseJsPropertyNames";
33
33
  })(QueryRowFormat = exports.QueryRowFormat || (exports.QueryRowFormat = {}));
34
34
  /** @public */
35
35
  class QueryOptionsBuilder {
@@ -45,6 +45,7 @@ class QueryOptionsBuilder {
45
45
  setSuppressLogErrors(val) { this._options.suppressLogErrors = val; return this; }
46
46
  setConvertClassIdsToNames(val) { this._options.convertClassIdsToClassNames = val; return this; }
47
47
  setLimit(val) { this._options.limit = val; return this; }
48
+ setRowFormat(val) { this._options.rowFormat = val; return this; }
48
49
  }
49
50
  exports.QueryOptionsBuilder = QueryOptionsBuilder;
50
51
  /** @beta */
@@ -143,10 +144,11 @@ class QueryBinder {
143
144
  bindIdSet(indexOrName, val) {
144
145
  this.verify(indexOrName);
145
146
  const name = String(indexOrName);
147
+ core_bentley_1.OrderedId64Iterable.uniqueIterator(val);
146
148
  Object.defineProperty(this._args, name, {
147
149
  enumerable: true, value: {
148
150
  type: QueryParamType.IdSet,
149
- value: core_bentley_1.CompressedId64Set.compressIds(val),
151
+ value: core_bentley_1.CompressedId64Set.sortAndCompress(core_bentley_1.OrderedId64Iterable.uniqueIterator(val)),
150
152
  },
151
153
  });
152
154
  return this;
@@ -247,7 +249,7 @@ class QueryBinder {
247
249
  else if (val instanceof core_geometry_1.Point3d) {
248
250
  params.bindPoint3d(nameOrId, val);
249
251
  }
250
- else if (val instanceof Set) {
252
+ else if (val instanceof Array && val.length > 0 && typeof val[0] === "string" && core_bentley_1.Id64.isValidId64(val[0])) {
251
253
  params.bindIdSet(nameOrId, val);
252
254
  }
253
255
  else if (typeof val === "object" && !Array.isArray(val)) {
@@ -296,13 +298,25 @@ var DbResponseKind;
296
298
  /** @internal */
297
299
  var DbResponseStatus;
298
300
  (function (DbResponseStatus) {
299
- DbResponseStatus[DbResponseStatus["Error"] = 0] = "Error";
300
301
  DbResponseStatus[DbResponseStatus["Done"] = 1] = "Done";
301
302
  DbResponseStatus[DbResponseStatus["Cancel"] = 2] = "Cancel";
302
303
  DbResponseStatus[DbResponseStatus["Partial"] = 3] = "Partial";
303
- DbResponseStatus[DbResponseStatus["TimeOut"] = 4] = "TimeOut";
304
+ DbResponseStatus[DbResponseStatus["Timeout"] = 4] = "Timeout";
304
305
  DbResponseStatus[DbResponseStatus["QueueFull"] = 5] = "QueueFull";
306
+ DbResponseStatus[DbResponseStatus["Error"] = 100] = "Error";
307
+ DbResponseStatus[DbResponseStatus["Error_ECSql_PreparedFailed"] = 101] = "Error_ECSql_PreparedFailed";
308
+ DbResponseStatus[DbResponseStatus["Error_ECSql_StepFailed"] = 102] = "Error_ECSql_StepFailed";
309
+ DbResponseStatus[DbResponseStatus["Error_ECSql_RowToJsonFailed"] = 103] = "Error_ECSql_RowToJsonFailed";
310
+ DbResponseStatus[DbResponseStatus["Error_ECSql_BindingFailed"] = 104] = "Error_ECSql_BindingFailed";
311
+ DbResponseStatus[DbResponseStatus["Error_BlobIO_OpenFailed"] = 105] = "Error_BlobIO_OpenFailed";
312
+ DbResponseStatus[DbResponseStatus["Error_BlobIO_OutOfRange"] = 106] = "Error_BlobIO_OutOfRange";
305
313
  })(DbResponseStatus = exports.DbResponseStatus || (exports.DbResponseStatus = {}));
314
+ /** @internal */
315
+ var DbValueFormat;
316
+ (function (DbValueFormat) {
317
+ DbValueFormat[DbValueFormat["ECSqlNames"] = 0] = "ECSqlNames";
318
+ DbValueFormat[DbValueFormat["JsNames"] = 1] = "JsNames";
319
+ })(DbValueFormat = exports.DbValueFormat || (exports.DbValueFormat = {}));
306
320
  /** @public */
307
321
  class DbQueryError extends core_bentley_1.BentleyError {
308
322
  constructor(response, request, rc) {
@@ -311,7 +325,7 @@ class DbQueryError extends core_bentley_1.BentleyError {
311
325
  this.request = request;
312
326
  }
313
327
  static throwIfError(response, request) {
314
- if (response.status === DbResponseStatus.Error) {
328
+ if (response.status >= DbResponseStatus.Error) {
315
329
  throw new DbQueryError(response, request);
316
330
  }
317
331
  if (response.status === DbResponseStatus.Cancel) {