@itwin/core-backend 5.3.0-dev.8 → 5.3.0
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.
- package/CHANGELOG.md +52 -1
- package/lib/cjs/BriefcaseManager.d.ts.map +1 -1
- package/lib/cjs/BriefcaseManager.js +14 -0
- package/lib/cjs/BriefcaseManager.js.map +1 -1
- package/lib/cjs/CloudSqlite.d.ts +2 -0
- package/lib/cjs/CloudSqlite.d.ts.map +1 -1
- package/lib/cjs/CloudSqlite.js.map +1 -1
- package/lib/cjs/DisplayStyle.d.ts +2 -2
- package/lib/cjs/DisplayStyle.d.ts.map +1 -1
- package/lib/cjs/DisplayStyle.js +4 -4
- package/lib/cjs/DisplayStyle.js.map +1 -1
- package/lib/cjs/ECDb.js +1 -1
- package/lib/cjs/ECDb.js.map +1 -1
- package/lib/cjs/Element.d.ts +31 -3
- package/lib/cjs/Element.d.ts.map +1 -1
- package/lib/cjs/Element.js +55 -3
- package/lib/cjs/Element.js.map +1 -1
- package/lib/cjs/ElementAspect.d.ts +24 -1
- package/lib/cjs/ElementAspect.d.ts.map +1 -1
- package/lib/cjs/ElementAspect.js +102 -1
- package/lib/cjs/ElementAspect.js.map +1 -1
- package/lib/cjs/IModelDb.d.ts +26 -3
- package/lib/cjs/IModelDb.d.ts.map +1 -1
- package/lib/cjs/IModelDb.js +60 -5
- package/lib/cjs/IModelDb.js.map +1 -1
- package/lib/cjs/IModelElementCloneContext.d.ts +1 -1
- package/lib/cjs/IModelElementCloneContext.d.ts.map +1 -1
- package/lib/cjs/IModelElementCloneContext.js +2 -2
- package/lib/cjs/IModelElementCloneContext.js.map +1 -1
- package/lib/cjs/IModelHost.d.ts +1 -2
- package/lib/cjs/IModelHost.d.ts.map +1 -1
- package/lib/cjs/IModelHost.js +9 -17
- package/lib/cjs/IModelHost.js.map +1 -1
- package/lib/cjs/Material.d.ts +1 -1
- package/lib/cjs/Material.d.ts.map +1 -1
- package/lib/cjs/Material.js +2 -2
- package/lib/cjs/Material.js.map +1 -1
- package/lib/cjs/NavigationRelationship.d.ts +15 -0
- package/lib/cjs/NavigationRelationship.d.ts.map +1 -1
- package/lib/cjs/NavigationRelationship.js +22 -1
- package/lib/cjs/NavigationRelationship.js.map +1 -1
- package/lib/cjs/Relationship.d.ts +5 -0
- package/lib/cjs/Relationship.d.ts.map +1 -1
- package/lib/cjs/Relationship.js +7 -0
- package/lib/cjs/Relationship.js.map +1 -1
- package/lib/cjs/TileStorage.d.ts +1 -1
- package/lib/cjs/TileStorage.d.ts.map +1 -1
- package/lib/cjs/TileStorage.js.map +1 -1
- package/lib/cjs/TxnManager.d.ts +8 -0
- package/lib/cjs/TxnManager.d.ts.map +1 -1
- package/lib/cjs/TxnManager.js +30 -2
- package/lib/cjs/TxnManager.js.map +1 -1
- package/lib/cjs/ViewDefinition.d.ts +1 -1
- package/lib/cjs/ViewDefinition.d.ts.map +1 -1
- package/lib/cjs/ViewDefinition.js +2 -2
- package/lib/cjs/ViewDefinition.js.map +1 -1
- package/lib/cjs/annotations/ElementDrivesTextAnnotation.d.ts +15 -1
- package/lib/cjs/annotations/ElementDrivesTextAnnotation.d.ts.map +1 -1
- package/lib/cjs/annotations/ElementDrivesTextAnnotation.js +36 -23
- package/lib/cjs/annotations/ElementDrivesTextAnnotation.js.map +1 -1
- package/lib/cjs/annotations/LeaderGeometry.d.ts +13 -1
- package/lib/cjs/annotations/LeaderGeometry.d.ts.map +1 -1
- package/lib/cjs/annotations/LeaderGeometry.js +88 -10
- package/lib/cjs/annotations/LeaderGeometry.js.map +1 -1
- package/lib/cjs/annotations/TextAnnotationElement.d.ts +6 -5
- package/lib/cjs/annotations/TextAnnotationElement.d.ts.map +1 -1
- package/lib/cjs/annotations/TextAnnotationElement.js +33 -14
- package/lib/cjs/annotations/TextAnnotationElement.js.map +1 -1
- package/lib/cjs/annotations/TextBlockLayout.d.ts.map +1 -1
- package/lib/cjs/annotations/TextBlockLayout.js +2 -1
- package/lib/cjs/annotations/TextBlockLayout.js.map +1 -1
- package/lib/cjs/internal/annotations/fields.d.ts +3 -2
- package/lib/cjs/internal/annotations/fields.d.ts.map +1 -1
- package/lib/cjs/internal/annotations/fields.js +12 -5
- package/lib/cjs/internal/annotations/fields.js.map +1 -1
- package/lib/esm/BriefcaseManager.d.ts.map +1 -1
- package/lib/esm/BriefcaseManager.js +14 -0
- package/lib/esm/BriefcaseManager.js.map +1 -1
- package/lib/esm/CloudSqlite.d.ts +2 -0
- package/lib/esm/CloudSqlite.d.ts.map +1 -1
- package/lib/esm/CloudSqlite.js.map +1 -1
- package/lib/esm/DisplayStyle.d.ts +2 -2
- package/lib/esm/DisplayStyle.d.ts.map +1 -1
- package/lib/esm/DisplayStyle.js +4 -4
- package/lib/esm/DisplayStyle.js.map +1 -1
- package/lib/esm/ECDb.js +1 -1
- package/lib/esm/ECDb.js.map +1 -1
- package/lib/esm/Element.d.ts +31 -3
- package/lib/esm/Element.d.ts.map +1 -1
- package/lib/esm/Element.js +55 -4
- package/lib/esm/Element.js.map +1 -1
- package/lib/esm/ElementAspect.d.ts +24 -1
- package/lib/esm/ElementAspect.d.ts.map +1 -1
- package/lib/esm/ElementAspect.js +101 -1
- package/lib/esm/ElementAspect.js.map +1 -1
- package/lib/esm/IModelDb.d.ts +26 -3
- package/lib/esm/IModelDb.d.ts.map +1 -1
- package/lib/esm/IModelDb.js +60 -5
- package/lib/esm/IModelDb.js.map +1 -1
- package/lib/esm/IModelElementCloneContext.d.ts +1 -1
- package/lib/esm/IModelElementCloneContext.d.ts.map +1 -1
- package/lib/esm/IModelElementCloneContext.js +2 -2
- package/lib/esm/IModelElementCloneContext.js.map +1 -1
- package/lib/esm/IModelHost.d.ts +1 -2
- package/lib/esm/IModelHost.d.ts.map +1 -1
- package/lib/esm/IModelHost.js +10 -18
- package/lib/esm/IModelHost.js.map +1 -1
- package/lib/esm/Material.d.ts +1 -1
- package/lib/esm/Material.d.ts.map +1 -1
- package/lib/esm/Material.js +2 -2
- package/lib/esm/Material.js.map +1 -1
- package/lib/esm/NavigationRelationship.d.ts +15 -0
- package/lib/esm/NavigationRelationship.d.ts.map +1 -1
- package/lib/esm/NavigationRelationship.js +19 -0
- package/lib/esm/NavigationRelationship.js.map +1 -1
- package/lib/esm/Relationship.d.ts +5 -0
- package/lib/esm/Relationship.d.ts.map +1 -1
- package/lib/esm/Relationship.js +7 -0
- package/lib/esm/Relationship.js.map +1 -1
- package/lib/esm/TileStorage.d.ts +1 -1
- package/lib/esm/TileStorage.d.ts.map +1 -1
- package/lib/esm/TileStorage.js.map +1 -1
- package/lib/esm/TxnManager.d.ts +8 -0
- package/lib/esm/TxnManager.d.ts.map +1 -1
- package/lib/esm/TxnManager.js +30 -2
- package/lib/esm/TxnManager.js.map +1 -1
- package/lib/esm/ViewDefinition.d.ts +1 -1
- package/lib/esm/ViewDefinition.d.ts.map +1 -1
- package/lib/esm/ViewDefinition.js +2 -2
- package/lib/esm/ViewDefinition.js.map +1 -1
- package/lib/esm/annotations/ElementDrivesTextAnnotation.d.ts +15 -1
- package/lib/esm/annotations/ElementDrivesTextAnnotation.d.ts.map +1 -1
- package/lib/esm/annotations/ElementDrivesTextAnnotation.js +37 -24
- package/lib/esm/annotations/ElementDrivesTextAnnotation.js.map +1 -1
- package/lib/esm/annotations/LeaderGeometry.d.ts +13 -1
- package/lib/esm/annotations/LeaderGeometry.d.ts.map +1 -1
- package/lib/esm/annotations/LeaderGeometry.js +89 -12
- package/lib/esm/annotations/LeaderGeometry.js.map +1 -1
- package/lib/esm/annotations/TextAnnotationElement.d.ts +6 -5
- package/lib/esm/annotations/TextAnnotationElement.d.ts.map +1 -1
- package/lib/esm/annotations/TextAnnotationElement.js +33 -14
- package/lib/esm/annotations/TextAnnotationElement.js.map +1 -1
- package/lib/esm/annotations/TextBlockLayout.d.ts.map +1 -1
- package/lib/esm/annotations/TextBlockLayout.js +2 -1
- package/lib/esm/annotations/TextBlockLayout.js.map +1 -1
- package/lib/esm/internal/annotations/fields.d.ts +3 -2
- package/lib/esm/internal/annotations/fields.d.ts.map +1 -1
- package/lib/esm/internal/annotations/fields.js +11 -5
- package/lib/esm/internal/annotations/fields.js.map +1 -1
- package/lib/esm/test/ElementDrivesElement.test.d.ts +93 -0
- package/lib/esm/test/ElementDrivesElement.test.d.ts.map +1 -0
- package/lib/esm/test/ElementDrivesElement.test.js +862 -0
- package/lib/esm/test/ElementDrivesElement.test.js.map +1 -0
- package/lib/esm/test/ElementLRUCache.test.js +13 -0
- package/lib/esm/test/ElementLRUCache.test.js.map +1 -1
- package/lib/esm/test/IModelHost.test.js +17 -11
- package/lib/esm/test/IModelHost.test.js.map +1 -1
- package/lib/esm/test/annotations/Fields.test.js +44 -0
- package/lib/esm/test/annotations/Fields.test.js.map +1 -1
- package/lib/esm/test/annotations/LeaderGeometry.test.js +47 -2
- package/lib/esm/test/annotations/LeaderGeometry.test.js.map +1 -1
- package/lib/esm/test/annotations/TextAnnotation.test.js +120 -31
- package/lib/esm/test/annotations/TextAnnotation.test.js.map +1 -1
- package/lib/esm/test/ecdb/ConcurrentQuery.test.js +2 -2
- package/lib/esm/test/ecdb/ConcurrentQuery.test.js.map +1 -1
- package/lib/esm/test/ecdb/ECSqlStatement.test.js +33 -2
- package/lib/esm/test/ecdb/ECSqlStatement.test.js.map +1 -1
- package/lib/esm/test/element/ProjectInformationRecord.test.d.ts +2 -0
- package/lib/esm/test/element/ProjectInformationRecord.test.d.ts.map +1 -0
- package/lib/esm/test/element/ProjectInformationRecord.test.js +80 -0
- package/lib/esm/test/element/ProjectInformationRecord.test.js.map +1 -0
- package/lib/esm/test/element/SheetInformationAspect.test.d.ts +2 -0
- package/lib/esm/test/element/SheetInformationAspect.test.d.ts.map +1 -0
- package/lib/esm/test/element/SheetInformationAspect.test.js +182 -0
- package/lib/esm/test/element/SheetInformationAspect.test.js.map +1 -0
- package/lib/esm/test/hubaccess/Rebase.test.js +169 -2
- package/lib/esm/test/hubaccess/Rebase.test.js.map +1 -1
- package/lib/esm/test/imodel/IModel.test.js +175 -2
- package/lib/esm/test/imodel/IModel.test.js.map +1 -1
- package/lib/esm/test/incrementalSchemaLocater/ECSqlQueries.test.js.map +1 -1
- package/lib/esm/test/standalone/ChangesetReader.test.js +63 -60
- package/lib/esm/test/standalone/ChangesetReader.test.js.map +1 -1
- package/lib/esm/test/standalone/DisplayStyle.test.js +6 -6
- package/lib/esm/test/standalone/DisplayStyle.test.js.map +1 -1
- package/lib/esm/test/standalone/ElementGraphics.test.js +75 -6
- package/lib/esm/test/standalone/ElementGraphics.test.js.map +1 -1
- package/lib/esm/test/standalone/RenderMaterialElement.test.js +4 -4
- package/lib/esm/test/standalone/RenderMaterialElement.test.js.map +1 -1
- package/lib/esm/test/standalone/TxnManager.test.js +33 -5
- package/lib/esm/test/standalone/TxnManager.test.js.map +1 -1
- package/package.json +16 -18
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module ElementAspects
|
|
3
3
|
*/
|
|
4
|
-
import { ElementAspectProps, EntityReferenceSet, ExternalSourceAspectProps, RelatedElement } from "@itwin/core-common";
|
|
4
|
+
import { ElementAspectProps, EntityReferenceSet, ExternalSourceAspectProps, RelatedElement, SheetInformation, SheetInformationAspectProps } from "@itwin/core-common";
|
|
5
5
|
import { Entity } from "./Entity";
|
|
6
6
|
import { IModelDb } from "./IModelDb";
|
|
7
7
|
import { Id64String } from "@itwin/core-bentley";
|
|
@@ -95,6 +95,29 @@ export declare class ChannelRootAspect extends ElementUniqueAspect {
|
|
|
95
95
|
*/
|
|
96
96
|
static insert(iModel: IModelDb, ownerId: Id64String, channelName: string): void;
|
|
97
97
|
}
|
|
98
|
+
/** An [[ElementUniqueAspect]] that captures common metadata about a single [[Sheet]].
|
|
99
|
+
* Use [[getSheetInformation]] to retrieve the metadata for a Sheet and [[setSheetInformation]] to create, update, or delete it.
|
|
100
|
+
* @beta
|
|
101
|
+
*/
|
|
102
|
+
export declare class SheetInformationAspect extends ElementUniqueAspect {
|
|
103
|
+
static get className(): string;
|
|
104
|
+
/** The sheet's metadata. */
|
|
105
|
+
sheetInformation: SheetInformation;
|
|
106
|
+
protected static onInsert(arg: OnAspectPropsArg): void;
|
|
107
|
+
private constructor();
|
|
108
|
+
toJSON(): SheetInformationAspectProps;
|
|
109
|
+
private static findForSheet;
|
|
110
|
+
/** Retrieves the metadata hosted by the aspect on the specified sheet, returning `undefined` if no such metadata could be retrieved.
|
|
111
|
+
* @see [[setSheetInformation]] to create, update, or delete the aspect.
|
|
112
|
+
*/
|
|
113
|
+
static getSheetInformation(sheetId: Id64String, iModel: IModelDb): SheetInformation | undefined;
|
|
114
|
+
/** Sets the `information` for the [[Sheet]] element specified by ``sheetId`.
|
|
115
|
+
* If `information` is `undefined`, any existing aspect will be deleted.
|
|
116
|
+
* Otherwise, a new aspect will be inserted, or an existing aspect will be updated with the new metadata.
|
|
117
|
+
* @throws Error if the iModel contains a version of the BisCore schema older than 01.00.25.
|
|
118
|
+
*/
|
|
119
|
+
static setSheetInformation(information: SheetInformation | undefined, sheetId: Id64String, iModel: IModelDb): void;
|
|
120
|
+
}
|
|
98
121
|
/** An ElementMultiAspect that stores synchronization information for an Element originating from an external source.
|
|
99
122
|
* @note The associated ECClass was added to the BisCore schema in version 1.0.2
|
|
100
123
|
* @public @preview
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ElementAspect.d.ts","sourceRoot":"","sources":["../../src/ElementAspect.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAA0B,kBAAkB,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"ElementAspect.d.ts","sourceRoot":"","sources":["../../src/ElementAspect.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAA0B,kBAAkB,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,cAAc,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,MAA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AAE,MAAM,CAAC;IACxB;;;OAGG;IACI,cAAc,CAAC,EAAE,MAAM,CAAC;IAC/B,iHAAiH;IAC1G,MAAM,CAAC,EAAE,cAAc,CAAC;IAE/B,kFAAkF;gBACtE,KAAK,EAAE,yBAAyB,EAAE,MAAM,EAAE,QAAQ;IAW9D;;;;;;;;;;;MAWE;WACY,eAAe,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,KAAK,CAAC;QAAE,SAAS,EAAE,UAAU,CAAC;QAAC,QAAQ,EAAE,UAAU,CAAA;KAAE,CAAC;IAe9I,MAAM,IAAI,yBAAyB;cAYhC,mBAAmB,CAAC,YAAY,EAAE,kBAAkB,GAAG,IAAI;CAQ/E;AAED,uBAAuB;AACvB,yBAAiB,oBAAoB,CAAC;IACpC;;OAEG;IACH,KAAY,IAAI;QACd,oFAAoF;QACpF,OAAO,YAAY;QACnB,yFAAyF;QACzF,YAAY,iBAAiB;QAC7B;;WAEG;QACH,KAAK,UAAU;KAChB;CACF"}
|
package/lib/esm/ElementAspect.js
CHANGED
|
@@ -7,8 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { RelatedElement } from "@itwin/core-common";
|
|
9
9
|
import { Entity } from "./Entity";
|
|
10
|
-
import { DbResult } from "@itwin/core-bentley";
|
|
10
|
+
import { assert, DbResult } from "@itwin/core-bentley";
|
|
11
11
|
import { _verifyChannel } from "./internal/Symbols";
|
|
12
|
+
import { SheetOwnsSheetInformationAspect } from "./NavigationRelationship";
|
|
13
|
+
import { Sheet } from "./Element";
|
|
14
|
+
import { ECVersion } from "@itwin/ecschema-metadata";
|
|
12
15
|
/** An Element Aspect is a class that defines a set of properties that are related to (and owned by) a single element.
|
|
13
16
|
* Semantically, an ElementAspect can be considered part of the Element. Thus, an ElementAspect is deleted if its owning Element is deleted.
|
|
14
17
|
* BIS Guideline: Subclass ElementUniqueAspect or ElementMultiAspect rather than subclassing ElementAspect directly.
|
|
@@ -99,6 +102,103 @@ export class ChannelRootAspect extends ElementUniqueAspect {
|
|
|
99
102
|
iModel.elements.insertAspect(props);
|
|
100
103
|
}
|
|
101
104
|
}
|
|
105
|
+
const minimumBisCoreVersion = new ECVersion(1, 0, 25);
|
|
106
|
+
/** An [[ElementUniqueAspect]] that captures common metadata about a single [[Sheet]].
|
|
107
|
+
* Use [[getSheetInformation]] to retrieve the metadata for a Sheet and [[setSheetInformation]] to create, update, or delete it.
|
|
108
|
+
* @beta
|
|
109
|
+
*/
|
|
110
|
+
export class SheetInformationAspect extends ElementUniqueAspect {
|
|
111
|
+
static get className() { return "SheetInformationAspect"; }
|
|
112
|
+
/** The sheet's metadata. */
|
|
113
|
+
sheetInformation;
|
|
114
|
+
static onInsert(arg) {
|
|
115
|
+
super.onInsert(arg);
|
|
116
|
+
const sheet = arg.iModel.elements.tryGetElement(arg.props.element);
|
|
117
|
+
if (!(sheet instanceof Sheet)) {
|
|
118
|
+
throw new Error("SheetInformationAspect can only be applied to a Sheet element");
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
constructor(props, iModel) {
|
|
122
|
+
super(props, iModel);
|
|
123
|
+
const designedDate = undefined !== props.designedDate ? new Date(props.designedDate) : undefined;
|
|
124
|
+
this.sheetInformation = {
|
|
125
|
+
designedBy: props.designedBy,
|
|
126
|
+
designedDate,
|
|
127
|
+
drawnBy: props.drawnBy,
|
|
128
|
+
checkedBy: props.checkedBy,
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
toJSON() {
|
|
132
|
+
const props = super.toJSON();
|
|
133
|
+
for (const key of ["designedBy", "drawnBy", "checkedBy"]) {
|
|
134
|
+
const value = this.sheetInformation[key];
|
|
135
|
+
if (undefined !== value) {
|
|
136
|
+
props[key] = value;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
if (undefined !== this.sheetInformation.designedDate) {
|
|
140
|
+
props.designedDate = this.sheetInformation.designedDate.toISOString();
|
|
141
|
+
}
|
|
142
|
+
return props;
|
|
143
|
+
}
|
|
144
|
+
static findForSheet(sheetId, iModel) {
|
|
145
|
+
if (!iModel.meetsMinimumSchemaVersion("BisCore", minimumBisCoreVersion)) {
|
|
146
|
+
return undefined;
|
|
147
|
+
}
|
|
148
|
+
const aspects = iModel.elements.getAspects(sheetId, this.classFullName);
|
|
149
|
+
if (aspects[0]) {
|
|
150
|
+
assert(aspects[0] instanceof SheetInformationAspect);
|
|
151
|
+
return aspects[0];
|
|
152
|
+
}
|
|
153
|
+
return undefined;
|
|
154
|
+
}
|
|
155
|
+
/** Retrieves the metadata hosted by the aspect on the specified sheet, returning `undefined` if no such metadata could be retrieved.
|
|
156
|
+
* @see [[setSheetInformation]] to create, update, or delete the aspect.
|
|
157
|
+
*/
|
|
158
|
+
static getSheetInformation(sheetId, iModel) {
|
|
159
|
+
const aspect = this.findForSheet(sheetId, iModel);
|
|
160
|
+
return aspect?.sheetInformation;
|
|
161
|
+
}
|
|
162
|
+
/** Sets the `information` for the [[Sheet]] element specified by ``sheetId`.
|
|
163
|
+
* If `information` is `undefined`, any existing aspect will be deleted.
|
|
164
|
+
* Otherwise, a new aspect will be inserted, or an existing aspect will be updated with the new metadata.
|
|
165
|
+
* @throws Error if the iModel contains a version of the BisCore schema older than 01.00.25.
|
|
166
|
+
*/
|
|
167
|
+
static setSheetInformation(information, sheetId, iModel) {
|
|
168
|
+
iModel.requireMinimumSchemaVersion("BisCore", minimumBisCoreVersion, "SheetInformationAspect");
|
|
169
|
+
const aspect = this.findForSheet(sheetId, iModel);
|
|
170
|
+
if (!information) {
|
|
171
|
+
if (aspect) {
|
|
172
|
+
iModel.elements.deleteAspect(aspect.id);
|
|
173
|
+
}
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
if (aspect) {
|
|
177
|
+
aspect.sheetInformation = { ...information };
|
|
178
|
+
iModel.elements.updateAspect(aspect.toJSON());
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
const info = { ...information };
|
|
182
|
+
for (const key of Object.keys(info)) {
|
|
183
|
+
if (info[key] === undefined) {
|
|
184
|
+
delete info[key];
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
if (undefined !== info.designedDate) {
|
|
188
|
+
info.designedDate = info.designedDate.toISOString();
|
|
189
|
+
}
|
|
190
|
+
const props = {
|
|
191
|
+
classFullName: this.classFullName,
|
|
192
|
+
element: {
|
|
193
|
+
id: sheetId,
|
|
194
|
+
relClassName: SheetOwnsSheetInformationAspect.classFullName,
|
|
195
|
+
},
|
|
196
|
+
...info,
|
|
197
|
+
};
|
|
198
|
+
iModel.elements.insertAspect(props);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
102
202
|
/** An ElementMultiAspect that stores synchronization information for an Element originating from an external source.
|
|
103
203
|
* @note The associated ECClass was added to the BisCore schema in version 1.0.2
|
|
104
204
|
* @public @preview
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ElementAspect.js","sourceRoot":"","sources":["../../src/ElementAspect.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAA6F,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC/I,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EAAE,QAAQ,EAAc,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AA0BpD;;;;GAIG;AACH,MAAM,OAAO,aAAc,SAAQ,MAAM;IAChC,MAAM,KAAc,SAAS,KAAa,OAAO,eAAe,CAAC,CAAC,CAAC;IACnE,OAAO,CAAiB;IAE/B,kFAAkF;IAClF,YAAY,KAAyB,EAAE,MAAgB;QACrD,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,cAAc,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAE,CA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BAAoB,KAApB,oBAAoB,QAcpC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module ElementAspects\n */\n\nimport { ChannelRootAspectProps, ElementAspectProps, EntityReferenceSet, ExternalSourceAspectProps, RelatedElement } from \"@itwin/core-common\";\nimport { Entity } from \"./Entity\";\nimport { IModelDb } from \"./IModelDb\";\nimport { ECSqlStatement } from \"./ECSqlStatement\";\nimport { DbResult, Id64String } from \"@itwin/core-bentley\";\nimport { _verifyChannel } from \"./internal/Symbols\";\n\n/** Argument for the `ElementAspect.onXxx` static methods\n * @beta\n */\nexport interface OnAspectArg {\n /** The iModel for the aspect affected by this event. */\n iModel: IModelDb;\n /** The model for the aspect affected by this event */\n model: Id64String;\n}\n/** Argument for the `ElementAspect.onXxx` static methods that supply the properties of an aspect to be inserted or updated.\n * @beta\n */\nexport interface OnAspectPropsArg extends OnAspectArg {\n /** The new properties of the aspect affected by this event. */\n props: Readonly<ElementAspectProps>;\n}\n/** Argument for the `ElementAspect.onXxx` static methods that only supply the Id of the affected aspect.\n * @beta\n */\nexport interface OnAspectIdArg extends OnAspectArg {\n /** The Id of the aspect affected by this event */\n aspectId: Id64String;\n}\n\n/** An Element Aspect is a class that defines a set of properties that are related to (and owned by) a single element.\n * Semantically, an ElementAspect can be considered part of the Element. Thus, an ElementAspect is deleted if its owning Element is deleted.\n * BIS Guideline: Subclass ElementUniqueAspect or ElementMultiAspect rather than subclassing ElementAspect directly.\n * @public @preview\n */\nexport class ElementAspect extends Entity {\n public static override get className(): string { return \"ElementAspect\"; }\n public element: RelatedElement;\n\n /** Construct an aspect from its JSON representation and its containing iModel. */\n constructor(props: ElementAspectProps, iModel: IModelDb) {\n super(props, iModel);\n this.element = RelatedElement.fromJSON(props.element)!; // eslint-disable-line @typescript-eslint/no-non-null-assertion\n }\n\n public override toJSON(): ElementAspectProps {\n const val = super.toJSON() as ElementAspectProps;\n val.element = this.element;\n return val;\n }\n\n /** Called before a new ElementAspect is inserted.\n * @note throw an exception to disallow the insert\n * @note If you override this method, you must call super.\n * @beta\n */\n protected static onInsert(arg: OnAspectPropsArg): void {\n const { props, iModel } = arg;\n iModel.channels[_verifyChannel](arg.model);\n iModel.locks.checkExclusiveLock(props.element.id, \"element\", \"insert aspect\");\n }\n\n /** Called after a new ElementAspect was inserted.\n * @note If you override this method, you must call super.\n * @beta\n */\n protected static onInserted(_arg: OnAspectPropsArg): void { }\n\n /** Called before an ElementAspect is updated.\n * @note throw an exception to disallow the update\n * @note If you override this method, you must call super.\n * @beta\n */\n protected static onUpdate(arg: OnAspectPropsArg): void {\n const { props, iModel } = arg;\n iModel.channels[_verifyChannel](arg.model);\n iModel.locks.checkExclusiveLock(props.element.id, \"element\", \"update aspect\");\n }\n\n /** Called after an ElementAspect was updated.\n * @note If you override this method, you must call super.\n * @beta\n */\n protected static onUpdated(_arg: OnAspectPropsArg): void { }\n\n /** Called before an ElementAspect is deleted.\n * @note throw an exception to disallow the delete\n * @note If you override this method, you must call super.\n * @beta\n */\n protected static onDelete(arg: OnAspectIdArg): void {\n const { aspectId, iModel } = arg;\n iModel.channels[_verifyChannel](arg.model);\n const { element } = iModel.elements.getAspect(aspectId);\n iModel.locks.checkExclusiveLock(element.id, \"element\", \"delete aspect\");\n }\n\n /** Called after an ElementAspect was deleted.\n * @note If you override this method, you must call super.\n * @beta\n */\n protected static onDeleted(_arg: OnAspectIdArg): void { }\n}\n/** An Element Unique Aspect is an ElementAspect where there can be only zero or one instance of the Element Aspect class per Element.\n * @public @preview\n */\nexport class ElementUniqueAspect extends ElementAspect {\n public static override get className(): string { return \"ElementUniqueAspect\"; }\n}\n\n/** An Element Multi-Aspect is an ElementAspect where there can be **n** instances of the Element Aspect class per Element.\n * @public @preview\n */\nexport class ElementMultiAspect extends ElementAspect {\n public static override get className(): string { return \"ElementMultiAspect\"; }\n}\n\n/**\n * @public @preview\n */\nexport class ChannelRootAspect extends ElementUniqueAspect {\n public static override get className(): string { return \"ChannelRootAspect\"; }\n /** Insert a ChannelRootAspect on the specified element.\n * @deprecated in 4.0 - will not be removed until after 2026-06-13. Use [[ChannelControl.makeChannelRoot]]. This method does not enforce the rule that channels may not nest and is therefore dangerous.\n */\n public static insert(iModel: IModelDb, ownerId: Id64String, channelName: string) {\n const props: ChannelRootAspectProps = { classFullName: this.classFullName, element: { id: ownerId }, owner: channelName };\n iModel.elements.insertAspect(props);\n }\n}\n\n/** An ElementMultiAspect that stores synchronization information for an Element originating from an external source.\n * @note The associated ECClass was added to the BisCore schema in version 1.0.2\n * @public @preview\n */\nexport class ExternalSourceAspect extends ElementMultiAspect {\n public static override get className(): string { return \"ExternalSourceAspect\"; }\n\n /** An element that scopes the combination of `kind` and `identifier` to uniquely identify the object from the external source.\n * @note Warning: in a future major release the `scope` property will be optional, since the scope is intended to be potentially invalid.\n * all references should treat it as potentially undefined, but we cannot change the type yet since that is a breaking change.\n */\n public scope: RelatedElement;\n /** The identifier of the object in the source repository. */\n public identifier: string;\n /** The kind of object within the source repository. */\n public kind: string;\n /** The cryptographic hash (any algorithm) of the source object's content. If defined, it must be guaranteed to change when the source object's content changes. */\n public checksum?: string;\n /** An optional value that is typically a version number or a pseudo version number like last modified time.\n * It will be used by the synchronization process to detect that a source object is unchanged so that computing a cryptographic hash can be avoided.\n * If present, this value must be guaranteed to change when any of the source object's content changes.\n */\n public version?: string;\n /** A place where additional JSON properties can be stored. For example, provenance information or properties relating to the synchronization process.\n * @note Warning: in a future major release, the type of `jsonProperties` will be changed to object, and itwin.js will automatically stringify it when writing to the iModel.\n * This will be a breaking change, since application code will have to change from supplying a string to supplying an object.\n */\n public jsonProperties?: string;\n /** The source of the imported/synchronized object. Should point to an instance of [ExternalSource]($backend). */\n public source?: RelatedElement;\n\n /** Construct an aspect from its JSON representation and its containing iModel. */\n constructor(props: ExternalSourceAspectProps, iModel: IModelDb) {\n super(props, iModel);\n this.scope = RelatedElement.fromJSON(props.scope)!; // eslint-disable-line @typescript-eslint/no-non-null-assertion\n this.source = RelatedElement.fromJSON(props.source);\n this.identifier = props.identifier;\n this.kind = props.kind;\n this.checksum = props.checksum;\n this.version = props.version;\n this.jsonProperties = props.jsonProperties;\n }\n\n /** Look up the elements that contain one or more ExternalSourceAspect with the specified Scope, Kind, and Identifier.\n * The result of this function is an array of all of the ExternalSourceAspects that were found, each associated with the owning element.\n * A given element could have more than one ExternalSourceAspect with the given scope, kind, and identifier.\n * Also, many elements could have ExternalSourceAspect with the same scope, kind, and identifier.\n * Therefore, the result array could have more than one entry with the same elementId.\n * Aspects are never shared. Each aspect has its own unique ECInstanceId.\n * @param iModelDb The iModel to query\n * @param scope The scope of the ExternalSourceAspects to find\n * @param kind The kind of the ExternalSourceAspects to find\n * @param identifier The identifier of the ExternalSourceAspects to find\n * @returns the query results\n */\n public static findAllBySource(iModelDb: IModelDb, scope: Id64String, kind: string, identifier: string): Array<{ elementId: Id64String, aspectId: Id64String }> {\n const sql = `SELECT Element.Id, ECInstanceId FROM ${ExternalSourceAspect.classFullName} WHERE (Scope.Id=:scope AND Kind=:kind AND Identifier=:identifier)`;\n const found: Array<{ elementId: Id64String, aspectId: Id64String }> = [];\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n iModelDb.withPreparedStatement(sql, (statement: ECSqlStatement) => {\n statement.bindId(\"scope\", scope);\n statement.bindString(\"kind\", kind);\n statement.bindString(\"identifier\", identifier);\n while (DbResult.BE_SQLITE_ROW === statement.step()) {\n found.push({ elementId: statement.getValue(0).getId(), aspectId: statement.getValue(1).getId() });\n }\n });\n return found;\n }\n\n public override toJSON(): ExternalSourceAspectProps {\n const val = super.toJSON() as ExternalSourceAspectProps;\n val.scope = this.scope;\n val.source = this.source;\n val.identifier = this.identifier;\n val.kind = this.kind;\n val.checksum = this.checksum;\n val.version = this.version;\n val.jsonProperties = this.jsonProperties;\n return val;\n }\n\n protected override collectReferenceIds(referenceIds: EntityReferenceSet): void {\n super.collectReferenceIds(referenceIds);\n if (this.scope)\n referenceIds.addElement(this.scope.id);\n referenceIds.addElement(this.element.id);\n if (this.source)\n referenceIds.addElement(this.source.id);\n }\n}\n\n/** @public @preview */\nexport namespace ExternalSourceAspect {\n /** Standard values for the `Kind` property of `ExternalSourceAspect`.\n * @public @preview\n */\n export enum Kind {\n /** Indicates that the [[ExternalSourceAspect]] is storing [[Element]] provenance */\n Element = \"Element\",\n /** Indicates that the [[ExternalSourceAspect]] is storing [[Relationship]] provenance */\n Relationship = \"Relationship\",\n /** Indicates that the [[ExternalSourceAspect]] is storing *scope* provenance\n * @see [[ExternalSourceAspect.scope]]\n */\n Scope = \"Scope\",\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ElementAspect.js","sourceRoot":"","sources":["../../src/ElementAspect.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAA6F,cAAc,EAAiD,MAAM,oBAAoB,CAAC;AAC9L,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAc,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AA0BrD;;;;GAIG;AACH,MAAM,OAAO,aAAc,SAAQ,MAAM;IAChC,MAAM,KAAc,SAAS,KAAa,OAAO,eAAe,CAAC,CAAC,CAAC;IACnE,OAAO,CAAiB;IAE/B,kFAAkF;IAClF,YAAY,KAAyB,EAAE,MAAgB;QACrD,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,cAAc,CAAC,QAAQ,CAAC,K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C,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACvB,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QACzB,GAAG,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QACjC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACrB,GAAG,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC7B,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC3B,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QACzC,OAAO,GAAG,CAAC;IACb,CAAC;IAEkB,mBAAmB,CAAC,YAAgC;QACrE,KAAK,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC;QACxC,IAAI,IAAI,CAAC,KAAK;YACZ,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACzC,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QACzC,IAAI,IAAI,CAAC,MAAM;YACb,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC5C,CAAC;CACF;AAED,uBAAuB;AACvB,WAAiB,oBAAoB;IACnC;;OAEG;IACH,IAAY,IASX;IATD,WAAY,IAAI;QACd,oFAAoF;QACpF,2BAAmB,CAAA;QACnB,yFAAyF;QACzF,qCAA6B,CAAA;QAC7B;;WAEG;QACH,uBAAe,CAAA;IACjB,CAAC,EATW,IAAI,GAAJ,yBAAI,KAAJ,yBAAI,QASf;AACH,CAAC,EAdgB,oBAAoB,KAApB,oBAAoB,QAcpC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module ElementAspects\n */\n\nimport { ChannelRootAspectProps, ElementAspectProps, EntityReferenceSet, ExternalSourceAspectProps, RelatedElement, SheetInformation, SheetInformationAspectProps } from \"@itwin/core-common\";\nimport { Entity } from \"./Entity\";\nimport { IModelDb } from \"./IModelDb\";\nimport { ECSqlStatement } from \"./ECSqlStatement\";\nimport { assert, DbResult, Id64String } from \"@itwin/core-bentley\";\nimport { _verifyChannel } from \"./internal/Symbols\";\nimport { SheetOwnsSheetInformationAspect } from \"./NavigationRelationship\";\nimport { Sheet } from \"./Element\";\nimport { ECVersion } from \"@itwin/ecschema-metadata\";\n\n/** Argument for the `ElementAspect.onXxx` static methods\n * @beta\n */\nexport interface OnAspectArg {\n /** The iModel for the aspect affected by this event. */\n iModel: IModelDb;\n /** The model for the aspect affected by this event */\n model: Id64String;\n}\n/** Argument for the `ElementAspect.onXxx` static methods that supply the properties of an aspect to be inserted or updated.\n * @beta\n */\nexport interface OnAspectPropsArg extends OnAspectArg {\n /** The new properties of the aspect affected by this event. */\n props: Readonly<ElementAspectProps>;\n}\n/** Argument for the `ElementAspect.onXxx` static methods that only supply the Id of the affected aspect.\n * @beta\n */\nexport interface OnAspectIdArg extends OnAspectArg {\n /** The Id of the aspect affected by this event */\n aspectId: Id64String;\n}\n\n/** An Element Aspect is a class that defines a set of properties that are related to (and owned by) a single element.\n * Semantically, an ElementAspect can be considered part of the Element. Thus, an ElementAspect is deleted if its owning Element is deleted.\n * BIS Guideline: Subclass ElementUniqueAspect or ElementMultiAspect rather than subclassing ElementAspect directly.\n * @public @preview\n */\nexport class ElementAspect extends Entity {\n public static override get className(): string { return \"ElementAspect\"; }\n public element: RelatedElement;\n\n /** Construct an aspect from its JSON representation and its containing iModel. */\n constructor(props: ElementAspectProps, iModel: IModelDb) {\n super(props, iModel);\n this.element = RelatedElement.fromJSON(props.element)!; // eslint-disable-line @typescript-eslint/no-non-null-assertion\n }\n\n public override toJSON(): ElementAspectProps {\n const val = super.toJSON() as ElementAspectProps;\n val.element = this.element;\n return val;\n }\n\n /** Called before a new ElementAspect is inserted.\n * @note throw an exception to disallow the insert\n * @note If you override this method, you must call super.\n * @beta\n */\n protected static onInsert(arg: OnAspectPropsArg): void {\n const { props, iModel } = arg;\n iModel.channels[_verifyChannel](arg.model);\n iModel.locks.checkExclusiveLock(props.element.id, \"element\", \"insert aspect\");\n }\n\n /** Called after a new ElementAspect was inserted.\n * @note If you override this method, you must call super.\n * @beta\n */\n protected static onInserted(_arg: OnAspectPropsArg): void { }\n\n /** Called before an ElementAspect is updated.\n * @note throw an exception to disallow the update\n * @note If you override this method, you must call super.\n * @beta\n */\n protected static onUpdate(arg: OnAspectPropsArg): void {\n const { props, iModel } = arg;\n iModel.channels[_verifyChannel](arg.model);\n iModel.locks.checkExclusiveLock(props.element.id, \"element\", \"update aspect\");\n }\n\n /** Called after an ElementAspect was updated.\n * @note If you override this method, you must call super.\n * @beta\n */\n protected static onUpdated(_arg: OnAspectPropsArg): void { }\n\n /** Called before an ElementAspect is deleted.\n * @note throw an exception to disallow the delete\n * @note If you override this method, you must call super.\n * @beta\n */\n protected static onDelete(arg: OnAspectIdArg): void {\n const { aspectId, iModel } = arg;\n iModel.channels[_verifyChannel](arg.model);\n const { element } = iModel.elements.getAspect(aspectId);\n iModel.locks.checkExclusiveLock(element.id, \"element\", \"delete aspect\");\n }\n\n /** Called after an ElementAspect was deleted.\n * @note If you override this method, you must call super.\n * @beta\n */\n protected static onDeleted(_arg: OnAspectIdArg): void { }\n}\n/** An Element Unique Aspect is an ElementAspect where there can be only zero or one instance of the Element Aspect class per Element.\n * @public @preview\n */\nexport class ElementUniqueAspect extends ElementAspect {\n public static override get className(): string { return \"ElementUniqueAspect\"; }\n}\n\n/** An Element Multi-Aspect is an ElementAspect where there can be **n** instances of the Element Aspect class per Element.\n * @public @preview\n */\nexport class ElementMultiAspect extends ElementAspect {\n public static override get className(): string { return \"ElementMultiAspect\"; }\n}\n\n/**\n * @public @preview\n */\nexport class ChannelRootAspect extends ElementUniqueAspect {\n public static override get className(): string { return \"ChannelRootAspect\"; }\n /** Insert a ChannelRootAspect on the specified element.\n * @deprecated in 4.0 - will not be removed until after 2026-06-13. Use [[ChannelControl.makeChannelRoot]]. This method does not enforce the rule that channels may not nest and is therefore dangerous.\n */\n public static insert(iModel: IModelDb, ownerId: Id64String, channelName: string) {\n const props: ChannelRootAspectProps = { classFullName: this.classFullName, element: { id: ownerId }, owner: channelName };\n iModel.elements.insertAspect(props);\n }\n}\n\nconst minimumBisCoreVersion = new ECVersion(1, 0, 25);\n\n/** An [[ElementUniqueAspect]] that captures common metadata about a single [[Sheet]].\n * Use [[getSheetInformation]] to retrieve the metadata for a Sheet and [[setSheetInformation]] to create, update, or delete it.\n * @beta\n */\nexport class SheetInformationAspect extends ElementUniqueAspect {\n public static override get className() { return \"SheetInformationAspect\"; }\n \n /** The sheet's metadata. */\n public sheetInformation: SheetInformation;\n\n protected static override onInsert(arg: OnAspectPropsArg): void {\n super.onInsert(arg);\n\n const sheet = arg.iModel.elements.tryGetElement<Sheet>(arg.props.element);\n if (!(sheet instanceof Sheet)) {\n throw new Error(\"SheetInformationAspect can only be applied to a Sheet element\");\n }\n }\n\n private constructor(props: SheetInformationAspectProps, iModel: IModelDb) {\n super(props, iModel);\n\n const designedDate = undefined !== props.designedDate ? new Date(props.designedDate) : undefined;\n\n this.sheetInformation = {\n designedBy: props.designedBy,\n designedDate,\n drawnBy: props.drawnBy,\n checkedBy: props.checkedBy,\n };\n }\n\n public override toJSON(): SheetInformationAspectProps {\n const props = super.toJSON() as SheetInformationAspectProps;\n for (const key of [\"designedBy\", \"drawnBy\", \"checkedBy\"] as const) {\n const value = this.sheetInformation[key];\n if (undefined !== value) {\n props[key] = value;\n }\n }\n\n if (undefined !== this.sheetInformation.designedDate) {\n props.designedDate = this.sheetInformation.designedDate.toISOString();\n }\n\n return props;\n }\n\n private static findForSheet(sheetId: Id64String, iModel: IModelDb): SheetInformationAspect | undefined {\n if (!iModel.meetsMinimumSchemaVersion(\"BisCore\", minimumBisCoreVersion)) {\n return undefined;\n }\n\n const aspects = iModel.elements.getAspects(sheetId, this.classFullName);\n if (aspects[0]) {\n assert(aspects[0] instanceof SheetInformationAspect);\n return aspects[0];\n }\n\n return undefined;\n }\n\n /** Retrieves the metadata hosted by the aspect on the specified sheet, returning `undefined` if no such metadata could be retrieved.\n * @see [[setSheetInformation]] to create, update, or delete the aspect.\n */\n public static getSheetInformation(sheetId: Id64String, iModel: IModelDb): SheetInformation | undefined {\n const aspect = this.findForSheet(sheetId, iModel);\n return aspect?.sheetInformation;\n }\n\n /** Sets the `information` for the [[Sheet]] element specified by ``sheetId`.\n * If `information` is `undefined`, any existing aspect will be deleted.\n * Otherwise, a new aspect will be inserted, or an existing aspect will be updated with the new metadata.\n * @throws Error if the iModel contains a version of the BisCore schema older than 01.00.25.\n */\n public static setSheetInformation(information: SheetInformation | undefined, sheetId: Id64String, iModel: IModelDb): void {\n iModel.requireMinimumSchemaVersion(\"BisCore\", minimumBisCoreVersion, \"SheetInformationAspect\");\n\n const aspect = this.findForSheet(sheetId, iModel);\n if (!information) {\n if (aspect) {\n iModel.elements.deleteAspect(aspect.id);\n }\n\n return;\n }\n\n if (aspect) {\n aspect.sheetInformation = { ...information };\n iModel.elements.updateAspect(aspect.toJSON());\n } else {\n const info = { ...information } as any;\n for (const key of Object.keys(info)) {\n if (info[key] === undefined) {\n delete info[key];\n }\n }\n\n if (undefined !== info.designedDate) {\n info.designedDate = info.designedDate.toISOString();\n }\n\n const props: SheetInformationAspectProps = {\n classFullName: this.classFullName,\n element: {\n id: sheetId,\n relClassName: SheetOwnsSheetInformationAspect.classFullName,\n },\n ...info,\n };\n\n iModel.elements.insertAspect(props);\n }\n }\n}\n\n/** An ElementMultiAspect that stores synchronization information for an Element originating from an external source.\n * @note The associated ECClass was added to the BisCore schema in version 1.0.2\n * @public @preview\n */\nexport class ExternalSourceAspect extends ElementMultiAspect {\n public static override get className(): string { return \"ExternalSourceAspect\"; }\n\n /** An element that scopes the combination of `kind` and `identifier` to uniquely identify the object from the external source.\n * @note Warning: in a future major release the `scope` property will be optional, since the scope is intended to be potentially invalid.\n * all references should treat it as potentially undefined, but we cannot change the type yet since that is a breaking change.\n */\n public scope: RelatedElement;\n /** The identifier of the object in the source repository. */\n public identifier: string;\n /** The kind of object within the source repository. */\n public kind: string;\n /** The cryptographic hash (any algorithm) of the source object's content. If defined, it must be guaranteed to change when the source object's content changes. */\n public checksum?: string;\n /** An optional value that is typically a version number or a pseudo version number like last modified time.\n * It will be used by the synchronization process to detect that a source object is unchanged so that computing a cryptographic hash can be avoided.\n * If present, this value must be guaranteed to change when any of the source object's content changes.\n */\n public version?: string;\n /** A place where additional JSON properties can be stored. For example, provenance information or properties relating to the synchronization process.\n * @note Warning: in a future major release, the type of `jsonProperties` will be changed to object, and itwin.js will automatically stringify it when writing to the iModel.\n * This will be a breaking change, since application code will have to change from supplying a string to supplying an object.\n */\n public jsonProperties?: string;\n /** The source of the imported/synchronized object. Should point to an instance of [ExternalSource]($backend). */\n public source?: RelatedElement;\n\n /** Construct an aspect from its JSON representation and its containing iModel. */\n constructor(props: ExternalSourceAspectProps, iModel: IModelDb) {\n super(props, iModel);\n this.scope = RelatedElement.fromJSON(props.scope)!; // eslint-disable-line @typescript-eslint/no-non-null-assertion\n this.source = RelatedElement.fromJSON(props.source);\n this.identifier = props.identifier;\n this.kind = props.kind;\n this.checksum = props.checksum;\n this.version = props.version;\n this.jsonProperties = props.jsonProperties;\n }\n\n /** Look up the elements that contain one or more ExternalSourceAspect with the specified Scope, Kind, and Identifier.\n * The result of this function is an array of all of the ExternalSourceAspects that were found, each associated with the owning element.\n * A given element could have more than one ExternalSourceAspect with the given scope, kind, and identifier.\n * Also, many elements could have ExternalSourceAspect with the same scope, kind, and identifier.\n * Therefore, the result array could have more than one entry with the same elementId.\n * Aspects are never shared. Each aspect has its own unique ECInstanceId.\n * @param iModelDb The iModel to query\n * @param scope The scope of the ExternalSourceAspects to find\n * @param kind The kind of the ExternalSourceAspects to find\n * @param identifier The identifier of the ExternalSourceAspects to find\n * @returns the query results\n */\n public static findAllBySource(iModelDb: IModelDb, scope: Id64String, kind: string, identifier: string): Array<{ elementId: Id64String, aspectId: Id64String }> {\n const sql = `SELECT Element.Id, ECInstanceId FROM ${ExternalSourceAspect.classFullName} WHERE (Scope.Id=:scope AND Kind=:kind AND Identifier=:identifier)`;\n const found: Array<{ elementId: Id64String, aspectId: Id64String }> = [];\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n iModelDb.withPreparedStatement(sql, (statement: ECSqlStatement) => {\n statement.bindId(\"scope\", scope);\n statement.bindString(\"kind\", kind);\n statement.bindString(\"identifier\", identifier);\n while (DbResult.BE_SQLITE_ROW === statement.step()) {\n found.push({ elementId: statement.getValue(0).getId(), aspectId: statement.getValue(1).getId() });\n }\n });\n return found;\n }\n\n public override toJSON(): ExternalSourceAspectProps {\n const val = super.toJSON() as ExternalSourceAspectProps;\n val.scope = this.scope;\n val.source = this.source;\n val.identifier = this.identifier;\n val.kind = this.kind;\n val.checksum = this.checksum;\n val.version = this.version;\n val.jsonProperties = this.jsonProperties;\n return val;\n }\n\n protected override collectReferenceIds(referenceIds: EntityReferenceSet): void {\n super.collectReferenceIds(referenceIds);\n if (this.scope)\n referenceIds.addElement(this.scope.id);\n referenceIds.addElement(this.element.id);\n if (this.source)\n referenceIds.addElement(this.source.id);\n }\n}\n\n/** @public @preview */\nexport namespace ExternalSourceAspect {\n /** Standard values for the `Kind` property of `ExternalSourceAspect`.\n * @public @preview\n */\n export enum Kind {\n /** Indicates that the [[ExternalSourceAspect]] is storing [[Element]] provenance */\n Element = \"Element\",\n /** Indicates that the [[ExternalSourceAspect]] is storing [[Relationship]] provenance */\n Relationship = \"Relationship\",\n /** Indicates that the [[ExternalSourceAspect]] is storing *scope* provenance\n * @see [[ExternalSourceAspect.scope]]\n */\n Scope = \"Scope\",\n }\n}\n"]}
|
package/lib/esm/IModelDb.d.ts
CHANGED
|
@@ -429,6 +429,7 @@ export declare abstract class IModelDb extends IModel {
|
|
|
429
429
|
* @param description Optional description of the changes.
|
|
430
430
|
* @throws [[IModelError]] if there is a problem saving changes or if there are pending, un-processed lock or code requests.
|
|
431
431
|
* @note This will not push changes to the iModelHub.
|
|
432
|
+
* @note This method should not be called from {TxnManager.withIndirectTxnModeAsync}, {TxnManager.withIndirectTxnMode} or {RebaseHandler.recompute}.
|
|
432
433
|
* @see [[IModelDb.pushChanges]] to push changes to the iModelHub.
|
|
433
434
|
*/
|
|
434
435
|
saveChanges(description?: string): void;
|
|
@@ -437,6 +438,7 @@ export declare abstract class IModelDb extends IModel {
|
|
|
437
438
|
* @param args Provide [[SaveChangesArgs]] of the changes.
|
|
438
439
|
* @throws [[IModelError]] if there is a problem saving changes or if there are pending, un-processed lock or code requests.
|
|
439
440
|
* @note This will not push changes to the iModelHub.
|
|
441
|
+
* @note This method should not be called from {TxnManager.withIndirectTxnModeAsync}, {TxnManager.withIndirectTxnMode} or {RebaseHandler.recompute}.
|
|
440
442
|
* @see [[IModelDb.pushChanges]] to push changes to the iModelHub.
|
|
441
443
|
*/
|
|
442
444
|
saveChanges(args: SaveChangesArgs): void;
|
|
@@ -478,7 +480,8 @@ export declare abstract class IModelDb extends IModel {
|
|
|
478
480
|
* @note Changes are saved if importSchemas is successful and abandoned if not successful.
|
|
479
481
|
* - You can use NativeLoggerCategory to turn on the native logs. You can also control [what exactly is logged by the loggers](https://www.itwinjs.org/learning/common/logging/#controlling-what-is-logged).
|
|
480
482
|
* - See [Schema Versioning]($docs/bis/guide/schema-evolution/schema-versioning-and-generations.md) for more information on acceptable changes to schemas.
|
|
481
|
-
* @
|
|
483
|
+
* @note This method should not be called from {TxnManager.withIndirectTxnModeAsync} or {RebaseHandler.recompute}.
|
|
484
|
+
* @see querySchemaVersion
|
|
482
485
|
*/
|
|
483
486
|
importSchemas(schemaFileNames: LocalFileName[], options?: SchemaImportOptions): Promise<void>;
|
|
484
487
|
/** Import ECSchema(s) serialized to XML. On success, the schema definition is stored in the iModel.
|
|
@@ -487,6 +490,7 @@ export declare abstract class IModelDb extends IModel {
|
|
|
487
490
|
* @param serializedXmlSchemas The xml string(s) created from a serialized ECSchema.
|
|
488
491
|
* @throws [[IModelError]] if the schema lock cannot be obtained or there is a problem importing the schema.
|
|
489
492
|
* @note Changes are saved if importSchemaStrings is successful and abandoned if not successful.
|
|
493
|
+
* @note This method should not be called from {TxnManager.withIndirectTxnModeAsync} or {RebaseHandler.recompute}.
|
|
490
494
|
* @see querySchemaVersion
|
|
491
495
|
* @alpha
|
|
492
496
|
*/
|
|
@@ -674,6 +678,17 @@ export declare abstract class IModelDb extends IModel {
|
|
|
674
678
|
* @returns the version numbers, or `undefined` if the schema has not been imported.
|
|
675
679
|
*/
|
|
676
680
|
querySchemaVersionNumbers(schemaName: string): ECVersion | undefined;
|
|
681
|
+
/** Returns true if the specified schema exists in the iModel and is no older than the specified minimum version.
|
|
682
|
+
* @beta
|
|
683
|
+
*/
|
|
684
|
+
meetsMinimumSchemaVersion(schemaName: string, minimumVersion: ECVersion): boolean;
|
|
685
|
+
/** Throws an error if the version of the schema specified by `schemaName` is older than `minimumVersion`.
|
|
686
|
+
* The error will indicate the `featureName` that requires this minimum version.
|
|
687
|
+
* Use this to produce more helpful errors when interacting with APIs that operate on classes introduced as
|
|
688
|
+
* schemas evolve.
|
|
689
|
+
* @beta
|
|
690
|
+
*/
|
|
691
|
+
requireMinimumSchemaVersion(schemaName: string, minimumVersion: ECVersion, featureName: string): void;
|
|
677
692
|
/** Retrieve a named texture image from this iModel, as a TextureData.
|
|
678
693
|
* @param props the texture load properties which must include the name of the texture to load
|
|
679
694
|
* @returns the TextureData or undefined if the texture image is not present.
|
|
@@ -691,10 +706,12 @@ export declare abstract class IModelDb extends IModel {
|
|
|
691
706
|
/** Save a "file property" to this iModel
|
|
692
707
|
* @param prop the FilePropertyProps that describes the new property
|
|
693
708
|
* @param value either a string or a blob to save as the file property
|
|
709
|
+
* @note This method should not be called from {TxnManager.withIndirectTxnModeAsync} or {TxnManager.withIndirectTxnMode}.
|
|
694
710
|
*/
|
|
695
711
|
saveFileProperty(prop: FilePropertyProps, strValue: string | undefined, blobVal?: Uint8Array): void;
|
|
696
712
|
/** delete a "file property" from this iModel
|
|
697
713
|
* @param prop the FilePropertyProps that describes the property
|
|
714
|
+
* @note This method should not be called from {TxnManager.withIndirectTxnModeAsync} or {TxnManager.withIndirectTxnMode}.
|
|
698
715
|
*/
|
|
699
716
|
deleteFileProperty(prop: FilePropertyProps): void;
|
|
700
717
|
/** Query for the next available major id for a "file property" from this iModel.
|
|
@@ -1319,14 +1336,20 @@ export declare class BriefcaseDb extends IModelDb {
|
|
|
1319
1336
|
*/
|
|
1320
1337
|
executeWritable(func: () => Promise<void>): Promise<void>;
|
|
1321
1338
|
private closeAndReopen;
|
|
1322
|
-
/**
|
|
1339
|
+
/**
|
|
1340
|
+
* Pull and apply changesets from iModelHub
|
|
1341
|
+
* @note This method should not be called from {TxnManager.withIndirectTxnModeAsync} or {RebaseHandler.recompute}.
|
|
1342
|
+
*/
|
|
1323
1343
|
pullChanges(arg?: PullChangesArgs): Promise<void>;
|
|
1324
1344
|
enableChangesetStatTracking(): Promise<void>;
|
|
1325
1345
|
disableChangesetStatTracking(): Promise<void>;
|
|
1326
1346
|
getAllChangesetHealthData(): Promise<ChangesetHealthStats[]>;
|
|
1327
1347
|
/** Revert timeline changes and then push resulting changeset */
|
|
1328
1348
|
revertAndPushChanges(arg: RevertChangesArgs): Promise<void>;
|
|
1329
|
-
/**
|
|
1349
|
+
/**
|
|
1350
|
+
* Push changes to iModelHub.
|
|
1351
|
+
* @note This method should not be called from {TxnManager.withIndirectTxnModeAsync} or {RebaseHandler.recompute}.
|
|
1352
|
+
*/
|
|
1330
1353
|
pushChanges(arg: PushChangesArgs): Promise<void>;
|
|
1331
1354
|
close(): void;
|
|
1332
1355
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IModelDb.d.ts","sourceRoot":"","sources":["../../src/IModelDb.ts"],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,GAAG,IAAI;CAWvE"}
|
package/lib/esm/IModelDb.js
CHANGED
|
@@ -628,16 +628,24 @@ export class IModelDb extends IModel {
|
|
|
628
628
|
* @param descriptionOrArgs Optionally provide description or [[SaveChangesArgs]] args for the changes.
|
|
629
629
|
* @throws [[IModelError]] if there is a problem saving changes or if there are pending, un-processed lock or code requests.
|
|
630
630
|
* @note This will not push changes to the iModelHub.
|
|
631
|
+
* @note This method should not be called from {TxnManager.withIndirectTxnModeAsync}, {TxnManager.withIndirectTxnMode} or {RebaseHandler.recompute}.
|
|
631
632
|
* @see [[IModelDb.pushChanges]] to push changes to the iModelHub.
|
|
632
633
|
*/
|
|
633
634
|
saveChanges(descriptionOrArgs) {
|
|
634
635
|
if (this.openMode === OpenMode.Readonly)
|
|
635
636
|
throw new IModelError(IModelStatus.ReadOnly, "IModelDb was opened read-only");
|
|
637
|
+
if (this instanceof BriefcaseDb) {
|
|
638
|
+
if (this.txns.isIndirectChanges) {
|
|
639
|
+
throw new IModelError(IModelStatus.BadRequest, "Cannot save changes while in an indirect change scope");
|
|
640
|
+
}
|
|
641
|
+
}
|
|
636
642
|
const args = typeof descriptionOrArgs === "string" ? { description: descriptionOrArgs } : descriptionOrArgs;
|
|
637
643
|
if (!this[_nativeDb].hasUnsavedChanges()) {
|
|
638
644
|
Logger.logWarning(loggerCategory, "there are no unsaved changes", () => args);
|
|
639
645
|
}
|
|
640
646
|
const stat = this[_nativeDb].saveChanges(args ? JSON.stringify(args) : undefined);
|
|
647
|
+
if (DbResult.BE_SQLITE_ERROR_PropagateChangesFailed === stat)
|
|
648
|
+
throw new IModelError(stat, `Could not save changes due to propagation failure.`);
|
|
641
649
|
if (DbResult.BE_SQLITE_OK !== stat)
|
|
642
650
|
throw new IModelError(stat, `Could not save changes (${args?.description})`);
|
|
643
651
|
}
|
|
@@ -718,7 +726,8 @@ export class IModelDb extends IModel {
|
|
|
718
726
|
* @note Changes are saved if importSchemas is successful and abandoned if not successful.
|
|
719
727
|
* - You can use NativeLoggerCategory to turn on the native logs. You can also control [what exactly is logged by the loggers](https://www.itwinjs.org/learning/common/logging/#controlling-what-is-logged).
|
|
720
728
|
* - See [Schema Versioning]($docs/bis/guide/schema-evolution/schema-versioning-and-generations.md) for more information on acceptable changes to schemas.
|
|
721
|
-
* @
|
|
729
|
+
* @note This method should not be called from {TxnManager.withIndirectTxnModeAsync} or {RebaseHandler.recompute}.
|
|
730
|
+
* @see querySchemaVersion
|
|
722
731
|
*/
|
|
723
732
|
async importSchemas(schemaFileNames, options) {
|
|
724
733
|
if (schemaFileNames.length === 0)
|
|
@@ -728,7 +737,7 @@ export class IModelDb extends IModel {
|
|
|
728
737
|
throw new IModelError(IModelStatus.BadRequest, "Cannot import schemas while rebasing");
|
|
729
738
|
}
|
|
730
739
|
if (this.txns.isIndirectChanges) {
|
|
731
|
-
throw new IModelError(IModelStatus.BadRequest, "Cannot import schemas while in an indirect change
|
|
740
|
+
throw new IModelError(IModelStatus.BadRequest, "Cannot import schemas while in an indirect change scope");
|
|
732
741
|
}
|
|
733
742
|
}
|
|
734
743
|
const maybeCustomNativeContext = options?.ecSchemaXmlContext?.nativeContext;
|
|
@@ -779,6 +788,7 @@ export class IModelDb extends IModel {
|
|
|
779
788
|
* @param serializedXmlSchemas The xml string(s) created from a serialized ECSchema.
|
|
780
789
|
* @throws [[IModelError]] if the schema lock cannot be obtained or there is a problem importing the schema.
|
|
781
790
|
* @note Changes are saved if importSchemaStrings is successful and abandoned if not successful.
|
|
791
|
+
* @note This method should not be called from {TxnManager.withIndirectTxnModeAsync} or {RebaseHandler.recompute}.
|
|
782
792
|
* @see querySchemaVersion
|
|
783
793
|
* @alpha
|
|
784
794
|
*/
|
|
@@ -790,7 +800,7 @@ export class IModelDb extends IModel {
|
|
|
790
800
|
throw new IModelError(IModelStatus.BadRequest, "Cannot import schemas while rebasing");
|
|
791
801
|
}
|
|
792
802
|
if (this.txns.isIndirectChanges) {
|
|
793
|
-
throw new IModelError(IModelStatus.BadRequest, "Cannot import schemas while in an indirect change
|
|
803
|
+
throw new IModelError(IModelStatus.BadRequest, "Cannot import schemas while in an indirect change scope");
|
|
794
804
|
}
|
|
795
805
|
}
|
|
796
806
|
if (this[_nativeDb].schemaSyncEnabled()) {
|
|
@@ -1234,6 +1244,24 @@ export class IModelDb extends IModel {
|
|
|
1234
1244
|
return undefined;
|
|
1235
1245
|
});
|
|
1236
1246
|
}
|
|
1247
|
+
/** Returns true if the specified schema exists in the iModel and is no older than the specified minimum version.
|
|
1248
|
+
* @beta
|
|
1249
|
+
*/
|
|
1250
|
+
meetsMinimumSchemaVersion(schemaName, minimumVersion) {
|
|
1251
|
+
const actualVersion = this.querySchemaVersionNumbers(schemaName);
|
|
1252
|
+
return undefined !== actualVersion && actualVersion.compare(minimumVersion) >= 0;
|
|
1253
|
+
}
|
|
1254
|
+
/** Throws an error if the version of the schema specified by `schemaName` is older than `minimumVersion`.
|
|
1255
|
+
* The error will indicate the `featureName` that requires this minimum version.
|
|
1256
|
+
* Use this to produce more helpful errors when interacting with APIs that operate on classes introduced as
|
|
1257
|
+
* schemas evolve.
|
|
1258
|
+
* @beta
|
|
1259
|
+
*/
|
|
1260
|
+
requireMinimumSchemaVersion(schemaName, minimumVersion, featureName) {
|
|
1261
|
+
if (!this.meetsMinimumSchemaVersion(schemaName, minimumVersion)) {
|
|
1262
|
+
throw new Error(`${featureName} requires ${schemaName} v${minimumVersion.toString()} or newer`);
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1237
1265
|
/** Retrieve a named texture image from this iModel, as a TextureData.
|
|
1238
1266
|
* @param props the texture load properties which must include the name of the texture to load
|
|
1239
1267
|
* @returns the TextureData or undefined if the texture image is not present.
|
|
@@ -1257,14 +1285,26 @@ export class IModelDb extends IModel {
|
|
|
1257
1285
|
/** Save a "file property" to this iModel
|
|
1258
1286
|
* @param prop the FilePropertyProps that describes the new property
|
|
1259
1287
|
* @param value either a string or a blob to save as the file property
|
|
1288
|
+
* @note This method should not be called from {TxnManager.withIndirectTxnModeAsync} or {TxnManager.withIndirectTxnMode}.
|
|
1260
1289
|
*/
|
|
1261
1290
|
saveFileProperty(prop, strValue, blobVal) {
|
|
1291
|
+
if (this instanceof BriefcaseDb) {
|
|
1292
|
+
if (this.txns.isIndirectChanges) {
|
|
1293
|
+
throw new IModelError(IModelStatus.BadRequest, "Cannot save file property while in an indirect change scope");
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1262
1296
|
this[_nativeDb].saveFileProperty(prop, strValue, blobVal);
|
|
1263
1297
|
}
|
|
1264
1298
|
/** delete a "file property" from this iModel
|
|
1265
1299
|
* @param prop the FilePropertyProps that describes the property
|
|
1300
|
+
* @note This method should not be called from {TxnManager.withIndirectTxnModeAsync} or {TxnManager.withIndirectTxnMode}.
|
|
1266
1301
|
*/
|
|
1267
1302
|
deleteFileProperty(prop) {
|
|
1303
|
+
if (this instanceof BriefcaseDb) {
|
|
1304
|
+
if (this.txns.isIndirectChanges) {
|
|
1305
|
+
throw new IModelError(IModelStatus.BadRequest, "Cannot delete file property while in an indirect change scope");
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1268
1308
|
this[_nativeDb].saveFileProperty(prop, undefined, undefined);
|
|
1269
1309
|
}
|
|
1270
1310
|
/** Query for the next available major id for a "file property" from this iModel.
|
|
@@ -2021,6 +2061,15 @@ function processSchemaWriteStatus(status) {
|
|
|
2021
2061
|
*/
|
|
2022
2062
|
updateElement(elProps) {
|
|
2023
2063
|
try {
|
|
2064
|
+
if (elProps.id) {
|
|
2065
|
+
this[_instanceKeyCache].deleteById(elProps.id);
|
|
2066
|
+
}
|
|
2067
|
+
else {
|
|
2068
|
+
this[_instanceKeyCache].delete({
|
|
2069
|
+
federationGuid: elProps.federationGuid,
|
|
2070
|
+
code: elProps.code,
|
|
2071
|
+
});
|
|
2072
|
+
}
|
|
2024
2073
|
this[_cache].delete({
|
|
2025
2074
|
id: elProps.id,
|
|
2026
2075
|
federationGuid: elProps.federationGuid,
|
|
@@ -3045,7 +3094,10 @@ export class BriefcaseDb extends IModelDb {
|
|
|
3045
3094
|
if (this.iModelId !== this[_nativeDb].getIModelId() || this.iTwinId !== this[_nativeDb].getITwinId())
|
|
3046
3095
|
throw new Error("closeAndReopen detected change in iModelId and/or iTwinId");
|
|
3047
3096
|
}
|
|
3048
|
-
/**
|
|
3097
|
+
/**
|
|
3098
|
+
* Pull and apply changesets from iModelHub
|
|
3099
|
+
* @note This method should not be called from {TxnManager.withIndirectTxnModeAsync} or {RebaseHandler.recompute}.
|
|
3100
|
+
*/
|
|
3049
3101
|
async pullChanges(arg) {
|
|
3050
3102
|
await this.executeWritable(async () => {
|
|
3051
3103
|
await BriefcaseManager.pullAndApplyChangesets(this, arg ?? {});
|
|
@@ -3125,7 +3177,10 @@ export class BriefcaseDb extends IModelDb {
|
|
|
3125
3177
|
this.abandonChanges();
|
|
3126
3178
|
}
|
|
3127
3179
|
}
|
|
3128
|
-
/**
|
|
3180
|
+
/**
|
|
3181
|
+
* Push changes to iModelHub.
|
|
3182
|
+
* @note This method should not be called from {TxnManager.withIndirectTxnModeAsync} or {RebaseHandler.recompute}.
|
|
3183
|
+
*/
|
|
3129
3184
|
async pushChanges(arg) {
|
|
3130
3185
|
if (this.briefcaseId === BriefcaseIdValue.Unassigned)
|
|
3131
3186
|
return;
|