@itwin/core-backend 3.0.0-dev.100

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 (245) hide show
  1. package/CHANGELOG.md +1525 -0
  2. package/LICENSE.md +9 -0
  3. package/README.md +11 -0
  4. package/lib/cjs/AliCloudStorageService.d.ts +12 -0
  5. package/lib/cjs/AliCloudStorageService.d.ts.map +1 -0
  6. package/lib/cjs/AliCloudStorageService.js +70 -0
  7. package/lib/cjs/AliCloudStorageService.js.map +1 -0
  8. package/lib/cjs/BackendHubAccess.d.ts +208 -0
  9. package/lib/cjs/BackendHubAccess.d.ts.map +1 -0
  10. package/lib/cjs/BackendHubAccess.js +42 -0
  11. package/lib/cjs/BackendHubAccess.js.map +1 -0
  12. package/lib/cjs/BackendLoggerCategory.d.ts +83 -0
  13. package/lib/cjs/BackendLoggerCategory.d.ts.map +1 -0
  14. package/lib/cjs/BackendLoggerCategory.js +91 -0
  15. package/lib/cjs/BackendLoggerCategory.js.map +1 -0
  16. package/lib/cjs/BisCoreSchema.d.ts +22 -0
  17. package/lib/cjs/BisCoreSchema.d.ts.map +1 -0
  18. package/lib/cjs/BisCoreSchema.js +61 -0
  19. package/lib/cjs/BisCoreSchema.js.map +1 -0
  20. package/lib/cjs/BriefcaseManager.d.ts +167 -0
  21. package/lib/cjs/BriefcaseManager.d.ts.map +1 -0
  22. package/lib/cjs/BriefcaseManager.js +406 -0
  23. package/lib/cjs/BriefcaseManager.js.map +1 -0
  24. package/lib/cjs/Category.d.ts +154 -0
  25. package/lib/cjs/Category.d.ts.map +1 -0
  26. package/lib/cjs/Category.js +244 -0
  27. package/lib/cjs/Category.js.map +1 -0
  28. package/lib/cjs/ChangeSummaryManager.d.ts +188 -0
  29. package/lib/cjs/ChangeSummaryManager.d.ts.map +1 -0
  30. package/lib/cjs/ChangeSummaryManager.js +444 -0
  31. package/lib/cjs/ChangeSummaryManager.js.map +1 -0
  32. package/lib/cjs/ChangedElementsDb.d.ts +97 -0
  33. package/lib/cjs/ChangedElementsDb.d.ts.map +1 -0
  34. package/lib/cjs/ChangedElementsDb.js +166 -0
  35. package/lib/cjs/ChangedElementsDb.js.map +1 -0
  36. package/lib/cjs/ChangedElementsManager.d.ts +40 -0
  37. package/lib/cjs/ChangedElementsManager.d.ts.map +1 -0
  38. package/lib/cjs/ChangedElementsManager.js +89 -0
  39. package/lib/cjs/ChangedElementsManager.js.map +1 -0
  40. package/lib/cjs/CheckpointManager.d.ts +101 -0
  41. package/lib/cjs/CheckpointManager.d.ts.map +1 -0
  42. package/lib/cjs/CheckpointManager.js +257 -0
  43. package/lib/cjs/CheckpointManager.js.map +1 -0
  44. package/lib/cjs/ClassRegistry.d.ts +72 -0
  45. package/lib/cjs/ClassRegistry.d.ts.map +1 -0
  46. package/lib/cjs/ClassRegistry.js +154 -0
  47. package/lib/cjs/ClassRegistry.js.map +1 -0
  48. package/lib/cjs/CloudStorageBackend.d.ts +46 -0
  49. package/lib/cjs/CloudStorageBackend.d.ts.map +1 -0
  50. package/lib/cjs/CloudStorageBackend.js +157 -0
  51. package/lib/cjs/CloudStorageBackend.js.map +1 -0
  52. package/lib/cjs/CodeSpecs.d.ts +51 -0
  53. package/lib/cjs/CodeSpecs.d.ts.map +1 -0
  54. package/lib/cjs/CodeSpecs.js +113 -0
  55. package/lib/cjs/CodeSpecs.js.map +1 -0
  56. package/lib/cjs/ConcurrentQuery.d.ts +12 -0
  57. package/lib/cjs/ConcurrentQuery.d.ts.map +1 -0
  58. package/lib/cjs/ConcurrentQuery.js +24 -0
  59. package/lib/cjs/ConcurrentQuery.js.map +1 -0
  60. package/lib/cjs/DevTools.d.ts +72 -0
  61. package/lib/cjs/DevTools.d.ts.map +1 -0
  62. package/lib/cjs/DevTools.js +155 -0
  63. package/lib/cjs/DevTools.js.map +1 -0
  64. package/lib/cjs/DisplayStyle.d.ts +107 -0
  65. package/lib/cjs/DisplayStyle.d.ts.map +1 -0
  66. package/lib/cjs/DisplayStyle.js +292 -0
  67. package/lib/cjs/DisplayStyle.js.map +1 -0
  68. package/lib/cjs/ECDb.d.ts +196 -0
  69. package/lib/cjs/ECDb.d.ts.map +1 -0
  70. package/lib/cjs/ECDb.js +354 -0
  71. package/lib/cjs/ECDb.js.map +1 -0
  72. package/lib/cjs/ECSchemaXmlContext.d.ts +18 -0
  73. package/lib/cjs/ECSchemaXmlContext.d.ts.map +1 -0
  74. package/lib/cjs/ECSchemaXmlContext.js +36 -0
  75. package/lib/cjs/ECSchemaXmlContext.js.map +1 -0
  76. package/lib/cjs/ECSqlStatement.d.ts +467 -0
  77. package/lib/cjs/ECSqlStatement.d.ts.map +1 -0
  78. package/lib/cjs/ECSqlStatement.js +783 -0
  79. package/lib/cjs/ECSqlStatement.js.map +1 -0
  80. package/lib/cjs/Element.d.ts +1082 -0
  81. package/lib/cjs/Element.d.ts.map +1 -0
  82. package/lib/cjs/Element.js +1392 -0
  83. package/lib/cjs/Element.js.map +1 -0
  84. package/lib/cjs/ElementAspect.d.ts +157 -0
  85. package/lib/cjs/ElementAspect.d.ts.map +1 -0
  86. package/lib/cjs/ElementAspect.js +179 -0
  87. package/lib/cjs/ElementAspect.js.map +1 -0
  88. package/lib/cjs/ElementGraphics.d.ts +10 -0
  89. package/lib/cjs/ElementGraphics.d.ts.map +1 -0
  90. package/lib/cjs/ElementGraphics.js +42 -0
  91. package/lib/cjs/ElementGraphics.js.map +1 -0
  92. package/lib/cjs/Entity.d.ts +57 -0
  93. package/lib/cjs/Entity.d.ts.map +1 -0
  94. package/lib/cjs/Entity.js +63 -0
  95. package/lib/cjs/Entity.js.map +1 -0
  96. package/lib/cjs/ExportGraphics.d.ts +302 -0
  97. package/lib/cjs/ExportGraphics.d.ts.map +1 -0
  98. package/lib/cjs/ExportGraphics.js +206 -0
  99. package/lib/cjs/ExportGraphics.js.map +1 -0
  100. package/lib/cjs/ExternalSource.d.ts +95 -0
  101. package/lib/cjs/ExternalSource.d.ts.map +1 -0
  102. package/lib/cjs/ExternalSource.js +126 -0
  103. package/lib/cjs/ExternalSource.js.map +1 -0
  104. package/lib/cjs/GeometrySummary.d.ts +5 -0
  105. package/lib/cjs/GeometrySummary.d.ts.map +1 -0
  106. package/lib/cjs/GeometrySummary.js +378 -0
  107. package/lib/cjs/GeometrySummary.js.map +1 -0
  108. package/lib/cjs/IModelCloneContext.d.ts +74 -0
  109. package/lib/cjs/IModelCloneContext.d.ts.map +1 -0
  110. package/lib/cjs/IModelCloneContext.js +130 -0
  111. package/lib/cjs/IModelCloneContext.js.map +1 -0
  112. package/lib/cjs/IModelDb.d.ts +1107 -0
  113. package/lib/cjs/IModelDb.d.ts.map +1 -0
  114. package/lib/cjs/IModelDb.js +2161 -0
  115. package/lib/cjs/IModelDb.js.map +1 -0
  116. package/lib/cjs/IModelHost.d.ts +284 -0
  117. package/lib/cjs/IModelHost.d.ts.map +1 -0
  118. package/lib/cjs/IModelHost.js +411 -0
  119. package/lib/cjs/IModelHost.js.map +1 -0
  120. package/lib/cjs/IModelJsFs.d.ts +63 -0
  121. package/lib/cjs/IModelJsFs.d.ts.map +1 -0
  122. package/lib/cjs/IModelJsFs.js +141 -0
  123. package/lib/cjs/IModelJsFs.js.map +1 -0
  124. package/lib/cjs/IModelSchemaLoader.d.ts +26 -0
  125. package/lib/cjs/IModelSchemaLoader.d.ts.map +1 -0
  126. package/lib/cjs/IModelSchemaLoader.js +95 -0
  127. package/lib/cjs/IModelSchemaLoader.js.map +1 -0
  128. package/lib/cjs/IpcHost.d.ts +99 -0
  129. package/lib/cjs/IpcHost.d.ts.map +1 -0
  130. package/lib/cjs/IpcHost.js +234 -0
  131. package/lib/cjs/IpcHost.js.map +1 -0
  132. package/lib/cjs/LineStyle.d.ts +312 -0
  133. package/lib/cjs/LineStyle.d.ts.map +1 -0
  134. package/lib/cjs/LineStyle.js +296 -0
  135. package/lib/cjs/LineStyle.js.map +1 -0
  136. package/lib/cjs/LocalhostIpcHost.d.ts +19 -0
  137. package/lib/cjs/LocalhostIpcHost.d.ts.map +1 -0
  138. package/lib/cjs/LocalhostIpcHost.js +52 -0
  139. package/lib/cjs/LocalhostIpcHost.js.map +1 -0
  140. package/lib/cjs/Material.d.ts +102 -0
  141. package/lib/cjs/Material.d.ts.map +1 -0
  142. package/lib/cjs/Material.js +146 -0
  143. package/lib/cjs/Material.js.map +1 -0
  144. package/lib/cjs/Model.d.ts +387 -0
  145. package/lib/cjs/Model.d.ts.map +1 -0
  146. package/lib/cjs/Model.js +469 -0
  147. package/lib/cjs/Model.js.map +1 -0
  148. package/lib/cjs/NativeAppStorage.d.ts +52 -0
  149. package/lib/cjs/NativeAppStorage.d.ts.map +1 -0
  150. package/lib/cjs/NativeAppStorage.js +203 -0
  151. package/lib/cjs/NativeAppStorage.js.map +1 -0
  152. package/lib/cjs/NativeHost.d.ts +71 -0
  153. package/lib/cjs/NativeHost.d.ts.map +1 -0
  154. package/lib/cjs/NativeHost.js +221 -0
  155. package/lib/cjs/NativeHost.js.map +1 -0
  156. package/lib/cjs/NavigationRelationship.d.ts +157 -0
  157. package/lib/cjs/NavigationRelationship.d.ts.map +1 -0
  158. package/lib/cjs/NavigationRelationship.js +226 -0
  159. package/lib/cjs/NavigationRelationship.js.map +1 -0
  160. package/lib/cjs/PromiseMemoizer.d.ts +52 -0
  161. package/lib/cjs/PromiseMemoizer.d.ts.map +1 -0
  162. package/lib/cjs/PromiseMemoizer.js +93 -0
  163. package/lib/cjs/PromiseMemoizer.js.map +1 -0
  164. package/lib/cjs/Relationship.d.ts +400 -0
  165. package/lib/cjs/Relationship.d.ts.map +1 -0
  166. package/lib/cjs/Relationship.js +460 -0
  167. package/lib/cjs/Relationship.js.map +1 -0
  168. package/lib/cjs/RpcBackend.d.ts +23 -0
  169. package/lib/cjs/RpcBackend.d.ts.map +1 -0
  170. package/lib/cjs/RpcBackend.js +94 -0
  171. package/lib/cjs/RpcBackend.js.map +1 -0
  172. package/lib/cjs/SQLiteDb.d.ts +66 -0
  173. package/lib/cjs/SQLiteDb.d.ts.map +1 -0
  174. package/lib/cjs/SQLiteDb.js +140 -0
  175. package/lib/cjs/SQLiteDb.js.map +1 -0
  176. package/lib/cjs/Schema.d.ts +56 -0
  177. package/lib/cjs/Schema.d.ts.map +1 -0
  178. package/lib/cjs/Schema.js +84 -0
  179. package/lib/cjs/Schema.js.map +1 -0
  180. package/lib/cjs/ServerBasedLocks.d.ts +64 -0
  181. package/lib/cjs/ServerBasedLocks.d.ts.map +1 -0
  182. package/lib/cjs/ServerBasedLocks.js +177 -0
  183. package/lib/cjs/ServerBasedLocks.js.map +1 -0
  184. package/lib/cjs/SqliteStatement.d.ts +264 -0
  185. package/lib/cjs/SqliteStatement.d.ts.map +1 -0
  186. package/lib/cjs/SqliteStatement.js +417 -0
  187. package/lib/cjs/SqliteStatement.js.map +1 -0
  188. package/lib/cjs/Texture.d.ts +59 -0
  189. package/lib/cjs/Texture.d.ts.map +1 -0
  190. package/lib/cjs/Texture.js +83 -0
  191. package/lib/cjs/Texture.js.map +1 -0
  192. package/lib/cjs/TxnManager.d.ts +203 -0
  193. package/lib/cjs/TxnManager.d.ts.map +1 -0
  194. package/lib/cjs/TxnManager.js +354 -0
  195. package/lib/cjs/TxnManager.js.map +1 -0
  196. package/lib/cjs/ViewDefinition.d.ts +432 -0
  197. package/lib/cjs/ViewDefinition.d.ts.map +1 -0
  198. package/lib/cjs/ViewDefinition.js +623 -0
  199. package/lib/cjs/ViewDefinition.js.map +1 -0
  200. package/lib/cjs/assets/IModelChange.02.00.00.ecschema.xml +90 -0
  201. package/lib/cjs/core-backend.d.ts +162 -0
  202. package/lib/cjs/core-backend.d.ts.map +1 -0
  203. package/lib/cjs/core-backend.js +181 -0
  204. package/lib/cjs/core-backend.js.map +1 -0
  205. package/lib/cjs/domains/FunctionalElements.d.ts +102 -0
  206. package/lib/cjs/domains/FunctionalElements.d.ts.map +1 -0
  207. package/lib/cjs/domains/FunctionalElements.js +146 -0
  208. package/lib/cjs/domains/FunctionalElements.js.map +1 -0
  209. package/lib/cjs/domains/FunctionalSchema.d.ts +14 -0
  210. package/lib/cjs/domains/FunctionalSchema.d.ts.map +1 -0
  211. package/lib/cjs/domains/FunctionalSchema.js +41 -0
  212. package/lib/cjs/domains/FunctionalSchema.js.map +1 -0
  213. package/lib/cjs/domains/GenericElements.d.ts +178 -0
  214. package/lib/cjs/domains/GenericElements.d.ts.map +1 -0
  215. package/lib/cjs/domains/GenericElements.js +264 -0
  216. package/lib/cjs/domains/GenericElements.js.map +1 -0
  217. package/lib/cjs/domains/GenericSchema.d.ts +11 -0
  218. package/lib/cjs/domains/GenericSchema.d.ts.map +1 -0
  219. package/lib/cjs/domains/GenericSchema.js +29 -0
  220. package/lib/cjs/domains/GenericSchema.js.map +1 -0
  221. package/lib/cjs/rpc-impl/DevToolsRpcImpl.d.ts +16 -0
  222. package/lib/cjs/rpc-impl/DevToolsRpcImpl.d.ts.map +1 -0
  223. package/lib/cjs/rpc-impl/DevToolsRpcImpl.js +33 -0
  224. package/lib/cjs/rpc-impl/DevToolsRpcImpl.js.map +1 -0
  225. package/lib/cjs/rpc-impl/IModelReadRpcImpl.d.ts +40 -0
  226. package/lib/cjs/rpc-impl/IModelReadRpcImpl.d.ts.map +1 -0
  227. package/lib/cjs/rpc-impl/IModelReadRpcImpl.js +207 -0
  228. package/lib/cjs/rpc-impl/IModelReadRpcImpl.js.map +1 -0
  229. package/lib/cjs/rpc-impl/IModelTileRpcImpl.d.ts +21 -0
  230. package/lib/cjs/rpc-impl/IModelTileRpcImpl.d.ts.map +1 -0
  231. package/lib/cjs/rpc-impl/IModelTileRpcImpl.js +193 -0
  232. package/lib/cjs/rpc-impl/IModelTileRpcImpl.js.map +1 -0
  233. package/lib/cjs/rpc-impl/RpcBriefcaseUtility.d.ts +37 -0
  234. package/lib/cjs/rpc-impl/RpcBriefcaseUtility.d.ts.map +1 -0
  235. package/lib/cjs/rpc-impl/RpcBriefcaseUtility.js +162 -0
  236. package/lib/cjs/rpc-impl/RpcBriefcaseUtility.js.map +1 -0
  237. package/lib/cjs/rpc-impl/SnapshotIModelRpcImpl.d.ts +17 -0
  238. package/lib/cjs/rpc-impl/SnapshotIModelRpcImpl.d.ts.map +1 -0
  239. package/lib/cjs/rpc-impl/SnapshotIModelRpcImpl.js +44 -0
  240. package/lib/cjs/rpc-impl/SnapshotIModelRpcImpl.js.map +1 -0
  241. package/lib/cjs/rpc-impl/WipRpcImpl.d.ts +16 -0
  242. package/lib/cjs/rpc-impl/WipRpcImpl.d.ts.map +1 -0
  243. package/lib/cjs/rpc-impl/WipRpcImpl.js +35 -0
  244. package/lib/cjs/rpc-impl/WipRpcImpl.js.map +1 -0
  245. package/package.json +101 -0
@@ -0,0 +1,1082 @@
1
+ /** @packageDocumentation
2
+ * @module Elements
3
+ */
4
+ import { GuidString, Id64Set, Id64String } from "@itwin/core-bentley";
5
+ import { ClipVector, Transform } from "@itwin/core-geometry";
6
+ import { AxisAlignedBox3d, Code, CodeScopeProps, DefinitionElementProps, ElementAlignedBox3d, ElementProps, EntityMetaData, GeometricElement2dProps, GeometricElement3dProps, GeometricElementProps, GeometryPartProps, GeometryStreamProps, InformationPartitionElementProps, LineStyleProps, ModelProps, PhysicalElementProps, PhysicalTypeProps, Placement2d, Placement3d, RelatedElement, RenderSchedule, RenderTimelineProps, RepositoryLinkProps, SectionDrawingLocationProps, SectionDrawingProps, SectionType, SheetBorderTemplateProps, SheetProps, SheetTemplateProps, SubjectProps, TypeDefinition, TypeDefinitionElementProps, UrlLinkProps } from "@itwin/core-common";
7
+ import { Entity } from "./Entity";
8
+ import { IModelCloneContext } from "./IModelCloneContext";
9
+ import { IModelDb } from "./IModelDb";
10
+ /** Argument for the `Element.onXxx` static methods
11
+ * @beta
12
+ */
13
+ export interface OnElementArg {
14
+ /** The iModel for the Element affected by this method. */
15
+ iModel: IModelDb;
16
+ }
17
+ /** Argument for `Element.onInsert` and `Element.onUpdate` static methods.
18
+ * @beta
19
+ */
20
+ export interface OnElementPropsArg extends OnElementArg {
21
+ /** The properties of the Element affected by this method.
22
+ * @note the properties may be modified. If so the modified values will be inserted/updated.
23
+ */
24
+ props: ElementProps;
25
+ }
26
+ /** Argument for the `Element.onXxx` static methods that only supply the Id of the affected Element.
27
+ * @beta
28
+ */
29
+ export interface OnElementIdArg extends OnElementArg {
30
+ /** The Id of the Element affected by this method */
31
+ id: Id64String;
32
+ }
33
+ /** Argument for the `Element.onChildXxx` static methods
34
+ * @beta
35
+ */
36
+ export interface OnChildElementArg extends OnElementArg {
37
+ parentId: Id64String;
38
+ }
39
+ /** Argument for the `Element.onChildXxx` static methods that supply the properties of the child Element to be inserted or updated.
40
+ * @beta
41
+ */
42
+ export interface OnChildElementPropsArg extends OnChildElementArg {
43
+ /** The new properties of the child Element for this method. */
44
+ childProps: Readonly<ElementProps>;
45
+ }
46
+ /** Argument for the `Element.onChildXxx` static methods that only supply the Id of the child Element.
47
+ * @beta
48
+ */
49
+ export interface OnChildElementIdArg extends OnChildElementArg {
50
+ /** The Id of the child element for this method */
51
+ childId: Id64String;
52
+ }
53
+ /** Argument for the `Element.onSubModelInsert` static method
54
+ * @beta
55
+ */
56
+ export interface OnSubModelPropsArg extends OnElementArg {
57
+ /** The properties of the prospective sub-model */
58
+ subModelProps: ModelProps;
59
+ }
60
+ /** Argument for several `Element.onSubModelXxx` static methods
61
+ * @beta
62
+ */
63
+ export interface OnSubModelIdArg extends OnElementArg {
64
+ /** The modelId of the sub Model */
65
+ subModelId: Id64String;
66
+ }
67
+ /** Elements are the smallest individually identifiable building blocks for modeling the real world in an iModel.
68
+ * Each element represents an entity in the real world. Sets of Elements (contained in [[Model]]s) are used to model
69
+ * other Elements that represent larger scale real world entities. Using this recursive modeling strategy,
70
+ * Elements can represent entities at any scale. Elements can represent physical things or abstract concepts
71
+ * or simply be information records.
72
+ *
73
+ * Every Element has a 64-bit id (inherited from Entity) that uniquely identifies it within an iModel. Every Element also
74
+ * has a "code" that identifies its meaning in the real world. Additionally, Elements may have a "federationGuid"
75
+ * to hold a GUID, if the element was assigned that GUID by some other federated database. The iModel database enforces
76
+ * uniqueness of id, code, and federationGuid.
77
+ *
78
+ * See:
79
+ * * [Element Fundamentals]($docs/bis/intro/element-fundamentals.md)
80
+ * * [Working with schemas and elements in TypeScript]($docs/learning/backend/SchemasAndElementsInTypeScript.md)
81
+ * * [Creating elements]($docs/learning/backend/CreateElements.md)
82
+ * @public
83
+ */
84
+ export declare class Element extends Entity implements ElementProps {
85
+ /** @internal */
86
+ static get className(): string;
87
+ /** @internal */
88
+ static get protectedOperations(): string[];
89
+ /** The ModelId of the [Model]($docs/bis/intro/model-fundamentals.md) containing this element */
90
+ readonly model: Id64String;
91
+ /** The [Code]($docs/bis/intro/codes.md) for this element */
92
+ code: Code;
93
+ /** The parent element, if present, of this element. */
94
+ parent?: RelatedElement;
95
+ /** A [FederationGuid]($docs/bis/intro/element-fundamentals.md#federationguid) assigned to this element by some other federated database */
96
+ federationGuid?: GuidString;
97
+ /** A [user-assigned label]($docs/bis/intro/element-fundamentals.md#userlabel) for this element. */
98
+ userLabel?: string;
99
+ /** Optional [json properties]($docs/bis/intro/element-fundamentals.md#jsonproperties) of this element. */
100
+ readonly jsonProperties: {
101
+ [key: string]: any;
102
+ };
103
+ /** constructor for Element.
104
+ * @internal
105
+ */
106
+ constructor(props: ElementProps, iModel: IModelDb);
107
+ /** Called before a new Element is inserted.
108
+ * @note throw an exception to disallow the insert
109
+ * @note If you override this method, you must call super.
110
+ * @note `this` is the class of the Element to be inserted
111
+ * @beta
112
+ */
113
+ protected static onInsert(arg: OnElementPropsArg): void;
114
+ /** Called after a new Element was inserted.
115
+ * @note If you override this method, you must call super.
116
+ * @note `this` is the class of the Element that was inserted
117
+ * @beta
118
+ */
119
+ protected static onInserted(arg: OnElementIdArg): void;
120
+ /** Called before an Element is updated.
121
+ * @note throw an exception to disallow the update
122
+ * @note If you override this method, you must call super.
123
+ * @note `this` is the class of the Element to be updated
124
+ * @beta
125
+ */
126
+ protected static onUpdate(arg: OnElementPropsArg): void;
127
+ /** Called after an Element was updated.
128
+ * @note If you override this method, you must call super.
129
+ * @note `this` is the class of the Element that was updated
130
+ * @beta
131
+ */
132
+ protected static onUpdated(_arg: OnElementIdArg): void;
133
+ /** Called before an Element is deleted.
134
+ * @note throw an exception to disallow the delete
135
+ * @note If you override this method, you must call super.
136
+ * @note `this` is the class of the Element to be deleted
137
+ * @beta
138
+ */
139
+ protected static onDelete(arg: OnElementIdArg): void;
140
+ /** Called after an Element was deleted.
141
+ * @note If you override this method, you must call super.
142
+ * @note `this` is the class of the Element that was deleted
143
+ * @beta
144
+ */
145
+ protected static onDeleted(_arg: OnElementIdArg): void;
146
+ /** Called when an element with an instance of this class as its parent is about to be deleted.
147
+ * @note throw an exception if the element should not be deleted
148
+ * @note implementers should not presume that the element was deleted if this method does not throw,
149
+ * since the delete may fail for other reasons. Instead, rely on [[onChildDeleted]] for that purpose.
150
+ * @note `this` is the class of the parent Element whose child will be deleted
151
+ * @beta
152
+ */
153
+ protected static onChildDelete(_arg: OnChildElementIdArg): void;
154
+ /** Called after an element with an instance of this class as its parent was successfully deleted.
155
+ * @note `this` is the class of the parent Element whose child was deleted
156
+ * @beta
157
+ */
158
+ protected static onChildDeleted(_arg: OnChildElementIdArg): void;
159
+ /** Called when a *new element* with an instance of this class as its parent is about to be inserted.
160
+ * @note throw an exception if the element should not be inserted
161
+ * @note `this` is the class of the prospective parent Element.
162
+ * @beta
163
+ */
164
+ protected static onChildInsert(_arg: OnChildElementPropsArg): void;
165
+ /** Called after a *new element* with an instance of this class as its parent was inserted.
166
+ * @note `this` is the class of the parent Element.
167
+ * @beta
168
+ */
169
+ protected static onChildInserted(_arg: OnChildElementIdArg): void;
170
+ /** Called when an element with an instance of this class as its parent is about to be updated.
171
+ * @note throw an exception if the element should not be updated
172
+ * @note `this` is the class of the parent Element.
173
+ * @beta
174
+ */
175
+ protected static onChildUpdate(_arg: OnChildElementPropsArg): void;
176
+ /** Called after an element with an instance of this the class as its parent was updated.
177
+ * @note `this` is the class of the parent Element.
178
+ * @beta
179
+ */
180
+ protected static onChildUpdated(_arg: OnChildElementIdArg): void;
181
+ /** Called when an *existing element* is about to be updated so that an instance of this class will become its new parent.
182
+ * @note throw an exception if the element should not be added
183
+ * @note `this` is the class of the prospective parent Element.
184
+ * @beta
185
+ */
186
+ protected static onChildAdd(_arg: OnChildElementPropsArg): void;
187
+ /** Called after an *existing element* has been updated so that an instance of this class is its new parent.
188
+ * @note `this` is the class of the new parent Element.
189
+ * @beta
190
+ */
191
+ protected static onChildAdded(_arg: OnChildElementIdArg): void;
192
+ /** Called when an element with an instance of this class as its parent is about to be updated change to a different parent.
193
+ * @note throw an exception if the element should not be dropped
194
+ * @note `this` is the class of the parent Element.
195
+ * @beta
196
+ */
197
+ protected static onChildDrop(_arg: OnChildElementIdArg): void;
198
+ /** Called after an element with an instance of this class as its previous parent was updated to have a new parent.
199
+ * @note `this` is the class of the previous parent Element.
200
+ * @beta
201
+ */
202
+ protected static onChildDropped(_arg: OnChildElementIdArg): void;
203
+ /** Called when an instance of this class is being *sub-modeled* by a new Model.
204
+ * @note throw an exception if model should not be inserted
205
+ * @note `this` is the class of Element to be sub-modeled.
206
+ * @beta
207
+ */
208
+ protected static onSubModelInsert(_arg: OnSubModelPropsArg): void;
209
+ /** Called after an instance of this class was *sub-modeled* by a new Model.
210
+ * @note `this` is the class of Element that is now sub-modeled.
211
+ * @beta
212
+ */
213
+ protected static onSubModelInserted(_arg: OnSubModelIdArg): void;
214
+ /** Called when a sub-model of an instance of this class is being deleted.
215
+ * @note throw an exception if model should not be deleted
216
+ * @note `this` is the class of Element that is sub-modeled.
217
+ * @beta
218
+ */
219
+ protected static onSubModelDelete(_arg: OnSubModelIdArg): void;
220
+ /** Called after a sub-model of an instance of this class was deleted.
221
+ * @note `this` is the class of Element that was sub-modeled.
222
+ * @beta
223
+ */
224
+ protected static onSubModelDeleted(_arg: OnSubModelIdArg): void;
225
+ /** Called during the iModel transformation process after an Element from the source iModel was *cloned* for the target iModel.
226
+ * The transformation process automatically handles remapping BisCore properties and those that are properly described in ECSchema.
227
+ * This callback is only meant to be overridden if there are other Ids in non-standard locations that need to be remapped or other data that needs to be fixed up after the clone.
228
+ * @param _context The context that persists any remapping between the source iModel and target iModel.
229
+ * @param _sourceProps The ElementProps for the source Element that was cloned.
230
+ * @param _targetProps The ElementProps that are a result of the clone. These can be further modified.
231
+ * @note If you override this method, you must call super.
232
+ * @beta
233
+ */
234
+ protected static onCloned(_context: IModelCloneContext, _sourceProps: ElementProps, _targetProps: ElementProps): void;
235
+ /** Called when a *root* element in a subgraph is changed and before its outputs are processed.
236
+ * This special callback is made when:
237
+ * * the element is part of an [[ElementDrivesElement]] graph, and
238
+ * * the element has no inputs, and
239
+ * * none of the element's outputs have been processed.
240
+ * @see [[ElementDrivesElement]] for more on element dependency graphs.
241
+ * @beta
242
+ */
243
+ protected static onBeforeOutputsHandled(_id: Id64String, _iModel: IModelDb): void;
244
+ /** Called on an element in a graph after all of its inputs have been processed and before its outputs are processed.
245
+ * This callback is made when:
246
+ * * the specified element is part of an [[ElementDrivesElement]] graph, and
247
+ * * there was a direct change to some element upstream in the dependency graph.
248
+ * * all upstream elements in the graph have been processed.
249
+ * * none of the downstream elements have been processed.
250
+ * This method is not called if none of the element's inputs were changed.
251
+ * @see [[ElementDrivesElement]] for more on element dependency graphs.
252
+ * @beta
253
+ */
254
+ protected static onAllInputsHandled(_id: Id64String, _iModel: IModelDb): void;
255
+ /** Save this Element's properties to an object for serializing to JSON.
256
+ * @internal
257
+ */
258
+ toJSON(): ElementProps;
259
+ /** Collect the Ids of this element's *predecessors* at this level of the class hierarchy.
260
+ * A *predecessor* is an element that had to be inserted before this element could have been inserted.
261
+ * This is important for cloning operations but can be useful in other situations as well.
262
+ * @param predecessorIds The Id64Set to populate with predecessor Ids.
263
+ * @note In order to clone/transform an element, all predecessor elements must have been previously cloned and remapped within the [IModelCloneContext]($backend).
264
+ * @note This should be overridden (with `super` called) at each level the class hierarchy that introduces predecessors.
265
+ * @see getPredecessorIds
266
+ * @beta
267
+ */
268
+ protected collectPredecessorIds(predecessorIds: Id64Set): void;
269
+ /** Get the Ids of this element's *predecessors*. A *predecessor* is an element that had to be inserted before this element could have been inserted.
270
+ * This is important for cloning operations but can be useful in other situations as well.
271
+ * @see collectPredecessorIds
272
+ * @beta
273
+ */
274
+ getPredecessorIds(): Id64Set;
275
+ /** Get the class metadata for this element. */
276
+ getClassMetaData(): EntityMetaData | undefined;
277
+ private getAllUserProperties;
278
+ /** Get a set of JSON user properties by namespace */
279
+ getUserProperties(namespace: string): any;
280
+ /** Change a set of user JSON properties of this Element by namespace. */
281
+ setUserProperties(nameSpace: string, value: any): void;
282
+ /** Remove a set of JSON user properties, specified by namespace, from this Element */
283
+ removeUserProperties(nameSpace: string): void;
284
+ /** Get a JSON property of this element, by namespace */
285
+ getJsonProperty(nameSpace: string): any;
286
+ setJsonProperty(nameSpace: string, value: any): void;
287
+ /** Get a display label for this Element. By default returns userLabel if present, otherwise code value. */
288
+ getDisplayLabel(): string;
289
+ /** Get a list of HTML strings that describe this Element for the tooltip. Strings will be listed on separate lines in the tooltip.
290
+ * Any instances of the pattern `%{tag}` will be replaced by the localized value of tag.
291
+ */
292
+ getToolTipMessage(): string[];
293
+ /** Insert this Element into the iModel. */
294
+ insert(): string;
295
+ /** Update this Element in the iModel. */
296
+ update(): void;
297
+ /** Delete this Element from the iModel. */
298
+ delete(): void;
299
+ }
300
+ /** An abstract base class to model real world entities that intrinsically have geometry.
301
+ * @public
302
+ */
303
+ export declare abstract class GeometricElement extends Element implements GeometricElementProps {
304
+ /** @internal */
305
+ static get className(): string;
306
+ /** The Id of the [[Category]] for this GeometricElement. */
307
+ category: Id64String;
308
+ /** The GeometryStream for this GeometricElement. */
309
+ geom?: GeometryStreamProps;
310
+ /** The origin, orientation, and bounding box of this GeometricElement. */
311
+ abstract get placement(): Placement2d | Placement3d;
312
+ /** @internal */
313
+ constructor(props: GeometricElementProps, iModel: IModelDb);
314
+ /** Type guard for instanceof [[GeometricElement3d]] */
315
+ is3d(): this is GeometricElement3d;
316
+ /** Type guard for instanceof [[GeometricElement2d]] */
317
+ is2d(): this is GeometricElement2d;
318
+ /** Get the [Transform]($geometry) from the Placement of this GeometricElement */
319
+ getPlacementTransform(): Transform;
320
+ calculateRange3d(): AxisAlignedBox3d;
321
+ /** @internal */
322
+ toJSON(): GeometricElementProps;
323
+ /** @internal */
324
+ protected collectPredecessorIds(predecessorIds: Id64Set): void;
325
+ }
326
+ /** An abstract base class to model real world entities that intrinsically have 3d geometry.
327
+ * See [how to create a GeometricElement3d]($docs/learning/backend/CreateElements.md#GeometricElement3d).
328
+ * @public
329
+ */
330
+ export declare abstract class GeometricElement3d extends GeometricElement implements GeometricElement3dProps {
331
+ /** @internal */
332
+ static get className(): string;
333
+ placement: Placement3d;
334
+ typeDefinition?: TypeDefinition;
335
+ /** @internal */
336
+ constructor(props: GeometricElement3dProps, iModel: IModelDb);
337
+ /** @internal */
338
+ toJSON(): GeometricElement3dProps;
339
+ /** @internal */
340
+ protected collectPredecessorIds(predecessorIds: Id64Set): void;
341
+ }
342
+ /** A 3d Graphical Element
343
+ * @public
344
+ */
345
+ export declare abstract class GraphicalElement3d extends GeometricElement3d {
346
+ /** @internal */
347
+ static get className(): string;
348
+ /** @internal */
349
+ constructor(props: GeometricElement3dProps, iModel: IModelDb);
350
+ }
351
+ /** An abstract base class to model information entities that intrinsically have 2d geometry.
352
+ * @public
353
+ */
354
+ export declare abstract class GeometricElement2d extends GeometricElement implements GeometricElement2dProps {
355
+ /** @internal */
356
+ static get className(): string;
357
+ placement: Placement2d;
358
+ typeDefinition?: TypeDefinition;
359
+ /** @internal */
360
+ constructor(props: GeometricElement2dProps, iModel: IModelDb);
361
+ /** @internal */
362
+ toJSON(): GeometricElement2dProps;
363
+ /** @internal */
364
+ protected collectPredecessorIds(predecessorIds: Id64Set): void;
365
+ }
366
+ /** An abstract base class for 2d Geometric Elements that are used to convey information within graphical presentations (like drawings).
367
+ * @public
368
+ */
369
+ export declare abstract class GraphicalElement2d extends GeometricElement2d {
370
+ /** @internal */
371
+ static get className(): string;
372
+ /** @internal */
373
+ constructor(props: GeometricElement2dProps, iModel: IModelDb);
374
+ }
375
+ /** 2d element used to annotate drawings and sheets.
376
+ * @public
377
+ */
378
+ export declare class AnnotationElement2d extends GraphicalElement2d {
379
+ /** @internal */
380
+ static get className(): string;
381
+ /** @internal */
382
+ constructor(props: GeometricElement2dProps, iModel: IModelDb);
383
+ }
384
+ /** 2d element used to persist graphics for use in drawings.
385
+ * @public
386
+ */
387
+ export declare class DrawingGraphic extends GraphicalElement2d {
388
+ /** @internal */
389
+ static get className(): string;
390
+ /** @internal */
391
+ constructor(props: GeometricElement2dProps, iModel: IModelDb);
392
+ }
393
+ /** 2D Text Annotation
394
+ * @public
395
+ */
396
+ export declare class TextAnnotation2d extends AnnotationElement2d {
397
+ /** @internal */
398
+ static get className(): string;
399
+ /** @internal */
400
+ constructor(props: GeometricElement2dProps, iModel: IModelDb);
401
+ }
402
+ /** 3D Text Annotation
403
+ * @public
404
+ */
405
+ export declare class TextAnnotation3d extends GraphicalElement3d {
406
+ /** @internal */
407
+ static get className(): string;
408
+ /** @internal */
409
+ constructor(props: GeometricElement3dProps, iModel: IModelDb);
410
+ }
411
+ /** An Element that occupies real world space. Its coordinates are in the project space of its iModel.
412
+ * @public
413
+ */
414
+ export declare abstract class SpatialElement extends GeometricElement3d {
415
+ /** @internal */
416
+ static get className(): string;
417
+ /** @internal */
418
+ constructor(props: GeometricElement3dProps, iModel: IModelDb);
419
+ }
420
+ /** An Element that is spatially located, has mass, and can be *touched*.
421
+ * @public
422
+ */
423
+ export declare abstract class PhysicalElement extends SpatialElement {
424
+ /** @internal */
425
+ static get className(): string;
426
+ /** If defined, the [[PhysicalMaterial]] that makes up this PhysicalElement. */
427
+ physicalMaterial?: RelatedElement;
428
+ /** @internal */
429
+ constructor(props: PhysicalElementProps, iModel: IModelDb);
430
+ /** @internal */
431
+ toJSON(): PhysicalElementProps;
432
+ }
433
+ /** Identifies a *tracked* real world location but has no mass and cannot be *touched*.
434
+ * @public
435
+ */
436
+ export declare abstract class SpatialLocationElement extends SpatialElement {
437
+ /** @internal */
438
+ static get className(): string;
439
+ /** @internal */
440
+ constructor(props: GeometricElement3dProps, iModel: IModelDb);
441
+ }
442
+ /** A Volume Element is a Spatial Location Element that is restricted to defining a volume.
443
+ * @public
444
+ */
445
+ export declare class VolumeElement extends SpatialLocationElement {
446
+ /** @internal */
447
+ static get className(): string;
448
+ /** @internal */
449
+ constructor(props: GeometricElement3dProps, iModel: IModelDb);
450
+ }
451
+ /** A SectionDrawingLocation element identifies the location of a [[SectionDrawing]] in the context of a [[SpatialModel]],
452
+ * enabling [HyperModeling]($hypermodeling).
453
+ * @note The associated ECClass was added to the BisCore schema in version 1.0.11.
454
+ * @public
455
+ */
456
+ export declare class SectionDrawingLocation extends SpatialLocationElement {
457
+ /** The Id of the [[ViewDefinition]] to which this location refers. */
458
+ sectionView: RelatedElement;
459
+ /** @internal */
460
+ static get className(): string;
461
+ constructor(props: SectionDrawingLocationProps, iModel: IModelDb);
462
+ /** @internal */
463
+ toJSON(): SectionDrawingLocationProps;
464
+ }
465
+ /** Information Content Element is an abstract base class for modeling pure information entities. Only the
466
+ * core framework should directly subclass from Information Content Element. Domain and application developers
467
+ * should start with the most appropriate subclass of Information Content Element.
468
+ * @public
469
+ */
470
+ export declare abstract class InformationContentElement extends Element {
471
+ /** @internal */
472
+ static get className(): string;
473
+ /** @internal */
474
+ constructor(props: ElementProps, iModel: IModelDb);
475
+ }
476
+ /** Element used in conjunction with bis:ElementDrivesElement relationships to bundle multiple inputs before
477
+ * driving the output element.
478
+ * @beta
479
+ */
480
+ export declare abstract class DriverBundleElement extends InformationContentElement {
481
+ /** @internal */
482
+ static get className(): string;
483
+ /** @internal */
484
+ constructor(props: ElementProps, iModel: IModelDb);
485
+ }
486
+ /** Information Reference is an abstract base class for modeling entities whose main purpose is to reference something else.
487
+ * @public
488
+ */
489
+ export declare abstract class InformationReferenceElement extends InformationContentElement {
490
+ /** @internal */
491
+ static get className(): string;
492
+ /** @internal */
493
+ constructor(props: ElementProps, iModel: IModelDb);
494
+ }
495
+ /** A Subject is an information element that describes what this repository (or part thereof) is about.
496
+ * See [how to create a Subject element]$(docs/learning/backend/CreateElements.md#Subject).
497
+ * @public
498
+ */
499
+ export declare class Subject extends InformationReferenceElement implements SubjectProps {
500
+ /** @internal */
501
+ static get className(): string;
502
+ description?: string;
503
+ /** @internal */
504
+ constructor(props: SubjectProps, iModel: IModelDb);
505
+ /** @internal */
506
+ toJSON(): SubjectProps;
507
+ /** Create a Code for a Subject given a name that is meant to be unique within the scope of its parent Subject.
508
+ * @param iModelDb The IModelDb
509
+ * @param parentSubjectId The Id of the parent Subject that provides the scope for names of its child Subjects.
510
+ * @param codeValue The child Subject name
511
+ */
512
+ static createCode(iModelDb: IModelDb, parentSubjectId: CodeScopeProps, codeValue: string): Code;
513
+ /** Create a Subject
514
+ * @param iModelDb The IModelDb
515
+ * @param parentSubjectId The new Subject will be a child of this Subject
516
+ * @param name The name (codeValue) of the Subject
517
+ * @param description The optional description of the Subject
518
+ * @returns The newly constructed Subject
519
+ * @throws [[IModelError]] if there is a problem creating the Subject
520
+ */
521
+ static create(iModelDb: IModelDb, parentSubjectId: Id64String, name: string, description?: string): Subject;
522
+ /** Insert a Subject
523
+ * @param iModelDb Insert into this IModelDb
524
+ * @param parentSubjectId The new Subject will be inserted as a child of this Subject
525
+ * @param name The name (codeValue) of the Subject
526
+ * @param description The optional description of the Subject
527
+ * @returns The Id of the newly inserted Subject
528
+ * @throws [[IModelError]] if there is a problem inserting the Subject
529
+ */
530
+ static insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string, description?: string): Id64String;
531
+ }
532
+ /** An InformationContentElement that identifies the content of a document.
533
+ * The realized form of a document is called a DocumentCarrier (different class than Document).
534
+ * For example, a will is a legal document. The will published into a PDF file is an ElectronicDocumentCopy.
535
+ * The will printed onto paper is a PrintedDocumentCopy.
536
+ * In this example, the Document only identifies, names, and tracks the content of the will.
537
+ * @public
538
+ */
539
+ export declare abstract class Document extends InformationContentElement {
540
+ /** @internal */
541
+ static get className(): string;
542
+ /** @internal */
543
+ constructor(props: ElementProps, iModel: IModelDb);
544
+ }
545
+ /** A document that represents a drawing, that is, a two-dimensional graphical representation of engineering data. A Drawing element is usually modelled by a [[DrawingModel]].
546
+ * @public
547
+ */
548
+ export declare class Drawing extends Document {
549
+ /** @internal */
550
+ static get className(): string;
551
+ /** @internal */
552
+ constructor(props: ElementProps, iModel: IModelDb);
553
+ /** Create a Code for a Drawing given a name that is meant to be unique within the scope of the specified DocumentListModel.
554
+ * @param iModel The IModelDb
555
+ * @param scopeModelId The Id of the DocumentListModel that contains the Drawing and provides the scope for its name.
556
+ * @param codeValue The Drawing name
557
+ */
558
+ static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
559
+ /** Insert a Drawing element and a DrawingModel that breaks it down.
560
+ * @param iModelDb Insert into this iModel
561
+ * @param documentListModelId Insert the new Drawing into this DocumentListModel
562
+ * @param name The name of the Drawing.
563
+ * @returns The Id of the newly inserted Drawing element and the DrawingModel that breaks it down (same value).
564
+ * @throws [[IModelError]] if unable to insert the element.
565
+ */
566
+ static insert(iModelDb: IModelDb, documentListModelId: Id64String, name: string): Id64String;
567
+ }
568
+ /** A document that represents a section drawing, that is, a graphical documentation derived from a planar
569
+ * section of a spatial view. A SectionDrawing element is modelled by a [[SectionDrawingModel]] or a [[GraphicalModel3d]].
570
+ * A [[SectionDrawingLocation]] can associate the drawing with a spatial location, enabling [HyperModeling]($hypermodeling).
571
+ * @public
572
+ */
573
+ export declare class SectionDrawing extends Drawing {
574
+ /** The type of section used to generate the drawing. */
575
+ sectionType: SectionType;
576
+ /** The spatial view from which the section was generated. */
577
+ spatialView: RelatedElement;
578
+ /** A transform from the section drawing model's coordinates to spatial coordinates. */
579
+ drawingToSpatialTransform?: Transform;
580
+ /** If the section drawing is placed onto a [[Sheet]] via a [[ViewAttachment]], a transform from the sheet's coordinates to spatial coordinates. */
581
+ sheetToSpatialTransform?: Transform;
582
+ /** If the section drawing is placed onto a [[Sheet]] via a [[ViewAttachment]], the clip to apply to the sheet graphics when drawn in the context
583
+ * of the spatial view.
584
+ * @note The ClipVector is defined in spatial coordinates.
585
+ */
586
+ drawingBoundaryClip?: ClipVector;
587
+ /** If true, when displaying the section drawing as a [DrawingViewState]($frontend), the [[spatialView]] will also be displayed. */
588
+ displaySpatialView: boolean;
589
+ /** @internal */
590
+ static get className(): string;
591
+ /** @internal */
592
+ constructor(props: SectionDrawingProps, iModel: IModelDb);
593
+ /** Convert to JSON representation. */
594
+ toJSON(): SectionDrawingProps;
595
+ }
596
+ /** The template for a SheetBorder
597
+ * @public
598
+ */
599
+ export declare class SheetBorderTemplate extends Document implements SheetBorderTemplateProps {
600
+ /** @internal */
601
+ static get className(): string;
602
+ height?: number;
603
+ width?: number;
604
+ /** @internal */
605
+ constructor(props: SheetBorderTemplateProps, iModel: IModelDb);
606
+ }
607
+ /** The template for a [[Sheet]]
608
+ * @public
609
+ */
610
+ export declare class SheetTemplate extends Document implements SheetTemplateProps {
611
+ /** @internal */
612
+ static get className(): string;
613
+ height?: number;
614
+ width?: number;
615
+ border?: Id64String;
616
+ /** @internal */
617
+ constructor(props: SheetTemplateProps, iModel: IModelDb);
618
+ /** @internal */
619
+ protected collectPredecessorIds(predecessorIds: Id64Set): void;
620
+ }
621
+ /** A digital representation of a *sheet of paper*. Modeled by a [[SheetModel]].
622
+ * @public
623
+ */
624
+ export declare class Sheet extends Document implements SheetProps {
625
+ /** @internal */
626
+ static get className(): string;
627
+ height: number;
628
+ width: number;
629
+ scale?: number;
630
+ sheetTemplate?: Id64String;
631
+ /** @internal */
632
+ constructor(props: SheetProps, iModel: IModelDb);
633
+ /** @internal */
634
+ protected collectPredecessorIds(predecessorIds: Id64Set): void;
635
+ /** Create a Code for a Sheet given a name that is meant to be unique within the scope of the specified DocumentListModel.
636
+ * @param iModel The IModelDb
637
+ * @param scopeModelId The Id of the DocumentListModel that contains the Sheet and provides the scope for its name.
638
+ * @param codeValue The Sheet name
639
+ */
640
+ static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
641
+ }
642
+ /** Information Record Element is an abstract base class for modeling information records. Information Record
643
+ * Element is the default choice if no other subclass of Information Content Element makes sense.
644
+ * @public
645
+ */
646
+ export declare abstract class InformationRecordElement extends InformationContentElement {
647
+ /** @internal */
648
+ static get className(): string;
649
+ /** @internal */
650
+ constructor(props: ElementProps, iModel: IModelDb);
651
+ }
652
+ /** A Definition Element holds configuration-related information that is meant to be referenced / shared.
653
+ * @public
654
+ */
655
+ export declare abstract class DefinitionElement extends InformationContentElement implements DefinitionElementProps {
656
+ /** @internal */
657
+ static get className(): string;
658
+ /** If true, don't show this DefinitionElement in user interface lists. */
659
+ isPrivate: boolean;
660
+ /** @internal */
661
+ constructor(props: DefinitionElementProps, iModel: IModelDb);
662
+ /** @internal */
663
+ toJSON(): DefinitionElementProps;
664
+ }
665
+ /** This abstract class unifies DefinitionGroup and DefinitionContainer for relationship endpoint purposes.
666
+ * @note The associated ECClass was added to the BisCore schema in version 1.0.10
667
+ * @public
668
+ */
669
+ export declare abstract class DefinitionSet extends DefinitionElement {
670
+ /** @internal */
671
+ static get className(): string;
672
+ }
673
+ /** A DefinitionContainer exclusively owns a set of DefinitionElements contained within its sub-model (of type DefinitionModel).
674
+ * @note The associated ECClass was added to the BisCore schema in version 1.0.10
675
+ * @public
676
+ */
677
+ export declare class DefinitionContainer extends DefinitionSet {
678
+ /** @internal */
679
+ static get className(): string;
680
+ /** Create a DefinitionContainer
681
+ * @param iModelDb The IModelDb
682
+ * @param definitionModelId The Id of the [DefinitionModel]($backend) that will contain this DefinitionContainer element.
683
+ * @param code The Code for this DefinitionContainer.
684
+ * @param isPrivate The optional hint, that if `true` means it should not be displayed in the UI.
685
+ * @returns The newly constructed DefinitionContainer
686
+ * @note There is not a predefined CodeSpec for DefinitionContainer elements, so it is the responsibility of the domain or application to create one.
687
+ * @throws [[IModelError]] if there is a problem creating the DefinitionContainer
688
+ */
689
+ static create(iModelDb: IModelDb, definitionModelId: Id64String, code: Code, isPrivate?: boolean): DefinitionContainer;
690
+ /** Insert a DefinitionContainer and its sub-model.
691
+ * @param iModelDb Insert into this IModelDb
692
+ * @param definitionModelId The Id of the [DefinitionModel]($backend) that will contain this DefinitionContainer element.
693
+ * @param code The Code for this DefinitionContainer.
694
+ * @param isPrivate The optional hint, that if `true` means it should not be displayed in the UI.
695
+ * @returns The Id of the newly inserted DefinitionContainer and its newly inserted sub-model (of type DefinitionModel).
696
+ * @note There is not a predefined CodeSpec for DefinitionContainer elements, so it is the responsibility of the domain or application to create one.
697
+ * @throws [[IModelError]] if there is a problem inserting the DefinitionContainer
698
+ */
699
+ static insert(iModelDb: IModelDb, definitionModelId: Id64String, code: Code, isPrivate?: boolean): Id64String;
700
+ }
701
+ /** A non-exclusive set of DefinitionElements grouped using the DefinitionGroupGroupsDefinitions relationship.
702
+ * @note The associated ECClass was added to the BisCore schema in version 1.0.10
703
+ * @public
704
+ */
705
+ export declare class DefinitionGroup extends DefinitionSet {
706
+ /** @internal */
707
+ static get className(): string;
708
+ /** Create a DefinitionGroup
709
+ * @param iModelDb The IModelDb
710
+ * @param definitionModelId The Id of the [DefinitionModel]($backend) that will contain this DefinitionGroup element.
711
+ * @param code The Code for this DefinitionGroup
712
+ * @param isPrivate The optional hint, that if `true` means it should not be displayed in the UI.
713
+ * @returns The newly constructed DefinitionGroup
714
+ * @note There is not a predefined CodeSpec for DefinitionGroup elements, so it is the responsibility of the domain or application to create one.
715
+ * @throws [[IModelError]] if there is a problem creating the DefinitionGroup
716
+ */
717
+ static create(iModelDb: IModelDb, definitionModelId: Id64String, code: Code, isPrivate?: boolean): DefinitionGroup;
718
+ }
719
+ /** Defines a set of properties (the *type*) that may be associated with an element.
720
+ * @public
721
+ */
722
+ export declare abstract class TypeDefinitionElement extends DefinitionElement implements TypeDefinitionElementProps {
723
+ /** @internal */
724
+ static get className(): string;
725
+ recipe?: RelatedElement;
726
+ /** @internal */
727
+ constructor(props: TypeDefinitionElementProps, iModel: IModelDb);
728
+ /** @internal */
729
+ protected collectPredecessorIds(predecessorIds: Id64Set): void;
730
+ }
731
+ /** Defines a recipe for generating instances from a definition.
732
+ * @beta
733
+ */
734
+ export declare abstract class RecipeDefinitionElement extends DefinitionElement {
735
+ /** @internal */
736
+ static get className(): string;
737
+ /** @internal */
738
+ constructor(props: ElementProps, iModel: IModelDb);
739
+ }
740
+ /** Defines a set of properties (the *type*) that can be associated with a Physical Element. A Physical
741
+ * Type has a strong correlation with something that can be ordered from a catalog since all instances
742
+ * share a common set of properties.
743
+ * @public
744
+ */
745
+ export declare abstract class PhysicalType extends TypeDefinitionElement {
746
+ /** @internal */
747
+ static get className(): string;
748
+ /** If defined, the [[PhysicalMaterial]] that makes up this PhysicalType. */
749
+ physicalMaterial?: RelatedElement;
750
+ /** @internal */
751
+ constructor(props: PhysicalTypeProps, iModel: IModelDb);
752
+ /** @internal */
753
+ toJSON(): PhysicalTypeProps;
754
+ /** Create a Code for a PhysicalType element given a name that is meant to be unique within the scope of the specified DefinitionModel.
755
+ * @param iModel The IModelDb
756
+ * @param scopeModelId The Id of the DefinitionModel that contains the PhysicalType element and provides the scope for its name.
757
+ * @param codeValue The PhysicalType name
758
+ */
759
+ static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
760
+ }
761
+ /** Defines a set of properties (the *type*) that can be associated with a spatial location.
762
+ * @public
763
+ */
764
+ export declare abstract class SpatialLocationType extends TypeDefinitionElement {
765
+ /** @internal */
766
+ static get className(): string;
767
+ /** @internal */
768
+ constructor(props: TypeDefinitionElementProps, iModel: IModelDb);
769
+ /** Create a Code for a SpatialLocationType element given a name that is meant to be unique within the scope of the specified DefinitionModel.
770
+ * @param iModel The IModelDb
771
+ * @param scopeModelId The Id of the DefinitionModel that contains the SpatialLocationType element and provides the scope for its name.
772
+ * @param codeValue The SpatialLocationType name
773
+ */
774
+ static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
775
+ }
776
+ /** A TemplateRecipe3d is a DefinitionElement that has a sub-model that contains the 3d template elements.
777
+ * @beta
778
+ */
779
+ export declare class TemplateRecipe3d extends RecipeDefinitionElement {
780
+ /** @internal */
781
+ static get className(): string;
782
+ /** @internal */
783
+ constructor(props: ElementProps, iModel: IModelDb);
784
+ /** Create a Code for a TemplateRecipe3d given a name that is meant to be unique within the scope of its Model.
785
+ * @param iModelDb The IModelDb
786
+ * @param definitionModelId The Id of the [DefinitionModel]($backend) that contains this TemplateRecipe3d element.
787
+ * @param codeValue The name of the TemplateRecipe3d element.
788
+ */
789
+ static createCode(iModelDb: IModelDb, definitionModelId: CodeScopeProps, codeValue: string): Code;
790
+ /** Create a TemplateRecipe3d
791
+ * @param iModelDb The IModelDb
792
+ * @param definitionModelId The Id of the [DefinitionModel]($backend) that contains this TemplateRecipe3d element.
793
+ * @param name The name (Code.value) of the TemplateRecipe3d
794
+ * @returns The newly constructed TemplateRecipe3d
795
+ * @throws [[IModelError]] if there is a problem creating the TemplateRecipe3d
796
+ */
797
+ static create(iModelDb: IModelDb, definitionModelId: Id64String, name: string, isPrivate?: boolean): TemplateRecipe3d;
798
+ /** Insert a TemplateRecipe3d and a PhysicalModel (sub-model) that will contain the 3d template elements.
799
+ * @param iModelDb The IModelDb
800
+ * @param definitionModelId The Id of the [DefinitionModel]($backend) that contains this TemplateRecipe3d element.
801
+ * @param name The name (Code.value) of the TemplateRecipe3d
802
+ * @returns The Id of the newly inserted TemplateRecipe3d and the PhysicalModel that sub-models it.
803
+ * @throws [[IModelError]] if there is a problem inserting the TemplateRecipe3d or its sub-model.
804
+ */
805
+ static insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string, isPrivate?: boolean): Id64String;
806
+ }
807
+ /** Defines a set of properties (the *type*) that can be associated with a 2D Graphical Element.
808
+ * @public
809
+ */
810
+ export declare abstract class GraphicalType2d extends TypeDefinitionElement {
811
+ /** @internal */
812
+ static get className(): string;
813
+ /** @internal */
814
+ constructor(props: TypeDefinitionElementProps, iModel: IModelDb);
815
+ /** Create a Code for a GraphicalType2d element given a name that is meant to be unique within the scope of the specified DefinitionModel.
816
+ * @param iModel The IModelDb
817
+ * @param scopeModelId The Id of the DefinitionModel that contains the GraphicalType2d element and provides the scope for its name.
818
+ * @param codeValue The GraphicalType2d name
819
+ */
820
+ static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
821
+ }
822
+ /** A recipe that uses a 2D template for creating new instances.
823
+ * @beta
824
+ */
825
+ export declare class TemplateRecipe2d extends RecipeDefinitionElement {
826
+ /** @internal */
827
+ static get className(): string;
828
+ /** @internal */
829
+ constructor(props: ElementProps, iModel: IModelDb);
830
+ /** Create a Code for a TemplateRecipe2d given a name that is meant to be unique within the scope of its Model.
831
+ * @param iModelDb The IModelDb
832
+ * @param definitionModelId The Id of the [DefinitionModel]($backend) that contains this TemplateRecipe2d element.
833
+ * @param codeValue The name of the TemplateRecipe2d element.
834
+ */
835
+ static createCode(iModelDb: IModelDb, definitionModelId: CodeScopeProps, codeValue: string): Code;
836
+ /** Create a TemplateRecipe2d
837
+ * @param iModelDb The IModelDb
838
+ * @param definitionModelId The Id of the [DefinitionModel]($backend) that contains this TemplateRecipe2d element.
839
+ * @param name The name (Code.value) of the TemplateRecipe2d
840
+ * @returns The newly constructed TemplateRecipe2d
841
+ * @throws [[IModelError]] if there is a problem creating the TemplateRecipe2d
842
+ */
843
+ static create(iModelDb: IModelDb, definitionModelId: Id64String, name: string, isPrivate?: boolean): TemplateRecipe2d;
844
+ /** Insert a TemplateRecipe2d and a DrawingModel (sub-model) that will contain the 2d template elements.
845
+ * @param iModelDb The IModelDb
846
+ * @param definitionModelId The Id of the [DefinitionModel]($backend) that contains this TemplateRecipe2d element.
847
+ * @param name The name (Code.value) of the TemplateRecipe2d
848
+ * @returns The Id of the newly inserted TemplateRecipe2d and the PhysicalModel that sub-models it.
849
+ * @throws [[IModelError]] if there is a problem inserting the TemplateRecipe2d or its sub-model.
850
+ */
851
+ static insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string, isPrivate?: boolean): Id64String;
852
+ }
853
+ /** An abstract base class for elements that establishes a particular modeling perspective for its parent Subject.
854
+ * Instances are always sub-modeled by a specialization of Model of the appropriate modeling perspective.
855
+ * @see [iModel Information Hierarchy]($docs/bis/intro/top-of-the-world), [[Subject]], [[Model]]
856
+ * @public
857
+ */
858
+ export declare abstract class InformationPartitionElement extends InformationContentElement implements InformationPartitionElementProps {
859
+ /** @internal */
860
+ static get className(): string;
861
+ /** A human-readable string describing the intent of the partition. */
862
+ description?: string;
863
+ /** @internal */
864
+ constructor(props: InformationPartitionElementProps, iModel: IModelDb);
865
+ /** @internal */
866
+ toJSON(): InformationPartitionElementProps;
867
+ /** Create a code that can be used for any subclass of InformationPartitionElement.
868
+ * @param iModelDb The IModelDb
869
+ * @param parentSubjectId The Id of the parent Subject that provides the scope for names of its child InformationPartitionElements.
870
+ * @param codeValue The InformationPartitionElement name
871
+ */
872
+ static createCode(iModel: IModelDb, parentSubjectId: CodeScopeProps, codeValue: string): Code;
873
+ }
874
+ /** A DefinitionPartition element establishes a *Definition* modeling perspective for its parent Subject.
875
+ * A DefinitionPartition is always sub-modeled by a DefinitionModel.
876
+ * @see [[DefinitionModel]]
877
+ * @public
878
+ */
879
+ export declare class DefinitionPartition extends InformationPartitionElement {
880
+ /** @internal */
881
+ static get className(): string;
882
+ }
883
+ /** A DocumentPartition element establishes a *Document* modeling perspective for its parent Subject.
884
+ * A DocumentPartition is always sub-modeled by a DocumentListModel.
885
+ * @see [[DocumentListModel]]
886
+ * @public
887
+ */
888
+ export declare class DocumentPartition extends InformationPartitionElement {
889
+ /** @internal */
890
+ static get className(): string;
891
+ }
892
+ /** A GroupInformationPartition element establishes a *Group Information* modeling perspective for its parent Subject.
893
+ * A GroupInformationPartition is always sub-modeled by a GroupInformationModel.
894
+ * @see [[GroupInformationModel]]
895
+ * @public
896
+ */
897
+ export declare class GroupInformationPartition extends InformationPartitionElement {
898
+ /** @internal */
899
+ static get className(): string;
900
+ }
901
+ /** A GraphicalPartition3d element establishes a *3D Graphical* modeling perspective for its parent Subject.
902
+ * A GraphicalPartition3d is always sub-modeled by a GraphicalModel3d.
903
+ * @note The associated ECClass was added to the BisCore schema in version 1.0.8
904
+ * @see [[GraphicalModel3d]]
905
+ * @public
906
+ */
907
+ export declare class GraphicalPartition3d extends InformationPartitionElement {
908
+ /** @internal */
909
+ static get className(): string;
910
+ }
911
+ /** An InformationRecordPartition element establishes a *Information Record* modeling perspective for its parent Subject.
912
+ * A InformationRecordPartition is always sub-modeled by an InformationRecordModel.
913
+ * @see [[InformationRecordModel]]
914
+ * @public
915
+ */
916
+ export declare class InformationRecordPartition extends InformationPartitionElement {
917
+ /** @internal */
918
+ static get className(): string;
919
+ }
920
+ /** A LinkPartition element establishes a *Link* modeling perspective for its parent Subject. A LinkPartition is always sub-modeled by a LinkModel.
921
+ * @see [[LinkModel]]
922
+ * @public
923
+ */
924
+ export declare class LinkPartition extends InformationPartitionElement {
925
+ /** @internal */
926
+ static get className(): string;
927
+ }
928
+ /** A PhysicalPartition element establishes a *Physical* modeling perspective for its parent Subject. A PhysicalPartition is always sub-modeled by a PhysicalModel.
929
+ * @see [[PhysicalModel]]
930
+ * @public
931
+ */
932
+ export declare class PhysicalPartition extends InformationPartitionElement {
933
+ /** @internal */
934
+ static get className(): string;
935
+ }
936
+ /** A SpatialLocationPartition element establishes a *SpatialLocation* modeling perspective for its parent Subject.
937
+ * A SpatialLocationPartition is always sub-modeled by a SpatialLocationModel.
938
+ * @see [[SpatialLocationModel]]
939
+ * @public
940
+ */
941
+ export declare class SpatialLocationPartition extends InformationPartitionElement {
942
+ /** @internal */
943
+ static get className(): string;
944
+ }
945
+ /** Group Information is an abstract base class for modeling entities whose main purpose is to reference a group of related elements.
946
+ * @public
947
+ */
948
+ export declare abstract class GroupInformationElement extends InformationReferenceElement {
949
+ /** @internal */
950
+ static get className(): string;
951
+ }
952
+ /** An information element that specifies a link.
953
+ * @public
954
+ */
955
+ export declare abstract class LinkElement extends InformationReferenceElement {
956
+ /** @internal */
957
+ static get className(): string;
958
+ /** Create a Code for a LinkElement given a name that is meant to be unique within the scope of the specified Model.
959
+ * @param iModel The IModelDb
960
+ * @param scopeModelId The Id of the Model that contains the LinkElement and provides the scope for its name.
961
+ * @param codeValue The LinkElement name
962
+ */
963
+ static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
964
+ }
965
+ /** An information element that specifies a URL link.
966
+ * @public
967
+ */
968
+ export declare class UrlLink extends LinkElement implements UrlLinkProps {
969
+ /** @internal */
970
+ static get className(): string;
971
+ description?: string;
972
+ url?: string;
973
+ /** @internal */
974
+ constructor(props: UrlLinkProps, iModel: IModelDb);
975
+ /** @internal */
976
+ toJSON(): UrlLinkProps;
977
+ }
978
+ /** Represents a folder-like structure that organizes repositories (typically files) in an external system.
979
+ * @note The associated ECClass was added to the BisCore schema in version 1.0.13
980
+ * @alpha
981
+ */
982
+ export declare class FolderLink extends UrlLink {
983
+ /** @internal */
984
+ static get className(): string;
985
+ }
986
+ /** An information element that links to a repository.
987
+ * @public
988
+ */
989
+ export declare class RepositoryLink extends UrlLink implements RepositoryLinkProps {
990
+ /** @internal */
991
+ static get className(): string;
992
+ repositoryGuid?: GuidString;
993
+ /** @note This property was added to the BisCore schema in version 1.0.13 */
994
+ format?: string;
995
+ /** @internal */
996
+ constructor(props: RepositoryLinkProps, iModel: IModelDb);
997
+ /** @internal */
998
+ toJSON(): RepositoryLinkProps;
999
+ }
1000
+ /** An information element that links to an embedded file.
1001
+ * @public
1002
+ */
1003
+ export declare class EmbeddedFileLink extends LinkElement {
1004
+ /** @internal */
1005
+ static get className(): string;
1006
+ }
1007
+ /** A real world entity is modeled as a Role Element when a set of external circumstances define an important
1008
+ * role (one that is worth tracking) that is not intrinsic to the entity playing the role. For example,
1009
+ * a person can play the role of a teacher or a rock can play the role of a boundary marker.
1010
+ * @public
1011
+ */
1012
+ export declare abstract class RoleElement extends Element {
1013
+ /** @internal */
1014
+ static get className(): string;
1015
+ }
1016
+ /** A Definition Element that specifies a collection of geometry that is meant to be reused across Geometric
1017
+ * Element instances. Leveraging Geometry Parts can help reduce file size and improve display performance.
1018
+ * @public
1019
+ */
1020
+ export declare class GeometryPart extends DefinitionElement implements GeometryPartProps {
1021
+ /** @internal */
1022
+ static get className(): string;
1023
+ geom?: GeometryStreamProps;
1024
+ bbox: ElementAlignedBox3d;
1025
+ /** @internal */
1026
+ constructor(props: GeometryPartProps, iModel: IModelDb);
1027
+ /** @internal */
1028
+ toJSON(): GeometryPartProps;
1029
+ /** Create a Code for a GeometryPart element given a name that is meant to be unique within the scope of the specified DefinitionModel.
1030
+ * @param iModel The IModelDb
1031
+ * @param scopeModelId The Id of the DefinitionModel that contains the GeometryPart element and provides the scope for its name.
1032
+ * @param codeValue The GeometryPart name
1033
+ * @note GeometryPart elements are not required to be named (have a non-empty Code).
1034
+ */
1035
+ static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
1036
+ }
1037
+ /** The definition element for a line style
1038
+ * @public
1039
+ */
1040
+ export declare class LineStyle extends DefinitionElement implements LineStyleProps {
1041
+ /** @internal */
1042
+ static get className(): string;
1043
+ description?: string;
1044
+ data: string;
1045
+ /** @internal */
1046
+ constructor(props: LineStyleProps, iModel: IModelDb);
1047
+ /** Create a Code for a LineStyle definition given a name that is meant to be unique within the scope of the specified model.
1048
+ * @param iModel The IModel
1049
+ * @param scopeModelId The Id of the DefinitionModel that contains the LineStyle and provides the scope for its name.
1050
+ * @param codeValue The name of the LineStyle
1051
+ * @returns A LineStyle Code
1052
+ */
1053
+ static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
1054
+ }
1055
+ /** Describes how to animate a view of a [[GeometricModel]] to show change over time using a [RenderSchedule.Script]($common).
1056
+ * @note This class was introduced in version 01.00.13 of the BisCore ECSchema. It should only be used with [[IModelDb]]s containing that version or newer.
1057
+ * @public
1058
+ */
1059
+ export declare class RenderTimeline extends InformationRecordElement {
1060
+ /** @internal */
1061
+ static get className(): string;
1062
+ /** A human-readable description of the timeline, which may be an empty string. */
1063
+ description: string;
1064
+ /** The JSON representation of the instructions for visualizing change over time.
1065
+ * @see [RenderSchedule.Script]($common) for the API for working with the script.
1066
+ */
1067
+ scriptProps: RenderSchedule.ScriptProps;
1068
+ /** @internal */
1069
+ protected constructor(props: RenderTimelineProps, iModel: IModelDb);
1070
+ static fromJSON(props: RenderTimelineProps, iModel: IModelDb): RenderTimeline;
1071
+ toJSON(): RenderTimelineProps;
1072
+ private static parseScriptProps;
1073
+ /** @alpha */
1074
+ protected collectPredecessorIds(ids: Id64Set): void;
1075
+ /** @alpha */
1076
+ protected static onCloned(context: IModelCloneContext, sourceProps: RenderTimelineProps, targetProps: RenderTimelineProps): void;
1077
+ /** Remap Ids when cloning a RenderSchedule.Script between iModels on a DisplayStyle or RenderTimeline.
1078
+ * @internal
1079
+ */
1080
+ static remapScript(context: IModelCloneContext, input: RenderSchedule.ScriptProps): RenderSchedule.ScriptProps;
1081
+ }
1082
+ //# sourceMappingURL=Element.d.ts.map