@itwin/ecschema-editing 4.0.0-dev.10 → 4.0.0-dev.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/CHANGELOG.md +51 -1
  2. package/lib/cjs/Editing/Constants.d.ts +20 -20
  3. package/lib/cjs/Editing/Constants.js +60 -60
  4. package/lib/cjs/Editing/CustomAttributes.d.ts +20 -20
  5. package/lib/cjs/Editing/CustomAttributes.js +59 -59
  6. package/lib/cjs/Editing/ECClasses.d.ts +54 -54
  7. package/lib/cjs/Editing/ECClasses.js +269 -269
  8. package/lib/cjs/Editing/Editor.d.ts +112 -112
  9. package/lib/cjs/Editing/Editor.js +166 -166
  10. package/lib/cjs/Editing/Entities.d.ts +25 -25
  11. package/lib/cjs/Editing/Entities.js +116 -116
  12. package/lib/cjs/Editing/Entities.js.map +1 -1
  13. package/lib/cjs/Editing/Enumerations.d.ts +21 -21
  14. package/lib/cjs/Editing/Enumerations.js +66 -66
  15. package/lib/cjs/Editing/Formats.d.ts +21 -21
  16. package/lib/cjs/Editing/Formats.d.ts.map +1 -1
  17. package/lib/cjs/Editing/Formats.js +61 -61
  18. package/lib/cjs/Editing/Formats.js.map +1 -1
  19. package/lib/cjs/Editing/InvertedUnits.d.ts +17 -17
  20. package/lib/cjs/Editing/InvertedUnits.js +82 -82
  21. package/lib/cjs/Editing/KindOfQuantities.d.ts +28 -28
  22. package/lib/cjs/Editing/KindOfQuantities.js +78 -78
  23. package/lib/cjs/Editing/Mixins.d.ts +22 -22
  24. package/lib/cjs/Editing/Mixins.js +84 -84
  25. package/lib/cjs/Editing/Mutable/MutableCAClass.d.ts +9 -9
  26. package/lib/cjs/Editing/Mutable/MutableCAClass.js +15 -15
  27. package/lib/cjs/Editing/Mutable/MutableClass.d.ts +34 -34
  28. package/lib/cjs/Editing/Mutable/MutableClass.js +22 -22
  29. package/lib/cjs/Editing/Mutable/MutableConstant.d.ts +12 -12
  30. package/lib/cjs/Editing/Mutable/MutableConstant.js +15 -15
  31. package/lib/cjs/Editing/Mutable/MutableEntityClass.d.ts +15 -15
  32. package/lib/cjs/Editing/Mutable/MutableEntityClass.js +59 -59
  33. package/lib/cjs/Editing/Mutable/MutableEnumeration.d.ts +9 -9
  34. package/lib/cjs/Editing/Mutable/MutableEnumeration.js +14 -14
  35. package/lib/cjs/Editing/Mutable/MutableFormat.d.ts +18 -18
  36. package/lib/cjs/Editing/Mutable/MutableFormat.js +15 -15
  37. package/lib/cjs/Editing/Mutable/MutableInvertedUnit.d.ts +10 -10
  38. package/lib/cjs/Editing/Mutable/MutableInvertedUnit.js +15 -15
  39. package/lib/cjs/Editing/Mutable/MutableKindOfQuantity.d.ts +10 -10
  40. package/lib/cjs/Editing/Mutable/MutableKindOfQuantity.js +15 -15
  41. package/lib/cjs/Editing/Mutable/MutableMixin.d.ts +11 -11
  42. package/lib/cjs/Editing/Mutable/MutableMixin.js +15 -15
  43. package/lib/cjs/Editing/Mutable/MutablePhenomenon.d.ts +9 -9
  44. package/lib/cjs/Editing/Mutable/MutablePhenomenon.js +15 -15
  45. package/lib/cjs/Editing/Mutable/MutableProperty.d.ts +8 -8
  46. package/lib/cjs/Editing/Mutable/MutableProperty.js +15 -15
  47. package/lib/cjs/Editing/Mutable/MutablePropertyCategory.d.ts +9 -9
  48. package/lib/cjs/Editing/Mutable/MutablePropertyCategory.js +15 -15
  49. package/lib/cjs/Editing/Mutable/MutableRelationshipClass.d.ts +21 -21
  50. package/lib/cjs/Editing/Mutable/MutableRelationshipClass.js +24 -24
  51. package/lib/cjs/Editing/Mutable/MutableSchema.d.ts +45 -45
  52. package/lib/cjs/Editing/Mutable/MutableSchema.js +17 -17
  53. package/lib/cjs/Editing/Mutable/MutableUnit.d.ts +11 -11
  54. package/lib/cjs/Editing/Mutable/MutableUnit.js +15 -15
  55. package/lib/cjs/Editing/Mutable/MutableUnitSystem.d.ts +8 -8
  56. package/lib/cjs/Editing/Mutable/MutableUnitSystem.js +15 -15
  57. package/lib/cjs/Editing/Phenomena.d.ts +15 -15
  58. package/lib/cjs/Editing/Phenomena.js +44 -44
  59. package/lib/cjs/Editing/PropertyCategories.d.ts +16 -16
  60. package/lib/cjs/Editing/PropertyCategories.js +51 -51
  61. package/lib/cjs/Editing/RelationshipClasses.d.ts +21 -21
  62. package/lib/cjs/Editing/RelationshipClasses.js +68 -68
  63. package/lib/cjs/Editing/Structs.d.ts +19 -19
  64. package/lib/cjs/Editing/Structs.js +57 -57
  65. package/lib/cjs/Editing/UnitSystems.d.ts +15 -15
  66. package/lib/cjs/Editing/UnitSystems.js +41 -41
  67. package/lib/cjs/Editing/Units.d.ts +15 -15
  68. package/lib/cjs/Editing/Units.d.ts.map +1 -1
  69. package/lib/cjs/Editing/Units.js +58 -58
  70. package/lib/cjs/Editing/Units.js.map +1 -1
  71. package/lib/cjs/Validation/Diagnostic.d.ts +321 -321
  72. package/lib/cjs/Validation/Diagnostic.d.ts.map +1 -1
  73. package/lib/cjs/Validation/Diagnostic.js +310 -310
  74. package/lib/cjs/Validation/Diagnostic.js.map +1 -1
  75. package/lib/cjs/Validation/DiagnosticReporter.d.ts +96 -96
  76. package/lib/cjs/Validation/DiagnosticReporter.js +106 -106
  77. package/lib/cjs/Validation/ECRules.d.ts +443 -448
  78. package/lib/cjs/Validation/ECRules.d.ts.map +1 -1
  79. package/lib/cjs/Validation/ECRules.js +579 -593
  80. package/lib/cjs/Validation/ECRules.js.map +1 -1
  81. package/lib/cjs/Validation/LoggingDiagnosticReporter.d.ts +13 -13
  82. package/lib/cjs/Validation/LoggingDiagnosticReporter.js +40 -40
  83. package/lib/cjs/Validation/RuleSuppressionSet.d.ts +59 -59
  84. package/lib/cjs/Validation/RuleSuppressionSet.d.ts.map +1 -1
  85. package/lib/cjs/Validation/RuleSuppressionSet.js +9 -9
  86. package/lib/cjs/Validation/Rules.d.ts +64 -64
  87. package/lib/cjs/Validation/Rules.d.ts.map +1 -1
  88. package/lib/cjs/Validation/Rules.js +9 -9
  89. package/lib/cjs/Validation/SchemaChanges.d.ts +607 -607
  90. package/lib/cjs/Validation/SchemaChanges.js +1135 -1135
  91. package/lib/cjs/Validation/SchemaCompareDiagnostics.d.ts +422 -422
  92. package/lib/cjs/Validation/SchemaCompareDiagnostics.js +111 -111
  93. package/lib/cjs/Validation/SchemaCompareReporter.d.ts +11 -11
  94. package/lib/cjs/Validation/SchemaCompareReporter.js +9 -9
  95. package/lib/cjs/Validation/SchemaCompareResultDelegate.d.ts +236 -236
  96. package/lib/cjs/Validation/SchemaCompareResultDelegate.js +348 -348
  97. package/lib/cjs/Validation/SchemaCompareVisitor.d.ts +119 -119
  98. package/lib/cjs/Validation/SchemaCompareVisitor.js +206 -206
  99. package/lib/cjs/Validation/SchemaComparer.d.ts +171 -171
  100. package/lib/cjs/Validation/SchemaComparer.js +666 -666
  101. package/lib/cjs/Validation/SchemaValidater.d.ts +19 -19
  102. package/lib/cjs/Validation/SchemaValidater.js +61 -61
  103. package/lib/cjs/Validation/SchemaValidationVisitor.d.ts +170 -170
  104. package/lib/cjs/Validation/SchemaValidationVisitor.js +492 -492
  105. package/lib/cjs/Validation/SchemaWalker.d.ts +22 -22
  106. package/lib/cjs/Validation/SchemaWalker.js +51 -51
  107. package/lib/cjs/ecschema-editing.d.ts +33 -33
  108. package/lib/cjs/ecschema-editing.js +58 -54
  109. package/lib/cjs/ecschema-editing.js.map +1 -1
  110. package/package.json +16 -17
@@ -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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.SchemaValidater = exports.ECRuleSet = exports.Diagnostics = exports.DiagnosticCodes = void 0;
18
- __exportStar(require("./Validation/Diagnostic"), exports);
19
- __exportStar(require("./Validation/DiagnosticReporter"), exports);
20
- /* eslint-disable-next-line deprecation/deprecation */
21
- var ECRules_1 = require("./Validation/ECRules");
22
- Object.defineProperty(exports, "DiagnosticCodes", { enumerable: true, get: function () { return ECRules_1.DiagnosticCodes; } });
23
- Object.defineProperty(exports, "Diagnostics", { enumerable: true, get: function () { return ECRules_1.Diagnostics; } });
24
- Object.defineProperty(exports, "ECRuleSet", { enumerable: true, get: function () { return ECRules_1.ECRuleSet; } });
25
- __exportStar(require("./Validation/LoggingDiagnosticReporter"), exports);
26
- __exportStar(require("./Validation/Rules"), exports);
27
- __exportStar(require("./Validation/SchemaValidationVisitor"), exports);
28
- __exportStar(require("./Validation/SchemaWalker"), exports);
29
- __exportStar(require("./Validation/SchemaCompareDiagnostics"), exports);
30
- __exportStar(require("./Validation/SchemaChanges"), exports);
31
- __exportStar(require("./Validation/SchemaComparer"), exports);
32
- __exportStar(require("./Validation/SchemaCompareReporter"), exports);
33
- __exportStar(require("./Editing/Editor"), exports);
34
- var SchemaValidater_1 = require("./Validation/SchemaValidater");
35
- Object.defineProperty(exports, "SchemaValidater", { enumerable: true, get: function () { return SchemaValidater_1.SchemaValidater; } });
36
- /** @docs-package-description
37
- * 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).
38
- */
39
- /**
40
- * @docs-group-description Editing
41
- * Set of classes used to perform editing of ECSchemas.
42
- */
43
- /**
44
- * @docs-group-description Diagnostic
45
- * Set of classes to categorize and manage ECSchema validation results.
46
- */
47
- /**
48
- * @docs-group-description Validation
49
- * Set of classes used to perform validation on ECSchemas.
50
- */
51
- /**
52
- * @docs-group-description Comparison
53
- * Set of classes to enable comparison of ECSchemas.
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;;;;;;;;;;;;;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"]}
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,13 +1,14 @@
1
1
  {
2
2
  "name": "@itwin/ecschema-editing",
3
- "version": "4.0.0-dev.10",
3
+ "version": "4.0.0-dev.100",
4
4
  "description": "ECSchema editing and validation API",
5
5
  "license": "MIT",
6
6
  "main": "lib/cjs/ecschema-editing.js",
7
7
  "typings": "lib/cjs/ecschema-editing",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "https://github.com/iTwin/itwinjs-core/tree/master/core/ecschema-editing"
10
+ "url": "https://github.com/iTwin/itwinjs-core.git",
11
+ "directory": "core/ecschema-editing"
11
12
  },
12
13
  "keywords": [
13
14
  "Bentley",
@@ -22,35 +23,35 @@
22
23
  },
23
24
  "devDependencies": {
24
25
  "@bentley/units-schema": "^1.0.5",
25
- "@itwin/build-tools": "4.0.0-dev.10",
26
- "@itwin/core-bentley": "4.0.0-dev.10",
27
- "@itwin/core-common": "4.0.0-dev.10",
28
- "@itwin/core-quantity": "4.0.0-dev.10",
29
- "@itwin/eslint-plugin": "4.0.0-dev.10",
30
- "@itwin/ecschema-metadata": "4.0.0-dev.10",
26
+ "@itwin/eslint-plugin": "^4.0.0-dev.33",
31
27
  "@types/almost-equal": "1.1.0",
32
28
  "@types/benchmark": "^2.1.0",
33
29
  "@types/chai": "4.3.1",
34
30
  "@types/chai-as-promised": "^7",
35
31
  "@types/mocha": "^8.2.2",
36
- "@types/node": "18.11.5",
32
+ "@types/node": "^18.11.5",
37
33
  "@types/sinon": "^9.0.0",
38
34
  "@xmldom/xmldom": "~0.8.5",
39
35
  "benchmark": "^2.1.4",
40
36
  "chai": "^4.1.2",
41
37
  "chai-as-promised": "^7",
42
38
  "cpx2": "^3.0.0",
43
- "eslint": "^7.11.0",
39
+ "eslint": "^8.36.0",
44
40
  "mocha": "^10.0.0",
45
41
  "nyc": "^15.1.0",
46
42
  "rimraf": "^3.0.2",
47
43
  "sinon": "^9.0.2",
48
- "typescript": "~4.4.0"
44
+ "typescript": "~5.0.2",
45
+ "@itwin/core-bentley": "4.0.0-dev.100",
46
+ "@itwin/build-tools": "4.0.0-dev.100",
47
+ "@itwin/core-common": "4.0.0-dev.100",
48
+ "@itwin/ecschema-metadata": "4.0.0-dev.100",
49
+ "@itwin/core-quantity": "4.0.0-dev.100"
49
50
  },
50
51
  "peerDependencies": {
51
- "@itwin/core-bentley": "^4.0.0-dev.10",
52
- "@itwin/core-quantity": "^4.0.0-dev.10",
53
- "@itwin/ecschema-metadata": "^4.0.0-dev.10"
52
+ "@itwin/core-bentley": "^4.0.0-dev.100",
53
+ "@itwin/core-quantity": "^4.0.0-dev.100",
54
+ "@itwin/ecschema-metadata": "^4.0.0-dev.100"
54
55
  },
55
56
  "nyc": {
56
57
  "extends": "./node_modules/@itwin/build-tools/.nycrc"
@@ -67,7 +68,6 @@
67
68
  },
68
69
  "scripts": {
69
70
  "build": "npm run -s build:cjs && npm run -s createLocalization && npm run -s copy:test-assets",
70
- "build:ci": "npm run -s build",
71
71
  "build:cjs": "tsc 1>&2 --outDir lib/cjs",
72
72
  "clean": "rimraf lib .rush/temp/package-deps*.json",
73
73
  "copy:test-assets": "cpx \"./src/test/assets/**/*\" ./lib/cjs/test/assets",
@@ -78,6 +78,5 @@
78
78
  "cover": "nyc npm -s test",
79
79
  "start": "npm run -s lint && npm run -s clean && npm run -s build && npm run -s test & npm run -s cover & npm run -s docs",
80
80
  "createLocalization": "node ./scripts/createLocalization.js && cpx \"./public/locales/**/*\" ./lib/public"
81
- },
82
- "readme": "# @itwin/ecschema-editing\r\n\r\nCopyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.\r\n\r\n## Description\r\n\r\nThe __@itwin/ecschema-editing__ package contains classes for editing and validating ECSchemas. This package is a work in progress consider everything in alpha.\r\n\r\n## Documentation\r\n\r\nSee the [iTwin.js](https://www.itwinjs.org) documentation for more information.\r\n"
81
+ }
83
82
  }