@itwin/core-backend 4.0.0-dev.7 → 4.0.0-dev.70

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 (254) hide show
  1. package/CHANGELOG.md +89 -67
  2. package/lib/cjs/BackendHubAccess.d.ts +224 -224
  3. package/lib/cjs/BackendHubAccess.d.ts.map +1 -1
  4. package/lib/cjs/BackendHubAccess.js +41 -41
  5. package/lib/cjs/BackendHubAccess.js.map +1 -1
  6. package/lib/cjs/BackendLoggerCategory.d.ts +90 -91
  7. package/lib/cjs/BackendLoggerCategory.d.ts.map +1 -1
  8. package/lib/cjs/BackendLoggerCategory.js +98 -99
  9. package/lib/cjs/BackendLoggerCategory.js.map +1 -1
  10. package/lib/cjs/BisCoreSchema.d.ts +21 -21
  11. package/lib/cjs/BisCoreSchema.js +60 -60
  12. package/lib/cjs/BriefcaseManager.d.ts +170 -170
  13. package/lib/cjs/BriefcaseManager.d.ts.map +1 -1
  14. package/lib/cjs/BriefcaseManager.js +408 -414
  15. package/lib/cjs/BriefcaseManager.js.map +1 -1
  16. package/lib/cjs/Category.d.ts +153 -153
  17. package/lib/cjs/Category.js +243 -243
  18. package/lib/cjs/Category.js.map +1 -1
  19. package/lib/cjs/ChangeSummaryManager.d.ts +187 -187
  20. package/lib/cjs/ChangeSummaryManager.js +444 -445
  21. package/lib/cjs/ChangeSummaryManager.js.map +1 -1
  22. package/lib/cjs/ChangedElementsDb.d.ts +99 -99
  23. package/lib/cjs/ChangedElementsDb.js +165 -165
  24. package/lib/cjs/ChangedElementsManager.d.ts +39 -39
  25. package/lib/cjs/ChangedElementsManager.js +88 -88
  26. package/lib/cjs/ChannelControl.d.ts +70 -0
  27. package/lib/cjs/ChannelControl.d.ts.map +1 -0
  28. package/lib/cjs/ChannelControl.js +89 -0
  29. package/lib/cjs/ChannelControl.js.map +1 -0
  30. package/lib/cjs/CheckpointManager.d.ts +121 -121
  31. package/lib/cjs/CheckpointManager.d.ts.map +1 -1
  32. package/lib/cjs/CheckpointManager.js +351 -349
  33. package/lib/cjs/CheckpointManager.js.map +1 -1
  34. package/lib/cjs/ClassRegistry.d.ts +79 -79
  35. package/lib/cjs/ClassRegistry.js +249 -245
  36. package/lib/cjs/ClassRegistry.js.map +1 -1
  37. package/lib/cjs/CloudSqlite.d.ts +355 -350
  38. package/lib/cjs/CloudSqlite.d.ts.map +1 -1
  39. package/lib/cjs/CloudSqlite.js +154 -153
  40. package/lib/cjs/CloudSqlite.js.map +1 -1
  41. package/lib/cjs/CodeService.d.ts +396 -396
  42. package/lib/cjs/CodeService.d.ts.map +1 -1
  43. package/lib/cjs/CodeService.js +63 -63
  44. package/lib/cjs/CodeService.js.map +1 -1
  45. package/lib/cjs/CodeSpecs.d.ts +55 -55
  46. package/lib/cjs/CodeSpecs.js +124 -124
  47. package/lib/cjs/ConcurrentQuery.d.ts +13 -13
  48. package/lib/cjs/ConcurrentQuery.d.ts.map +1 -1
  49. package/lib/cjs/ConcurrentQuery.js +36 -36
  50. package/lib/cjs/CustomViewState3dCreator.d.ts +21 -21
  51. package/lib/cjs/CustomViewState3dCreator.d.ts.map +1 -1
  52. package/lib/cjs/CustomViewState3dCreator.js +82 -81
  53. package/lib/cjs/CustomViewState3dCreator.js.map +1 -1
  54. package/lib/cjs/DevTools.d.ts +74 -71
  55. package/lib/cjs/DevTools.d.ts.map +1 -1
  56. package/lib/cjs/DevTools.js +156 -154
  57. package/lib/cjs/DevTools.js.map +1 -1
  58. package/lib/cjs/DisplayStyle.d.ts +106 -106
  59. package/lib/cjs/DisplayStyle.js +253 -256
  60. package/lib/cjs/DisplayStyle.js.map +1 -1
  61. package/lib/cjs/ECDb.d.ts +194 -191
  62. package/lib/cjs/ECDb.d.ts.map +1 -1
  63. package/lib/cjs/ECDb.js +353 -350
  64. package/lib/cjs/ECDb.js.map +1 -1
  65. package/lib/cjs/ECSchemaXmlContext.d.ts +18 -18
  66. package/lib/cjs/ECSchemaXmlContext.d.ts.map +1 -1
  67. package/lib/cjs/ECSchemaXmlContext.js +41 -41
  68. package/lib/cjs/ECSqlStatement.d.ts +473 -473
  69. package/lib/cjs/ECSqlStatement.js +791 -791
  70. package/lib/cjs/Element.d.ts +1113 -1109
  71. package/lib/cjs/Element.d.ts.map +1 -1
  72. package/lib/cjs/Element.js +1424 -1427
  73. package/lib/cjs/Element.js.map +1 -1
  74. package/lib/cjs/ElementAspect.d.ts +176 -179
  75. package/lib/cjs/ElementAspect.d.ts.map +1 -1
  76. package/lib/cjs/ElementAspect.js +203 -211
  77. package/lib/cjs/ElementAspect.js.map +1 -1
  78. package/lib/cjs/ElementGraphics.d.ts +9 -9
  79. package/lib/cjs/ElementGraphics.js +41 -41
  80. package/lib/cjs/ElementGraphics.js.map +1 -1
  81. package/lib/cjs/ElementTreeWalker.d.ts +162 -162
  82. package/lib/cjs/ElementTreeWalker.d.ts.map +1 -1
  83. package/lib/cjs/ElementTreeWalker.js +409 -409
  84. package/lib/cjs/ElementTreeWalker.js.map +1 -1
  85. package/lib/cjs/Entity.d.ts +106 -106
  86. package/lib/cjs/Entity.d.ts.map +1 -1
  87. package/lib/cjs/Entity.js +134 -134
  88. package/lib/cjs/Entity.js.map +1 -1
  89. package/lib/cjs/EntityReferences.d.ts +49 -49
  90. package/lib/cjs/EntityReferences.d.ts.map +1 -1
  91. package/lib/cjs/EntityReferences.js +95 -95
  92. package/lib/cjs/ExportGraphics.d.ts +317 -317
  93. package/lib/cjs/ExportGraphics.d.ts.map +1 -1
  94. package/lib/cjs/ExportGraphics.js +208 -208
  95. package/lib/cjs/ExternalSource.d.ts +96 -96
  96. package/lib/cjs/ExternalSource.js +131 -131
  97. package/lib/cjs/ExternalSource.js.map +1 -1
  98. package/lib/cjs/GeoCoordConfig.d.ts +19 -19
  99. package/lib/cjs/GeoCoordConfig.js +85 -85
  100. package/lib/cjs/GeoCoordConfig.js.map +1 -1
  101. package/lib/cjs/GeometrySummary.d.ts +4 -4
  102. package/lib/cjs/GeometrySummary.js +333 -333
  103. package/lib/cjs/GeometrySummary.js.map +1 -1
  104. package/lib/cjs/HubMock.d.ts +94 -94
  105. package/lib/cjs/HubMock.js +220 -222
  106. package/lib/cjs/HubMock.js.map +1 -1
  107. package/lib/cjs/IModelCloneContext.d.ts +8 -8
  108. package/lib/cjs/IModelCloneContext.d.ts.map +1 -1
  109. package/lib/cjs/IModelCloneContext.js +15 -15
  110. package/lib/cjs/IModelDb.d.ts +1216 -1196
  111. package/lib/cjs/IModelDb.d.ts.map +1 -1
  112. package/lib/cjs/IModelDb.js +2387 -2392
  113. package/lib/cjs/IModelDb.js.map +1 -1
  114. package/lib/cjs/IModelElementCloneContext.d.ts +89 -89
  115. package/lib/cjs/IModelElementCloneContext.js +159 -159
  116. package/lib/cjs/IModelHost.d.ts +355 -369
  117. package/lib/cjs/IModelHost.d.ts.map +1 -1
  118. package/lib/cjs/IModelHost.js +472 -496
  119. package/lib/cjs/IModelHost.js.map +1 -1
  120. package/lib/cjs/IModelJsFs.d.ts +62 -62
  121. package/lib/cjs/IModelJsFs.js +139 -140
  122. package/lib/cjs/IModelJsFs.js.map +1 -1
  123. package/lib/cjs/IpcHost.d.ts +104 -104
  124. package/lib/cjs/IpcHost.js +276 -278
  125. package/lib/cjs/IpcHost.js.map +1 -1
  126. package/lib/cjs/LineStyle.d.ts +311 -311
  127. package/lib/cjs/LineStyle.js +295 -295
  128. package/lib/cjs/LocalHub.d.ts +162 -162
  129. package/lib/cjs/LocalHub.d.ts.map +1 -1
  130. package/lib/cjs/LocalHub.js +579 -584
  131. package/lib/cjs/LocalHub.js.map +1 -1
  132. package/lib/cjs/LocalhostIpcHost.d.ts +20 -20
  133. package/lib/cjs/LocalhostIpcHost.js +79 -81
  134. package/lib/cjs/LocalhostIpcHost.js.map +1 -1
  135. package/lib/cjs/Material.d.ts +131 -131
  136. package/lib/cjs/Material.js +180 -181
  137. package/lib/cjs/Material.js.map +1 -1
  138. package/lib/cjs/Model.d.ts +392 -392
  139. package/lib/cjs/Model.d.ts.map +1 -1
  140. package/lib/cjs/Model.js +489 -485
  141. package/lib/cjs/Model.js.map +1 -1
  142. package/lib/cjs/NativeAppStorage.d.ts +51 -51
  143. package/lib/cjs/NativeAppStorage.js +202 -202
  144. package/lib/cjs/NativeAppStorage.js.map +1 -1
  145. package/lib/cjs/NativeHost.d.ts +52 -52
  146. package/lib/cjs/NativeHost.js +160 -163
  147. package/lib/cjs/NativeHost.js.map +1 -1
  148. package/lib/cjs/NavigationRelationship.d.ts +156 -156
  149. package/lib/cjs/NavigationRelationship.js +225 -225
  150. package/lib/cjs/NavigationRelationship.js.map +1 -1
  151. package/lib/cjs/PromiseMemoizer.d.ts +51 -51
  152. package/lib/cjs/PromiseMemoizer.d.ts.map +1 -1
  153. package/lib/cjs/PromiseMemoizer.js +101 -101
  154. package/lib/cjs/PromiseMemoizer.js.map +1 -1
  155. package/lib/cjs/PropertyStore.d.ts +132 -132
  156. package/lib/cjs/PropertyStore.js +11 -11
  157. package/lib/cjs/Relationship.d.ts +416 -416
  158. package/lib/cjs/Relationship.js +494 -494
  159. package/lib/cjs/Relationship.js.map +1 -1
  160. package/lib/cjs/RpcBackend.d.ts +5 -5
  161. package/lib/cjs/RpcBackend.js +32 -32
  162. package/lib/cjs/SQLiteDb.d.ts +219 -219
  163. package/lib/cjs/SQLiteDb.js +212 -214
  164. package/lib/cjs/SQLiteDb.js.map +1 -1
  165. package/lib/cjs/Schema.d.ts +55 -55
  166. package/lib/cjs/Schema.js +83 -83
  167. package/lib/cjs/Schema.js.map +1 -1
  168. package/lib/cjs/ServerBasedLocks.d.ts +57 -57
  169. package/lib/cjs/ServerBasedLocks.js +168 -168
  170. package/lib/cjs/ServerBasedLocks.js.map +1 -1
  171. package/lib/cjs/SqliteStatement.d.ts +360 -360
  172. package/lib/cjs/SqliteStatement.d.ts.map +1 -1
  173. package/lib/cjs/SqliteStatement.js +586 -586
  174. package/lib/cjs/Texture.d.ts +58 -58
  175. package/lib/cjs/Texture.js +82 -82
  176. package/lib/cjs/Texture.js.map +1 -1
  177. package/lib/cjs/TileStorage.d.ts +44 -18
  178. package/lib/cjs/TileStorage.d.ts.map +1 -1
  179. package/lib/cjs/TileStorage.js +109 -90
  180. package/lib/cjs/TileStorage.js.map +1 -1
  181. package/lib/cjs/TxnManager.d.ts +202 -202
  182. package/lib/cjs/TxnManager.d.ts.map +1 -1
  183. package/lib/cjs/TxnManager.js +356 -356
  184. package/lib/cjs/TxnManager.js.map +1 -1
  185. package/lib/cjs/ViewDefinition.d.ts +435 -439
  186. package/lib/cjs/ViewDefinition.d.ts.map +1 -1
  187. package/lib/cjs/ViewDefinition.js +646 -646
  188. package/lib/cjs/ViewDefinition.js.map +1 -1
  189. package/lib/cjs/ViewStateHydrator.d.ts +13 -13
  190. package/lib/cjs/ViewStateHydrator.js +103 -103
  191. package/lib/cjs/core-backend.d.ts +184 -184
  192. package/lib/cjs/core-backend.d.ts.map +1 -1
  193. package/lib/cjs/core-backend.js +208 -204
  194. package/lib/cjs/core-backend.js.map +1 -1
  195. package/lib/cjs/domains/FunctionalElements.d.ts +101 -101
  196. package/lib/cjs/domains/FunctionalElements.js +145 -145
  197. package/lib/cjs/domains/FunctionalElements.js.map +1 -1
  198. package/lib/cjs/domains/FunctionalSchema.d.ts +13 -13
  199. package/lib/cjs/domains/FunctionalSchema.d.ts.map +1 -1
  200. package/lib/cjs/domains/FunctionalSchema.js +39 -40
  201. package/lib/cjs/domains/FunctionalSchema.js.map +1 -1
  202. package/lib/cjs/domains/GenericElements.d.ts +177 -177
  203. package/lib/cjs/domains/GenericElements.js +263 -263
  204. package/lib/cjs/domains/GenericSchema.d.ts +10 -10
  205. package/lib/cjs/domains/GenericSchema.js +28 -28
  206. package/lib/cjs/rpc/multipart.d.ts +11 -11
  207. package/lib/cjs/rpc/multipart.js +71 -71
  208. package/lib/cjs/rpc/tracing.d.ts +28 -28
  209. package/lib/cjs/rpc/tracing.js +73 -74
  210. package/lib/cjs/rpc/tracing.js.map +1 -1
  211. package/lib/cjs/rpc/web/logging.d.ts +9 -9
  212. package/lib/cjs/rpc/web/logging.js +43 -43
  213. package/lib/cjs/rpc/web/request.d.ts +6 -6
  214. package/lib/cjs/rpc/web/request.js +73 -74
  215. package/lib/cjs/rpc/web/request.js.map +1 -1
  216. package/lib/cjs/rpc/web/response.d.ts +6 -6
  217. package/lib/cjs/rpc/web/response.js +105 -106
  218. package/lib/cjs/rpc/web/response.js.map +1 -1
  219. package/lib/cjs/rpc-impl/DevToolsRpcImpl.d.ts +15 -15
  220. package/lib/cjs/rpc-impl/DevToolsRpcImpl.js +32 -32
  221. package/lib/cjs/rpc-impl/IModelReadRpcImpl.d.ts +47 -47
  222. package/lib/cjs/rpc-impl/IModelReadRpcImpl.js +293 -294
  223. package/lib/cjs/rpc-impl/IModelReadRpcImpl.js.map +1 -1
  224. package/lib/cjs/rpc-impl/IModelTileRpcImpl.d.ts +20 -22
  225. package/lib/cjs/rpc-impl/IModelTileRpcImpl.d.ts.map +1 -1
  226. package/lib/cjs/rpc-impl/IModelTileRpcImpl.js +187 -205
  227. package/lib/cjs/rpc-impl/IModelTileRpcImpl.js.map +1 -1
  228. package/lib/cjs/rpc-impl/RpcBriefcaseUtility.d.ts +36 -36
  229. package/lib/cjs/rpc-impl/RpcBriefcaseUtility.js +166 -168
  230. package/lib/cjs/rpc-impl/RpcBriefcaseUtility.js.map +1 -1
  231. package/lib/cjs/rpc-impl/SnapshotIModelRpcImpl.d.ts +16 -16
  232. package/lib/cjs/rpc-impl/SnapshotIModelRpcImpl.js +42 -43
  233. package/lib/cjs/rpc-impl/SnapshotIModelRpcImpl.js.map +1 -1
  234. package/lib/cjs/rpc-impl/WipRpcImpl.d.ts +15 -15
  235. package/lib/cjs/rpc-impl/WipRpcImpl.js +37 -37
  236. package/lib/cjs/workspace/Settings.d.ts +186 -186
  237. package/lib/cjs/workspace/Settings.d.ts.map +1 -1
  238. package/lib/cjs/workspace/Settings.js +154 -155
  239. package/lib/cjs/workspace/Settings.js.map +1 -1
  240. package/lib/cjs/workspace/SettingsSchemas.d.ts +75 -75
  241. package/lib/cjs/workspace/SettingsSchemas.js +190 -191
  242. package/lib/cjs/workspace/SettingsSchemas.js.map +1 -1
  243. package/lib/cjs/workspace/Workspace.d.ts +414 -414
  244. package/lib/cjs/workspace/Workspace.js +537 -543
  245. package/lib/cjs/workspace/Workspace.js.map +1 -1
  246. package/package.json +21 -21
  247. package/lib/cjs/AliCloudStorageService.d.ts +0 -24
  248. package/lib/cjs/AliCloudStorageService.d.ts.map +0 -1
  249. package/lib/cjs/AliCloudStorageService.js +0 -72
  250. package/lib/cjs/AliCloudStorageService.js.map +0 -1
  251. package/lib/cjs/CloudStorageBackend.d.ts +0 -59
  252. package/lib/cjs/CloudStorageBackend.d.ts.map +0 -1
  253. package/lib/cjs/CloudStorageBackend.js +0 -174
  254. package/lib/cjs/CloudStorageBackend.js.map +0 -1
@@ -1,393 +1,393 @@
1
- /** @packageDocumentation
2
- * @module Models
3
- */
4
- import { GuidString, Id64String } from "@itwin/core-bentley";
5
- import { Point2d } from "@itwin/core-geometry";
6
- import { AxisAlignedBox3d, ElementProps, EntityReferenceSet, GeometricModel2dProps, GeometricModel3dProps, GeometricModelProps, ModelProps, RelatedElement } from "@itwin/core-common";
7
- import { Entity } from "./Entity";
8
- import { IModelDb } from "./IModelDb";
9
- /** Argument for the `Model.onXxx` static methods
10
- * @beta
11
- */
12
- export interface OnModelArg {
13
- /** The iModel for the Model affected. */
14
- iModel: IModelDb;
15
- }
16
- /** Argument for the `Model.onXxx` static methods that supply the properties of a Model to be inserted or updated.
17
- * @beta
18
- */
19
- export interface OnModelPropsArg extends OnModelArg {
20
- /** The new properties of the Model affected. */
21
- props: Readonly<ModelProps>;
22
- }
23
- /** Argument for the `Model.onXxx` static methods that only supply the Id of the affected Model.
24
- * @beta
25
- */
26
- export interface OnModelIdArg extends OnModelArg {
27
- /** The Id of the Model affected */
28
- id: Id64String;
29
- }
30
- /** Argument for the `Model.onXxxElement` static methods that supply the properties of an Element for a Model.
31
- * @beta
32
- */
33
- export interface OnElementInModelPropsArg extends OnModelIdArg {
34
- /** The new properties of an Element for the affected Model */
35
- elementProps: Readonly<ElementProps>;
36
- }
37
- /** Argument for the `Model.onXxxElement` static methods that supply the Id of an Element for a Model.
38
- * @beta
39
- */
40
- export interface OnElementInModelIdArg extends OnModelIdArg {
41
- /** The Id of the Element for the affected Model */
42
- elementId: Id64String;
43
- }
44
- /** A Model is a container for persisting a collection of related elements within an iModel.
45
- * See [[IModelDb.Models]] for how to query and manage the Models in an IModelDb.
46
- * See [Creating models]($docs/learning/backend/CreateModels.md)
47
- * @public
48
- */
49
- export declare class Model extends Entity {
50
- /** @internal */
51
- static get className(): string;
52
- /** @internal */
53
- static get protectedOperations(): string[];
54
- readonly modeledElement: RelatedElement;
55
- readonly name: string;
56
- readonly parentModel: Id64String;
57
- readonly jsonProperties: {
58
- [key: string]: any;
59
- };
60
- isPrivate: boolean;
61
- isTemplate: boolean;
62
- /** @internal */
63
- constructor(props: ModelProps, iModel: IModelDb);
64
- /** Add all properties of a Model to a json object.
65
- * @internal
66
- */
67
- toJSON(): ModelProps;
68
- /** Called before a new Model is inserted.
69
- * @note throw an exception to disallow the insert
70
- * @note If you override this method, you must call super.
71
- * @note `this` is the class of the Model to be inserted
72
- * @beta
73
- */
74
- protected static onInsert(arg: OnModelPropsArg): void;
75
- /** Called after a new Model is inserted.
76
- * @note If you override this method, you must call super.
77
- * @note `this` is the class of the Model that was inserted
78
- * @beta
79
- */
80
- protected static onInserted(_arg: OnModelIdArg): void;
81
- /** Called before a Model is updated.
82
- * @note throw an exception to disallow the update
83
- * @note If you override this method, you must call super.
84
- * @note `this` is the class of the Model to be updated
85
- * @beta
86
- */
87
- protected static onUpdate(arg: OnModelPropsArg): void;
88
- /** Called after a Model is updated.
89
- * @note If you override this method, you must call super.
90
- * @note `this` is the class of the Model that was updated.
91
- * @beta
92
- */
93
- protected static onUpdated(_arg: OnModelIdArg): void;
94
- /** Called before a Model is deleted.
95
- * @note throw an exception to disallow the delete
96
- * @note If you override this method, you must call super.
97
- * @note `this` is the class of the Model to be deleted
98
- * @beta
99
- */
100
- protected static onDelete(arg: OnModelIdArg): void;
101
- /** Called after a Model was deleted.
102
- * @note If you override this method, you must call super.
103
- * @note `this` is the class of the Model that was deleted
104
- * @beta
105
- */
106
- protected static onDeleted(_arg: OnModelIdArg): void;
107
- /** Called before a prospective Element is to be inserted into an instance of a Model of this class.
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 Model to hold the element
111
- * @beta
112
- */
113
- protected static onInsertElement(_arg: OnElementInModelPropsArg): void;
114
- /** Called after an Element has been inserted into an instance of a Model of this class.
115
- * @note If you override this method, you must call super.
116
- * @note `this` is the class of the Model holding the element
117
- * @beta
118
- */
119
- protected static onInsertedElement(_arg: OnElementInModelIdArg): void;
120
- /** Called when an Element in an instance of a Model of this class is about to be 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 Model holding the element
124
- * @beta
125
- */
126
- protected static onUpdateElement(_arg: OnElementInModelPropsArg): void;
127
- /** Called after an Element in an instance of a Model of this class has been updated.
128
- * @note If you override this method, you must call super.
129
- * @note `this` is the class of the Model holding the element
130
- * @beta
131
- */
132
- protected static onUpdatedElement(_arg: OnElementInModelIdArg): void;
133
- /** Called when an Element in an instance of a Model of this class is about to be 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 Model holding the element
137
- * @beta
138
- */
139
- protected static onDeleteElement(_arg: OnElementInModelIdArg): void;
140
- /** Called after an Element in an instance of a Model of this class has been deleted.
141
- * @note If you override this method, you must call super.
142
- * @note `this` is the class of the Model that held the element
143
- * @beta
144
- */
145
- protected static onDeletedElement(_arg: OnElementInModelIdArg): void;
146
- private getAllUserProperties;
147
- /** Get a set of JSON user properties by namespace */
148
- getUserProperties(namespace: string): any;
149
- /** Change a set of user JSON properties of this Element by namespace. */
150
- setUserProperties(nameSpace: string, value: any): void;
151
- /** Remove a set of JSON user properties, specified by namespace, from this Element */
152
- removeUserProperties(nameSpace: string): void;
153
- getJsonProperty(name: string): any;
154
- setJsonProperty(name: string, value: any): void;
155
- /** Insert this Model in the iModel */
156
- insert(): string;
157
- /** Update this Model in the iModel. */
158
- update(): void;
159
- /** Delete this Model from the iModel. */
160
- delete(): void;
161
- /** @internal */
162
- protected collectReferenceConcreteIds(referenceIds: EntityReferenceSet): void;
163
- }
164
- /** A container for persisting geometric elements.
165
- * @public
166
- */
167
- export declare class GeometricModel extends Model {
168
- geometryGuid?: GuidString;
169
- /** @internal */
170
- static get className(): string;
171
- /** @internal */
172
- constructor(props: GeometricModelProps, iModel: IModelDb);
173
- /** Query for the union of the extents of the elements contained by this model.
174
- * @note This function blocks the JavaScript event loop. Consider using [[queryRange]] instead.
175
- */
176
- queryExtents(): AxisAlignedBox3d;
177
- /** Query for the union of the extents of all elements contained within this model. */
178
- queryRange(): Promise<AxisAlignedBox3d>;
179
- }
180
- /** A container for persisting 3d geometric elements.
181
- * @public
182
- */
183
- export declare abstract class GeometricModel3d extends GeometricModel {
184
- /** If true, then the elements in this GeometricModel3d are expected to be in an XY plane.
185
- * @note The associated ECProperty was added to the BisCore schema in version 1.0.8
186
- */
187
- readonly isPlanProjection: boolean;
188
- /** If true, then the elements in this GeometricModel3d are not in real-world coordinates and will not be in the spatial index.
189
- * @note The associated ECProperty was added to the BisCore schema in version 1.0.8
190
- */
191
- readonly isNotSpatiallyLocated: boolean;
192
- /** If true, then the elements in this GeometricModel3d are in real-world coordinates and will be in the spatial index. */
193
- get isSpatiallyLocated(): boolean;
194
- /** @internal */
195
- static get className(): string;
196
- /** @internal */
197
- constructor(props: GeometricModel3dProps, iModel: IModelDb);
198
- /** @internal */
199
- toJSON(): GeometricModel3dProps;
200
- }
201
- /** A container for persisting 2d geometric elements.
202
- * @public
203
- */
204
- export declare abstract class GeometricModel2d extends GeometricModel {
205
- /** The actual coordinates of (0,0) in modeling coordinates. An offset applied to all modeling coordinates. */
206
- globalOrigin?: Point2d;
207
- /** @internal */
208
- static get className(): string;
209
- /** @internal */
210
- constructor(props: GeometricModel2dProps, iModel: IModelDb);
211
- /** @internal */
212
- toJSON(): GeometricModel2dProps;
213
- }
214
- /** A container for persisting 2d graphical elements.
215
- * @public
216
- */
217
- export declare abstract class GraphicalModel2d extends GeometricModel2d {
218
- /** @internal */
219
- static get className(): string;
220
- }
221
- /** A container for persisting GraphicalElement3d instances.
222
- * @note The associated ECClass was added to the BisCore schema in version 1.0.8
223
- * @see [[GraphicalPartition3d]]
224
- * @public
225
- */
226
- export declare abstract class GraphicalModel3d extends GeometricModel3d {
227
- /** @internal */
228
- static get className(): string;
229
- }
230
- /** A container for persisting 3d geometric elements that are spatially located.
231
- * @public
232
- */
233
- export declare abstract class SpatialModel extends GeometricModel3d {
234
- /** @internal */
235
- static get className(): string;
236
- }
237
- /** A container for persisting physical elements that model physical space.
238
- * @see [[PhysicalPartition]]
239
- * @public
240
- */
241
- export declare class PhysicalModel extends SpatialModel {
242
- /** @internal */
243
- static get className(): string;
244
- /** Insert a PhysicalPartition and a PhysicalModel that sub-models it.
245
- * @param iModelDb Insert into this iModel
246
- * @param parentSubjectId The PhysicalPartition will be inserted as a child of this Subject element.
247
- * @param name The name of the PhysicalPartition that the new PhysicalModel will sub-model.
248
- * @param isPlanProjection Optional value (default is false) that indicates if the contents of this model are expected to be in an XY plane.
249
- * @returns The Id of the newly inserted PhysicalPartition and PhysicalModel (same value).
250
- * @throws [[IModelError]] if there is an insert problem.
251
- */
252
- static insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string, isPlanProjection?: boolean): Id64String;
253
- }
254
- /** A container for persisting spatial location elements.
255
- * @see [[SpatialLocationPartition]]
256
- * @public
257
- */
258
- export declare class SpatialLocationModel extends SpatialModel {
259
- /** @internal */
260
- static get className(): string;
261
- /** Insert a SpatialLocationPartition and a SpatialLocationModel that sub-models it.
262
- * @param iModelDb Insert into this iModel
263
- * @param parentSubjectId The SpatialLocationPartition will be inserted as a child of this Subject element.
264
- * @param name The name of the SpatialLocationPartition that the new SpatialLocationModel will sub-model.
265
- * @param isPlanProjection Optional value (default is false) that indicates if the contents of this model are expected to be in an XY plane.
266
- * @returns The Id of the newly inserted SpatialLocationPartition and SpatialLocationModel (same value).
267
- * @throws [[IModelError]] if there is an insert problem.
268
- */
269
- static insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string, isPlanProjection?: boolean): Id64String;
270
- }
271
- /** A 2d model that holds [[DrawingGraphic]]s. DrawingModels may be dimensional or non-dimensional.
272
- * @public
273
- */
274
- export declare class DrawingModel extends GraphicalModel2d {
275
- /** @internal */
276
- static get className(): string;
277
- }
278
- /** A container for persisting section [[DrawingGraphic]]s.
279
- * @public
280
- */
281
- export declare class SectionDrawingModel extends DrawingModel {
282
- /** @internal */
283
- static get className(): string;
284
- }
285
- /** A container for persisting [[ViewAttachment]]s and [[DrawingGraphic]]s.
286
- * A SheetModel is a digital representation of a *sheet of paper*. SheetModels are 2d models in bounded paper coordinates.
287
- * SheetModels may contain annotation Elements as well as references to 2d or 3d Views.
288
- * @public
289
- */
290
- export declare class SheetModel extends GraphicalModel2d {
291
- /** @internal */
292
- static get className(): string;
293
- }
294
- /** A container for persisting role elements.
295
- * @public
296
- */
297
- export declare class RoleModel extends Model {
298
- /** @internal */
299
- static get className(): string;
300
- }
301
- /** A container for persisting information elements.
302
- * @public
303
- */
304
- export declare abstract class InformationModel extends Model {
305
- /** @internal */
306
- static get className(): string;
307
- }
308
- /** A container for persisting group information elements.
309
- * @see [[GroupInformationPartition]]
310
- * @public
311
- */
312
- export declare abstract class GroupInformationModel extends InformationModel {
313
- /** @internal */
314
- static get className(): string;
315
- }
316
- /** A container for persisting Information Record Elements
317
- * @see [[InformationRecordPartition]]
318
- * @public
319
- */
320
- export declare class InformationRecordModel extends InformationModel {
321
- /** @internal */
322
- static get className(): string;
323
- /** Insert a InformationRecordPartition and a InformationRecordModel that sub-models it.
324
- * @param iModelDb Insert into this iModel
325
- * @param parentSubjectId The InformationRecordPartition will be inserted as a child of this Subject element.
326
- * @param name The name of the InformationRecordPartition that the new InformationRecordModel will sub-model.
327
- * @returns The Id of the newly inserted InformationRecordModel.
328
- * @throws [[IModelError]] if there is an insert problem.
329
- */
330
- static insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string): Id64String;
331
- }
332
- /** A container for persisting definition elements.
333
- * @see [[DefinitionPartition]]
334
- * @public
335
- */
336
- export declare class DefinitionModel extends InformationModel {
337
- /** @internal */
338
- static get className(): string;
339
- /** Insert a DefinitionPartition and a DefinitionModel that sub-models it.
340
- * @param iModelDb Insert into this iModel
341
- * @param parentSubjectId The DefinitionPartition will be inserted as a child of this Subject element.
342
- * @param name The name of the DefinitionPartition that the new DefinitionModel will sub-model.
343
- * @returns The Id of the newly inserted DefinitionModel.
344
- * @throws [[IModelError]] if there is an insert problem.
345
- */
346
- static insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string): Id64String;
347
- }
348
- /** The singleton container of repository-related information elements.
349
- * @public
350
- */
351
- export declare class RepositoryModel extends DefinitionModel {
352
- /** @internal */
353
- static get className(): string;
354
- }
355
- /** Contains a list of document elements.
356
- * @see [[DocumentPartition]]
357
- * @public
358
- */
359
- export declare class DocumentListModel extends InformationModel {
360
- /** @internal */
361
- static get className(): string;
362
- /** Insert a DocumentPartition and a DocumentListModel that sub-models it.
363
- * @param iModelDb Insert into this iModel
364
- * @param parentSubjectId The DocumentPartition will be inserted as a child of this Subject element.
365
- * @param name The name of the DocumentPartition that the new DocumentListModel will sub-model.
366
- * @returns The Id of the newly inserted DocumentPartition and DocumentListModel (same value)
367
- * @throws [[IModelError]] if there is an insert problem.
368
- */
369
- static insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string): Id64String;
370
- }
371
- /** A container for persisting link elements.
372
- * @see [[LinkPartition]]
373
- * @public
374
- */
375
- export declare class LinkModel extends InformationModel {
376
- /** @internal */
377
- static get className(): string;
378
- }
379
- /** The singleton container for repository-specific definition elements.
380
- * @public
381
- */
382
- export declare class DictionaryModel extends DefinitionModel {
383
- /** @internal */
384
- static get className(): string;
385
- }
386
- /** Obtains and displays multi-resolution tiled raster organized according to the WebMercator tiling system.
387
- * @public
388
- */
389
- export declare class WebMercatorModel extends SpatialModel {
390
- /** @internal */
391
- static get className(): string;
392
- }
1
+ /** @packageDocumentation
2
+ * @module Models
3
+ */
4
+ import { GuidString, Id64String } from "@itwin/core-bentley";
5
+ import { Point2d } from "@itwin/core-geometry";
6
+ import { AxisAlignedBox3d, ElementProps, EntityReferenceSet, GeometricModel2dProps, GeometricModel3dProps, GeometricModelProps, ModelProps, RelatedElement } from "@itwin/core-common";
7
+ import { Entity } from "./Entity";
8
+ import { IModelDb } from "./IModelDb";
9
+ /** Argument for the `Model.onXxx` static methods
10
+ * @beta
11
+ */
12
+ export interface OnModelArg {
13
+ /** The iModel for the Model affected. */
14
+ iModel: IModelDb;
15
+ }
16
+ /** Argument for the `Model.onXxx` static methods that supply the properties of a Model to be inserted or updated.
17
+ * @beta
18
+ */
19
+ export interface OnModelPropsArg extends OnModelArg {
20
+ /** The new properties of the Model affected. */
21
+ props: Readonly<ModelProps>;
22
+ }
23
+ /** Argument for the `Model.onXxx` static methods that only supply the Id of the affected Model.
24
+ * @beta
25
+ */
26
+ export interface OnModelIdArg extends OnModelArg {
27
+ /** The Id of the Model affected */
28
+ id: Id64String;
29
+ }
30
+ /** Argument for the `Model.onXxxElement` static methods that supply the properties of an Element for a Model.
31
+ * @beta
32
+ */
33
+ export interface OnElementInModelPropsArg extends OnModelIdArg {
34
+ /** The new properties of an Element for the affected Model */
35
+ elementProps: Readonly<ElementProps>;
36
+ }
37
+ /** Argument for the `Model.onXxxElement` static methods that supply the Id of an Element for a Model.
38
+ * @beta
39
+ */
40
+ export interface OnElementInModelIdArg extends OnModelIdArg {
41
+ /** The Id of the Element for the affected Model */
42
+ elementId: Id64String;
43
+ }
44
+ /** A Model is a container for persisting a collection of related elements within an iModel.
45
+ * See [[IModelDb.Models]] for how to query and manage the Models in an IModelDb.
46
+ * See [Creating models]($docs/learning/backend/CreateModels.md)
47
+ * @public
48
+ */
49
+ export declare class Model extends Entity {
50
+ /** @internal */
51
+ static get className(): string;
52
+ /** @internal */
53
+ static get protectedOperations(): string[];
54
+ readonly modeledElement: RelatedElement;
55
+ readonly name: string;
56
+ readonly parentModel: Id64String;
57
+ readonly jsonProperties: {
58
+ [key: string]: any;
59
+ };
60
+ isPrivate: boolean;
61
+ isTemplate: boolean;
62
+ /** @internal */
63
+ constructor(props: ModelProps, iModel: IModelDb);
64
+ /** Add all properties of a Model to a json object.
65
+ * @internal
66
+ */
67
+ toJSON(): ModelProps;
68
+ /** Called before a new Model is inserted.
69
+ * @note throw an exception to disallow the insert
70
+ * @note If you override this method, you must call super.
71
+ * @note `this` is the class of the Model to be inserted
72
+ * @beta
73
+ */
74
+ protected static onInsert(arg: OnModelPropsArg): void;
75
+ /** Called after a new Model is inserted.
76
+ * @note If you override this method, you must call super.
77
+ * @note `this` is the class of the Model that was inserted
78
+ * @beta
79
+ */
80
+ protected static onInserted(_arg: OnModelIdArg): void;
81
+ /** Called before a Model is updated.
82
+ * @note throw an exception to disallow the update
83
+ * @note If you override this method, you must call super.
84
+ * @note `this` is the class of the Model to be updated
85
+ * @beta
86
+ */
87
+ protected static onUpdate(arg: OnModelPropsArg): void;
88
+ /** Called after a Model is updated.
89
+ * @note If you override this method, you must call super.
90
+ * @note `this` is the class of the Model that was updated.
91
+ * @beta
92
+ */
93
+ protected static onUpdated(_arg: OnModelIdArg): void;
94
+ /** Called before a Model is deleted.
95
+ * @note throw an exception to disallow the delete
96
+ * @note If you override this method, you must call super.
97
+ * @note `this` is the class of the Model to be deleted
98
+ * @beta
99
+ */
100
+ protected static onDelete(arg: OnModelIdArg): void;
101
+ /** Called after a Model was deleted.
102
+ * @note If you override this method, you must call super.
103
+ * @note `this` is the class of the Model that was deleted
104
+ * @beta
105
+ */
106
+ protected static onDeleted(_arg: OnModelIdArg): void;
107
+ /** Called before a prospective Element is to be inserted into an instance of a Model of this class.
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 Model to hold the element
111
+ * @beta
112
+ */
113
+ protected static onInsertElement(_arg: OnElementInModelPropsArg): void;
114
+ /** Called after an Element has been inserted into an instance of a Model of this class.
115
+ * @note If you override this method, you must call super.
116
+ * @note `this` is the class of the Model holding the element
117
+ * @beta
118
+ */
119
+ protected static onInsertedElement(_arg: OnElementInModelIdArg): void;
120
+ /** Called when an Element in an instance of a Model of this class is about to be 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 Model holding the element
124
+ * @beta
125
+ */
126
+ protected static onUpdateElement(_arg: OnElementInModelPropsArg): void;
127
+ /** Called after an Element in an instance of a Model of this class has been updated.
128
+ * @note If you override this method, you must call super.
129
+ * @note `this` is the class of the Model holding the element
130
+ * @beta
131
+ */
132
+ protected static onUpdatedElement(_arg: OnElementInModelIdArg): void;
133
+ /** Called when an Element in an instance of a Model of this class is about to be 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 Model holding the element
137
+ * @beta
138
+ */
139
+ protected static onDeleteElement(_arg: OnElementInModelIdArg): void;
140
+ /** Called after an Element in an instance of a Model of this class has been deleted.
141
+ * @note If you override this method, you must call super.
142
+ * @note `this` is the class of the Model that held the element
143
+ * @beta
144
+ */
145
+ protected static onDeletedElement(_arg: OnElementInModelIdArg): void;
146
+ private getAllUserProperties;
147
+ /** Get a set of JSON user properties by namespace */
148
+ getUserProperties(namespace: string): any;
149
+ /** Change a set of user JSON properties of this Element by namespace. */
150
+ setUserProperties(nameSpace: string, value: any): void;
151
+ /** Remove a set of JSON user properties, specified by namespace, from this Element */
152
+ removeUserProperties(nameSpace: string): void;
153
+ getJsonProperty(name: string): any;
154
+ setJsonProperty(name: string, value: any): void;
155
+ /** Insert this Model in the iModel */
156
+ insert(): string;
157
+ /** Update this Model in the iModel. */
158
+ update(): void;
159
+ /** Delete this Model from the iModel. */
160
+ delete(): void;
161
+ /** @internal */
162
+ protected collectReferenceConcreteIds(referenceIds: EntityReferenceSet): void;
163
+ }
164
+ /** A container for persisting geometric elements.
165
+ * @public
166
+ */
167
+ export declare class GeometricModel extends Model {
168
+ geometryGuid?: GuidString;
169
+ /** @internal */
170
+ static get className(): string;
171
+ /** @internal */
172
+ constructor(props: GeometricModelProps, iModel: IModelDb);
173
+ /** Query for the union of the extents of the elements contained by this model.
174
+ * @note This function blocks the JavaScript event loop. Consider using [[queryRange]] instead.
175
+ */
176
+ queryExtents(): AxisAlignedBox3d;
177
+ /** Query for the union of the extents of all elements contained within this model. */
178
+ queryRange(): Promise<AxisAlignedBox3d>;
179
+ }
180
+ /** A container for persisting 3d geometric elements.
181
+ * @public
182
+ */
183
+ export declare abstract class GeometricModel3d extends GeometricModel {
184
+ /** If true, then the elements in this GeometricModel3d are expected to be in an XY plane.
185
+ * @note The associated ECProperty was added to the BisCore schema in version 1.0.8
186
+ */
187
+ readonly isPlanProjection: boolean;
188
+ /** If true, then the elements in this GeometricModel3d are not in real-world coordinates and will not be in the spatial index.
189
+ * @note The associated ECProperty was added to the BisCore schema in version 1.0.8
190
+ */
191
+ readonly isNotSpatiallyLocated: boolean;
192
+ /** If true, then the elements in this GeometricModel3d are in real-world coordinates and will be in the spatial index. */
193
+ get isSpatiallyLocated(): boolean;
194
+ /** @internal */
195
+ static get className(): string;
196
+ /** @internal */
197
+ constructor(props: GeometricModel3dProps, iModel: IModelDb);
198
+ /** @internal */
199
+ toJSON(): GeometricModel3dProps;
200
+ }
201
+ /** A container for persisting 2d geometric elements.
202
+ * @public
203
+ */
204
+ export declare abstract class GeometricModel2d extends GeometricModel {
205
+ /** The actual coordinates of (0,0) in modeling coordinates. An offset applied to all modeling coordinates. */
206
+ globalOrigin?: Point2d;
207
+ /** @internal */
208
+ static get className(): string;
209
+ /** @internal */
210
+ constructor(props: GeometricModel2dProps, iModel: IModelDb);
211
+ /** @internal */
212
+ toJSON(): GeometricModel2dProps;
213
+ }
214
+ /** A container for persisting 2d graphical elements.
215
+ * @public
216
+ */
217
+ export declare abstract class GraphicalModel2d extends GeometricModel2d {
218
+ /** @internal */
219
+ static get className(): string;
220
+ }
221
+ /** A container for persisting GraphicalElement3d instances.
222
+ * @note The associated ECClass was added to the BisCore schema in version 1.0.8
223
+ * @see [[GraphicalPartition3d]]
224
+ * @public
225
+ */
226
+ export declare abstract class GraphicalModel3d extends GeometricModel3d {
227
+ /** @internal */
228
+ static get className(): string;
229
+ }
230
+ /** A container for persisting 3d geometric elements that are spatially located.
231
+ * @public
232
+ */
233
+ export declare abstract class SpatialModel extends GeometricModel3d {
234
+ /** @internal */
235
+ static get className(): string;
236
+ }
237
+ /** A container for persisting physical elements that model physical space.
238
+ * @see [[PhysicalPartition]]
239
+ * @public
240
+ */
241
+ export declare class PhysicalModel extends SpatialModel {
242
+ /** @internal */
243
+ static get className(): string;
244
+ /** Insert a PhysicalPartition and a PhysicalModel that sub-models it.
245
+ * @param iModelDb Insert into this iModel
246
+ * @param parentSubjectId The PhysicalPartition will be inserted as a child of this Subject element.
247
+ * @param name The name of the PhysicalPartition that the new PhysicalModel will sub-model.
248
+ * @param isPlanProjection Optional value (default is false) that indicates if the contents of this model are expected to be in an XY plane.
249
+ * @returns The Id of the newly inserted PhysicalPartition and PhysicalModel (same value).
250
+ * @throws [[IModelError]] if there is an insert problem.
251
+ */
252
+ static insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string, isPlanProjection?: boolean): Id64String;
253
+ }
254
+ /** A container for persisting spatial location elements.
255
+ * @see [[SpatialLocationPartition]]
256
+ * @public
257
+ */
258
+ export declare class SpatialLocationModel extends SpatialModel {
259
+ /** @internal */
260
+ static get className(): string;
261
+ /** Insert a SpatialLocationPartition and a SpatialLocationModel that sub-models it.
262
+ * @param iModelDb Insert into this iModel
263
+ * @param parentSubjectId The SpatialLocationPartition will be inserted as a child of this Subject element.
264
+ * @param name The name of the SpatialLocationPartition that the new SpatialLocationModel will sub-model.
265
+ * @param isPlanProjection Optional value (default is false) that indicates if the contents of this model are expected to be in an XY plane.
266
+ * @returns The Id of the newly inserted SpatialLocationPartition and SpatialLocationModel (same value).
267
+ * @throws [[IModelError]] if there is an insert problem.
268
+ */
269
+ static insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string, isPlanProjection?: boolean): Id64String;
270
+ }
271
+ /** A 2d model that holds [[DrawingGraphic]]s. DrawingModels may be dimensional or non-dimensional.
272
+ * @public
273
+ */
274
+ export declare class DrawingModel extends GraphicalModel2d {
275
+ /** @internal */
276
+ static get className(): string;
277
+ }
278
+ /** A container for persisting section [[DrawingGraphic]]s.
279
+ * @public
280
+ */
281
+ export declare class SectionDrawingModel extends DrawingModel {
282
+ /** @internal */
283
+ static get className(): string;
284
+ }
285
+ /** A container for persisting [[ViewAttachment]]s and [[DrawingGraphic]]s.
286
+ * A SheetModel is a digital representation of a *sheet of paper*. SheetModels are 2d models in bounded paper coordinates.
287
+ * SheetModels may contain annotation Elements as well as references to 2d or 3d Views.
288
+ * @public
289
+ */
290
+ export declare class SheetModel extends GraphicalModel2d {
291
+ /** @internal */
292
+ static get className(): string;
293
+ }
294
+ /** A container for persisting role elements.
295
+ * @public
296
+ */
297
+ export declare class RoleModel extends Model {
298
+ /** @internal */
299
+ static get className(): string;
300
+ }
301
+ /** A container for persisting information elements.
302
+ * @public
303
+ */
304
+ export declare abstract class InformationModel extends Model {
305
+ /** @internal */
306
+ static get className(): string;
307
+ }
308
+ /** A container for persisting group information elements.
309
+ * @see [[GroupInformationPartition]]
310
+ * @public
311
+ */
312
+ export declare abstract class GroupInformationModel extends InformationModel {
313
+ /** @internal */
314
+ static get className(): string;
315
+ }
316
+ /** A container for persisting Information Record Elements
317
+ * @see [[InformationRecordPartition]]
318
+ * @public
319
+ */
320
+ export declare class InformationRecordModel extends InformationModel {
321
+ /** @internal */
322
+ static get className(): string;
323
+ /** Insert a InformationRecordPartition and a InformationRecordModel that sub-models it.
324
+ * @param iModelDb Insert into this iModel
325
+ * @param parentSubjectId The InformationRecordPartition will be inserted as a child of this Subject element.
326
+ * @param name The name of the InformationRecordPartition that the new InformationRecordModel will sub-model.
327
+ * @returns The Id of the newly inserted InformationRecordModel.
328
+ * @throws [[IModelError]] if there is an insert problem.
329
+ */
330
+ static insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string): Id64String;
331
+ }
332
+ /** A container for persisting definition elements.
333
+ * @see [[DefinitionPartition]]
334
+ * @public
335
+ */
336
+ export declare class DefinitionModel extends InformationModel {
337
+ /** @internal */
338
+ static get className(): string;
339
+ /** Insert a DefinitionPartition and a DefinitionModel that sub-models it.
340
+ * @param iModelDb Insert into this iModel
341
+ * @param parentSubjectId The DefinitionPartition will be inserted as a child of this Subject element.
342
+ * @param name The name of the DefinitionPartition that the new DefinitionModel will sub-model.
343
+ * @returns The Id of the newly inserted DefinitionModel.
344
+ * @throws [[IModelError]] if there is an insert problem.
345
+ */
346
+ static insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string): Id64String;
347
+ }
348
+ /** The singleton container of repository-related information elements.
349
+ * @public
350
+ */
351
+ export declare class RepositoryModel extends DefinitionModel {
352
+ /** @internal */
353
+ static get className(): string;
354
+ }
355
+ /** Contains a list of document elements.
356
+ * @see [[DocumentPartition]]
357
+ * @public
358
+ */
359
+ export declare class DocumentListModel extends InformationModel {
360
+ /** @internal */
361
+ static get className(): string;
362
+ /** Insert a DocumentPartition and a DocumentListModel that sub-models it.
363
+ * @param iModelDb Insert into this iModel
364
+ * @param parentSubjectId The DocumentPartition will be inserted as a child of this Subject element.
365
+ * @param name The name of the DocumentPartition that the new DocumentListModel will sub-model.
366
+ * @returns The Id of the newly inserted DocumentPartition and DocumentListModel (same value)
367
+ * @throws [[IModelError]] if there is an insert problem.
368
+ */
369
+ static insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string): Id64String;
370
+ }
371
+ /** A container for persisting link elements.
372
+ * @see [[LinkPartition]]
373
+ * @public
374
+ */
375
+ export declare class LinkModel extends InformationModel {
376
+ /** @internal */
377
+ static get className(): string;
378
+ }
379
+ /** The singleton container for repository-specific definition elements.
380
+ * @public
381
+ */
382
+ export declare class DictionaryModel extends DefinitionModel {
383
+ /** @internal */
384
+ static get className(): string;
385
+ }
386
+ /** Obtains and displays multi-resolution tiled raster organized according to the WebMercator tiling system.
387
+ * @public
388
+ */
389
+ export declare class WebMercatorModel extends SpatialModel {
390
+ /** @internal */
391
+ static get className(): string;
392
+ }
393
393
  //# sourceMappingURL=Model.d.ts.map