@itwin/core-backend 3.4.0-dev.9 → 3.4.1

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