@itwin/core-backend 3.5.0-dev.4 → 3.5.0-dev.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/CHANGELOG.md +70 -1
  2. package/lib/cjs/AliCloudStorageService.d.ts +23 -23
  3. package/lib/cjs/AliCloudStorageService.js +71 -71
  4. package/lib/cjs/AliCloudStorageService.js.map +1 -1
  5. package/lib/cjs/BackendHubAccess.d.ts +224 -224
  6. package/lib/cjs/BackendHubAccess.js +41 -41
  7. package/lib/cjs/BackendHubAccess.js.map +1 -1
  8. package/lib/cjs/BackendLoggerCategory.d.ts +91 -91
  9. package/lib/cjs/BackendLoggerCategory.js +99 -99
  10. package/lib/cjs/BackendLoggerCategory.js.map +1 -1
  11. package/lib/cjs/BisCoreSchema.d.ts +21 -21
  12. package/lib/cjs/BisCoreSchema.js +60 -60
  13. package/lib/cjs/BisCoreSchema.js.map +1 -1
  14. package/lib/cjs/BriefcaseManager.d.ts +170 -165
  15. package/lib/cjs/BriefcaseManager.d.ts.map +1 -1
  16. package/lib/cjs/BriefcaseManager.js +413 -405
  17. package/lib/cjs/BriefcaseManager.js.map +1 -1
  18. package/lib/cjs/Category.d.ts +153 -153
  19. package/lib/cjs/Category.js +243 -243
  20. package/lib/cjs/Category.js.map +1 -1
  21. package/lib/cjs/ChangeSummaryManager.d.ts +187 -187
  22. package/lib/cjs/ChangeSummaryManager.d.ts.map +1 -1
  23. package/lib/cjs/ChangeSummaryManager.js +447 -445
  24. package/lib/cjs/ChangeSummaryManager.js.map +1 -1
  25. package/lib/cjs/ChangedElementsDb.d.ts +99 -99
  26. package/lib/cjs/ChangedElementsDb.js +165 -165
  27. package/lib/cjs/ChangedElementsDb.js.map +1 -1
  28. package/lib/cjs/ChangedElementsManager.d.ts +39 -39
  29. package/lib/cjs/ChangedElementsManager.js +88 -88
  30. package/lib/cjs/ChangedElementsManager.js.map +1 -1
  31. package/lib/cjs/CheckpointManager.d.ts +120 -120
  32. package/lib/cjs/CheckpointManager.js +343 -343
  33. package/lib/cjs/CheckpointManager.js.map +1 -1
  34. package/lib/cjs/ClassRegistry.d.ts +72 -71
  35. package/lib/cjs/ClassRegistry.d.ts.map +1 -1
  36. package/lib/cjs/ClassRegistry.js +243 -215
  37. package/lib/cjs/ClassRegistry.js.map +1 -1
  38. package/lib/cjs/CloudSqlite.d.ts +350 -349
  39. package/lib/cjs/CloudSqlite.d.ts.map +1 -1
  40. package/lib/cjs/CloudSqlite.js +152 -151
  41. package/lib/cjs/CloudSqlite.js.map +1 -1
  42. package/lib/cjs/CloudStorageBackend.d.ts +58 -58
  43. package/lib/cjs/CloudStorageBackend.js +173 -173
  44. package/lib/cjs/CloudStorageBackend.js.map +1 -1
  45. package/lib/cjs/CodeService.d.ts +396 -396
  46. package/lib/cjs/CodeService.js +63 -63
  47. package/lib/cjs/CodeService.js.map +1 -1
  48. package/lib/cjs/CodeSpecs.d.ts +50 -50
  49. package/lib/cjs/CodeSpecs.js +112 -112
  50. package/lib/cjs/CodeSpecs.js.map +1 -1
  51. package/lib/cjs/ConcurrentQuery.d.ts +11 -11
  52. package/lib/cjs/ConcurrentQuery.js +30 -30
  53. package/lib/cjs/ConcurrentQuery.js.map +1 -1
  54. package/lib/cjs/CustomViewState3dCreator.d.ts +21 -32
  55. package/lib/cjs/CustomViewState3dCreator.d.ts.map +1 -1
  56. package/lib/cjs/CustomViewState3dCreator.js +81 -113
  57. package/lib/cjs/CustomViewState3dCreator.js.map +1 -1
  58. package/lib/cjs/DevTools.d.ts +71 -71
  59. package/lib/cjs/DevTools.js +154 -154
  60. package/lib/cjs/DevTools.js.map +1 -1
  61. package/lib/cjs/DisplayStyle.d.ts +106 -106
  62. package/lib/cjs/DisplayStyle.d.ts.map +1 -1
  63. package/lib/cjs/DisplayStyle.js +256 -256
  64. package/lib/cjs/DisplayStyle.js.map +1 -1
  65. package/lib/cjs/ECDb.d.ts +191 -191
  66. package/lib/cjs/ECDb.js +350 -350
  67. package/lib/cjs/ECDb.js.map +1 -1
  68. package/lib/cjs/ECSchemaXmlContext.d.ts +18 -18
  69. package/lib/cjs/ECSchemaXmlContext.js +41 -41
  70. package/lib/cjs/ECSchemaXmlContext.js.map +1 -1
  71. package/lib/cjs/ECSqlStatement.d.ts +466 -466
  72. package/lib/cjs/ECSqlStatement.js +791 -791
  73. package/lib/cjs/ECSqlStatement.js.map +1 -1
  74. package/lib/cjs/Element.d.ts +1102 -1109
  75. package/lib/cjs/Element.d.ts.map +1 -1
  76. package/lib/cjs/Element.js +1416 -1420
  77. package/lib/cjs/Element.js.map +1 -1
  78. package/lib/cjs/ElementAspect.d.ts +158 -156
  79. package/lib/cjs/ElementAspect.d.ts.map +1 -1
  80. package/lib/cjs/ElementAspect.js +186 -178
  81. package/lib/cjs/ElementAspect.js.map +1 -1
  82. package/lib/cjs/ElementGraphics.d.ts +9 -9
  83. package/lib/cjs/ElementGraphics.js +41 -41
  84. package/lib/cjs/ElementGraphics.js.map +1 -1
  85. package/lib/cjs/ElementTreeWalker.d.ts +162 -162
  86. package/lib/cjs/ElementTreeWalker.js +409 -409
  87. package/lib/cjs/ElementTreeWalker.js.map +1 -1
  88. package/lib/cjs/Entity.d.ts +106 -76
  89. package/lib/cjs/Entity.d.ts.map +1 -1
  90. package/lib/cjs/Entity.js +134 -82
  91. package/lib/cjs/Entity.js.map +1 -1
  92. package/lib/cjs/EntityReferences.d.ts +50 -0
  93. package/lib/cjs/EntityReferences.d.ts.map +1 -0
  94. package/lib/cjs/EntityReferences.js +96 -0
  95. package/lib/cjs/EntityReferences.js.map +1 -0
  96. package/lib/cjs/ExportGraphics.d.ts +317 -317
  97. package/lib/cjs/ExportGraphics.js +208 -208
  98. package/lib/cjs/ExportGraphics.js.map +1 -1
  99. package/lib/cjs/ExternalSource.d.ts +96 -94
  100. package/lib/cjs/ExternalSource.d.ts.map +1 -1
  101. package/lib/cjs/ExternalSource.js +131 -125
  102. package/lib/cjs/ExternalSource.js.map +1 -1
  103. package/lib/cjs/GeoCoordConfig.d.ts +19 -19
  104. package/lib/cjs/GeoCoordConfig.d.ts.map +1 -1
  105. package/lib/cjs/GeoCoordConfig.js +81 -82
  106. package/lib/cjs/GeoCoordConfig.js.map +1 -1
  107. package/lib/cjs/GeometrySummary.d.ts +4 -4
  108. package/lib/cjs/GeometrySummary.js +380 -380
  109. package/lib/cjs/GeometrySummary.js.map +1 -1
  110. package/lib/cjs/HubMock.d.ts +94 -93
  111. package/lib/cjs/HubMock.d.ts.map +1 -1
  112. package/lib/cjs/HubMock.js +222 -190
  113. package/lib/cjs/HubMock.js.map +1 -1
  114. package/lib/cjs/IModelCloneContext.d.ts +8 -85
  115. package/lib/cjs/IModelCloneContext.d.ts.map +1 -1
  116. package/lib/cjs/IModelCloneContext.js +15 -150
  117. package/lib/cjs/IModelCloneContext.js.map +1 -1
  118. package/lib/cjs/IModelDb.d.ts +1183 -1164
  119. package/lib/cjs/IModelDb.d.ts.map +1 -1
  120. package/lib/cjs/IModelDb.js +2374 -2324
  121. package/lib/cjs/IModelDb.js.map +1 -1
  122. package/lib/cjs/IModelElementCloneContext.d.ts +90 -0
  123. package/lib/cjs/IModelElementCloneContext.d.ts.map +1 -0
  124. package/lib/cjs/IModelElementCloneContext.js +160 -0
  125. package/lib/cjs/IModelElementCloneContext.js.map +1 -0
  126. package/lib/cjs/IModelHost.d.ts +369 -361
  127. package/lib/cjs/IModelHost.d.ts.map +1 -1
  128. package/lib/cjs/IModelHost.js +492 -489
  129. package/lib/cjs/IModelHost.js.map +1 -1
  130. package/lib/cjs/IModelJsFs.d.ts +62 -62
  131. package/lib/cjs/IModelJsFs.js +140 -140
  132. package/lib/cjs/IModelJsFs.js.map +1 -1
  133. package/lib/cjs/IpcHost.d.ts +104 -98
  134. package/lib/cjs/IpcHost.d.ts.map +1 -1
  135. package/lib/cjs/IpcHost.js +278 -234
  136. package/lib/cjs/IpcHost.js.map +1 -1
  137. package/lib/cjs/LineStyle.d.ts +311 -311
  138. package/lib/cjs/LineStyle.js +295 -295
  139. package/lib/cjs/LineStyle.js.map +1 -1
  140. package/lib/cjs/LocalHub.d.ts +162 -162
  141. package/lib/cjs/LocalHub.js +587 -587
  142. package/lib/cjs/LocalHub.js.map +1 -1
  143. package/lib/cjs/LocalhostIpcHost.d.ts +20 -20
  144. package/lib/cjs/LocalhostIpcHost.js +81 -81
  145. package/lib/cjs/LocalhostIpcHost.js.map +1 -1
  146. package/lib/cjs/Material.d.ts +103 -103
  147. package/lib/cjs/Material.js +147 -147
  148. package/lib/cjs/Material.js.map +1 -1
  149. package/lib/cjs/Model.d.ts +392 -386
  150. package/lib/cjs/Model.d.ts.map +1 -1
  151. package/lib/cjs/Model.js +485 -471
  152. package/lib/cjs/Model.js.map +1 -1
  153. package/lib/cjs/NativeAppStorage.d.ts +51 -51
  154. package/lib/cjs/NativeAppStorage.js +202 -202
  155. package/lib/cjs/NativeAppStorage.js.map +1 -1
  156. package/lib/cjs/NativeHost.d.ts +52 -52
  157. package/lib/cjs/NativeHost.d.ts.map +1 -1
  158. package/lib/cjs/NativeHost.js +163 -168
  159. package/lib/cjs/NativeHost.js.map +1 -1
  160. package/lib/cjs/NavigationRelationship.d.ts +156 -156
  161. package/lib/cjs/NavigationRelationship.js +225 -225
  162. package/lib/cjs/NavigationRelationship.js.map +1 -1
  163. package/lib/cjs/PromiseMemoizer.d.ts +51 -51
  164. package/lib/cjs/PromiseMemoizer.d.ts.map +1 -1
  165. package/lib/cjs/PromiseMemoizer.js +101 -101
  166. package/lib/cjs/PromiseMemoizer.js.map +1 -1
  167. package/lib/cjs/PropertyStore.d.ts +132 -132
  168. package/lib/cjs/PropertyStore.js +11 -11
  169. package/lib/cjs/PropertyStore.js.map +1 -1
  170. package/lib/cjs/Relationship.d.ts +416 -400
  171. package/lib/cjs/Relationship.d.ts.map +1 -1
  172. package/lib/cjs/Relationship.js +494 -465
  173. package/lib/cjs/Relationship.js.map +1 -1
  174. package/lib/cjs/RpcBackend.d.ts +28 -28
  175. package/lib/cjs/RpcBackend.js +126 -126
  176. package/lib/cjs/RpcBackend.js.map +1 -1
  177. package/lib/cjs/SQLiteDb.d.ts +219 -219
  178. package/lib/cjs/SQLiteDb.js +214 -214
  179. package/lib/cjs/SQLiteDb.js.map +1 -1
  180. package/lib/cjs/Schema.d.ts +55 -55
  181. package/lib/cjs/Schema.js +83 -83
  182. package/lib/cjs/Schema.js.map +1 -1
  183. package/lib/cjs/ServerBasedLocks.d.ts +57 -57
  184. package/lib/cjs/ServerBasedLocks.js +168 -168
  185. package/lib/cjs/ServerBasedLocks.js.map +1 -1
  186. package/lib/cjs/SqliteStatement.d.ts +360 -283
  187. package/lib/cjs/SqliteStatement.d.ts.map +1 -1
  188. package/lib/cjs/SqliteStatement.js +586 -448
  189. package/lib/cjs/SqliteStatement.js.map +1 -1
  190. package/lib/cjs/Texture.d.ts +58 -58
  191. package/lib/cjs/Texture.js +82 -82
  192. package/lib/cjs/Texture.js.map +1 -1
  193. package/lib/cjs/TileStorage.d.ts +18 -18
  194. package/lib/cjs/TileStorage.js +90 -90
  195. package/lib/cjs/TileStorage.js.map +1 -1
  196. package/lib/cjs/TxnManager.d.ts +202 -202
  197. package/lib/cjs/TxnManager.js +356 -356
  198. package/lib/cjs/TxnManager.js.map +1 -1
  199. package/lib/cjs/ViewDefinition.d.ts +439 -435
  200. package/lib/cjs/ViewDefinition.d.ts.map +1 -1
  201. package/lib/cjs/ViewDefinition.js +646 -635
  202. package/lib/cjs/ViewDefinition.js.map +1 -1
  203. package/lib/cjs/ViewStateHydrator.d.ts +13 -13
  204. package/lib/cjs/ViewStateHydrator.js +103 -103
  205. package/lib/cjs/ViewStateHydrator.js.map +1 -1
  206. package/lib/cjs/assets/IModelChange.02.00.00.ecschema.xml +90 -90
  207. package/lib/cjs/assets/Settings/Schemas/Cloud.Schema.json +67 -67
  208. package/lib/cjs/assets/Settings/Schemas/Gcs.schema.json +31 -31
  209. package/lib/cjs/assets/Settings/Schemas/Workspace.Schema.json +52 -52
  210. package/lib/cjs/assets/Settings/backend.setting.json5 +138 -138
  211. package/lib/cjs/core-backend.d.ts +184 -182
  212. package/lib/cjs/core-backend.d.ts.map +1 -1
  213. package/lib/cjs/core-backend.js +204 -202
  214. package/lib/cjs/core-backend.js.map +1 -1
  215. package/lib/cjs/domains/FunctionalElements.d.ts +101 -101
  216. package/lib/cjs/domains/FunctionalElements.js +145 -145
  217. package/lib/cjs/domains/FunctionalElements.js.map +1 -1
  218. package/lib/cjs/domains/FunctionalSchema.d.ts +13 -13
  219. package/lib/cjs/domains/FunctionalSchema.js +40 -40
  220. package/lib/cjs/domains/FunctionalSchema.js.map +1 -1
  221. package/lib/cjs/domains/GenericElements.d.ts +177 -177
  222. package/lib/cjs/domains/GenericElements.js +263 -263
  223. package/lib/cjs/domains/GenericElements.js.map +1 -1
  224. package/lib/cjs/domains/GenericSchema.d.ts +10 -10
  225. package/lib/cjs/domains/GenericSchema.js +28 -28
  226. package/lib/cjs/domains/GenericSchema.js.map +1 -1
  227. package/lib/cjs/rpc-impl/DevToolsRpcImpl.d.ts +15 -15
  228. package/lib/cjs/rpc-impl/DevToolsRpcImpl.js +32 -32
  229. package/lib/cjs/rpc-impl/DevToolsRpcImpl.js.map +1 -1
  230. package/lib/cjs/rpc-impl/IModelReadRpcImpl.d.ts +46 -45
  231. package/lib/cjs/rpc-impl/IModelReadRpcImpl.d.ts.map +1 -1
  232. package/lib/cjs/rpc-impl/IModelReadRpcImpl.js +287 -262
  233. package/lib/cjs/rpc-impl/IModelReadRpcImpl.js.map +1 -1
  234. package/lib/cjs/rpc-impl/IModelTileRpcImpl.d.ts +22 -22
  235. package/lib/cjs/rpc-impl/IModelTileRpcImpl.d.ts.map +1 -1
  236. package/lib/cjs/rpc-impl/IModelTileRpcImpl.js +202 -204
  237. package/lib/cjs/rpc-impl/IModelTileRpcImpl.js.map +1 -1
  238. package/lib/cjs/rpc-impl/RpcBriefcaseUtility.d.ts +36 -36
  239. package/lib/cjs/rpc-impl/RpcBriefcaseUtility.js +168 -168
  240. package/lib/cjs/rpc-impl/RpcBriefcaseUtility.js.map +1 -1
  241. package/lib/cjs/rpc-impl/SnapshotIModelRpcImpl.d.ts +16 -16
  242. package/lib/cjs/rpc-impl/SnapshotIModelRpcImpl.js +43 -43
  243. package/lib/cjs/rpc-impl/SnapshotIModelRpcImpl.js.map +1 -1
  244. package/lib/cjs/rpc-impl/WipRpcImpl.d.ts +15 -15
  245. package/lib/cjs/rpc-impl/WipRpcImpl.js +37 -37
  246. package/lib/cjs/rpc-impl/WipRpcImpl.js.map +1 -1
  247. package/lib/cjs/workspace/Settings.d.ts +186 -186
  248. package/lib/cjs/workspace/Settings.js +155 -155
  249. package/lib/cjs/workspace/Settings.js.map +1 -1
  250. package/lib/cjs/workspace/SettingsSchemas.d.ts +75 -75
  251. package/lib/cjs/workspace/SettingsSchemas.js +191 -191
  252. package/lib/cjs/workspace/SettingsSchemas.js.map +1 -1
  253. package/lib/cjs/workspace/Workspace.d.ts +414 -414
  254. package/lib/cjs/workspace/Workspace.d.ts.map +1 -1
  255. package/lib/cjs/workspace/Workspace.js +543 -543
  256. package/lib/cjs/workspace/Workspace.js.map +1 -1
  257. package/package.json +14 -13
@@ -1,387 +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, 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
- }
162
- /** A container for persisting geometric elements.
163
- * @public
164
- */
165
- export declare class GeometricModel extends Model {
166
- geometryGuid?: GuidString;
167
- /** @internal */
168
- static get className(): string;
169
- /** @internal */
170
- constructor(props: GeometricModelProps, iModel: IModelDb);
171
- /** Query for the union of the extents of the elements contained by this model. */
172
- queryExtents(): AxisAlignedBox3d;
173
- }
174
- /** A container for persisting 3d geometric elements.
175
- * @public
176
- */
177
- export declare abstract class GeometricModel3d extends GeometricModel {
178
- /** If true, then the elements in this GeometricModel3d are expected to be in an XY plane.
179
- * @note The associated ECProperty was added to the BisCore schema in version 1.0.8
180
- */
181
- readonly isPlanProjection: boolean;
182
- /** If true, then the elements in this GeometricModel3d are not in real-world coordinates and will not be in the spatial index.
183
- * @note The associated ECProperty was added to the BisCore schema in version 1.0.8
184
- */
185
- readonly isNotSpatiallyLocated: boolean;
186
- /** If true, then the elements in this GeometricModel3d are in real-world coordinates and will be in the spatial index. */
187
- get isSpatiallyLocated(): boolean;
188
- /** @internal */
189
- static get className(): string;
190
- /** @internal */
191
- constructor(props: GeometricModel3dProps, iModel: IModelDb);
192
- /** @internal */
193
- toJSON(): GeometricModel3dProps;
194
- }
195
- /** A container for persisting 2d geometric elements.
196
- * @public
197
- */
198
- export declare abstract class GeometricModel2d extends GeometricModel {
199
- /** The actual coordinates of (0,0) in modeling coordinates. An offset applied to all modeling coordinates. */
200
- globalOrigin?: Point2d;
201
- /** @internal */
202
- static get className(): string;
203
- /** @internal */
204
- constructor(props: GeometricModel2dProps, iModel: IModelDb);
205
- /** @internal */
206
- toJSON(): GeometricModel2dProps;
207
- }
208
- /** A container for persisting 2d graphical elements.
209
- * @public
210
- */
211
- export declare abstract class GraphicalModel2d extends GeometricModel2d {
212
- /** @internal */
213
- static get className(): string;
214
- }
215
- /** A container for persisting GraphicalElement3d instances.
216
- * @note The associated ECClass was added to the BisCore schema in version 1.0.8
217
- * @see [[GraphicalPartition3d]]
218
- * @public
219
- */
220
- export declare abstract class GraphicalModel3d extends GeometricModel3d {
221
- /** @internal */
222
- static get className(): string;
223
- }
224
- /** A container for persisting 3d geometric elements that are spatially located.
225
- * @public
226
- */
227
- export declare abstract class SpatialModel extends GeometricModel3d {
228
- /** @internal */
229
- static get className(): string;
230
- }
231
- /** A container for persisting physical elements that model physical space.
232
- * @see [[PhysicalPartition]]
233
- * @public
234
- */
235
- export declare class PhysicalModel extends SpatialModel {
236
- /** @internal */
237
- static get className(): string;
238
- /** Insert a PhysicalPartition and a PhysicalModel that sub-models it.
239
- * @param iModelDb Insert into this iModel
240
- * @param parentSubjectId The PhysicalPartition will be inserted as a child of this Subject element.
241
- * @param name The name of the PhysicalPartition that the new PhysicalModel will sub-model.
242
- * @param isPlanProjection Optional value (default is false) that indicates if the contents of this model are expected to be in an XY plane.
243
- * @returns The Id of the newly inserted PhysicalPartition and PhysicalModel (same value).
244
- * @throws [[IModelError]] if there is an insert problem.
245
- */
246
- static insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string, isPlanProjection?: boolean): Id64String;
247
- }
248
- /** A container for persisting spatial location elements.
249
- * @see [[SpatialLocationPartition]]
250
- * @public
251
- */
252
- export declare class SpatialLocationModel extends SpatialModel {
253
- /** @internal */
254
- static get className(): string;
255
- /** Insert a SpatialLocationPartition and a SpatialLocationModel that sub-models it.
256
- * @param iModelDb Insert into this iModel
257
- * @param parentSubjectId The SpatialLocationPartition will be inserted as a child of this Subject element.
258
- * @param name The name of the SpatialLocationPartition that the new SpatialLocationModel will sub-model.
259
- * @param isPlanProjection Optional value (default is false) that indicates if the contents of this model are expected to be in an XY plane.
260
- * @returns The Id of the newly inserted SpatialLocationPartition and SpatialLocationModel (same value).
261
- * @throws [[IModelError]] if there is an insert problem.
262
- */
263
- static insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string, isPlanProjection?: boolean): Id64String;
264
- }
265
- /** A 2d model that holds [[DrawingGraphic]]s. DrawingModels may be dimensional or non-dimensional.
266
- * @public
267
- */
268
- export declare class DrawingModel extends GraphicalModel2d {
269
- /** @internal */
270
- static get className(): string;
271
- }
272
- /** A container for persisting section [[DrawingGraphic]]s.
273
- * @public
274
- */
275
- export declare class SectionDrawingModel extends DrawingModel {
276
- /** @internal */
277
- static get className(): string;
278
- }
279
- /** A container for persisting [[ViewAttachment]]s and [[DrawingGraphic]]s.
280
- * A SheetModel is a digital representation of a *sheet of paper*. SheetModels are 2d models in bounded paper coordinates.
281
- * SheetModels may contain annotation Elements as well as references to 2d or 3d Views.
282
- * @public
283
- */
284
- export declare class SheetModel extends GraphicalModel2d {
285
- /** @internal */
286
- static get className(): string;
287
- }
288
- /** A container for persisting role elements.
289
- * @public
290
- */
291
- export declare class RoleModel extends Model {
292
- /** @internal */
293
- static get className(): string;
294
- }
295
- /** A container for persisting information elements.
296
- * @public
297
- */
298
- export declare abstract class InformationModel extends Model {
299
- /** @internal */
300
- static get className(): string;
301
- }
302
- /** A container for persisting group information elements.
303
- * @see [[GroupInformationPartition]]
304
- * @public
305
- */
306
- export declare abstract class GroupInformationModel extends InformationModel {
307
- /** @internal */
308
- static get className(): string;
309
- }
310
- /** A container for persisting Information Record Elements
311
- * @see [[InformationRecordPartition]]
312
- * @public
313
- */
314
- export declare class InformationRecordModel extends InformationModel {
315
- /** @internal */
316
- static get className(): string;
317
- /** Insert a InformationRecordPartition and a InformationRecordModel that sub-models it.
318
- * @param iModelDb Insert into this iModel
319
- * @param parentSubjectId The InformationRecordPartition will be inserted as a child of this Subject element.
320
- * @param name The name of the InformationRecordPartition that the new InformationRecordModel will sub-model.
321
- * @returns The Id of the newly inserted InformationRecordModel.
322
- * @throws [[IModelError]] if there is an insert problem.
323
- */
324
- static insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string): Id64String;
325
- }
326
- /** A container for persisting definition elements.
327
- * @see [[DefinitionPartition]]
328
- * @public
329
- */
330
- export declare class DefinitionModel extends InformationModel {
331
- /** @internal */
332
- static get className(): string;
333
- /** Insert a DefinitionPartition and a DefinitionModel that sub-models it.
334
- * @param iModelDb Insert into this iModel
335
- * @param parentSubjectId The DefinitionPartition will be inserted as a child of this Subject element.
336
- * @param name The name of the DefinitionPartition that the new DefinitionModel will sub-model.
337
- * @returns The Id of the newly inserted DefinitionModel.
338
- * @throws [[IModelError]] if there is an insert problem.
339
- */
340
- static insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string): Id64String;
341
- }
342
- /** The singleton container of repository-related information elements.
343
- * @public
344
- */
345
- export declare class RepositoryModel extends DefinitionModel {
346
- /** @internal */
347
- static get className(): string;
348
- }
349
- /** Contains a list of document elements.
350
- * @see [[DocumentPartition]]
351
- * @public
352
- */
353
- export declare class DocumentListModel extends InformationModel {
354
- /** @internal */
355
- static get className(): string;
356
- /** Insert a DocumentPartition and a DocumentListModel that sub-models it.
357
- * @param iModelDb Insert into this iModel
358
- * @param parentSubjectId The DocumentPartition will be inserted as a child of this Subject element.
359
- * @param name The name of the DocumentPartition that the new DocumentListModel will sub-model.
360
- * @returns The Id of the newly inserted DocumentPartition and DocumentListModel (same value)
361
- * @throws [[IModelError]] if there is an insert problem.
362
- */
363
- static insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string): Id64String;
364
- }
365
- /** A container for persisting link elements.
366
- * @see [[LinkPartition]]
367
- * @public
368
- */
369
- export declare class LinkModel extends InformationModel {
370
- /** @internal */
371
- static get className(): string;
372
- }
373
- /** The singleton container for repository-specific definition elements.
374
- * @public
375
- */
376
- export declare class DictionaryModel extends DefinitionModel {
377
- /** @internal */
378
- static get className(): string;
379
- }
380
- /** Obtains and displays multi-resolution tiled raster organized according to the WebMercator tiling system.
381
- * @public
382
- */
383
- export declare class WebMercatorModel extends SpatialModel {
384
- /** @internal */
385
- static get className(): string;
386
- }
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
+ }
387
393
  //# sourceMappingURL=Model.d.ts.map