@itwin/presentation-common 3.6.0-dev.55 → 3.6.0-dev.60

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 (356) hide show
  1. package/Ruleset.schema.json +236 -309
  2. package/lib/cjs/presentation-common/EC.d.ts +52 -17
  3. package/lib/cjs/presentation-common/EC.d.ts.map +1 -1
  4. package/lib/cjs/presentation-common/EC.js +74 -54
  5. package/lib/cjs/presentation-common/EC.js.map +1 -1
  6. package/lib/cjs/presentation-common/ElementProperties.d.ts +14 -14
  7. package/lib/cjs/presentation-common/ElementProperties.js.map +1 -1
  8. package/lib/cjs/presentation-common/InstanceFilterDefinition.d.ts +43 -9
  9. package/lib/cjs/presentation-common/InstanceFilterDefinition.d.ts.map +1 -1
  10. package/lib/cjs/presentation-common/InstanceFilterDefinition.js.map +1 -1
  11. package/lib/cjs/presentation-common/KeySet.d.ts.map +1 -1
  12. package/lib/cjs/presentation-common/KeySet.js +5 -0
  13. package/lib/cjs/presentation-common/KeySet.js.map +1 -1
  14. package/lib/cjs/presentation-common/LabelDefinition.d.ts +24 -16
  15. package/lib/cjs/presentation-common/LabelDefinition.d.ts.map +1 -1
  16. package/lib/cjs/presentation-common/LabelDefinition.js +26 -29
  17. package/lib/cjs/presentation-common/LabelDefinition.js.map +1 -1
  18. package/lib/cjs/presentation-common/PresentationIpcInterface.d.ts +2 -2
  19. package/lib/cjs/presentation-common/PresentationIpcInterface.d.ts.map +1 -1
  20. package/lib/cjs/presentation-common/PresentationIpcInterface.js.map +1 -1
  21. package/lib/cjs/presentation-common/PresentationManagerOptions.d.ts +19 -14
  22. package/lib/cjs/presentation-common/PresentationManagerOptions.d.ts.map +1 -1
  23. package/lib/cjs/presentation-common/PresentationManagerOptions.js +1 -1
  24. package/lib/cjs/presentation-common/PresentationManagerOptions.js.map +1 -1
  25. package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts +19 -21
  26. package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
  27. package/lib/cjs/presentation-common/PresentationRpcInterface.js +2 -5
  28. package/lib/cjs/presentation-common/PresentationRpcInterface.js.map +1 -1
  29. package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts +8 -8
  30. package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
  31. package/lib/cjs/presentation-common/RpcRequestsHandler.js +11 -1
  32. package/lib/cjs/presentation-common/RpcRequestsHandler.js.map +1 -1
  33. package/lib/cjs/presentation-common/RulesetVariables.d.ts +5 -0
  34. package/lib/cjs/presentation-common/RulesetVariables.d.ts.map +1 -1
  35. package/lib/cjs/presentation-common/RulesetVariables.js.map +1 -1
  36. package/lib/cjs/presentation-common/Update.d.ts +21 -4
  37. package/lib/cjs/presentation-common/Update.d.ts.map +1 -1
  38. package/lib/cjs/presentation-common/Update.js +34 -4
  39. package/lib/cjs/presentation-common/Update.js.map +1 -1
  40. package/lib/cjs/presentation-common/content/Category.d.ts.map +1 -1
  41. package/lib/cjs/presentation-common/content/Category.js +1 -2
  42. package/lib/cjs/presentation-common/content/Category.js.map +1 -1
  43. package/lib/cjs/presentation-common/content/ContentTraverser.d.ts +194 -24
  44. package/lib/cjs/presentation-common/content/ContentTraverser.d.ts.map +1 -1
  45. package/lib/cjs/presentation-common/content/ContentTraverser.js +63 -44
  46. package/lib/cjs/presentation-common/content/ContentTraverser.js.map +1 -1
  47. package/lib/cjs/presentation-common/content/Descriptor.d.ts +67 -18
  48. package/lib/cjs/presentation-common/content/Descriptor.d.ts.map +1 -1
  49. package/lib/cjs/presentation-common/content/Descriptor.js +0 -2
  50. package/lib/cjs/presentation-common/content/Descriptor.js.map +1 -1
  51. package/lib/cjs/presentation-common/content/Fields.d.ts +24 -5
  52. package/lib/cjs/presentation-common/content/Fields.d.ts.map +1 -1
  53. package/lib/cjs/presentation-common/content/Fields.js +10 -7
  54. package/lib/cjs/presentation-common/content/Fields.js.map +1 -1
  55. package/lib/cjs/presentation-common/content/Item.d.ts +6 -8
  56. package/lib/cjs/presentation-common/content/Item.d.ts.map +1 -1
  57. package/lib/cjs/presentation-common/content/Item.js +6 -8
  58. package/lib/cjs/presentation-common/content/Item.js.map +1 -1
  59. package/lib/cjs/presentation-common/content/Property.d.ts +8 -2
  60. package/lib/cjs/presentation-common/content/Property.d.ts.map +1 -1
  61. package/lib/cjs/presentation-common/content/Property.js +12 -8
  62. package/lib/cjs/presentation-common/content/Property.js.map +1 -1
  63. package/lib/cjs/presentation-common/content/Value.d.ts +43 -11
  64. package/lib/cjs/presentation-common/content/Value.d.ts.map +1 -1
  65. package/lib/cjs/presentation-common/content/Value.js +72 -16
  66. package/lib/cjs/presentation-common/content/Value.js.map +1 -1
  67. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.d.ts +11 -4
  68. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.d.ts.map +1 -1
  69. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.js +10 -2
  70. package/lib/cjs/presentation-common/hierarchy/HierarchyLevel.js.map +1 -1
  71. package/lib/cjs/presentation-common/hierarchy/Key.d.ts +75 -14
  72. package/lib/cjs/presentation-common/hierarchy/Key.d.ts.map +1 -1
  73. package/lib/cjs/presentation-common/hierarchy/Key.js +15 -6
  74. package/lib/cjs/presentation-common/hierarchy/Key.js.map +1 -1
  75. package/lib/cjs/presentation-common/hierarchy/Node.d.ts +12 -7
  76. package/lib/cjs/presentation-common/hierarchy/Node.d.ts.map +1 -1
  77. package/lib/cjs/presentation-common/hierarchy/Node.js +23 -14
  78. package/lib/cjs/presentation-common/hierarchy/Node.js.map +1 -1
  79. package/lib/cjs/presentation-common/hierarchy/NodePathElement.d.ts +18 -7
  80. package/lib/cjs/presentation-common/hierarchy/NodePathElement.d.ts.map +1 -1
  81. package/lib/cjs/presentation-common/hierarchy/NodePathElement.js +33 -9
  82. package/lib/cjs/presentation-common/hierarchy/NodePathElement.js.map +1 -1
  83. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.d.ts +5 -2
  84. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.d.ts.map +1 -1
  85. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.js.map +1 -1
  86. package/lib/cjs/presentation-common/rules/Rule.d.ts +5 -3
  87. package/lib/cjs/presentation-common/rules/Rule.d.ts.map +1 -1
  88. package/lib/cjs/presentation-common/rules/Rule.js.map +1 -1
  89. package/lib/cjs/presentation-common/rules/Ruleset.d.ts +0 -1
  90. package/lib/cjs/presentation-common/rules/Ruleset.d.ts.map +1 -1
  91. package/lib/cjs/presentation-common/rules/Ruleset.js.map +1 -1
  92. package/lib/cjs/presentation-common/rules/SchemasSpecification.d.ts +1 -1
  93. package/lib/cjs/presentation-common/rules/SchemasSpecification.js.map +1 -1
  94. package/lib/cjs/presentation-common/rules/Variables.d.ts +5 -2
  95. package/lib/cjs/presentation-common/rules/Variables.d.ts.map +1 -1
  96. package/lib/cjs/presentation-common/rules/Variables.js.map +1 -1
  97. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts +2 -2
  98. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts.map +1 -1
  99. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js.map +1 -1
  100. package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts +2 -2
  101. package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts.map +1 -1
  102. package/lib/cjs/presentation-common/rules/content/ContentRelatedInstancesSpecification.js.map +1 -1
  103. package/lib/cjs/presentation-common/rules/content/ContentRule.d.ts +2 -2
  104. package/lib/cjs/presentation-common/rules/content/ContentRule.d.ts.map +1 -1
  105. package/lib/cjs/presentation-common/rules/content/ContentRule.js.map +1 -1
  106. package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts +5 -2
  107. package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts.map +1 -1
  108. package/lib/cjs/presentation-common/rules/content/ContentSpecification.js.map +1 -1
  109. package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts +2 -2
  110. package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts.map +1 -1
  111. package/lib/cjs/presentation-common/rules/content/DefaultPropertyCategoryOverride.js.map +1 -1
  112. package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts +2 -2
  113. package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts.map +1 -1
  114. package/lib/cjs/presentation-common/rules/content/SelectedNodeInstancesSpecification.js.map +1 -1
  115. package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.d.ts +2 -2
  116. package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.d.ts.map +1 -1
  117. package/lib/cjs/presentation-common/rules/content/modifiers/ContentModifier.js.map +1 -1
  118. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts +9 -6
  119. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts.map +1 -1
  120. package/lib/cjs/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js.map +1 -1
  121. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts +6 -3
  122. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts.map +1 -1
  123. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js.map +1 -1
  124. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.d.ts +2 -2
  125. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.d.ts.map +1 -1
  126. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.js.map +1 -1
  127. package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.d.ts +2 -2
  128. package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.d.ts.map +1 -1
  129. package/lib/cjs/presentation-common/rules/customization/ExtendedDataRule.js.map +1 -1
  130. package/lib/cjs/presentation-common/rules/customization/GroupingRule.d.ts +17 -10
  131. package/lib/cjs/presentation-common/rules/customization/GroupingRule.d.ts.map +1 -1
  132. package/lib/cjs/presentation-common/rules/customization/GroupingRule.js.map +1 -1
  133. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.d.ts +2 -2
  134. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.d.ts.map +1 -1
  135. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.js.map +1 -1
  136. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.d.ts +17 -15
  137. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.d.ts.map +1 -1
  138. package/lib/cjs/presentation-common/rules/customization/InstanceLabelOverride.js.map +1 -1
  139. package/lib/cjs/presentation-common/rules/customization/LabelOverride.d.ts +2 -2
  140. package/lib/cjs/presentation-common/rules/customization/LabelOverride.d.ts.map +1 -1
  141. package/lib/cjs/presentation-common/rules/customization/LabelOverride.js.map +1 -1
  142. package/lib/cjs/presentation-common/rules/customization/SortingRule.d.ts +3 -3
  143. package/lib/cjs/presentation-common/rules/customization/SortingRule.d.ts.map +1 -1
  144. package/lib/cjs/presentation-common/rules/customization/SortingRule.js.map +1 -1
  145. package/lib/cjs/presentation-common/rules/customization/StyleOverride.d.ts +2 -2
  146. package/lib/cjs/presentation-common/rules/customization/StyleOverride.d.ts.map +1 -1
  147. package/lib/cjs/presentation-common/rules/customization/StyleOverride.js.map +1 -1
  148. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.d.ts +1 -2
  149. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.d.ts.map +1 -1
  150. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeRule.js.map +1 -1
  151. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts +5 -4
  152. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts.map +1 -1
  153. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.js +0 -1
  154. package/lib/cjs/presentation-common/rules/hierarchy/ChildNodeSpecification.js.map +1 -1
  155. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +2 -2
  156. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts.map +1 -1
  157. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.js.map +1 -1
  158. package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts +9 -6
  159. package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts.map +1 -1
  160. package/lib/cjs/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js.map +1 -1
  161. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +2 -2
  162. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts.map +1 -1
  163. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
  164. package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts +2 -2
  165. package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts.map +1 -1
  166. package/lib/cjs/presentation-common/rules/hierarchy/NodeArtifactsRule.js.map +1 -1
  167. package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts +2 -2
  168. package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts.map +1 -1
  169. package/lib/cjs/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js.map +1 -1
  170. package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.d.ts +1 -2
  171. package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.d.ts.map +1 -1
  172. package/lib/cjs/presentation-common/rules/hierarchy/RootNodeRule.js.map +1 -1
  173. package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.d.ts +0 -1
  174. package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.d.ts.map +1 -1
  175. package/lib/cjs/presentation-common/rules/hierarchy/SubCondition.js.map +1 -1
  176. package/lib/cjs/presentation-common/selection/SelectionScope.d.ts +17 -4
  177. package/lib/cjs/presentation-common/selection/SelectionScope.d.ts.map +1 -1
  178. package/lib/cjs/presentation-common/selection/SelectionScope.js.map +1 -1
  179. package/lib/esm/presentation-common/EC.d.ts +52 -17
  180. package/lib/esm/presentation-common/EC.d.ts.map +1 -1
  181. package/lib/esm/presentation-common/EC.js +75 -55
  182. package/lib/esm/presentation-common/EC.js.map +1 -1
  183. package/lib/esm/presentation-common/ElementProperties.d.ts +14 -14
  184. package/lib/esm/presentation-common/ElementProperties.js.map +1 -1
  185. package/lib/esm/presentation-common/InstanceFilterDefinition.d.ts +43 -9
  186. package/lib/esm/presentation-common/InstanceFilterDefinition.d.ts.map +1 -1
  187. package/lib/esm/presentation-common/InstanceFilterDefinition.js.map +1 -1
  188. package/lib/esm/presentation-common/KeySet.d.ts.map +1 -1
  189. package/lib/esm/presentation-common/KeySet.js +5 -0
  190. package/lib/esm/presentation-common/KeySet.js.map +1 -1
  191. package/lib/esm/presentation-common/LabelDefinition.d.ts +24 -16
  192. package/lib/esm/presentation-common/LabelDefinition.d.ts.map +1 -1
  193. package/lib/esm/presentation-common/LabelDefinition.js +26 -29
  194. package/lib/esm/presentation-common/LabelDefinition.js.map +1 -1
  195. package/lib/esm/presentation-common/PresentationIpcInterface.d.ts +2 -2
  196. package/lib/esm/presentation-common/PresentationIpcInterface.d.ts.map +1 -1
  197. package/lib/esm/presentation-common/PresentationIpcInterface.js.map +1 -1
  198. package/lib/esm/presentation-common/PresentationManagerOptions.d.ts +19 -14
  199. package/lib/esm/presentation-common/PresentationManagerOptions.d.ts.map +1 -1
  200. package/lib/esm/presentation-common/PresentationManagerOptions.js +1 -1
  201. package/lib/esm/presentation-common/PresentationManagerOptions.js.map +1 -1
  202. package/lib/esm/presentation-common/PresentationRpcInterface.d.ts +19 -21
  203. package/lib/esm/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
  204. package/lib/esm/presentation-common/PresentationRpcInterface.js +2 -5
  205. package/lib/esm/presentation-common/PresentationRpcInterface.js.map +1 -1
  206. package/lib/esm/presentation-common/RpcRequestsHandler.d.ts +8 -8
  207. package/lib/esm/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
  208. package/lib/esm/presentation-common/RpcRequestsHandler.js +11 -1
  209. package/lib/esm/presentation-common/RpcRequestsHandler.js.map +1 -1
  210. package/lib/esm/presentation-common/RulesetVariables.d.ts +5 -0
  211. package/lib/esm/presentation-common/RulesetVariables.d.ts.map +1 -1
  212. package/lib/esm/presentation-common/RulesetVariables.js.map +1 -1
  213. package/lib/esm/presentation-common/Update.d.ts +21 -4
  214. package/lib/esm/presentation-common/Update.d.ts.map +1 -1
  215. package/lib/esm/presentation-common/Update.js +34 -4
  216. package/lib/esm/presentation-common/Update.js.map +1 -1
  217. package/lib/esm/presentation-common/content/Category.d.ts.map +1 -1
  218. package/lib/esm/presentation-common/content/Category.js +1 -2
  219. package/lib/esm/presentation-common/content/Category.js.map +1 -1
  220. package/lib/esm/presentation-common/content/ContentTraverser.d.ts +194 -24
  221. package/lib/esm/presentation-common/content/ContentTraverser.d.ts.map +1 -1
  222. package/lib/esm/presentation-common/content/ContentTraverser.js +60 -42
  223. package/lib/esm/presentation-common/content/ContentTraverser.js.map +1 -1
  224. package/lib/esm/presentation-common/content/Descriptor.d.ts +67 -18
  225. package/lib/esm/presentation-common/content/Descriptor.d.ts.map +1 -1
  226. package/lib/esm/presentation-common/content/Descriptor.js +0 -2
  227. package/lib/esm/presentation-common/content/Descriptor.js.map +1 -1
  228. package/lib/esm/presentation-common/content/Fields.d.ts +24 -5
  229. package/lib/esm/presentation-common/content/Fields.d.ts.map +1 -1
  230. package/lib/esm/presentation-common/content/Fields.js +11 -8
  231. package/lib/esm/presentation-common/content/Fields.js.map +1 -1
  232. package/lib/esm/presentation-common/content/Item.d.ts +6 -8
  233. package/lib/esm/presentation-common/content/Item.d.ts.map +1 -1
  234. package/lib/esm/presentation-common/content/Item.js +6 -8
  235. package/lib/esm/presentation-common/content/Item.js.map +1 -1
  236. package/lib/esm/presentation-common/content/Property.d.ts +8 -2
  237. package/lib/esm/presentation-common/content/Property.d.ts.map +1 -1
  238. package/lib/esm/presentation-common/content/Property.js +12 -8
  239. package/lib/esm/presentation-common/content/Property.js.map +1 -1
  240. package/lib/esm/presentation-common/content/Value.d.ts +43 -11
  241. package/lib/esm/presentation-common/content/Value.d.ts.map +1 -1
  242. package/lib/esm/presentation-common/content/Value.js +72 -16
  243. package/lib/esm/presentation-common/content/Value.js.map +1 -1
  244. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.d.ts +11 -4
  245. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.d.ts.map +1 -1
  246. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.js +10 -2
  247. package/lib/esm/presentation-common/hierarchy/HierarchyLevel.js.map +1 -1
  248. package/lib/esm/presentation-common/hierarchy/Key.d.ts +75 -14
  249. package/lib/esm/presentation-common/hierarchy/Key.d.ts.map +1 -1
  250. package/lib/esm/presentation-common/hierarchy/Key.js +15 -6
  251. package/lib/esm/presentation-common/hierarchy/Key.js.map +1 -1
  252. package/lib/esm/presentation-common/hierarchy/Node.d.ts +12 -7
  253. package/lib/esm/presentation-common/hierarchy/Node.d.ts.map +1 -1
  254. package/lib/esm/presentation-common/hierarchy/Node.js +23 -14
  255. package/lib/esm/presentation-common/hierarchy/Node.js.map +1 -1
  256. package/lib/esm/presentation-common/hierarchy/NodePathElement.d.ts +18 -7
  257. package/lib/esm/presentation-common/hierarchy/NodePathElement.d.ts.map +1 -1
  258. package/lib/esm/presentation-common/hierarchy/NodePathElement.js +33 -9
  259. package/lib/esm/presentation-common/hierarchy/NodePathElement.js.map +1 -1
  260. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.d.ts +5 -2
  261. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.d.ts.map +1 -1
  262. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.js.map +1 -1
  263. package/lib/esm/presentation-common/rules/Rule.d.ts +5 -3
  264. package/lib/esm/presentation-common/rules/Rule.d.ts.map +1 -1
  265. package/lib/esm/presentation-common/rules/Rule.js.map +1 -1
  266. package/lib/esm/presentation-common/rules/Ruleset.d.ts +0 -1
  267. package/lib/esm/presentation-common/rules/Ruleset.d.ts.map +1 -1
  268. package/lib/esm/presentation-common/rules/Ruleset.js.map +1 -1
  269. package/lib/esm/presentation-common/rules/SchemasSpecification.d.ts +1 -1
  270. package/lib/esm/presentation-common/rules/SchemasSpecification.js.map +1 -1
  271. package/lib/esm/presentation-common/rules/Variables.d.ts +5 -2
  272. package/lib/esm/presentation-common/rules/Variables.d.ts.map +1 -1
  273. package/lib/esm/presentation-common/rules/Variables.js.map +1 -1
  274. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts +2 -2
  275. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts.map +1 -1
  276. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js.map +1 -1
  277. package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts +2 -2
  278. package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.d.ts.map +1 -1
  279. package/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.js.map +1 -1
  280. package/lib/esm/presentation-common/rules/content/ContentRule.d.ts +2 -2
  281. package/lib/esm/presentation-common/rules/content/ContentRule.d.ts.map +1 -1
  282. package/lib/esm/presentation-common/rules/content/ContentRule.js.map +1 -1
  283. package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts +5 -2
  284. package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts.map +1 -1
  285. package/lib/esm/presentation-common/rules/content/ContentSpecification.js.map +1 -1
  286. package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts +2 -2
  287. package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.d.ts.map +1 -1
  288. package/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.js.map +1 -1
  289. package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts +2 -2
  290. package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.d.ts.map +1 -1
  291. package/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.js.map +1 -1
  292. package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.d.ts +2 -2
  293. package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.d.ts.map +1 -1
  294. package/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.js.map +1 -1
  295. package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts +9 -6
  296. package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.d.ts.map +1 -1
  297. package/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js.map +1 -1
  298. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts +6 -3
  299. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts.map +1 -1
  300. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js.map +1 -1
  301. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.d.ts +2 -2
  302. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.d.ts.map +1 -1
  303. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.js.map +1 -1
  304. package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.d.ts +2 -2
  305. package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.d.ts.map +1 -1
  306. package/lib/esm/presentation-common/rules/customization/ExtendedDataRule.js.map +1 -1
  307. package/lib/esm/presentation-common/rules/customization/GroupingRule.d.ts +17 -10
  308. package/lib/esm/presentation-common/rules/customization/GroupingRule.d.ts.map +1 -1
  309. package/lib/esm/presentation-common/rules/customization/GroupingRule.js.map +1 -1
  310. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.d.ts +2 -2
  311. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.d.ts.map +1 -1
  312. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.js.map +1 -1
  313. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.d.ts +17 -15
  314. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.d.ts.map +1 -1
  315. package/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.js.map +1 -1
  316. package/lib/esm/presentation-common/rules/customization/LabelOverride.d.ts +2 -2
  317. package/lib/esm/presentation-common/rules/customization/LabelOverride.d.ts.map +1 -1
  318. package/lib/esm/presentation-common/rules/customization/LabelOverride.js.map +1 -1
  319. package/lib/esm/presentation-common/rules/customization/SortingRule.d.ts +3 -3
  320. package/lib/esm/presentation-common/rules/customization/SortingRule.d.ts.map +1 -1
  321. package/lib/esm/presentation-common/rules/customization/SortingRule.js.map +1 -1
  322. package/lib/esm/presentation-common/rules/customization/StyleOverride.d.ts +2 -2
  323. package/lib/esm/presentation-common/rules/customization/StyleOverride.d.ts.map +1 -1
  324. package/lib/esm/presentation-common/rules/customization/StyleOverride.js.map +1 -1
  325. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.d.ts +1 -2
  326. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.d.ts.map +1 -1
  327. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.js.map +1 -1
  328. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts +5 -4
  329. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.d.ts.map +1 -1
  330. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.js +0 -1
  331. package/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.js.map +1 -1
  332. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +2 -2
  333. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts.map +1 -1
  334. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.js.map +1 -1
  335. package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts +9 -6
  336. package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.d.ts.map +1 -1
  337. package/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js.map +1 -1
  338. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +2 -2
  339. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts.map +1 -1
  340. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
  341. package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts +2 -2
  342. package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.d.ts.map +1 -1
  343. package/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.js.map +1 -1
  344. package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts +2 -2
  345. package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.d.ts.map +1 -1
  346. package/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js.map +1 -1
  347. package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.d.ts +1 -2
  348. package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.d.ts.map +1 -1
  349. package/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.js.map +1 -1
  350. package/lib/esm/presentation-common/rules/hierarchy/SubCondition.d.ts +0 -1
  351. package/lib/esm/presentation-common/rules/hierarchy/SubCondition.d.ts.map +1 -1
  352. package/lib/esm/presentation-common/rules/hierarchy/SubCondition.js.map +1 -1
  353. package/lib/esm/presentation-common/selection/SelectionScope.d.ts +17 -4
  354. package/lib/esm/presentation-common/selection/SelectionScope.d.ts.map +1 -1
  355. package/lib/esm/presentation-common/selection/SelectionScope.js.map +1 -1
  356. package/package.json +10 -10
@@ -5,7 +5,6 @@
5
5
  /** @packageDocumentation
6
6
  * @module Content
7
7
  */
8
- import { InstanceKey } from "../EC";
9
8
  /** @public */
10
9
  export var Value;
11
10
  (function (Value) {
@@ -29,11 +28,16 @@ export var Value;
29
28
  return isNestedContentValue(value);
30
29
  }
31
30
  Value.isNestedContent = isNestedContent;
32
- /** Serialize [[Value]] to JSON */
31
+ /**
32
+ * Serialize [[Value]] to JSON
33
+ * @deprecated in 3.x. Use [[Value]]
34
+ */
35
+ // eslint-disable-next-line deprecation/deprecation
33
36
  function fromJSON(json) {
34
37
  if (json === null)
35
38
  return undefined;
36
39
  if (isNestedContentValue(json))
40
+ // eslint-disable-next-line deprecation/deprecation
37
41
  return json.map(NestedContentValue.fromJSON);
38
42
  if (isArrayValue(json))
39
43
  return valuesArrayFromJSON(json);
@@ -42,11 +46,16 @@ export var Value;
42
46
  return json;
43
47
  }
44
48
  Value.fromJSON = fromJSON;
45
- /** Deserialize [[Value]] from JSON */
49
+ /**
50
+ * Deserialize [[Value]] from JSON
51
+ * @deprecated in 3.x. Use [[Value]]
52
+ */
53
+ // eslint-disable-next-line deprecation/deprecation
46
54
  function toJSON(value) {
47
55
  if (undefined === value)
48
56
  return null;
49
57
  if (isNestedContentValue(value))
58
+ // eslint-disable-next-line deprecation/deprecation
50
59
  return value.map(NestedContentValue.toJSON);
51
60
  if (isArrayValue(value))
52
61
  return valuesArrayToJSON(value);
@@ -74,7 +83,11 @@ export var DisplayValue;
74
83
  return isMapValue(value);
75
84
  }
76
85
  DisplayValue.isMap = isMap;
77
- /** Serialize [[DisplayValue]] to JSON */
86
+ /**
87
+ * Serialize [[DisplayValue]] to JSON
88
+ * @deprecated in 3.x. Use [[DisplayValue]]
89
+ */
90
+ // eslint-disable-next-line deprecation/deprecation
78
91
  function fromJSON(json) {
79
92
  if (json === null)
80
93
  return undefined;
@@ -85,7 +98,11 @@ export var DisplayValue;
85
98
  return json;
86
99
  }
87
100
  DisplayValue.fromJSON = fromJSON;
88
- /** Deserialize [[DisplayValue]] from JSON */
101
+ /**
102
+ * Deserialize [[DisplayValue]] from JSON
103
+ * @deprecated in 3.x. Use [[DisplayValue]]
104
+ */
105
+ // eslint-disable-next-line deprecation/deprecation
89
106
  function toJSON(value) {
90
107
  if (undefined === value)
91
108
  return null;
@@ -100,23 +117,29 @@ export var DisplayValue;
100
117
  /** @public */
101
118
  export var NestedContentValue;
102
119
  (function (NestedContentValue) {
103
- /** Serialize [[NestedContentValue]] to JSON */
104
- function toJSON(json) {
120
+ /**
121
+ * Serialize [[NestedContentValue]] to JSON
122
+ * @deprecated in 3.x. Use [[NestedContentValue]]
123
+ */
124
+ // eslint-disable-next-line deprecation/deprecation
125
+ function toJSON(value) {
105
126
  return {
106
- primaryKeys: json.primaryKeys.map(InstanceKey.toJSON),
107
- values: valuesMapToJSON(json.values),
108
- displayValues: displayValuesMapToJSON(json.displayValues),
109
- mergedFieldNames: json.mergedFieldNames,
127
+ ...value,
128
+ values: valuesMapToJSON(value.values),
129
+ displayValues: displayValuesMapToJSON(value.displayValues),
110
130
  };
111
131
  }
112
132
  NestedContentValue.toJSON = toJSON;
113
- /** Deserialize [[NestedContentValue]] from JSON */
133
+ /**
134
+ * Deserialize [[NestedContentValue]] from JSON
135
+ * @deprecated in 3.x. Use [[NestedContentValue]]
136
+ */
137
+ // eslint-disable-next-line deprecation/deprecation
114
138
  function fromJSON(json) {
115
139
  return {
116
- primaryKeys: json.primaryKeys.map(InstanceKey.fromJSON),
140
+ ...json,
117
141
  values: valuesMapFromJSON(json.values),
118
142
  displayValues: displayValuesMapFromJSON(json.displayValues),
119
- mergedFieldNames: json.mergedFieldNames,
120
143
  };
121
144
  }
122
145
  NestedContentValue.fromJSON = fromJSON;
@@ -124,23 +147,36 @@ export var NestedContentValue;
124
147
  /** @public */
125
148
  export var DisplayValueGroup;
126
149
  (function (DisplayValueGroup) {
127
- /** Serialize [[DisplayValueGroup]] to JSON */
150
+ /**
151
+ * Serialize [[DisplayValueGroup]] to JSON
152
+ * @deprecated in 3.x. Use [[DisplayValueGroup]]
153
+ */
154
+ // eslint-disable-next-line deprecation/deprecation
128
155
  function toJSON(group) {
129
156
  return {
157
+ // eslint-disable-next-line deprecation/deprecation
130
158
  displayValue: DisplayValue.toJSON(group.displayValue),
159
+ // eslint-disable-next-line deprecation/deprecation
131
160
  groupedRawValues: group.groupedRawValues.map(Value.toJSON),
132
161
  };
133
162
  }
134
163
  DisplayValueGroup.toJSON = toJSON;
135
- /** Deserialize [[DisplayValueGroup]] from JSON */
164
+ /**
165
+ * Deserialize [[DisplayValueGroup]] from JSON
166
+ * @deprecated in 3.x. Use [[DisplayValueGroup]]
167
+ */
168
+ // eslint-disable-next-line deprecation/deprecation
136
169
  function fromJSON(json) {
137
170
  return {
171
+ // eslint-disable-next-line deprecation/deprecation
138
172
  displayValue: DisplayValue.fromJSON(json.displayValue),
173
+ // eslint-disable-next-line deprecation/deprecation
139
174
  groupedRawValues: json.groupedRawValues.map(Value.fromJSON),
140
175
  };
141
176
  }
142
177
  DisplayValueGroup.fromJSON = fromJSON;
143
178
  })(DisplayValueGroup || (DisplayValueGroup = {}));
179
+ // eslint-disable-next-line deprecation/deprecation
144
180
  function isNestedContentValue(v) {
145
181
  return (v !== undefined) && Array.isArray(v)
146
182
  && ((v.length === 0)
@@ -149,64 +185,84 @@ function isNestedContentValue(v) {
149
185
  && v[0].displayValues !== undefined
150
186
  && v[0].mergedFieldNames !== undefined);
151
187
  }
188
+ // eslint-disable-next-line deprecation/deprecation
152
189
  function isArrayValue(v) {
153
190
  // note: we don't guarantee by 100% that v is ValuesArray | DisplayValuesArray, but merely make compiler happy.
154
191
  // we have other means to determine the type of value.
155
192
  return (v !== undefined) && Array.isArray(v);
156
193
  }
194
+ // eslint-disable-next-line deprecation/deprecation
157
195
  function isMapValue(v) {
158
196
  return (v !== undefined) && (typeof v === "object") && !Array.isArray(v);
159
197
  }
160
198
  function isPrimitiveValue(v) {
161
199
  return !isArrayValue(v) && !isMapValue(v);
162
200
  }
201
+ // eslint-disable-next-line deprecation/deprecation
163
202
  function valuesArrayFromJSON(json) {
203
+ // eslint-disable-next-line deprecation/deprecation
164
204
  return json.map(Value.fromJSON);
165
205
  }
206
+ // eslint-disable-next-line deprecation/deprecation
166
207
  function valuesArrayToJSON(values) {
208
+ // eslint-disable-next-line deprecation/deprecation
167
209
  return values.map(Value.toJSON);
168
210
  }
211
+ // eslint-disable-next-line deprecation/deprecation
169
212
  function valuesMapFromJSON(json) {
170
213
  const map = {};
171
214
  for (const key in json) {
172
215
  /* istanbul ignore else */
173
216
  if (json.hasOwnProperty(key)) {
217
+ // eslint-disable-next-line deprecation/deprecation
174
218
  map[key] = Value.fromJSON(json[key]);
175
219
  }
176
220
  }
177
221
  return map;
178
222
  }
223
+ // eslint-disable-next-line deprecation/deprecation
179
224
  function valuesMapToJSON(values) {
225
+ // eslint-disable-next-line deprecation/deprecation
180
226
  const map = {};
181
227
  for (const key in values) {
182
228
  /* istanbul ignore else */
183
229
  if (values.hasOwnProperty(key)) {
230
+ // eslint-disable-next-line deprecation/deprecation
184
231
  map[key] = Value.toJSON(values[key]);
185
232
  }
186
233
  }
187
234
  return map;
188
235
  }
236
+ // eslint-disable-next-line deprecation/deprecation
189
237
  function displayValuesArrayFromJSON(json) {
238
+ // eslint-disable-next-line deprecation/deprecation
190
239
  return json.map(DisplayValue.fromJSON);
191
240
  }
241
+ // eslint-disable-next-line deprecation/deprecation
192
242
  function displayValuesArrayToJSON(values) {
243
+ // eslint-disable-next-line deprecation/deprecation
193
244
  return values.map(DisplayValue.toJSON);
194
245
  }
246
+ // eslint-disable-next-line deprecation/deprecation
195
247
  function displayValuesMapFromJSON(json) {
196
248
  const map = {};
197
249
  for (const key in json) {
198
250
  /* istanbul ignore else */
199
251
  if (json.hasOwnProperty(key)) {
252
+ // eslint-disable-next-line deprecation/deprecation
200
253
  map[key] = DisplayValue.fromJSON(json[key]);
201
254
  }
202
255
  }
203
256
  return map;
204
257
  }
258
+ // eslint-disable-next-line deprecation/deprecation
205
259
  function displayValuesMapToJSON(values) {
260
+ // eslint-disable-next-line deprecation/deprecation
206
261
  const map = {};
207
262
  for (const key in values) {
208
263
  /* istanbul ignore else */
209
264
  if (values.hasOwnProperty(key)) {
265
+ // eslint-disable-next-line deprecation/deprecation
210
266
  map[key] = DisplayValue.toJSON(values[key]);
211
267
  }
212
268
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Value.js","sourceRoot":"","sources":["../../../../src/presentation-common/content/Value.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAmB,MAAM,OAAO,CAAC;AASrD,cAAc;AACd,MAAM,KAAW,KAAK,CA8CrB;AA9CD,WAAiB,KAAK;IACpB,+BAA+B;IAC/B,SAAgB,WAAW,CAAC,KAAY;QACtC,OAAO,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IAFe,iBAAW,cAE1B,CAAA;IAED,4BAA4B;IAC5B,SAAgB,OAAO,CAAC,KAAY;QAClC,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAFe,aAAO,UAEtB,CAAA;IAED,kCAAkC;IAClC,SAAgB,KAAK,CAAC,KAAY;QAChC,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IAFe,WAAK,QAEpB,CAAA;IAED,0CAA0C;IAC1C,SAAgB,eAAe,CAAC,KAAY;QAC1C,OAAO,oBAAoB,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAFe,qBAAe,kBAE9B,CAAA;IAED,kCAAkC;IAClC,SAAgB,QAAQ,CAAC,IAAe;QACtC,IAAI,IAAI,KAAK,IAAI;YACf,OA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IAC9B,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,0BAA0B;QAC1B,IAAI,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;YAC9B,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;SACtC;KACF;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,SAAS,0BAA0B,CAAC,IAA4B;IAC9D,OAAO,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;AACzC,CAAC;AACD,SAAS,wBAAwB,CAAC,MAA0B;IAC1D,OAAO,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;AACzC,CAAC;AACD,SAAS,wBAAwB,CAAC,IAA0B;IAC1D,MAAM,GAAG,GAAqB,EAAE,CAAC;IACjC,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;QACtB,0BAA0B;QAC1B,IAAI,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;YAC5B,GAAG,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;SAC7C;KACF;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AACD,SAAS,sBAAsB,CAAC,MAAwB;IACtD,MAAM,GAAG,GAAyB,EAAE,CAAC;IACrC,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,0BAA0B;QAC1B,IAAI,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;YAC9B,GAAG,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;SAC7C;KACF;IACD,OAAO,GAAG,CAAC;AACb,CAAC","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 Content\r\n */\r\n\r\nimport { InstanceKey, InstanceKeyJSON } from \"../EC\";\r\nimport { ValuesDictionary } from \"../Utils\";\r\n\r\n/**\r\n * Raw value type\r\n * @public\r\n */\r\nexport type Value = string | number | boolean | undefined | ValuesMap | ValuesArray | NestedContentValue[];\r\n\r\n/** @public */\r\nexport namespace Value { // eslint-disable-line @typescript-eslint/no-redeclare\r\n /** Is the value a primitive */\r\n export function isPrimitive(value: Value): value is string | number | boolean | undefined {\r\n return isPrimitiveValue(value);\r\n }\r\n\r\n /** Is the value an array */\r\n export function isArray(value: Value): value is ValuesArray {\r\n return isArrayValue(value);\r\n }\r\n\r\n /** Is the value a map / struct */\r\n export function isMap(value: Value): value is ValuesMap {\r\n return isMapValue(value);\r\n }\r\n\r\n /** Is the value a nested content value */\r\n export function isNestedContent(value: Value): value is NestedContentValue[] {\r\n return isNestedContentValue(value);\r\n }\r\n\r\n /** Serialize [[Value]] to JSON */\r\n export function fromJSON(json: ValueJSON): Value {\r\n if (json === null)\r\n return undefined;\r\n if (isNestedContentValue(json))\r\n return json.map(NestedContentValue.fromJSON);\r\n if (isArrayValue(json))\r\n return valuesArrayFromJSON(json);\r\n if (isMapValue(json))\r\n return valuesMapFromJSON(json);\r\n return json;\r\n }\r\n\r\n /** Deserialize [[Value]] from JSON */\r\n export function toJSON(value: Value): ValueJSON {\r\n if (undefined === value)\r\n return null;\r\n if (isNestedContentValue(value))\r\n return value.map(NestedContentValue.toJSON);\r\n if (isArrayValue(value))\r\n return valuesArrayToJSON(value);\r\n if (isMapValue(value))\r\n return valuesMapToJSON(value);\r\n return value;\r\n }\r\n}\r\n\r\n/**\r\n * A map of raw values\r\n * @public\r\n */\r\nexport interface ValuesMap extends ValuesDictionary<Value> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * An array of raw values\r\n * @public\r\n */\r\nexport interface ValuesArray extends Array<Value> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * Display value type.\r\n * @public\r\n */\r\nexport type DisplayValue = string | undefined | DisplayValuesMap | DisplayValuesArray;\r\n\r\n/** @public */\r\nexport namespace DisplayValue { // eslint-disable-line @typescript-eslint/no-redeclare\r\n /** Is the value a primitive */\r\n export function isPrimitive(value: DisplayValue): value is string | undefined {\r\n return isPrimitiveValue(value);\r\n }\r\n\r\n /** Is the value an array */\r\n export function isArray(value: DisplayValue): value is DisplayValuesArray {\r\n return isArrayValue(value);\r\n }\r\n\r\n /** Is the value a map / struct */\r\n export function isMap(value: DisplayValue): value is DisplayValuesMap {\r\n return isMapValue(value);\r\n }\r\n\r\n /** Serialize [[DisplayValue]] to JSON */\r\n export function fromJSON(json: DisplayValueJSON): DisplayValue {\r\n if (json === null)\r\n return undefined;\r\n if (isArrayValue(json))\r\n return displayValuesArrayFromJSON(json);\r\n if (isMapValue(json))\r\n return displayValuesMapFromJSON(json);\r\n return json;\r\n }\r\n\r\n /** Deserialize [[DisplayValue]] from JSON */\r\n export function toJSON(value: DisplayValue): DisplayValueJSON {\r\n if (undefined === value)\r\n return null;\r\n if (isArrayValue(value))\r\n return displayValuesArrayToJSON(value);\r\n if (isMapValue(value))\r\n return displayValuesMapToJSON(value);\r\n return value;\r\n }\r\n}\r\n\r\n/**\r\n * A map of display values\r\n * @public\r\n */\r\nexport interface DisplayValuesMap extends ValuesDictionary<DisplayValue> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * An array of display values\r\n * @public\r\n */\r\nexport interface DisplayValuesArray extends Array<DisplayValue> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * Data structure that describes nested content value.\r\n * @public\r\n */\r\nexport interface NestedContentValue {\r\n /** Keys of instances whose content is contained in this value */\r\n primaryKeys: InstanceKey[];\r\n /** Content values map */\r\n values: ValuesDictionary<Value>;\r\n /** Content display values map */\r\n displayValues: ValuesDictionary<DisplayValue>;\r\n /** Names of fields whose values are merged */\r\n mergedFieldNames: string[];\r\n}\r\n\r\n/** @public */\r\nexport namespace NestedContentValue {\r\n /** Serialize [[NestedContentValue]] to JSON */\r\n export function toJSON(json: NestedContentValue): NestedContentValueJSON {\r\n return {\r\n primaryKeys: json.primaryKeys.map(InstanceKey.toJSON),\r\n values: valuesMapToJSON(json.values),\r\n displayValues: displayValuesMapToJSON(json.displayValues),\r\n mergedFieldNames: json.mergedFieldNames,\r\n };\r\n }\r\n\r\n /** Deserialize [[NestedContentValue]] from JSON */\r\n export function fromJSON(json: NestedContentValueJSON): NestedContentValue {\r\n return {\r\n primaryKeys: json.primaryKeys.map(InstanceKey.fromJSON),\r\n values: valuesMapFromJSON(json.values),\r\n displayValues: displayValuesMapFromJSON(json.displayValues),\r\n mergedFieldNames: json.mergedFieldNames,\r\n };\r\n }\r\n}\r\n\r\n/**\r\n * JSON representation of [[Value]]\r\n * @public\r\n */\r\nexport type ValueJSON = string | number | boolean | null | ValuesMapJSON | ValuesArrayJSON | NestedContentValueJSON[];\r\n\r\n/**\r\n * JSON representation of [[ValuesMap]]\r\n * @public\r\n */\r\nexport interface ValuesMapJSON extends ValuesDictionary<ValueJSON> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * JSON representation of [[ValuesArray]]\r\n * @public\r\n */\r\nexport interface ValuesArrayJSON extends Array<ValueJSON> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * JSON representation of [[DisplayValue]]\r\n * @public\r\n */\r\nexport type DisplayValueJSON = string | null | DisplayValuesMapJSON | DisplayValuesArrayJSON;\r\n\r\n/**\r\n * JSON representation of [[DisplayValuesMap]]\r\n * @public\r\n */\r\nexport interface DisplayValuesMapJSON extends ValuesDictionary<DisplayValueJSON> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * JSON representation of [[DisplayValuesArray]]\r\n * @public\r\n */\r\nexport interface DisplayValuesArrayJSON extends Array<DisplayValueJSON> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * JSON representation of [[NestedContentValue]]\r\n * @public\r\n */\r\nexport interface NestedContentValueJSON {\r\n primaryKeys: InstanceKeyJSON[];\r\n values: ValuesDictionary<ValueJSON>;\r\n displayValues: ValuesDictionary<DisplayValueJSON>;\r\n mergedFieldNames: string[];\r\n}\r\n\r\n/**\r\n * A group of raw values and their common display value.\r\n * @public\r\n */\r\nexport interface DisplayValueGroup {\r\n /** Common display value for all grouped raw values */\r\n displayValue: DisplayValue;\r\n /** A list of grouped raw values */\r\n groupedRawValues: Value[];\r\n}\r\n\r\n/**\r\n * JSON representation of [[DisplayValueGroup]].\r\n * @public\r\n */\r\nexport interface DisplayValueGroupJSON {\r\n displayValue: DisplayValueJSON;\r\n groupedRawValues: ValueJSON[];\r\n}\r\n\r\n/** @public */\r\nexport namespace DisplayValueGroup {\r\n /** Serialize [[DisplayValueGroup]] to JSON */\r\n export function toJSON(group: DisplayValueGroup): DisplayValueGroupJSON {\r\n return {\r\n displayValue: DisplayValue.toJSON(group.displayValue),\r\n groupedRawValues: group.groupedRawValues.map(Value.toJSON),\r\n };\r\n }\r\n\r\n /** Deserialize [[DisplayValueGroup]] from JSON */\r\n export function fromJSON(json: DisplayValueGroupJSON): DisplayValueGroup {\r\n return {\r\n displayValue: DisplayValue.fromJSON(json.displayValue),\r\n groupedRawValues: json.groupedRawValues.map(Value.fromJSON),\r\n };\r\n }\r\n}\r\n\r\nfunction isNestedContentValue(v: Value | ValueJSON): v is NestedContentValue[] | NestedContentValueJSON[] {\r\n return (v !== undefined) && Array.isArray(v)\r\n && ((v.length === 0)\r\n || (v[0] as NestedContentValue).primaryKeys !== undefined\r\n && (v[0] as NestedContentValue).values !== undefined\r\n && (v[0] as NestedContentValue).displayValues !== undefined\r\n && (v[0] as NestedContentValue).mergedFieldNames !== undefined);\r\n}\r\nfunction isArrayValue(v: Value | ValueJSON | DisplayValue | DisplayValueJSON): v is ValuesArray | ValuesArrayJSON | DisplayValuesArray | DisplayValuesArrayJSON {\r\n // note: we don't guarantee by 100% that v is ValuesArray | DisplayValuesArray, but merely make compiler happy.\r\n // we have other means to determine the type of value.\r\n return (v !== undefined) && Array.isArray(v);\r\n}\r\nfunction isMapValue(v: Value | ValueJSON | DisplayValue | DisplayValueJSON): v is ValuesMap | ValuesMapJSON | DisplayValuesMap | DisplayValuesMapJSON {\r\n return (v !== undefined) && (typeof v === \"object\") && !Array.isArray(v);\r\n}\r\nfunction isPrimitiveValue(v: Value | DisplayValue): v is string | number | boolean | undefined {\r\n return !isArrayValue(v) && !isMapValue(v);\r\n}\r\n\r\nfunction valuesArrayFromJSON(json: ValuesArrayJSON): ValuesArray {\r\n return json.map(Value.fromJSON);\r\n}\r\nfunction valuesArrayToJSON(values: ValuesArray): ValuesArrayJSON {\r\n return values.map(Value.toJSON);\r\n}\r\nfunction valuesMapFromJSON(json: ValuesMapJSON): ValuesMap {\r\n const map: ValuesMap = {};\r\n for (const key in json) {\r\n /* istanbul ignore else */\r\n if (json.hasOwnProperty(key)) {\r\n map[key] = Value.fromJSON(json[key]);\r\n }\r\n }\r\n return map;\r\n}\r\nfunction valuesMapToJSON(values: ValuesMap): ValuesMapJSON {\r\n const map: ValuesMapJSON = {};\r\n for (const key in values) {\r\n /* istanbul ignore else */\r\n if (values.hasOwnProperty(key)) {\r\n map[key] = Value.toJSON(values[key]);\r\n }\r\n }\r\n return map;\r\n}\r\n\r\nfunction displayValuesArrayFromJSON(json: DisplayValuesArrayJSON): DisplayValuesArray {\r\n return json.map(DisplayValue.fromJSON);\r\n}\r\nfunction displayValuesArrayToJSON(values: DisplayValuesArray): DisplayValuesArrayJSON {\r\n return values.map(DisplayValue.toJSON);\r\n}\r\nfunction displayValuesMapFromJSON(json: DisplayValuesMapJSON): DisplayValuesMap {\r\n const map: DisplayValuesMap = {};\r\n for (const key in json) {\r\n /* istanbul ignore else */\r\n if (json.hasOwnProperty(key)) {\r\n map[key] = DisplayValue.fromJSON(json[key]);\r\n }\r\n }\r\n return map;\r\n}\r\nfunction displayValuesMapToJSON(values: DisplayValuesMap): DisplayValuesMapJSON {\r\n const map: DisplayValuesMapJSON = {};\r\n for (const key in values) {\r\n /* istanbul ignore else */\r\n if (values.hasOwnProperty(key)) {\r\n map[key] = DisplayValue.toJSON(values[key]);\r\n }\r\n }\r\n return map;\r\n}\r\n"]}
1
+ {"version":3,"file":"Value.js","sourceRoot":"","sources":["../../../../src/presentation-common/content/Value.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAWH,cAAc;AACd,MAAM,KAAW,KAAK,CAwDrB;AAxDD,WAAiB,KAAK;IACpB,+BAA+B;IAC/B,SAAgB,WAAW,CAAC,KAAY;QACtC,OAAO,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IAFe,iBAAW,cAE1B,CAAA;IAED,4BAA4B;IAC5B,SAAgB,OAAO,CAAC,KAAY;QAClC,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAFe,aAAO,UAEtB,CAAA;IAED,kCAAkC;IAClC,SAAgB,KAAK,CAAC,KAAY;QAChC,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IAFe,WAAK,QAEpB,CAAA;IAED,0CAA0C;IAC1C,SAAgB,eAAe,CAAC,KAAY;QAC1C,OAAO,oBAAoB,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAFe,qBAAe,kBAE9B,CAAA;IAED;;;OAGG;IACH,mDAAmD;IACnD,SAAgB,QAAQ,CAAC,IAAe;QACtC,IAAI,IAAI,KAAK,IAAI;YACf,OAAO,SAAS,CAAC;QACnB,IAAI,oBAAoB,CAAC,IAAI,CAAC;YAC5B,mDAAmD;YACnD,OAAO,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;QAC/C,IAAI,YAAY,CAAC,IAAI,CAAC;YACpB,OAAO,mBAAmB,CAAC,IA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------------------------------\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 Content\r\n */\r\n\r\nimport { InstanceKey } from \"../EC\";\r\nimport { ValuesDictionary } from \"../Utils\";\r\n\r\n/**\r\n * Raw value type\r\n * @public\r\n */\r\nexport type Value = string | number | boolean | undefined | ValuesMap | ValuesArray | NestedContentValue[];\r\n\r\n/** @public */\r\nexport namespace Value { // eslint-disable-line @typescript-eslint/no-redeclare\r\n /** Is the value a primitive */\r\n export function isPrimitive(value: Value): value is string | number | boolean | undefined {\r\n return isPrimitiveValue(value);\r\n }\r\n\r\n /** Is the value an array */\r\n export function isArray(value: Value): value is ValuesArray {\r\n return isArrayValue(value);\r\n }\r\n\r\n /** Is the value a map / struct */\r\n export function isMap(value: Value): value is ValuesMap {\r\n return isMapValue(value);\r\n }\r\n\r\n /** Is the value a nested content value */\r\n export function isNestedContent(value: Value): value is NestedContentValue[] {\r\n return isNestedContentValue(value);\r\n }\r\n\r\n /**\r\n * Serialize [[Value]] to JSON\r\n * @deprecated in 3.x. Use [[Value]]\r\n */\r\n // eslint-disable-next-line deprecation/deprecation\r\n export function fromJSON(json: ValueJSON): Value {\r\n if (json === null)\r\n return undefined;\r\n if (isNestedContentValue(json))\r\n // eslint-disable-next-line deprecation/deprecation\r\n return json.map(NestedContentValue.fromJSON);\r\n if (isArrayValue(json))\r\n return valuesArrayFromJSON(json);\r\n if (isMapValue(json))\r\n return valuesMapFromJSON(json);\r\n return json;\r\n }\r\n\r\n /**\r\n * Deserialize [[Value]] from JSON\r\n * @deprecated in 3.x. Use [[Value]]\r\n */\r\n // eslint-disable-next-line deprecation/deprecation\r\n export function toJSON(value: Value): ValueJSON {\r\n if (undefined === value)\r\n return null;\r\n if (isNestedContentValue(value))\r\n // eslint-disable-next-line deprecation/deprecation\r\n return value.map(NestedContentValue.toJSON);\r\n if (isArrayValue(value))\r\n return valuesArrayToJSON(value);\r\n if (isMapValue(value))\r\n return valuesMapToJSON(value);\r\n return value;\r\n }\r\n}\r\n\r\n/**\r\n * A map of raw values\r\n * @public\r\n */\r\nexport interface ValuesMap extends ValuesDictionary<Value> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * An array of raw values\r\n * @public\r\n */\r\nexport interface ValuesArray extends Array<Value> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * Display value type.\r\n * @public\r\n */\r\nexport type DisplayValue = string | undefined | DisplayValuesMap | DisplayValuesArray;\r\n\r\n/** @public */\r\nexport namespace DisplayValue { // eslint-disable-line @typescript-eslint/no-redeclare\r\n /** Is the value a primitive */\r\n export function isPrimitive(value: DisplayValue): value is string | undefined {\r\n return isPrimitiveValue(value);\r\n }\r\n\r\n /** Is the value an array */\r\n export function isArray(value: DisplayValue): value is DisplayValuesArray {\r\n return isArrayValue(value);\r\n }\r\n\r\n /** Is the value a map / struct */\r\n export function isMap(value: DisplayValue): value is DisplayValuesMap {\r\n return isMapValue(value);\r\n }\r\n\r\n /**\r\n * Serialize [[DisplayValue]] to JSON\r\n * @deprecated in 3.x. Use [[DisplayValue]]\r\n */\r\n // eslint-disable-next-line deprecation/deprecation\r\n export function fromJSON(json: DisplayValueJSON): DisplayValue {\r\n if (json === null)\r\n return undefined;\r\n if (isArrayValue(json))\r\n return displayValuesArrayFromJSON(json);\r\n if (isMapValue(json))\r\n return displayValuesMapFromJSON(json);\r\n return json;\r\n }\r\n\r\n /**\r\n * Deserialize [[DisplayValue]] from JSON\r\n * @deprecated in 3.x. Use [[DisplayValue]]\r\n */\r\n // eslint-disable-next-line deprecation/deprecation\r\n export function toJSON(value: DisplayValue): DisplayValueJSON {\r\n if (undefined === value)\r\n return null;\r\n if (isArrayValue(value))\r\n return displayValuesArrayToJSON(value);\r\n if (isMapValue(value))\r\n return displayValuesMapToJSON(value);\r\n return value;\r\n }\r\n}\r\n\r\n/**\r\n * A map of display values\r\n * @public\r\n */\r\nexport interface DisplayValuesMap extends ValuesDictionary<DisplayValue> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * An array of display values\r\n * @public\r\n */\r\nexport interface DisplayValuesArray extends Array<DisplayValue> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * Data structure that describes nested content value.\r\n * @public\r\n */\r\nexport interface NestedContentValue {\r\n /** Keys of instances whose content is contained in this value */\r\n primaryKeys: InstanceKey[];\r\n /** Content values map */\r\n values: ValuesDictionary<Value>;\r\n /** Content display values map */\r\n displayValues: ValuesDictionary<DisplayValue>;\r\n /** Names of fields whose values are merged */\r\n mergedFieldNames: string[];\r\n}\r\n\r\n/** @public */\r\nexport namespace NestedContentValue {\r\n /**\r\n * Serialize [[NestedContentValue]] to JSON\r\n * @deprecated in 3.x. Use [[NestedContentValue]]\r\n */\r\n // eslint-disable-next-line deprecation/deprecation\r\n export function toJSON(value: NestedContentValue): NestedContentValueJSON {\r\n return {\r\n ...value,\r\n values: valuesMapToJSON(value.values),\r\n displayValues: displayValuesMapToJSON(value.displayValues),\r\n };\r\n }\r\n\r\n /**\r\n * Deserialize [[NestedContentValue]] from JSON\r\n * @deprecated in 3.x. Use [[NestedContentValue]]\r\n */\r\n // eslint-disable-next-line deprecation/deprecation\r\n export function fromJSON(json: NestedContentValueJSON): NestedContentValue {\r\n return {\r\n ...json,\r\n values: valuesMapFromJSON(json.values),\r\n displayValues: displayValuesMapFromJSON(json.displayValues),\r\n };\r\n }\r\n}\r\n\r\n/**\r\n * JSON representation of [[Value]]\r\n * @public\r\n * @deprecated in 3.x. Use [[Value]]\r\n */\r\n// eslint-disable-next-line deprecation/deprecation\r\nexport type ValueJSON = string | number | boolean | null | ValuesMapJSON | ValuesArrayJSON | NestedContentValueJSON[];\r\n/**\r\n * JSON representation of [[ValuesMap]]\r\n * @public\r\n * @deprecated in 3.x. Use [[ValuesMap]]\r\n */\r\n// eslint-disable-next-line deprecation/deprecation\r\nexport interface ValuesMapJSON extends ValuesDictionary<ValueJSON> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * JSON representation of [[ValuesArray]]\r\n * @public\r\n * @deprecated in 3.x. Use [[ValuesArray]]\r\n */\r\n// eslint-disable-next-line deprecation/deprecation\r\nexport interface ValuesArrayJSON extends Array<ValueJSON> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * JSON representation of [[DisplayValue]]\r\n * @public\r\n * @deprecated in 3.x. Use [[DisplayValue]]\r\n */\r\n// eslint-disable-next-line deprecation/deprecation\r\nexport type DisplayValueJSON = string | null | DisplayValuesMapJSON | DisplayValuesArrayJSON;\r\n\r\n/**\r\n * JSON representation of [[DisplayValuesMap]]\r\n * @public\r\n * @deprecated in 3.x. Use [[DisplayValuesMap]]\r\n */\r\n// eslint-disable-next-line deprecation/deprecation\r\nexport interface DisplayValuesMapJSON extends ValuesDictionary<DisplayValueJSON> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * JSON representation of [[DisplayValuesArray]]\r\n * @public\r\n * @deprecated in 3.x. Use [[DisplayValuesArray]]\r\n */\r\n// eslint-disable-next-line deprecation/deprecation\r\nexport interface DisplayValuesArrayJSON extends Array<DisplayValueJSON> { } // eslint-disable-line @typescript-eslint/no-empty-interface\r\n\r\n/**\r\n * JSON representation of [[NestedContentValue]]\r\n * @public\r\n * @deprecated in 3.x. Use [[NestedContentValue]]\r\n */\r\nexport interface NestedContentValueJSON {\r\n primaryKeys: InstanceKey[];\r\n // eslint-disable-next-line deprecation/deprecation\r\n values: ValuesDictionary<ValueJSON>;\r\n // eslint-disable-next-line deprecation/deprecation\r\n displayValues: ValuesDictionary<DisplayValueJSON>;\r\n mergedFieldNames: string[];\r\n}\r\n\r\n/**\r\n * A group of raw values and their common display value.\r\n * @public\r\n */\r\nexport interface DisplayValueGroup {\r\n /** Common display value for all grouped raw values */\r\n displayValue: DisplayValue;\r\n /** A list of grouped raw values */\r\n groupedRawValues: Value[];\r\n}\r\n\r\n/**\r\n * JSON representation of [[DisplayValueGroup]].\r\n * @public\r\n * @deprecated in 3.x. Use [[DisplayValueGroup]]\r\n */\r\nexport interface DisplayValueGroupJSON {\r\n // eslint-disable-next-line deprecation/deprecation\r\n displayValue: DisplayValueJSON;\r\n // eslint-disable-next-line deprecation/deprecation\r\n groupedRawValues: ValueJSON[];\r\n}\r\n\r\n/** @public */\r\nexport namespace DisplayValueGroup {\r\n /**\r\n * Serialize [[DisplayValueGroup]] to JSON\r\n * @deprecated in 3.x. Use [[DisplayValueGroup]]\r\n */\r\n // eslint-disable-next-line deprecation/deprecation\r\n export function toJSON(group: DisplayValueGroup): DisplayValueGroupJSON {\r\n return {\r\n // eslint-disable-next-line deprecation/deprecation\r\n displayValue: DisplayValue.toJSON(group.displayValue),\r\n // eslint-disable-next-line deprecation/deprecation\r\n groupedRawValues: group.groupedRawValues.map(Value.toJSON),\r\n };\r\n }\r\n\r\n /**\r\n * Deserialize [[DisplayValueGroup]] from JSON\r\n * @deprecated in 3.x. Use [[DisplayValueGroup]]\r\n */\r\n // eslint-disable-next-line deprecation/deprecation\r\n export function fromJSON(json: DisplayValueGroupJSON): DisplayValueGroup {\r\n return {\r\n // eslint-disable-next-line deprecation/deprecation\r\n displayValue: DisplayValue.fromJSON(json.displayValue),\r\n // eslint-disable-next-line deprecation/deprecation\r\n groupedRawValues: json.groupedRawValues.map(Value.fromJSON),\r\n };\r\n }\r\n}\r\n\r\n// eslint-disable-next-line deprecation/deprecation\r\nfunction isNestedContentValue(v: Value | ValueJSON): v is NestedContentValue[] | NestedContentValueJSON[] {\r\n return (v !== undefined) && Array.isArray(v)\r\n && ((v.length === 0)\r\n || (v[0] as NestedContentValue).primaryKeys !== undefined\r\n && (v[0] as NestedContentValue).values !== undefined\r\n && (v[0] as NestedContentValue).displayValues !== undefined\r\n && (v[0] as NestedContentValue).mergedFieldNames !== undefined);\r\n}\r\n// eslint-disable-next-line deprecation/deprecation\r\nfunction isArrayValue(v: Value | ValueJSON | DisplayValue | DisplayValueJSON): v is ValuesArray | ValuesArrayJSON | DisplayValuesArray | DisplayValuesArrayJSON {\r\n // note: we don't guarantee by 100% that v is ValuesArray | DisplayValuesArray, but merely make compiler happy.\r\n // we have other means to determine the type of value.\r\n return (v !== undefined) && Array.isArray(v);\r\n}\r\n// eslint-disable-next-line deprecation/deprecation\r\nfunction isMapValue(v: Value | ValueJSON | DisplayValue | DisplayValueJSON): v is ValuesMap | ValuesMapJSON | DisplayValuesMap | DisplayValuesMapJSON {\r\n return (v !== undefined) && (typeof v === \"object\") && !Array.isArray(v);\r\n}\r\nfunction isPrimitiveValue(v: Value | DisplayValue): v is string | number | boolean | undefined {\r\n return !isArrayValue(v) && !isMapValue(v);\r\n}\r\n\r\n// eslint-disable-next-line deprecation/deprecation\r\nfunction valuesArrayFromJSON(json: ValuesArrayJSON): ValuesArray {\r\n // eslint-disable-next-line deprecation/deprecation\r\n return json.map(Value.fromJSON);\r\n}\r\n// eslint-disable-next-line deprecation/deprecation\r\nfunction valuesArrayToJSON(values: ValuesArray): ValuesArrayJSON {\r\n // eslint-disable-next-line deprecation/deprecation\r\n return values.map(Value.toJSON);\r\n}\r\n// eslint-disable-next-line deprecation/deprecation\r\nfunction valuesMapFromJSON(json: ValuesMapJSON): ValuesMap {\r\n const map: ValuesMap = {};\r\n for (const key in json) {\r\n /* istanbul ignore else */\r\n if (json.hasOwnProperty(key)) {\r\n // eslint-disable-next-line deprecation/deprecation\r\n map[key] = Value.fromJSON(json[key]);\r\n }\r\n }\r\n return map;\r\n}\r\n// eslint-disable-next-line deprecation/deprecation\r\nfunction valuesMapToJSON(values: ValuesMap): ValuesMapJSON {\r\n // eslint-disable-next-line deprecation/deprecation\r\n const map: ValuesMapJSON = {};\r\n for (const key in values) {\r\n /* istanbul ignore else */\r\n if (values.hasOwnProperty(key)) {\r\n // eslint-disable-next-line deprecation/deprecation\r\n map[key] = Value.toJSON(values[key]);\r\n }\r\n }\r\n return map;\r\n}\r\n\r\n// eslint-disable-next-line deprecation/deprecation\r\nfunction displayValuesArrayFromJSON(json: DisplayValuesArrayJSON): DisplayValuesArray {\r\n // eslint-disable-next-line deprecation/deprecation\r\n return json.map(DisplayValue.fromJSON);\r\n}\r\n// eslint-disable-next-line deprecation/deprecation\r\nfunction displayValuesArrayToJSON(values: DisplayValuesArray): DisplayValuesArrayJSON {\r\n // eslint-disable-next-line deprecation/deprecation\r\n return values.map(DisplayValue.toJSON);\r\n}\r\n// eslint-disable-next-line deprecation/deprecation\r\nfunction displayValuesMapFromJSON(json: DisplayValuesMapJSON): DisplayValuesMap {\r\n const map: DisplayValuesMap = {};\r\n for (const key in json) {\r\n /* istanbul ignore else */\r\n if (json.hasOwnProperty(key)) {\r\n // eslint-disable-next-line deprecation/deprecation\r\n map[key] = DisplayValue.fromJSON(json[key]);\r\n }\r\n }\r\n return map;\r\n}\r\n// eslint-disable-next-line deprecation/deprecation\r\nfunction displayValuesMapToJSON(values: DisplayValuesMap): DisplayValuesMapJSON {\r\n // eslint-disable-next-line deprecation/deprecation\r\n const map: DisplayValuesMapJSON = {};\r\n for (const key in values) {\r\n /* istanbul ignore else */\r\n if (values.hasOwnProperty(key)) {\r\n // eslint-disable-next-line deprecation/deprecation\r\n map[key] = DisplayValue.toJSON(values[key]);\r\n }\r\n }\r\n return map;\r\n}\r\n"]}
@@ -4,7 +4,7 @@
4
4
  import { Node, NodeJSON } from "./Node";
5
5
  /**
6
6
  * Defines a hierarchy level that consists of an array of nodes and possibly other information.
7
- * @alpha
7
+ * @beta
8
8
  */
9
9
  export interface HierarchyLevel {
10
10
  /** A list of nodes in a hierarchy level. */
@@ -17,15 +17,22 @@ export interface HierarchyLevel {
17
17
  }
18
18
  /**
19
19
  * JSON representation of [[HierarchyLevel]].
20
- * @alpha
20
+ * @beta
21
+ * @deprecated in 3.x. Use [[HierarchyLevel]]
21
22
  */
22
23
  export interface HierarchyLevelJSON {
23
24
  nodes: NodeJSON[];
24
25
  supportsFiltering?: boolean;
25
26
  }
26
- /** @alpha */
27
+ /**
28
+ * Contains helper functions for working with objects of [[HierarchyLevel]] type.
29
+ * @beta
30
+ */
27
31
  export declare namespace HierarchyLevel {
28
- /** Deserialize [[HierarchyLevel]] from JSON */
32
+ /**
33
+ * Deserialize [[HierarchyLevel]] from JSON
34
+ * @deprecated in 3.x. Use [[HierarchyLevel]].
35
+ */
29
36
  function fromJSON(json: HierarchyLevelJSON): HierarchyLevel;
30
37
  }
31
38
  //# sourceMappingURL=HierarchyLevel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HierarchyLevel.d.ts","sourceRoot":"","sources":["../../../../src/presentation-common/hierarchy/HierarchyLevel.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAExC;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,4CAA4C;IAC5C,KAAK,EAAE,IAAI,EAAE,CAAC;IACd;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,aAAa;AACb,yBAAiB,cAAc,CAAC;IAC9B,+CAA+C;IAC/C,SAAgB,QAAQ,CAAC,IAAI,EAAE,kBAAkB,GAAG,cAAc,CAKjE;CACF"}
1
+ {"version":3,"file":"HierarchyLevel.d.ts","sourceRoot":"","sources":["../../../../src/presentation-common/hierarchy/HierarchyLevel.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAExC;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,4CAA4C;IAC5C,KAAK,EAAE,IAAI,EAAE,CAAC;IACd;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAEjC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;GAGG;AACH,yBAAiB,cAAc,CAAC;IAC9B;;;OAGG;IAEH,SAAgB,QAAQ,CAAC,IAAI,EAAE,kBAAkB,GAAG,cAAc,CAMjE;CACF"}
@@ -6,13 +6,21 @@
6
6
  * @module Hierarchies
7
7
  */
8
8
  import { Node } from "./Node";
9
- /** @alpha */
9
+ /**
10
+ * Contains helper functions for working with objects of [[HierarchyLevel]] type.
11
+ * @beta
12
+ */
10
13
  export var HierarchyLevel;
11
14
  (function (HierarchyLevel) {
12
- /** Deserialize [[HierarchyLevel]] from JSON */
15
+ /**
16
+ * Deserialize [[HierarchyLevel]] from JSON
17
+ * @deprecated in 3.x. Use [[HierarchyLevel]].
18
+ */
19
+ // eslint-disable-next-line deprecation/deprecation
13
20
  function fromJSON(json) {
14
21
  return {
15
22
  ...json,
23
+ // eslint-disable-next-line deprecation/deprecation
16
24
  nodes: json.nodes.map(Node.fromJSON),
17
25
  };
18
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"HierarchyLevel.js","sourceRoot":"","sources":["../../../../src/presentation-common/hierarchy/HierarchyLevel.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,IAAI,EAAY,MAAM,QAAQ,CAAC;AAyBxC,aAAa;AACb,MAAM,KAAW,cAAc,CAQ9B;AARD,WAAiB,cAAc;IAC7B,+CAA+C;IAC/C,SAAgB,QAAQ,CAAC,IAAwB;QAC/C,OAAO;YACL,GAAG,IAAI;YACP,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;SACrC,CAAC;IACJ,CAAC;IALe,uBAAQ,WAKvB,CAAA;AACH,CAAC,EARgB,cAAc,KAAd,cAAc,QAQ9B","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 Hierarchies\r\n */\r\n\r\nimport { Node, NodeJSON } from \"./Node\";\r\n\r\n/**\r\n * Defines a hierarchy level that consists of an array of nodes and possibly other information.\r\n * @alpha\r\n */\r\nexport interface HierarchyLevel {\r\n /** A list of nodes in a hierarchy level. */\r\n nodes: Node[];\r\n /**\r\n * Identifies whether the hierarchy level supports filtering. If not, requesting either a hierarchy level descriptor or\r\n * a hierarchy level with [[HierarchyRequestOptions.instanceFilter]] will throw an error with [[PresentationStatus.InvalidArgument]] status.\r\n */\r\n supportsFiltering?: boolean;\r\n}\r\n\r\n/**\r\n * JSON representation of [[HierarchyLevel]].\r\n * @alpha\r\n */\r\nexport interface HierarchyLevelJSON {\r\n nodes: NodeJSON[];\r\n supportsFiltering?: boolean;\r\n}\r\n\r\n/** @alpha */\r\nexport namespace HierarchyLevel {\r\n /** Deserialize [[HierarchyLevel]] from JSON */\r\n export function fromJSON(json: HierarchyLevelJSON): HierarchyLevel {\r\n return {\r\n ...json,\r\n nodes: json.nodes.map(Node.fromJSON),\r\n };\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"HierarchyLevel.js","sourceRoot":"","sources":["../../../../src/presentation-common/hierarchy/HierarchyLevel.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,IAAI,EAAY,MAAM,QAAQ,CAAC;AA2BxC;;;GAGG;AACH,MAAM,KAAW,cAAc,CAa9B;AAbD,WAAiB,cAAc;IAC7B;;;OAGG;IACH,mDAAmD;IACnD,SAAgB,QAAQ,CAAC,IAAwB;QAC/C,OAAO;YACL,GAAG,IAAI;YACP,mDAAmD;YACnD,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;SACrC,CAAC;IACJ,CAAC;IANe,uBAAQ,WAMvB,CAAA;AACH,CAAC,EAbgB,cAAc,KAAd,cAAc,QAa9B","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 Hierarchies\r\n */\r\n\r\nimport { Node, NodeJSON } from \"./Node\";\r\n\r\n/**\r\n * Defines a hierarchy level that consists of an array of nodes and possibly other information.\r\n * @beta\r\n */\r\nexport interface HierarchyLevel {\r\n /** A list of nodes in a hierarchy level. */\r\n nodes: Node[];\r\n /**\r\n * Identifies whether the hierarchy level supports filtering. If not, requesting either a hierarchy level descriptor or\r\n * a hierarchy level with [[HierarchyRequestOptions.instanceFilter]] will throw an error with [[PresentationStatus.InvalidArgument]] status.\r\n */\r\n supportsFiltering?: boolean;\r\n}\r\n\r\n/**\r\n * JSON representation of [[HierarchyLevel]].\r\n * @beta\r\n * @deprecated in 3.x. Use [[HierarchyLevel]]\r\n */\r\nexport interface HierarchyLevelJSON {\r\n // eslint-disable-next-line deprecation/deprecation\r\n nodes: NodeJSON[];\r\n supportsFiltering?: boolean;\r\n}\r\n\r\n/**\r\n * Contains helper functions for working with objects of [[HierarchyLevel]] type.\r\n * @beta\r\n */\r\nexport namespace HierarchyLevel {\r\n /**\r\n * Deserialize [[HierarchyLevel]] from JSON\r\n * @deprecated in 3.x. Use [[HierarchyLevel]].\r\n */\r\n // eslint-disable-next-line deprecation/deprecation\r\n export function fromJSON(json: HierarchyLevelJSON): HierarchyLevel {\r\n return {\r\n ...json,\r\n // eslint-disable-next-line deprecation/deprecation\r\n nodes: json.nodes.map(Node.fromJSON),\r\n };\r\n }\r\n}\r\n"]}
@@ -1,7 +1,8 @@
1
1
  /** @packageDocumentation
2
2
  * @module Hierarchies
3
3
  */
4
- import { InstanceKey, InstanceKeyJSON } from "../EC";
4
+ import { Id64String } from "@itwin/core-bentley";
5
+ import { InstanceKey } from "../EC";
5
6
  /**
6
7
  * Standard node types
7
8
  * @public
@@ -19,29 +20,35 @@ export declare enum StandardNodeTypes {
19
20
  export declare type NodeKey = BaseNodeKey | ECInstancesNodeKey | ECClassGroupingNodeKey | ECPropertyGroupingNodeKey | LabelGroupingNodeKey;
20
21
  /** @public */
21
22
  export declare namespace NodeKey {
22
- /** Serialize given [[NodeKey]] to JSON */
23
+ /**
24
+ * Serialize given [[NodeKey]] to JSON
25
+ * @deprecated in 3.x. Use [[NodeKey]].
26
+ */
23
27
  function toJSON(key: NodeKey): NodeKeyJSON;
24
- /** Deserialize node key from JSON */
28
+ /**
29
+ * Deserialize node key from JSON
30
+ * @deprecated in 3.x. Use [[NodeKey]].
31
+ */
25
32
  function fromJSON(json: NodeKeyJSON): NodeKey;
26
33
  /** Checks if the supplied key is an [[ECInstancesNodeKey]] */
27
34
  function isInstancesNodeKey(key: NodeKey): key is ECInstancesNodeKey;
28
- /** Checks if the supplied key is an [[ECInstancesNodeKey]] */
35
+ /** Checks if the supplied key is an [[ECInstancesNodeKey]]. @deprecated in 3.x */
29
36
  function isInstancesNodeKey(key: NodeKeyJSON): key is ECInstancesNodeKeyJSON;
30
37
  /** Checks if the supplied key is an [[ECClassGroupingNodeKey]] */
31
38
  function isClassGroupingNodeKey(key: NodeKey): key is ECClassGroupingNodeKey;
32
- /** Checks if the supplied key is an [[ECClassGroupingNodeKey]] */
39
+ /** Checks if the supplied key is an [[ECClassGroupingNodeKey]]. @deprecated in 3.x */
33
40
  function isClassGroupingNodeKey(key: NodeKeyJSON): key is ECClassGroupingNodeKeyJSON;
34
41
  /** Checks if the supplied key is an [[ECPropertyGroupingNodeKey]] */
35
42
  function isPropertyGroupingNodeKey(key: NodeKey): key is ECPropertyGroupingNodeKey;
36
- /** Checks if the supplied key is an [[ECPropertyGroupingNodeKey]] */
43
+ /** Checks if the supplied key is an [[ECPropertyGroupingNodeKey]]. @deprecated in 3.x */
37
44
  function isPropertyGroupingNodeKey(key: NodeKeyJSON): key is ECPropertyGroupingNodeKeyJSON;
38
45
  /** Checks if the supplied key is a [[LabelGroupingNodeKey]] */
39
46
  function isLabelGroupingNodeKey(key: NodeKey): key is LabelGroupingNodeKey;
40
- /** Checks if the supplied key is a [[LabelGroupingNodeKey]] */
47
+ /** Checks if the supplied key is a [[LabelGroupingNodeKey]]. @deprecated in 3.x */
41
48
  function isLabelGroupingNodeKey(key: NodeKeyJSON): key is LabelGroupingNodeKeyJSON;
42
49
  /** Checks if the supplied key is a grouping node key */
43
50
  function isGroupingNodeKey(key: NodeKey): key is GroupingNodeKey;
44
- /** Checks if the supplied key is a grouping node key */
51
+ /** Checks if the supplied key is a grouping node key. @deprecated in 3.x */
45
52
  function isGroupingNodeKey(key: NodeKeyJSON): key is GroupingNodeKeyJSON;
46
53
  /**
47
54
  * Checks if two given node keys are equal, taking their versions into account.
@@ -73,15 +80,22 @@ export interface BaseNodeKey {
73
80
  version: number;
74
81
  /** Node hash path from root to the node whose key this is */
75
82
  pathFromRoot: string[];
83
+ /** Query that returns all selected instance keys
84
+ * @alpha
85
+ */
86
+ instanceKeysSelectQuery?: PresentationQuery;
76
87
  }
77
88
  /**
78
89
  * Serialized [[BaseNodeKey]] JSON representation.
79
90
  * @public
91
+ * @deprecated in 3.x. Use [[BaseNodeKey]].
80
92
  */
81
93
  export interface BaseNodeKeyJSON {
82
94
  type: string;
83
95
  version?: number;
84
96
  pathFromRoot: string[];
97
+ /** @alpha */
98
+ instanceKeysSelectQuery?: PresentationQuery;
85
99
  }
86
100
  /**
87
101
  * Data structure that describes a node ECInstance node key
@@ -95,10 +109,11 @@ export interface ECInstancesNodeKey extends BaseNodeKey {
95
109
  /**
96
110
  * Serialized [[ECInstancesNodeKey]] JSON representation.
97
111
  * @public
112
+ * @deprecated in 3.x. Use [[ECInstancesNodeKey]].
98
113
  */
99
- export interface ECInstancesNodeKeyJSON extends BaseNodeKeyJSON {
114
+ export interface ECInstancesNodeKeyJSON extends BaseNodeKey {
100
115
  type: StandardNodeTypes.ECInstancesNode;
101
- instanceKeys: InstanceKeyJSON[];
116
+ instanceKeys: InstanceKey[];
102
117
  }
103
118
  /**
104
119
  * Data structure that describes a grouping node key
@@ -117,8 +132,9 @@ export interface GroupingNodeKey extends BaseNodeKey {
117
132
  /**
118
133
  * Serialized [[GroupingNodeKey]] JSON representation.
119
134
  * @public
135
+ * @deprecated in 3.x. Use [[GroupingNodeKey]].
120
136
  */
121
- export interface GroupingNodeKeyJSON extends BaseNodeKeyJSON {
137
+ export interface GroupingNodeKeyJSON extends BaseNodeKey {
122
138
  groupedInstancesCount: number;
123
139
  }
124
140
  /**
@@ -133,8 +149,9 @@ export interface ECClassGroupingNodeKey extends GroupingNodeKey {
133
149
  /**
134
150
  * Serialized [[ECClassGroupingNodeKey]] JSON representation.
135
151
  * @public
152
+ * @deprecated in 3.x. Use [[ECClassGroupingNodeKey]].
136
153
  */
137
- export interface ECClassGroupingNodeKeyJSON extends GroupingNodeKeyJSON {
154
+ export interface ECClassGroupingNodeKeyJSON extends GroupingNodeKey {
138
155
  type: StandardNodeTypes.ECClassGroupingNode;
139
156
  className: string;
140
157
  }
@@ -154,8 +171,9 @@ export interface ECPropertyGroupingNodeKey extends GroupingNodeKey {
154
171
  /**
155
172
  * Serialized [[ECPropertyGroupingNodeKey]] JSON representation.
156
173
  * @public
174
+ * @deprecated in 3.x. Use [[ECPropertyGroupingNodeKey]].
157
175
  */
158
- export interface ECPropertyGroupingNodeKeyJSON extends GroupingNodeKeyJSON {
176
+ export interface ECPropertyGroupingNodeKeyJSON extends GroupingNodeKey {
159
177
  type: StandardNodeTypes.ECPropertyGroupingNode;
160
178
  className: string;
161
179
  propertyName: string;
@@ -173,14 +191,57 @@ export interface LabelGroupingNodeKey extends GroupingNodeKey {
173
191
  /**
174
192
  * Serialized [[LabelGroupingNodeKey]] JSON representation.
175
193
  * @public
194
+ * @deprecated in 3.x. Use [[LabelGroupingNodeKey]].
176
195
  */
177
- export interface LabelGroupingNodeKeyJSON extends GroupingNodeKeyJSON {
196
+ export interface LabelGroupingNodeKeyJSON extends GroupingNodeKey {
178
197
  type: StandardNodeTypes.DisplayLabelGroupingNode;
179
198
  label: string;
180
199
  }
181
200
  /**
182
201
  * One of the serialized node key types
183
202
  * @public
203
+ * @deprecated in 3.x. Use [[NodeKey]].
184
204
  */
185
205
  export declare type NodeKeyJSON = BaseNodeKeyJSON | ECInstancesNodeKeyJSON | ECClassGroupingNodeKeyJSON | ECPropertyGroupingNodeKeyJSON | LabelGroupingNodeKeyJSON;
206
+ /**
207
+ * Data structure that describes a presentation query
208
+ * @alpha
209
+ */
210
+ export interface PresentationQuery {
211
+ /** ECSQL query */
212
+ query: string;
213
+ /** The query bindings */
214
+ bindings?: PresentationQueryBinding[];
215
+ }
216
+ /** @alpha */
217
+ export interface BasePresentationQueryBinding {
218
+ type: "Id" | "IdSet" | "ECValue" | "ValueSet";
219
+ }
220
+ /** @alpha */
221
+ export interface IdBinding extends BasePresentationQueryBinding {
222
+ type: "Id";
223
+ value: Id64String;
224
+ }
225
+ /** @alpha */
226
+ export interface IdSetBinding extends BasePresentationQueryBinding {
227
+ type: "IdSet";
228
+ value: Id64String[];
229
+ }
230
+ /** @alpha */
231
+ export interface ECValueBinding extends BasePresentationQueryBinding {
232
+ type: "ECValue";
233
+ valueType: string;
234
+ value: any;
235
+ }
236
+ /** @alpha */
237
+ export interface ECValueSetBinding extends BasePresentationQueryBinding {
238
+ type: "ValueSet";
239
+ valueType: string;
240
+ value: any[];
241
+ }
242
+ /**
243
+ * One of the presentation query binding types
244
+ * @alpha
245
+ */
246
+ export declare type PresentationQueryBinding = IdBinding | IdSetBinding | ECValueBinding | ECValueSetBinding;
186
247
  //# sourceMappingURL=Key.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Key.d.ts","sourceRoot":"","sources":["../../../../src/presentation-common/hierarchy/Key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