@itwin/imodel-transformer 2.0.0-dev.67 → 2.0.0-dev.69
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/lib/cjs/ChangesetScanner.d.ts +111 -31
- package/lib/cjs/ChangesetScanner.d.ts.map +1 -1
- package/lib/cjs/ChangesetScanner.js +130 -47
- package/lib/cjs/ChangesetScanner.js.map +1 -1
- package/lib/cjs/IModelExporter.d.ts +28 -13
- package/lib/cjs/IModelExporter.d.ts.map +1 -1
- package/lib/cjs/IModelExporter.js +65 -81
- package/lib/cjs/IModelExporter.js.map +1 -1
- package/lib/cjs/IModelTransformer.d.ts +54 -15
- package/lib/cjs/IModelTransformer.d.ts.map +1 -1
- package/lib/cjs/IModelTransformer.js +197 -194
- package/lib/cjs/IModelTransformer.js.map +1 -1
- package/lib/cjs/SourceClassKinds.d.ts +22 -0
- package/lib/cjs/SourceClassKinds.d.ts.map +1 -0
- package/lib/cjs/SourceClassKinds.js +60 -0
- package/lib/cjs/SourceClassKinds.js.map +1 -0
- package/lib/cjs/imodel-transformer.d.ts +1 -0
- package/lib/cjs/imodel-transformer.d.ts.map +1 -1
- package/lib/cjs/imodel-transformer.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IModelDb } from "@itwin/core-backend";
|
|
2
|
+
import { Id64String } from "@itwin/core-bentley";
|
|
3
|
+
/**
|
|
4
|
+
* What instances of a source EC class are to change processing.
|
|
5
|
+
* - `relationship`: a `BisCore:ElementRefersToElements` relationship.
|
|
6
|
+
* - `skippedRelationship`: a `BisCore:ElementDrivesElement` relationship, which change processing ignores.
|
|
7
|
+
* - `externalSourceAspect`: exactly `BisCore:ExternalSourceAspect`, not a subclass.
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export type SourceClassKind = "codeSpec" | "model" | "element" | "aspect" | "externalSourceAspect" | "relationship" | "skippedRelationship";
|
|
11
|
+
/**
|
|
12
|
+
* The [[SourceClassKind]] of every class in an iModel's current schemas that change processing handles.
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export declare class SourceClassKinds {
|
|
16
|
+
private readonly _kinds;
|
|
17
|
+
private constructor();
|
|
18
|
+
static query(iModel: IModelDb): Promise<SourceClassKinds>;
|
|
19
|
+
/** Returns undefined for classes that change processing doesn't handle and for classes missing from the schemas. */
|
|
20
|
+
kindOf(ecClassId: Id64String): SourceClassKind | undefined;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=SourceClassKinds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SourceClassKinds.d.ts","sourceRoot":"","sources":["../../src/SourceClassKinds.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GACvB,UAAU,GACV,OAAO,GACP,SAAS,GACT,QAAQ,GACR,sBAAsB,GACtB,cAAc,GACd,qBAAqB,CAAC;AAE1B;;;GAGG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2C;IAElE,OAAO,eAEN;IAED,OAAoB,KAAK,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAkDrE;IAED,oHAAoH;IAC7G,MAAM,CAAC,SAAS,EAAE,UAAU,GAAG,eAAe,GAAG,SAAS,CAEhE;CACF"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.SourceClassKinds = void 0;
|
|
8
|
+
/**
|
|
9
|
+
* The [[SourceClassKind]] of every class in an iModel's current schemas that change processing handles.
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
class SourceClassKinds {
|
|
13
|
+
_kinds;
|
|
14
|
+
constructor(kinds) {
|
|
15
|
+
this._kinds = kinds;
|
|
16
|
+
}
|
|
17
|
+
static async query(iModel) {
|
|
18
|
+
const classIds = async (ecsql) => {
|
|
19
|
+
const ids = [];
|
|
20
|
+
for await (const row of iModel.createQueryReader(ecsql, undefined, {
|
|
21
|
+
usePrimaryConn: true,
|
|
22
|
+
}))
|
|
23
|
+
ids.push(row.ECInstanceId);
|
|
24
|
+
return ids;
|
|
25
|
+
};
|
|
26
|
+
const subclassIds = async (baseClass) => classIds(`SELECT ECInstanceId FROM ECDbMeta.ECClassDef WHERE ECInstanceId IS (${baseClass})`);
|
|
27
|
+
const [codeSpecs, models, elements, uniqueAspects, multiAspects, externalSourceAspects, relationships, skippedRelationships,] = await Promise.all([
|
|
28
|
+
subclassIds("BisCore.CodeSpec"),
|
|
29
|
+
subclassIds("BisCore.Model"),
|
|
30
|
+
subclassIds("BisCore.Element"),
|
|
31
|
+
subclassIds("BisCore.ElementUniqueAspect"),
|
|
32
|
+
subclassIds("BisCore.ElementMultiAspect"),
|
|
33
|
+
classIds("SELECT c.ECInstanceId FROM ECDbMeta.ECClassDef c JOIN ECDbMeta.ECSchemaDef s ON c.Schema.Id = s.ECInstanceId WHERE s.Name = 'BisCore' AND c.Name = 'ExternalSourceAspect'"),
|
|
34
|
+
subclassIds("BisCore.ElementRefersToElements"),
|
|
35
|
+
subclassIds("BisCore.ElementDrivesElement"),
|
|
36
|
+
]);
|
|
37
|
+
const kinds = new Map();
|
|
38
|
+
// Later entries refine earlier ones: ExternalSourceAspect is an aspect, and ElementDrivesElement is an ElementRefersToElements.
|
|
39
|
+
const entries = [
|
|
40
|
+
[codeSpecs, "codeSpec"],
|
|
41
|
+
[models, "model"],
|
|
42
|
+
[elements, "element"],
|
|
43
|
+
[uniqueAspects, "aspect"],
|
|
44
|
+
[multiAspects, "aspect"],
|
|
45
|
+
[externalSourceAspects, "externalSourceAspect"],
|
|
46
|
+
[relationships, "relationship"],
|
|
47
|
+
[skippedRelationships, "skippedRelationship"],
|
|
48
|
+
];
|
|
49
|
+
for (const [ids, kind] of entries)
|
|
50
|
+
for (const id of ids)
|
|
51
|
+
kinds.set(id, kind);
|
|
52
|
+
return new SourceClassKinds(kinds);
|
|
53
|
+
}
|
|
54
|
+
/** Returns undefined for classes that change processing doesn't handle and for classes missing from the schemas. */
|
|
55
|
+
kindOf(ecClassId) {
|
|
56
|
+
return this._kinds.get(ecClassId);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.SourceClassKinds = SourceClassKinds;
|
|
60
|
+
//# sourceMappingURL=SourceClassKinds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SourceClassKinds.js","sourceRoot":"","sources":["../../src/SourceClassKinds.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAqBhG;;;GAGG;AACH;IACmB,MAAM,CAA2C;IAElE,YAAoB,KAA+C;QACjE,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACtB,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,MAAgB;QACxC,MAAM,QAAQ,GAAG,KAAK,EAAE,KAAa,EAAE,EAAE;YACvC,MAAM,GAAG,GAAiB,EAAE,CAAC;YAC7B,IAAI,KAAK,EAAE,MAAM,GAAG,IAAI,MAAM,CAAC,iBAAiB,CAAC,KAAK,EAAE,SAAS,EAAE;gBACjE,cAAc,EAAE,IAAI;aACrB,CAAC;gBACA,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;YAC7B,OAAO,GAAG,CAAC;QACb,CAAC,CAAC;QACF,MAAM,WAAW,GAAG,KAAK,EAAE,SAAiB,EAAE,EAAE,CAC9C,QAAQ,CACN,uEAAuE,SAAS,GAAG,CACpF,CAAC;QACJ,MAAM,CACJ,SAAS,EACT,MAAM,EACN,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,qBAAqB,EACrB,aAAa,EACb,oBAAoB,EACrB,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YACpB,WAAW,CAAC,kBAAkB,CAAC;YAC/B,WAAW,CAAC,eAAe,CAAC;YAC5B,WAAW,CAAC,iBAAiB,CAAC;YAC9B,WAAW,CAAC,6BAA6B,CAAC;YAC1C,WAAW,CAAC,4BAA4B,CAAC;YACzC,QAAQ,CACN,2KAA2K,CAC5K;YACD,WAAW,CAAC,iCAAiC,CAAC;YAC9C,WAAW,CAAC,8BAA8B,CAAC;SAC5C,CAAC,CAAC;QAEH,MAAM,KAAK,GAAG,IAAI,GAAG,EAA+B,CAAC;QACrD,gIAAgI;QAChI,MAAM,OAAO,GAAsC;YACjD,CAAC,SAAS,EAAE,UAAU,CAAC;YACvB,CAAC,MAAM,EAAE,OAAO,CAAC;YACjB,CAAC,QAAQ,EAAE,SAAS,CAAC;YACrB,CAAC,aAAa,EAAE,QAAQ,CAAC;YACzB,CAAC,YAAY,EAAE,QAAQ,CAAC;YACxB,CAAC,qBAAqB,EAAE,sBAAsB,CAAC;YAC/C,CAAC,aAAa,EAAE,cAAc,CAAC;YAC/B,CAAC,oBAAoB,EAAE,qBAAqB,CAAC;SAC9C,CAAC;QACF,KAAK,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,OAAO;YAC/B,KAAK,MAAM,EAAE,IAAI,GAAG;gBAAE,KAAK,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QAC5C,OAAO,IAAI,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAED,oHAAoH;IAC7G,MAAM,CAAC,SAAqB;QACjC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;CACF","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\nimport { IModelDb } from \"@itwin/core-backend\";\nimport { Id64String } from \"@itwin/core-bentley\";\n\n/**\n * What instances of a source EC class are to change processing.\n * - `relationship`: a `BisCore:ElementRefersToElements` relationship.\n * - `skippedRelationship`: a `BisCore:ElementDrivesElement` relationship, which change processing ignores.\n * - `externalSourceAspect`: exactly `BisCore:ExternalSourceAspect`, not a subclass.\n * @internal\n */\nexport type SourceClassKind =\n | \"codeSpec\"\n | \"model\"\n | \"element\"\n | \"aspect\"\n | \"externalSourceAspect\"\n | \"relationship\"\n | \"skippedRelationship\";\n\n/**\n * The [[SourceClassKind]] of every class in an iModel's current schemas that change processing handles.\n * @internal\n */\nexport class SourceClassKinds {\n private readonly _kinds: ReadonlyMap<Id64String, SourceClassKind>;\n\n private constructor(kinds: ReadonlyMap<Id64String, SourceClassKind>) {\n this._kinds = kinds;\n }\n\n public static async query(iModel: IModelDb): Promise<SourceClassKinds> {\n const classIds = async (ecsql: string) => {\n const ids: Id64String[] = [];\n for await (const row of iModel.createQueryReader(ecsql, undefined, {\n usePrimaryConn: true,\n }))\n ids.push(row.ECInstanceId);\n return ids;\n };\n const subclassIds = async (baseClass: string) =>\n classIds(\n `SELECT ECInstanceId FROM ECDbMeta.ECClassDef WHERE ECInstanceId IS (${baseClass})`\n );\n const [\n codeSpecs,\n models,\n elements,\n uniqueAspects,\n multiAspects,\n externalSourceAspects,\n relationships,\n skippedRelationships,\n ] = await Promise.all([\n subclassIds(\"BisCore.CodeSpec\"),\n subclassIds(\"BisCore.Model\"),\n subclassIds(\"BisCore.Element\"),\n subclassIds(\"BisCore.ElementUniqueAspect\"),\n subclassIds(\"BisCore.ElementMultiAspect\"),\n classIds(\n \"SELECT c.ECInstanceId FROM ECDbMeta.ECClassDef c JOIN ECDbMeta.ECSchemaDef s ON c.Schema.Id = s.ECInstanceId WHERE s.Name = 'BisCore' AND c.Name = 'ExternalSourceAspect'\"\n ),\n subclassIds(\"BisCore.ElementRefersToElements\"),\n subclassIds(\"BisCore.ElementDrivesElement\"),\n ]);\n\n const kinds = new Map<Id64String, SourceClassKind>();\n // Later entries refine earlier ones: ExternalSourceAspect is an aspect, and ElementDrivesElement is an ElementRefersToElements.\n const entries: [Id64String[], SourceClassKind][] = [\n [codeSpecs, \"codeSpec\"],\n [models, \"model\"],\n [elements, \"element\"],\n [uniqueAspects, \"aspect\"],\n [multiAspects, \"aspect\"],\n [externalSourceAspects, \"externalSourceAspect\"],\n [relationships, \"relationship\"],\n [skippedRelationships, \"skippedRelationship\"],\n ];\n for (const [ids, kind] of entries)\n for (const id of ids) kinds.set(id, kind);\n return new SourceClassKinds(kinds);\n }\n\n /** Returns undefined for classes that change processing doesn't handle and for classes missing from the schemas. */\n public kindOf(ecClassId: Id64String): SourceClassKind | undefined {\n return this._kinds.get(ecClassId);\n }\n}\n"]}
|
|
@@ -6,6 +6,7 @@ export * from "./IModelTransformContext";
|
|
|
6
6
|
export * from "./schema-processing/SchemaProcessingStrategy";
|
|
7
7
|
export * from "./IModelTransformerError";
|
|
8
8
|
export * from "./BranchProvenanceInitializer";
|
|
9
|
+
export type { CollectedChanges, DeletionBatch, DeletionRecordBase, ElementDeletionRecord, ExternalSourceAspectDeletionRecord, ModelDeletionRecord, RelationshipDeletionRecord, } from "./ChangesetScanner";
|
|
9
10
|
/** @docs-package-description
|
|
10
11
|
* The @itwin/imodel-transformer package contains classes that [backend code]($docs/learning/backend/index.md) can use to
|
|
11
12
|
* traverse iModels, as well as *transform* an iModel into another existing or empty one, by exporting elements from one during
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imodel-transformer.d.ts","sourceRoot":"","sources":["../../src/imodel-transformer.ts"],"names":[],"mappings":"AAIA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"imodel-transformer.d.ts","sourceRoot":"","sources":["../../src/imodel-transformer.ts"],"names":[],"mappings":"AAIA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,YAAY,EACV,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,kCAAkC,EAClC,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,oBAAoB,CAAC;AAmD5B;;;;;;GAMG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imodel-transformer.js","sourceRoot":"","sources":["../../src/imodel-transformer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;gGAGgG;AAChG,8DAA4C;AAC5C,mDAAiC;AACjC,mDAAiC;AACjC,sDAAoC;AACpC,2DAAyC;AACzC,+EAA6D;AAC7D,2DAAyC;AACzC,gEAA8C;
|
|
1
|
+
{"version":3,"file":"imodel-transformer.js","sourceRoot":"","sources":["../../src/imodel-transformer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;gGAGgG;AAChG,8DAA4C;AAC5C,mDAAiC;AACjC,mDAAiC;AACjC,sDAAoC;AACpC,2DAAyC;AACzC,+EAA6D;AAC7D,2DAAyC;AACzC,gEAA8C;AAW9C,MAAY,MAAM,mCAAe;AACjC,sDAAiD;AACjD,mEAAsF;AACtF,qEAGkC;AAClC,6EAA0E;AAE1E,MAAM,EACJ,OAAO,EAAE,UAAU,EACnB,IAAI,EAAE,OAAO,EACb,gBAAgB,GACjB,GAAG,uDAA0B,CAAC;AAE/B,MAAM,2BAA2B,GAAG,gBAAgB,CAAC,qBAAqB,CAAC,CAAC;AAE5E,MAAM,sBAAsB,GAAG,iCAAiC,CAAC;AAEjE,4CAA4C;AAC5C,IAAI,MAAM,CAAC,UAAU,CAAC,sBAAuB,CAAC,EAAE,CAAC;IAC/C,sCAAsC;IACtC,OAAO,CAAC,IAAI,CACV,kCAAkC,sBAAuB,KAAK;QAC5D,uFAAuF;QACvF,+FAA+F,CAClG,CAAC;AACJ,CAAC;AAED,IACE,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,KAAK,GAAG;IAC3C,CAAC,MAAM,CAAC,SAAS,CAAC,sBAAuB,EAAE,2BAA2B,EAAE;QACtE,iBAAiB,EAAE,IAAI;KACxB,CAAC,EACF,CAAC;IACD,MAAM,SAAS,GACb,GAAG,OAAO,IAAI,UAAU,sCAAsC,2BAA2B,IAAI;QAC7F,0BAA0B,sBAAuB,uDAAuD;QACxG,iFAAiF,sBAAsB,yBAAyB,CAAC;IAEnI,yBAAU,CAAC,UAAU,CAAC;QACpB,YAAY,EAAE;YACZ,KAAK,EAAE,oDAA2B;YAClC,GAAG,EAAE,+CAAsB,CAAC,yBAAyB;SACtD;QACD,OAAO,EAAE,SAAS;KACnB,CAAC,CAAC;AACL,CAAC;AAED;;;;;;GAMG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG","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 *--------------------------------------------------------------------------------------------*/\nexport * from \"./TransformerLoggerCategory\";\nexport * from \"./IModelExporter\";\nexport * from \"./IModelImporter\";\nexport * from \"./IModelTransformer\";\nexport * from \"./IModelTransformContext\";\nexport * from \"./schema-processing/SchemaProcessingStrategy\";\nexport * from \"./IModelTransformerError\";\nexport * from \"./BranchProvenanceInitializer\";\nexport type {\n CollectedChanges,\n DeletionBatch,\n DeletionRecordBase,\n ElementDeletionRecord,\n ExternalSourceAspectDeletionRecord,\n ModelDeletionRecord,\n RelationshipDeletionRecord,\n} from \"./ChangesetScanner\";\n\nimport * as semver from \"semver\";\nimport { ITwinError } from \"@itwin/core-bentley\";\nimport { version as iTwinCoreBackendVersion } from \"@itwin/core-backend/package.json\";\nimport {\n IModelTransformerError,\n IModelTransformerErrorScope,\n} from \"./IModelTransformerError\";\nimport { transformerPackageMetadata } from \"./TransformerPackageMetadata\";\n\nconst {\n version: ourVersion,\n name: ourName,\n peerDependencies,\n} = transformerPackageMetadata;\n\nconst ourITwinCoreBackendDepRange = peerDependencies[\"@itwin/core-backend\"];\n\nconst noStrictDepCheckEnvVar = \"TRANSFORMER_NO_STRICT_DEP_CHECK\";\n\n// warn if using a prerelease or dev version\nif (semver.prerelease(iTwinCoreBackendVersion)) {\n // eslint-disable-next-line no-console\n console.warn(\n `Warning: dev version detected (${iTwinCoreBackendVersion}). ` +\n \"This version is most likely fine, but it may introduce new behavior that could cause \" +\n \"unexpected issues or changes in the transformer's functionality. Please proceed with caution.\"\n );\n}\n\nif (\n process.env[noStrictDepCheckEnvVar] !== \"1\" &&\n !semver.satisfies(iTwinCoreBackendVersion, ourITwinCoreBackendDepRange, {\n includePrerelease: true,\n })\n) {\n const errHeader =\n `${ourName}@${ourVersion} only supports @itwin/core-backend@${ourITwinCoreBackendDepRange}, ` +\n `but @itwin/core-backend${iTwinCoreBackendVersion} was resolved when looking for the peer dependency.\\n` +\n `If you know exactly what you are doing, you can disable this check by setting ${noStrictDepCheckEnvVar}=1 in the environment\\n`;\n\n ITwinError.throwError({\n iTwinErrorId: {\n scope: IModelTransformerErrorScope,\n key: IModelTransformerError.DependencyVersionMismatch,\n },\n message: errHeader,\n });\n}\n\n/** @docs-package-description\n * The @itwin/imodel-transformer package contains classes that [backend code]($docs/learning/backend/index.md) can use to\n * traverse iModels, as well as *transform* an iModel into another existing or empty one, by exporting elements from one during\n * traversal and importing them into another.\n *\n * You can read further in [iModelTransformation and Data Exchange]($docs/learning/transformer/index.md) here.\n */\n/**\n * @docs-group-description iModels\n * Classes for working with [iModels]($docs/learning/iModels.md).\n * See [the learning article]($docs/learning/backend/index.md).\n */\n/**\n * @docs-group-description Utils\n * Miscellaneous utility classes.\n */\n/**\n * @docs-group-description Logging\n * Logger categories used by this package.\n */\n/**\n * @docs-group-description ChangedElementForest\n * Internal indexing of changed elements and their ancestors for incremental export traversal.\n */\n/**\n * @docs-group-description ElementAspectExportCoordinator\n * Internal coordination for scoped, owner-batched ElementAspect export.\n */\n/**\n * @docs-group-description ElementAspectExportProcessor\n * Internal source queries, filtering, and export callbacks for ElementAspects owned by accepted elements.\n */\n/**\n * @docs-group-description ChangedElementForest\n * Internal index of changed elements and their ancestors for incremental traversal.\n */\n/**\n * @docs-group-description IModelTransformerError\n * Stable identifiers for errors originating from this package.\n */\n/**\n * @docs-group-description TransformerPackageMetadata\n * Internal metadata describing this package and its peer dependencies.\n */\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/imodel-transformer",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.69",
|
|
4
4
|
"description": "API for exporting an iModel's parts and also importing them into another iModel",
|
|
5
5
|
"main": "lib/cjs/imodel-transformer.js",
|
|
6
6
|
"typings": "lib/cjs/imodel-transformer.d.ts",
|