@itwin/core-backend 3.6.0-dev.36 → 3.6.0-dev.38

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