@itwin/ecschema-editing 4.0.0-dev.6 → 4.0.0-dev.61
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 +11 -1
- package/lib/cjs/Editing/Constants.d.ts +20 -20
- package/lib/cjs/Editing/Constants.js +60 -60
- package/lib/cjs/Editing/CustomAttributes.d.ts +20 -20
- package/lib/cjs/Editing/CustomAttributes.js +59 -59
- package/lib/cjs/Editing/ECClasses.d.ts +54 -54
- package/lib/cjs/Editing/ECClasses.js +269 -269
- package/lib/cjs/Editing/Editor.d.ts +112 -112
- package/lib/cjs/Editing/Editor.js +166 -166
- package/lib/cjs/Editing/Entities.d.ts +25 -25
- package/lib/cjs/Editing/Entities.js +116 -116
- package/lib/cjs/Editing/Entities.js.map +1 -1
- package/lib/cjs/Editing/Enumerations.d.ts +21 -21
- package/lib/cjs/Editing/Enumerations.js +66 -66
- package/lib/cjs/Editing/Formats.d.ts +21 -21
- package/lib/cjs/Editing/Formats.js +61 -61
- package/lib/cjs/Editing/InvertedUnits.d.ts +17 -17
- package/lib/cjs/Editing/InvertedUnits.js +82 -82
- package/lib/cjs/Editing/KindOfQuantities.d.ts +28 -28
- package/lib/cjs/Editing/KindOfQuantities.js +78 -78
- package/lib/cjs/Editing/Mixins.d.ts +22 -22
- package/lib/cjs/Editing/Mixins.js +84 -84
- package/lib/cjs/Editing/Mutable/MutableCAClass.d.ts +9 -9
- package/lib/cjs/Editing/Mutable/MutableCAClass.js +15 -15
- package/lib/cjs/Editing/Mutable/MutableClass.d.ts +34 -34
- package/lib/cjs/Editing/Mutable/MutableClass.js +22 -22
- package/lib/cjs/Editing/Mutable/MutableConstant.d.ts +12 -12
- package/lib/cjs/Editing/Mutable/MutableConstant.js +15 -15
- package/lib/cjs/Editing/Mutable/MutableEntityClass.d.ts +15 -15
- package/lib/cjs/Editing/Mutable/MutableEntityClass.js +59 -59
- package/lib/cjs/Editing/Mutable/MutableEnumeration.d.ts +9 -9
- package/lib/cjs/Editing/Mutable/MutableEnumeration.js +14 -14
- package/lib/cjs/Editing/Mutable/MutableFormat.d.ts +18 -18
- package/lib/cjs/Editing/Mutable/MutableFormat.js +15 -15
- package/lib/cjs/Editing/Mutable/MutableInvertedUnit.d.ts +10 -10
- package/lib/cjs/Editing/Mutable/MutableInvertedUnit.js +15 -15
- package/lib/cjs/Editing/Mutable/MutableKindOfQuantity.d.ts +10 -10
- package/lib/cjs/Editing/Mutable/MutableKindOfQuantity.js +15 -15
- package/lib/cjs/Editing/Mutable/MutableMixin.d.ts +11 -11
- package/lib/cjs/Editing/Mutable/MutableMixin.js +15 -15
- package/lib/cjs/Editing/Mutable/MutablePhenomenon.d.ts +9 -9
- package/lib/cjs/Editing/Mutable/MutablePhenomenon.js +15 -15
- package/lib/cjs/Editing/Mutable/MutableProperty.d.ts +8 -8
- package/lib/cjs/Editing/Mutable/MutableProperty.js +15 -15
- package/lib/cjs/Editing/Mutable/MutablePropertyCategory.d.ts +9 -9
- package/lib/cjs/Editing/Mutable/MutablePropertyCategory.js +15 -15
- package/lib/cjs/Editing/Mutable/MutableRelationshipClass.d.ts +21 -21
- package/lib/cjs/Editing/Mutable/MutableRelationshipClass.js +24 -24
- package/lib/cjs/Editing/Mutable/MutableSchema.d.ts +45 -45
- package/lib/cjs/Editing/Mutable/MutableSchema.js +17 -17
- package/lib/cjs/Editing/Mutable/MutableUnit.d.ts +11 -11
- package/lib/cjs/Editing/Mutable/MutableUnit.js +15 -15
- package/lib/cjs/Editing/Mutable/MutableUnitSystem.d.ts +8 -8
- package/lib/cjs/Editing/Mutable/MutableUnitSystem.js +15 -15
- package/lib/cjs/Editing/Phenomena.d.ts +15 -15
- package/lib/cjs/Editing/Phenomena.js +44 -44
- package/lib/cjs/Editing/PropertyCategories.d.ts +16 -16
- package/lib/cjs/Editing/PropertyCategories.js +51 -51
- package/lib/cjs/Editing/RelationshipClasses.d.ts +21 -21
- package/lib/cjs/Editing/RelationshipClasses.js +68 -68
- package/lib/cjs/Editing/Structs.d.ts +19 -19
- package/lib/cjs/Editing/Structs.js +57 -57
- package/lib/cjs/Editing/UnitSystems.d.ts +15 -15
- package/lib/cjs/Editing/UnitSystems.js +41 -41
- package/lib/cjs/Editing/Units.d.ts +15 -15
- package/lib/cjs/Editing/Units.js +58 -58
- package/lib/cjs/Validation/Diagnostic.d.ts +321 -321
- package/lib/cjs/Validation/Diagnostic.d.ts.map +1 -1
- package/lib/cjs/Validation/Diagnostic.js +310 -310
- package/lib/cjs/Validation/Diagnostic.js.map +1 -1
- package/lib/cjs/Validation/DiagnosticReporter.d.ts +96 -96
- package/lib/cjs/Validation/DiagnosticReporter.js +106 -106
- package/lib/cjs/Validation/ECRules.d.ts +448 -448
- package/lib/cjs/Validation/ECRules.js +593 -593
- package/lib/cjs/Validation/LoggingDiagnosticReporter.d.ts +13 -13
- package/lib/cjs/Validation/LoggingDiagnosticReporter.js +40 -40
- package/lib/cjs/Validation/RuleSuppressionSet.d.ts +59 -59
- package/lib/cjs/Validation/RuleSuppressionSet.d.ts.map +1 -1
- package/lib/cjs/Validation/RuleSuppressionSet.js +9 -9
- package/lib/cjs/Validation/Rules.d.ts +64 -64
- package/lib/cjs/Validation/Rules.d.ts.map +1 -1
- package/lib/cjs/Validation/Rules.js +9 -9
- package/lib/cjs/Validation/SchemaChanges.d.ts +607 -607
- package/lib/cjs/Validation/SchemaChanges.js +1135 -1135
- package/lib/cjs/Validation/SchemaCompareDiagnostics.d.ts +422 -422
- package/lib/cjs/Validation/SchemaCompareDiagnostics.js +111 -111
- package/lib/cjs/Validation/SchemaCompareReporter.d.ts +11 -11
- package/lib/cjs/Validation/SchemaCompareReporter.js +9 -9
- package/lib/cjs/Validation/SchemaCompareResultDelegate.d.ts +236 -236
- package/lib/cjs/Validation/SchemaCompareResultDelegate.js +348 -348
- package/lib/cjs/Validation/SchemaCompareVisitor.d.ts +119 -119
- package/lib/cjs/Validation/SchemaCompareVisitor.js +206 -206
- package/lib/cjs/Validation/SchemaComparer.d.ts +171 -171
- package/lib/cjs/Validation/SchemaComparer.js +666 -666
- package/lib/cjs/Validation/SchemaValidater.d.ts +19 -19
- package/lib/cjs/Validation/SchemaValidater.js +61 -61
- package/lib/cjs/Validation/SchemaValidationVisitor.d.ts +170 -170
- package/lib/cjs/Validation/SchemaValidationVisitor.js +492 -492
- package/lib/cjs/Validation/SchemaWalker.d.ts +22 -22
- package/lib/cjs/Validation/SchemaWalker.js +51 -51
- package/lib/cjs/ecschema-editing.d.ts +33 -33
- package/lib/cjs/ecschema-editing.js +58 -54
- package/lib/cjs/ecschema-editing.js.map +1 -1
- package/package.json +12 -12
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ISchemaPartVisitor, Schema } from "@itwin/ecschema-metadata";
|
|
2
|
-
/**
|
|
3
|
-
* The purpose of this class is to traverse a given schema, allowing clients to hook into
|
|
4
|
-
* the traversal process via Visitors to allow for custom processing of the schema elements.
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
export declare class SchemaWalker {
|
|
8
|
-
private _visitorHelper;
|
|
9
|
-
private _schema?;
|
|
10
|
-
/**
|
|
11
|
-
* Initializes a new SchemaWalker instance.
|
|
12
|
-
* @param visitor An ISchemaWalkerVisitor implementation whose methods will be called during schema traversal.
|
|
13
|
-
*/
|
|
14
|
-
constructor(visitor: ISchemaPartVisitor);
|
|
15
|
-
/**
|
|
16
|
-
* Traverses the given Schema, calling ISchemaWalkerVisitor methods along the way.
|
|
17
|
-
* @param schema The Schema to traverse.
|
|
18
|
-
*/
|
|
19
|
-
traverseSchema<T extends Schema>(schema: T): Promise<T>;
|
|
20
|
-
private traverseSchemaItem;
|
|
21
|
-
private traverseClass;
|
|
22
|
-
}
|
|
1
|
+
import { ISchemaPartVisitor, Schema } from "@itwin/ecschema-metadata";
|
|
2
|
+
/**
|
|
3
|
+
* The purpose of this class is to traverse a given schema, allowing clients to hook into
|
|
4
|
+
* the traversal process via Visitors to allow for custom processing of the schema elements.
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare class SchemaWalker {
|
|
8
|
+
private _visitorHelper;
|
|
9
|
+
private _schema?;
|
|
10
|
+
/**
|
|
11
|
+
* Initializes a new SchemaWalker instance.
|
|
12
|
+
* @param visitor An ISchemaWalkerVisitor implementation whose methods will be called during schema traversal.
|
|
13
|
+
*/
|
|
14
|
+
constructor(visitor: ISchemaPartVisitor);
|
|
15
|
+
/**
|
|
16
|
+
* Traverses the given Schema, calling ISchemaWalkerVisitor methods along the way.
|
|
17
|
+
* @param schema The Schema to traverse.
|
|
18
|
+
*/
|
|
19
|
+
traverseSchema<T extends Schema>(schema: T): Promise<T>;
|
|
20
|
+
private traverseSchemaItem;
|
|
21
|
+
private traverseClass;
|
|
22
|
+
}
|
|
23
23
|
//# sourceMappingURL=SchemaWalker.d.ts.map
|
|
@@ -1,52 +1,52 @@
|
|
|
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.SchemaWalker = void 0;
|
|
8
|
-
const ecschema_metadata_1 = require("@itwin/ecschema-metadata");
|
|
9
|
-
/**
|
|
10
|
-
* The purpose of this class is to traverse a given schema, allowing clients to hook into
|
|
11
|
-
* the traversal process via Visitors to allow for custom processing of the schema elements.
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
class SchemaWalker {
|
|
15
|
-
/**
|
|
16
|
-
* Initializes a new SchemaWalker instance.
|
|
17
|
-
* @param visitor An ISchemaWalkerVisitor implementation whose methods will be called during schema traversal.
|
|
18
|
-
*/
|
|
19
|
-
constructor(visitor) {
|
|
20
|
-
this._visitorHelper = new ecschema_metadata_1.SchemaPartVisitorDelegate(visitor);
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Traverses the given Schema, calling ISchemaWalkerVisitor methods along the way.
|
|
24
|
-
* @param schema The Schema to traverse.
|
|
25
|
-
*/
|
|
26
|
-
async traverseSchema(schema) {
|
|
27
|
-
this._schema = schema;
|
|
28
|
-
await this._visitorHelper.visitSchema(schema);
|
|
29
|
-
await this._visitorHelper.visitSchemaPart(schema);
|
|
30
|
-
for (const item of this._schema.getItems())
|
|
31
|
-
await this.traverseSchemaItem(item);
|
|
32
|
-
return schema;
|
|
33
|
-
}
|
|
34
|
-
async traverseSchemaItem(schemaItem) {
|
|
35
|
-
await this._visitorHelper.visitSchemaPart(schemaItem);
|
|
36
|
-
if (ecschema_metadata_1.ECClass.isECClass(schemaItem))
|
|
37
|
-
await this.traverseClass(schemaItem);
|
|
38
|
-
}
|
|
39
|
-
async traverseClass(ecClass) {
|
|
40
|
-
if (ecClass.properties) {
|
|
41
|
-
for (const property of ecClass.properties) {
|
|
42
|
-
await this._visitorHelper.visitSchemaPart(property);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
if (ecClass.schemaItemType === ecschema_metadata_1.SchemaItemType.RelationshipClass) {
|
|
46
|
-
await this._visitorHelper.visitSchemaPart(ecClass.source);
|
|
47
|
-
await this._visitorHelper.visitSchemaPart(ecClass.target);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
exports.SchemaWalker = SchemaWalker;
|
|
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.SchemaWalker = void 0;
|
|
8
|
+
const ecschema_metadata_1 = require("@itwin/ecschema-metadata");
|
|
9
|
+
/**
|
|
10
|
+
* The purpose of this class is to traverse a given schema, allowing clients to hook into
|
|
11
|
+
* the traversal process via Visitors to allow for custom processing of the schema elements.
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
class SchemaWalker {
|
|
15
|
+
/**
|
|
16
|
+
* Initializes a new SchemaWalker instance.
|
|
17
|
+
* @param visitor An ISchemaWalkerVisitor implementation whose methods will be called during schema traversal.
|
|
18
|
+
*/
|
|
19
|
+
constructor(visitor) {
|
|
20
|
+
this._visitorHelper = new ecschema_metadata_1.SchemaPartVisitorDelegate(visitor);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Traverses the given Schema, calling ISchemaWalkerVisitor methods along the way.
|
|
24
|
+
* @param schema The Schema to traverse.
|
|
25
|
+
*/
|
|
26
|
+
async traverseSchema(schema) {
|
|
27
|
+
this._schema = schema;
|
|
28
|
+
await this._visitorHelper.visitSchema(schema);
|
|
29
|
+
await this._visitorHelper.visitSchemaPart(schema);
|
|
30
|
+
for (const item of this._schema.getItems())
|
|
31
|
+
await this.traverseSchemaItem(item);
|
|
32
|
+
return schema;
|
|
33
|
+
}
|
|
34
|
+
async traverseSchemaItem(schemaItem) {
|
|
35
|
+
await this._visitorHelper.visitSchemaPart(schemaItem);
|
|
36
|
+
if (ecschema_metadata_1.ECClass.isECClass(schemaItem))
|
|
37
|
+
await this.traverseClass(schemaItem);
|
|
38
|
+
}
|
|
39
|
+
async traverseClass(ecClass) {
|
|
40
|
+
if (ecClass.properties) {
|
|
41
|
+
for (const property of ecClass.properties) {
|
|
42
|
+
await this._visitorHelper.visitSchemaPart(property);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
if (ecClass.schemaItemType === ecschema_metadata_1.SchemaItemType.RelationshipClass) {
|
|
46
|
+
await this._visitorHelper.visitSchemaPart(ecClass.source);
|
|
47
|
+
await this._visitorHelper.visitSchemaPart(ecClass.target);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.SchemaWalker = SchemaWalker;
|
|
52
52
|
//# sourceMappingURL=SchemaWalker.js.map
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
export * from "./Validation/Diagnostic";
|
|
2
|
-
export * from "./Validation/DiagnosticReporter";
|
|
3
|
-
export { DiagnosticCodes, Diagnostics, ECRuleSet } from "./Validation/ECRules";
|
|
4
|
-
export * from "./Validation/LoggingDiagnosticReporter";
|
|
5
|
-
export * from "./Validation/Rules";
|
|
6
|
-
export * from "./Validation/SchemaValidationVisitor";
|
|
7
|
-
export * from "./Validation/SchemaWalker";
|
|
8
|
-
export * from "./Validation/SchemaCompareDiagnostics";
|
|
9
|
-
export * from "./Validation/SchemaChanges";
|
|
10
|
-
export * from "./Validation/SchemaComparer";
|
|
11
|
-
export * from "./Validation/SchemaCompareReporter";
|
|
12
|
-
export * from "./Editing/Editor";
|
|
13
|
-
export { ISuppressionRule, IRuleSuppressionSet, IRuleSuppressionMap } from "./Validation/RuleSuppressionSet";
|
|
14
|
-
export { SchemaValidater } from "./Validation/SchemaValidater";
|
|
15
|
-
/** @docs-package-description
|
|
16
|
-
* The ecschema-editing package contains classes for validating, and editing ECSchemas that can be used in both [frontend]($docs/learning/frontend/index.md) and [backend]($docs/learning/backend/index.md).
|
|
17
|
-
*/
|
|
18
|
-
/**
|
|
19
|
-
* @docs-group-description Editing
|
|
20
|
-
* Set of classes used to perform editing of ECSchemas.
|
|
21
|
-
*/
|
|
22
|
-
/**
|
|
23
|
-
* @docs-group-description Diagnostic
|
|
24
|
-
* Set of classes to categorize and manage ECSchema validation results.
|
|
25
|
-
*/
|
|
26
|
-
/**
|
|
27
|
-
* @docs-group-description Validation
|
|
28
|
-
* Set of classes used to perform validation on ECSchemas.
|
|
29
|
-
*/
|
|
30
|
-
/**
|
|
31
|
-
* @docs-group-description Comparison
|
|
32
|
-
* Set of classes to enable comparison of ECSchemas.
|
|
33
|
-
*/
|
|
1
|
+
export * from "./Validation/Diagnostic";
|
|
2
|
+
export * from "./Validation/DiagnosticReporter";
|
|
3
|
+
export { DiagnosticCodes, Diagnostics, ECRuleSet } from "./Validation/ECRules";
|
|
4
|
+
export * from "./Validation/LoggingDiagnosticReporter";
|
|
5
|
+
export * from "./Validation/Rules";
|
|
6
|
+
export * from "./Validation/SchemaValidationVisitor";
|
|
7
|
+
export * from "./Validation/SchemaWalker";
|
|
8
|
+
export * from "./Validation/SchemaCompareDiagnostics";
|
|
9
|
+
export * from "./Validation/SchemaChanges";
|
|
10
|
+
export * from "./Validation/SchemaComparer";
|
|
11
|
+
export * from "./Validation/SchemaCompareReporter";
|
|
12
|
+
export * from "./Editing/Editor";
|
|
13
|
+
export { ISuppressionRule, IRuleSuppressionSet, IRuleSuppressionMap } from "./Validation/RuleSuppressionSet";
|
|
14
|
+
export { SchemaValidater } from "./Validation/SchemaValidater";
|
|
15
|
+
/** @docs-package-description
|
|
16
|
+
* The ecschema-editing package contains classes for validating, and editing ECSchemas that can be used in both [frontend]($docs/learning/frontend/index.md) and [backend]($docs/learning/backend/index.md).
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* @docs-group-description Editing
|
|
20
|
+
* Set of classes used to perform editing of ECSchemas.
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* @docs-group-description Diagnostic
|
|
24
|
+
* Set of classes to categorize and manage ECSchema validation results.
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* @docs-group-description Validation
|
|
28
|
+
* Set of classes used to perform validation on ECSchemas.
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* @docs-group-description Comparison
|
|
32
|
+
* Set of classes to enable comparison of ECSchemas.
|
|
33
|
+
*/
|
|
34
34
|
//# sourceMappingURL=ecschema-editing.d.ts.map
|
|
@@ -1,55 +1,59 @@
|
|
|
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
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
-
if (k2 === undefined) k2 = k;
|
|
8
|
-
Object.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
__exportStar(require("./Validation/
|
|
30
|
-
__exportStar(require("./Validation/
|
|
31
|
-
__exportStar(require("./Validation/
|
|
32
|
-
__exportStar(require("./Validation/
|
|
33
|
-
__exportStar(require("./
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
/**
|
|
44
|
-
* @docs-group-description
|
|
45
|
-
* Set of classes to
|
|
46
|
-
*/
|
|
47
|
-
/**
|
|
48
|
-
* @docs-group-description
|
|
49
|
-
* Set of classes
|
|
50
|
-
*/
|
|
51
|
-
/**
|
|
52
|
-
* @docs-group-description
|
|
53
|
-
* Set of classes to
|
|
54
|
-
*/
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
18
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.SchemaValidater = exports.ECRuleSet = exports.Diagnostics = exports.DiagnosticCodes = void 0;
|
|
22
|
+
__exportStar(require("./Validation/Diagnostic"), exports);
|
|
23
|
+
__exportStar(require("./Validation/DiagnosticReporter"), exports);
|
|
24
|
+
/* eslint-disable-next-line deprecation/deprecation */
|
|
25
|
+
var ECRules_1 = require("./Validation/ECRules");
|
|
26
|
+
Object.defineProperty(exports, "DiagnosticCodes", { enumerable: true, get: function () { return ECRules_1.DiagnosticCodes; } });
|
|
27
|
+
Object.defineProperty(exports, "Diagnostics", { enumerable: true, get: function () { return ECRules_1.Diagnostics; } });
|
|
28
|
+
Object.defineProperty(exports, "ECRuleSet", { enumerable: true, get: function () { return ECRules_1.ECRuleSet; } });
|
|
29
|
+
__exportStar(require("./Validation/LoggingDiagnosticReporter"), exports);
|
|
30
|
+
__exportStar(require("./Validation/Rules"), exports);
|
|
31
|
+
__exportStar(require("./Validation/SchemaValidationVisitor"), exports);
|
|
32
|
+
__exportStar(require("./Validation/SchemaWalker"), exports);
|
|
33
|
+
__exportStar(require("./Validation/SchemaCompareDiagnostics"), exports);
|
|
34
|
+
__exportStar(require("./Validation/SchemaChanges"), exports);
|
|
35
|
+
__exportStar(require("./Validation/SchemaComparer"), exports);
|
|
36
|
+
__exportStar(require("./Validation/SchemaCompareReporter"), exports);
|
|
37
|
+
__exportStar(require("./Editing/Editor"), exports);
|
|
38
|
+
var SchemaValidater_1 = require("./Validation/SchemaValidater");
|
|
39
|
+
Object.defineProperty(exports, "SchemaValidater", { enumerable: true, get: function () { return SchemaValidater_1.SchemaValidater; } });
|
|
40
|
+
/** @docs-package-description
|
|
41
|
+
* The ecschema-editing package contains classes for validating, and editing ECSchemas that can be used in both [frontend]($docs/learning/frontend/index.md) and [backend]($docs/learning/backend/index.md).
|
|
42
|
+
*/
|
|
43
|
+
/**
|
|
44
|
+
* @docs-group-description Editing
|
|
45
|
+
* Set of classes used to perform editing of ECSchemas.
|
|
46
|
+
*/
|
|
47
|
+
/**
|
|
48
|
+
* @docs-group-description Diagnostic
|
|
49
|
+
* Set of classes to categorize and manage ECSchema validation results.
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* @docs-group-description Validation
|
|
53
|
+
* Set of classes used to perform validation on ECSchemas.
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* @docs-group-description Comparison
|
|
57
|
+
* Set of classes to enable comparison of ECSchemas.
|
|
58
|
+
*/
|
|
55
59
|
//# sourceMappingURL=ecschema-editing.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecschema-editing.js","sourceRoot":"","sources":["../../src/ecschema-editing.ts"],"names":[],"mappings":";AAAA;;;+FAG+F
|
|
1
|
+
{"version":3,"file":"ecschema-editing.js","sourceRoot":"","sources":["../../src/ecschema-editing.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;;AAE/F,0DAAwC;AACxC,kEAAgD;AAChD,sDAAsD;AACtD,gDAA+E;AAAtE,0GAAA,eAAe,OAAA;AAAE,sGAAA,WAAW,OAAA;AAAE,oGAAA,SAAS,OAAA;AAChD,yEAAuD;AACvD,qDAAmC;AACnC,uEAAqD;AACrD,4DAA0C;AAC1C,wEAAsD;AACtD,6DAA2C;AAC3C,8DAA4C;AAC5C,qEAAmD;AACnD,mDAAiC;AAEjC,gEAA+D;AAAtD,kHAAA,eAAe,OAAA;AAExB;;GAEG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\nexport * from \"./Validation/Diagnostic\";\r\nexport * from \"./Validation/DiagnosticReporter\";\r\n/* eslint-disable-next-line deprecation/deprecation */\r\nexport { DiagnosticCodes, Diagnostics, ECRuleSet } from \"./Validation/ECRules\";\r\nexport * from \"./Validation/LoggingDiagnosticReporter\";\r\nexport * from \"./Validation/Rules\";\r\nexport * from \"./Validation/SchemaValidationVisitor\";\r\nexport * from \"./Validation/SchemaWalker\";\r\nexport * from \"./Validation/SchemaCompareDiagnostics\";\r\nexport * from \"./Validation/SchemaChanges\";\r\nexport * from \"./Validation/SchemaComparer\";\r\nexport * from \"./Validation/SchemaCompareReporter\";\r\nexport * from \"./Editing/Editor\";\r\nexport { ISuppressionRule, IRuleSuppressionSet, IRuleSuppressionMap } from \"./Validation/RuleSuppressionSet\";\r\nexport { SchemaValidater } from \"./Validation/SchemaValidater\";\r\n\r\n/** @docs-package-description\r\n * The ecschema-editing package contains classes for validating, and editing ECSchemas that can be used in both [frontend]($docs/learning/frontend/index.md) and [backend]($docs/learning/backend/index.md).\r\n */\r\n/**\r\n * @docs-group-description Editing\r\n * Set of classes used to perform editing of ECSchemas.\r\n */\r\n/**\r\n * @docs-group-description Diagnostic\r\n * Set of classes to categorize and manage ECSchema validation results.\r\n */\r\n/**\r\n * @docs-group-description Validation\r\n * Set of classes used to perform validation on ECSchemas.\r\n */\r\n/**\r\n * @docs-group-description Comparison\r\n * Set of classes to enable comparison of ECSchemas.\r\n */\r\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/ecschema-editing",
|
|
3
|
-
"version": "4.0.0-dev.
|
|
3
|
+
"version": "4.0.0-dev.61",
|
|
4
4
|
"description": "ECSchema editing and validation API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/cjs/ecschema-editing.js",
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@bentley/units-schema": "^1.0.5",
|
|
25
|
-
"@itwin/build-tools": "4.0.0-dev.
|
|
26
|
-
"@itwin/core-bentley": "4.0.0-dev.
|
|
27
|
-
"@itwin/core-common": "4.0.0-dev.
|
|
28
|
-
"@itwin/core-quantity": "4.0.0-dev.
|
|
29
|
-
"@itwin/eslint-plugin": "4.0.0-dev.
|
|
30
|
-
"@itwin/ecschema-metadata": "4.0.0-dev.
|
|
25
|
+
"@itwin/build-tools": "4.0.0-dev.61",
|
|
26
|
+
"@itwin/core-bentley": "4.0.0-dev.61",
|
|
27
|
+
"@itwin/core-common": "4.0.0-dev.61",
|
|
28
|
+
"@itwin/core-quantity": "4.0.0-dev.61",
|
|
29
|
+
"@itwin/eslint-plugin": "^4.0.0-dev.32",
|
|
30
|
+
"@itwin/ecschema-metadata": "4.0.0-dev.61",
|
|
31
31
|
"@types/almost-equal": "1.1.0",
|
|
32
32
|
"@types/benchmark": "^2.1.0",
|
|
33
33
|
"@types/chai": "4.3.1",
|
|
34
34
|
"@types/chai-as-promised": "^7",
|
|
35
35
|
"@types/mocha": "^8.2.2",
|
|
36
|
-
"@types/node": "18.11.5",
|
|
36
|
+
"@types/node": "^18.11.5",
|
|
37
37
|
"@types/sinon": "^9.0.0",
|
|
38
38
|
"@xmldom/xmldom": "~0.8.5",
|
|
39
39
|
"benchmark": "^2.1.4",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"nyc": "^15.1.0",
|
|
46
46
|
"rimraf": "^3.0.2",
|
|
47
47
|
"sinon": "^9.0.2",
|
|
48
|
-
"typescript": "~
|
|
48
|
+
"typescript": "~5.0.2"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@itwin/core-bentley": "^4.0.0-dev.
|
|
52
|
-
"@itwin/core-quantity": "^4.0.0-dev.
|
|
53
|
-
"@itwin/ecschema-metadata": "^4.0.0-dev.
|
|
51
|
+
"@itwin/core-bentley": "^4.0.0-dev.61",
|
|
52
|
+
"@itwin/core-quantity": "^4.0.0-dev.61",
|
|
53
|
+
"@itwin/ecschema-metadata": "^4.0.0-dev.61"
|
|
54
54
|
},
|
|
55
55
|
"nyc": {
|
|
56
56
|
"extends": "./node_modules/@itwin/build-tools/.nycrc"
|