@itwin/ecschema-editing 5.0.0-dev.90 → 5.0.0-dev.92
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/Validation/DiagnosticReporter.js +1 -1
- package/lib/cjs/Validation/DiagnosticReporter.js.map +1 -1
- package/lib/esm/Differencing/Errors.d.ts +19 -0
- package/lib/esm/Differencing/Errors.d.ts.map +1 -0
- package/lib/esm/Differencing/Errors.js +26 -0
- package/lib/esm/Differencing/Errors.js.map +1 -0
- package/lib/esm/Differencing/SchemaConflicts.d.ts +84 -0
- package/lib/esm/Differencing/SchemaConflicts.d.ts.map +1 -0
- package/lib/esm/Differencing/SchemaConflicts.js +60 -0
- package/lib/esm/Differencing/SchemaConflicts.js.map +1 -0
- package/lib/esm/Differencing/SchemaDiagnosticVisitor.d.ts +41 -0
- package/lib/esm/Differencing/SchemaDiagnosticVisitor.d.ts.map +1 -0
- package/lib/esm/Differencing/SchemaDiagnosticVisitor.js +443 -0
- package/lib/esm/Differencing/SchemaDiagnosticVisitor.js.map +1 -0
- package/lib/esm/Differencing/SchemaDifference.d.ts +357 -0
- package/lib/esm/Differencing/SchemaDifference.d.ts.map +1 -0
- package/lib/esm/Differencing/SchemaDifference.js +106 -0
- package/lib/esm/Differencing/SchemaDifference.js.map +1 -0
- package/lib/esm/Differencing/SchemaDifferenceValidator.d.ts +18 -0
- package/lib/esm/Differencing/SchemaDifferenceValidator.d.ts.map +1 -0
- package/lib/esm/Differencing/SchemaDifferenceValidator.js +521 -0
- package/lib/esm/Differencing/SchemaDifferenceValidator.js.map +1 -0
- package/lib/esm/Differencing/SchemaDifferenceVisitor.d.ts +32 -0
- package/lib/esm/Differencing/SchemaDifferenceVisitor.d.ts.map +1 -0
- package/lib/esm/Differencing/SchemaDifferenceVisitor.js +88 -0
- package/lib/esm/Differencing/SchemaDifferenceVisitor.js.map +1 -0
- package/lib/esm/Differencing/Utils.d.ts +110 -0
- package/lib/esm/Differencing/Utils.d.ts.map +1 -0
- package/lib/esm/Differencing/Utils.js +161 -0
- package/lib/esm/Differencing/Utils.js.map +1 -0
- package/lib/esm/Editing/Constants.d.ts +22 -0
- package/lib/esm/Editing/Constants.d.ts.map +1 -0
- package/lib/esm/Editing/Constants.js +55 -0
- package/lib/esm/Editing/Constants.js.map +1 -0
- package/lib/esm/Editing/CustomAttributes.d.ts +22 -0
- package/lib/esm/Editing/CustomAttributes.d.ts.map +1 -0
- package/lib/esm/Editing/CustomAttributes.js +49 -0
- package/lib/esm/Editing/CustomAttributes.js.map +1 -0
- package/lib/esm/Editing/ECClasses.d.ts +86 -0
- package/lib/esm/Editing/ECClasses.d.ts.map +1 -0
- package/lib/esm/Editing/ECClasses.js +294 -0
- package/lib/esm/Editing/ECClasses.js.map +1 -0
- package/lib/esm/Editing/Editor.d.ts +117 -0
- package/lib/esm/Editing/Editor.d.ts.map +1 -0
- package/lib/esm/Editing/Editor.js +264 -0
- package/lib/esm/Editing/Editor.js.map +1 -0
- package/lib/esm/Editing/Entities.d.ts +38 -0
- package/lib/esm/Editing/Entities.d.ts.map +1 -0
- package/lib/esm/Editing/Entities.js +126 -0
- package/lib/esm/Editing/Entities.js.map +1 -0
- package/lib/esm/Editing/Enumerations.d.ts +25 -0
- package/lib/esm/Editing/Enumerations.d.ts.map +1 -0
- package/lib/esm/Editing/Enumerations.js +90 -0
- package/lib/esm/Editing/Enumerations.js.map +1 -0
- package/lib/esm/Editing/Exception.d.ts +358 -0
- package/lib/esm/Editing/Exception.d.ts.map +1 -0
- package/lib/esm/Editing/Exception.js +471 -0
- package/lib/esm/Editing/Exception.js.map +1 -0
- package/lib/esm/Editing/Formats.d.ts +23 -0
- package/lib/esm/Editing/Formats.d.ts.map +1 -0
- package/lib/esm/Editing/Formats.js +62 -0
- package/lib/esm/Editing/Formats.js.map +1 -0
- package/lib/esm/Editing/InvertedUnits.d.ts +19 -0
- package/lib/esm/Editing/InvertedUnits.d.ts.map +1 -0
- package/lib/esm/Editing/InvertedUnits.js +68 -0
- package/lib/esm/Editing/InvertedUnits.js.map +1 -0
- package/lib/esm/Editing/KindOfQuantities.d.ts +30 -0
- package/lib/esm/Editing/KindOfQuantities.d.ts.map +1 -0
- package/lib/esm/Editing/KindOfQuantities.js +92 -0
- package/lib/esm/Editing/KindOfQuantities.js.map +1 -0
- package/lib/esm/Editing/Mixins.d.ts +35 -0
- package/lib/esm/Editing/Mixins.d.ts.map +1 -0
- package/lib/esm/Editing/Mixins.js +90 -0
- package/lib/esm/Editing/Mixins.js.map +1 -0
- package/lib/esm/Editing/Mutable/MutableArrayProperty.d.ts +10 -0
- package/lib/esm/Editing/Mutable/MutableArrayProperty.d.ts.map +1 -0
- package/lib/esm/Editing/Mutable/MutableArrayProperty.js +12 -0
- package/lib/esm/Editing/Mutable/MutableArrayProperty.js.map +1 -0
- package/lib/esm/Editing/Mutable/MutableCAClass.d.ts +10 -0
- package/lib/esm/Editing/Mutable/MutableCAClass.d.ts.map +1 -0
- package/lib/esm/Editing/Mutable/MutableCAClass.js +12 -0
- package/lib/esm/Editing/Mutable/MutableCAClass.js.map +1 -0
- package/lib/esm/Editing/Mutable/MutableClass.d.ts +39 -0
- package/lib/esm/Editing/Mutable/MutableClass.d.ts.map +1 -0
- package/lib/esm/Editing/Mutable/MutableClass.js +18 -0
- package/lib/esm/Editing/Mutable/MutableClass.js.map +1 -0
- package/lib/esm/Editing/Mutable/MutableConstant.d.ts +14 -0
- package/lib/esm/Editing/Mutable/MutableConstant.d.ts.map +1 -0
- package/lib/esm/Editing/Mutable/MutableConstant.js +12 -0
- package/lib/esm/Editing/Mutable/MutableConstant.js.map +1 -0
- package/lib/esm/Editing/Mutable/MutableEntityClass.d.ts +12 -0
- package/lib/esm/Editing/Mutable/MutableEntityClass.d.ts.map +1 -0
- package/lib/esm/Editing/Mutable/MutableEntityClass.js +12 -0
- package/lib/esm/Editing/Mutable/MutableEntityClass.js.map +1 -0
- package/lib/esm/Editing/Mutable/MutableEnumeration.d.ts +11 -0
- package/lib/esm/Editing/Mutable/MutableEnumeration.d.ts.map +1 -0
- package/lib/esm/Editing/Mutable/MutableEnumeration.js +11 -0
- package/lib/esm/Editing/Mutable/MutableEnumeration.js.map +1 -0
- package/lib/esm/Editing/Mutable/MutableFormat.d.ts +26 -0
- package/lib/esm/Editing/Mutable/MutableFormat.d.ts.map +1 -0
- package/lib/esm/Editing/Mutable/MutableFormat.js +12 -0
- package/lib/esm/Editing/Mutable/MutableFormat.js.map +1 -0
- package/lib/esm/Editing/Mutable/MutableInvertedUnit.d.ts +11 -0
- package/lib/esm/Editing/Mutable/MutableInvertedUnit.d.ts.map +1 -0
- package/lib/esm/Editing/Mutable/MutableInvertedUnit.js +12 -0
- package/lib/esm/Editing/Mutable/MutableInvertedUnit.js.map +1 -0
- package/lib/esm/Editing/Mutable/MutableKindOfQuantity.d.ts +14 -0
- package/lib/esm/Editing/Mutable/MutableKindOfQuantity.d.ts.map +1 -0
- package/lib/esm/Editing/Mutable/MutableKindOfQuantity.js +12 -0
- package/lib/esm/Editing/Mutable/MutableKindOfQuantity.js.map +1 -0
- package/lib/esm/Editing/Mutable/MutableMixin.d.ts +12 -0
- package/lib/esm/Editing/Mutable/MutableMixin.d.ts.map +1 -0
- package/lib/esm/Editing/Mutable/MutableMixin.js +12 -0
- package/lib/esm/Editing/Mutable/MutableMixin.js.map +1 -0
- package/lib/esm/Editing/Mutable/MutableNavigationProperty.d.ts +8 -0
- package/lib/esm/Editing/Mutable/MutableNavigationProperty.d.ts.map +1 -0
- package/lib/esm/Editing/Mutable/MutableNavigationProperty.js +12 -0
- package/lib/esm/Editing/Mutable/MutableNavigationProperty.js.map +1 -0
- package/lib/esm/Editing/Mutable/MutablePhenomenon.d.ts +11 -0
- package/lib/esm/Editing/Mutable/MutablePhenomenon.d.ts.map +1 -0
- package/lib/esm/Editing/Mutable/MutablePhenomenon.js +12 -0
- package/lib/esm/Editing/Mutable/MutablePhenomenon.js.map +1 -0
- package/lib/esm/Editing/Mutable/MutablePrimitiveOrEnumProperty.d.ts +13 -0
- package/lib/esm/Editing/Mutable/MutablePrimitiveOrEnumProperty.d.ts.map +1 -0
- package/lib/esm/Editing/Mutable/MutablePrimitiveOrEnumProperty.js +12 -0
- package/lib/esm/Editing/Mutable/MutablePrimitiveOrEnumProperty.js.map +1 -0
- package/lib/esm/Editing/Mutable/MutableProperty.d.ts +16 -0
- package/lib/esm/Editing/Mutable/MutableProperty.d.ts.map +1 -0
- package/lib/esm/Editing/Mutable/MutableProperty.js +12 -0
- package/lib/esm/Editing/Mutable/MutableProperty.js.map +1 -0
- package/lib/esm/Editing/Mutable/MutablePropertyCategory.d.ts +11 -0
- package/lib/esm/Editing/Mutable/MutablePropertyCategory.d.ts.map +1 -0
- package/lib/esm/Editing/Mutable/MutablePropertyCategory.js +12 -0
- package/lib/esm/Editing/Mutable/MutablePropertyCategory.js.map +1 -0
- package/lib/esm/Editing/Mutable/MutableRelationshipClass.d.ts +30 -0
- package/lib/esm/Editing/Mutable/MutableRelationshipClass.d.ts.map +1 -0
- package/lib/esm/Editing/Mutable/MutableRelationshipClass.js +20 -0
- package/lib/esm/Editing/Mutable/MutableRelationshipClass.js.map +1 -0
- package/lib/esm/Editing/Mutable/MutableSchema.d.ts +51 -0
- package/lib/esm/Editing/Mutable/MutableSchema.d.ts.map +1 -0
- package/lib/esm/Editing/Mutable/MutableSchema.js +14 -0
- package/lib/esm/Editing/Mutable/MutableSchema.js.map +1 -0
- package/lib/esm/Editing/Mutable/MutableSchemaItem.d.ts +11 -0
- package/lib/esm/Editing/Mutable/MutableSchemaItem.d.ts.map +1 -0
- package/lib/esm/Editing/Mutable/MutableSchemaItem.js +12 -0
- package/lib/esm/Editing/Mutable/MutableSchemaItem.js.map +1 -0
- package/lib/esm/Editing/Mutable/MutableStructProperty.d.ts +8 -0
- package/lib/esm/Editing/Mutable/MutableStructProperty.d.ts.map +1 -0
- package/lib/esm/Editing/Mutable/MutableStructProperty.js +12 -0
- package/lib/esm/Editing/Mutable/MutableStructProperty.js.map +1 -0
- package/lib/esm/Editing/Mutable/MutableUnit.d.ts +12 -0
- package/lib/esm/Editing/Mutable/MutableUnit.d.ts.map +1 -0
- package/lib/esm/Editing/Mutable/MutableUnit.js +12 -0
- package/lib/esm/Editing/Mutable/MutableUnit.js.map +1 -0
- package/lib/esm/Editing/Mutable/MutableUnitSystem.d.ts +10 -0
- package/lib/esm/Editing/Mutable/MutableUnitSystem.d.ts.map +1 -0
- package/lib/esm/Editing/Mutable/MutableUnitSystem.js +12 -0
- package/lib/esm/Editing/Mutable/MutableUnitSystem.js.map +1 -0
- package/lib/esm/Editing/Phenomena.d.ts +17 -0
- package/lib/esm/Editing/Phenomena.d.ts.map +1 -0
- package/lib/esm/Editing/Phenomena.js +44 -0
- package/lib/esm/Editing/Phenomena.js.map +1 -0
- package/lib/esm/Editing/Properties.d.ts +206 -0
- package/lib/esm/Editing/Properties.d.ts.map +1 -0
- package/lib/esm/Editing/Properties.js +415 -0
- package/lib/esm/Editing/Properties.js.map +1 -0
- package/lib/esm/Editing/PropertyCategories.d.ts +18 -0
- package/lib/esm/Editing/PropertyCategories.d.ts.map +1 -0
- package/lib/esm/Editing/PropertyCategories.js +54 -0
- package/lib/esm/Editing/PropertyCategories.js.map +1 -0
- package/lib/esm/Editing/RelationshipClasses.d.ts +69 -0
- package/lib/esm/Editing/RelationshipClasses.d.ts.map +1 -0
- package/lib/esm/Editing/RelationshipClasses.js +236 -0
- package/lib/esm/Editing/RelationshipClasses.js.map +1 -0
- package/lib/esm/Editing/SchemaItems.d.ts +42 -0
- package/lib/esm/Editing/SchemaItems.d.ts.map +1 -0
- package/lib/esm/Editing/SchemaItems.js +104 -0
- package/lib/esm/Editing/SchemaItems.js.map +1 -0
- package/lib/esm/Editing/Structs.d.ts +21 -0
- package/lib/esm/Editing/Structs.d.ts.map +1 -0
- package/lib/esm/Editing/Structs.js +47 -0
- package/lib/esm/Editing/Structs.js.map +1 -0
- package/lib/esm/Editing/UnitSystems.d.ts +17 -0
- package/lib/esm/Editing/UnitSystems.d.ts.map +1 -0
- package/lib/esm/Editing/UnitSystems.js +43 -0
- package/lib/esm/Editing/UnitSystems.js.map +1 -0
- package/lib/esm/Editing/Units.d.ts +17 -0
- package/lib/esm/Editing/Units.d.ts.map +1 -0
- package/lib/esm/Editing/Units.js +49 -0
- package/lib/esm/Editing/Units.js.map +1 -0
- package/lib/esm/Merging/ClassMerger.d.ts +9 -0
- package/lib/esm/Merging/ClassMerger.d.ts.map +1 -0
- package/lib/esm/Merging/ClassMerger.js +66 -0
- package/lib/esm/Merging/ClassMerger.js.map +1 -0
- package/lib/esm/Merging/ConstantMerger.d.ts +14 -0
- package/lib/esm/Merging/ConstantMerger.d.ts.map +1 -0
- package/lib/esm/Merging/ConstantMerger.js +64 -0
- package/lib/esm/Merging/ConstantMerger.js.map +1 -0
- package/lib/esm/Merging/CustomAttributeClassMerger.d.ts +14 -0
- package/lib/esm/Merging/CustomAttributeClassMerger.d.ts.map +1 -0
- package/lib/esm/Merging/CustomAttributeClassMerger.js +36 -0
- package/lib/esm/Merging/CustomAttributeClassMerger.js.map +1 -0
- package/lib/esm/Merging/CustomAttributeMerger.d.ts +19 -0
- package/lib/esm/Merging/CustomAttributeMerger.d.ts.map +1 -0
- package/lib/esm/Merging/CustomAttributeMerger.js +66 -0
- package/lib/esm/Merging/CustomAttributeMerger.js.map +1 -0
- package/lib/esm/Merging/Edits/NameMapping.d.ts +22 -0
- package/lib/esm/Merging/Edits/NameMapping.d.ts.map +1 -0
- package/lib/esm/Merging/Edits/NameMapping.js +49 -0
- package/lib/esm/Merging/Edits/NameMapping.js.map +1 -0
- package/lib/esm/Merging/Edits/RenameEditHandler.d.ts +14 -0
- package/lib/esm/Merging/Edits/RenameEditHandler.d.ts.map +1 -0
- package/lib/esm/Merging/Edits/RenameEditHandler.js +62 -0
- package/lib/esm/Merging/Edits/RenameEditHandler.js.map +1 -0
- package/lib/esm/Merging/Edits/SchemaEdits.d.ts +81 -0
- package/lib/esm/Merging/Edits/SchemaEdits.d.ts.map +1 -0
- package/lib/esm/Merging/Edits/SchemaEdits.js +112 -0
- package/lib/esm/Merging/Edits/SchemaEdits.js.map +1 -0
- package/lib/esm/Merging/Edits/SkipEditHandler.d.ts +14 -0
- package/lib/esm/Merging/Edits/SkipEditHandler.d.ts.map +1 -0
- package/lib/esm/Merging/Edits/SkipEditHandler.js +60 -0
- package/lib/esm/Merging/Edits/SkipEditHandler.js.map +1 -0
- package/lib/esm/Merging/EntityClassMerger.d.ts +19 -0
- package/lib/esm/Merging/EntityClassMerger.d.ts.map +1 -0
- package/lib/esm/Merging/EntityClassMerger.js +39 -0
- package/lib/esm/Merging/EntityClassMerger.js.map +1 -0
- package/lib/esm/Merging/EnumerationMerger.d.ts +14 -0
- package/lib/esm/Merging/EnumerationMerger.d.ts.map +1 -0
- package/lib/esm/Merging/EnumerationMerger.js +48 -0
- package/lib/esm/Merging/EnumerationMerger.js.map +1 -0
- package/lib/esm/Merging/EnumeratorMerger.d.ts +14 -0
- package/lib/esm/Merging/EnumeratorMerger.d.ts.map +1 -0
- package/lib/esm/Merging/EnumeratorMerger.js +36 -0
- package/lib/esm/Merging/EnumeratorMerger.js.map +1 -0
- package/lib/esm/Merging/FormatMerger.d.ts +24 -0
- package/lib/esm/Merging/FormatMerger.d.ts.map +1 -0
- package/lib/esm/Merging/FormatMerger.js +137 -0
- package/lib/esm/Merging/FormatMerger.js.map +1 -0
- package/lib/esm/Merging/InvertedUnitMerger.d.ts +14 -0
- package/lib/esm/Merging/InvertedUnitMerger.d.ts.map +1 -0
- package/lib/esm/Merging/InvertedUnitMerger.js +41 -0
- package/lib/esm/Merging/InvertedUnitMerger.js.map +1 -0
- package/lib/esm/Merging/KindOfQuantityMerger.d.ts +19 -0
- package/lib/esm/Merging/KindOfQuantityMerger.d.ts.map +1 -0
- package/lib/esm/Merging/KindOfQuantityMerger.js +89 -0
- package/lib/esm/Merging/KindOfQuantityMerger.js.map +1 -0
- package/lib/esm/Merging/MixinMerger.d.ts +14 -0
- package/lib/esm/Merging/MixinMerger.d.ts.map +1 -0
- package/lib/esm/Merging/MixinMerger.js +33 -0
- package/lib/esm/Merging/MixinMerger.js.map +1 -0
- package/lib/esm/Merging/PhenomenonMerger.d.ts +14 -0
- package/lib/esm/Merging/PhenomenonMerger.d.ts.map +1 -0
- package/lib/esm/Merging/PhenomenonMerger.js +36 -0
- package/lib/esm/Merging/PhenomenonMerger.js.map +1 -0
- package/lib/esm/Merging/PropertyCategoryMerger.d.ts +14 -0
- package/lib/esm/Merging/PropertyCategoryMerger.d.ts.map +1 -0
- package/lib/esm/Merging/PropertyCategoryMerger.js +31 -0
- package/lib/esm/Merging/PropertyCategoryMerger.js.map +1 -0
- package/lib/esm/Merging/PropertyMerger.d.ts +12 -0
- package/lib/esm/Merging/PropertyMerger.d.ts.map +1 -0
- package/lib/esm/Merging/PropertyMerger.js +228 -0
- package/lib/esm/Merging/PropertyMerger.js.map +1 -0
- package/lib/esm/Merging/RelationshipClassMerger.d.ts +27 -0
- package/lib/esm/Merging/RelationshipClassMerger.d.ts.map +1 -0
- package/lib/esm/Merging/RelationshipClassMerger.js +136 -0
- package/lib/esm/Merging/RelationshipClassMerger.js.map +1 -0
- package/lib/esm/Merging/SchemaMerger.d.ts +49 -0
- package/lib/esm/Merging/SchemaMerger.d.ts.map +1 -0
- package/lib/esm/Merging/SchemaMerger.js +117 -0
- package/lib/esm/Merging/SchemaMerger.js.map +1 -0
- package/lib/esm/Merging/SchemaMergingVisitor.d.ts +149 -0
- package/lib/esm/Merging/SchemaMergingVisitor.d.ts.map +1 -0
- package/lib/esm/Merging/SchemaMergingVisitor.js +339 -0
- package/lib/esm/Merging/SchemaMergingVisitor.js.map +1 -0
- package/lib/esm/Merging/SchemaMergingWalker.d.ts +19 -0
- package/lib/esm/Merging/SchemaMergingWalker.d.ts.map +1 -0
- package/lib/esm/Merging/SchemaMergingWalker.js +61 -0
- package/lib/esm/Merging/SchemaMergingWalker.js.map +1 -0
- package/lib/esm/Merging/SchemaReferenceMerger.d.ts +13 -0
- package/lib/esm/Merging/SchemaReferenceMerger.d.ts.map +1 -0
- package/lib/esm/Merging/SchemaReferenceMerger.js +57 -0
- package/lib/esm/Merging/SchemaReferenceMerger.js.map +1 -0
- package/lib/esm/Merging/StructClassMerger.d.ts +14 -0
- package/lib/esm/Merging/StructClassMerger.d.ts.map +1 -0
- package/lib/esm/Merging/StructClassMerger.js +20 -0
- package/lib/esm/Merging/StructClassMerger.js.map +1 -0
- package/lib/esm/Merging/UnitMerger.d.ts +14 -0
- package/lib/esm/Merging/UnitMerger.d.ts.map +1 -0
- package/lib/esm/Merging/UnitMerger.js +58 -0
- package/lib/esm/Merging/UnitMerger.js.map +1 -0
- package/lib/esm/Merging/UnitSystemMerger.d.ts +14 -0
- package/lib/esm/Merging/UnitSystemMerger.d.ts.map +1 -0
- package/lib/esm/Merging/UnitSystemMerger.js +24 -0
- package/lib/esm/Merging/UnitSystemMerger.js.map +1 -0
- package/lib/esm/Merging/Utils.d.ts +34 -0
- package/lib/esm/Merging/Utils.d.ts.map +1 -0
- package/lib/esm/Merging/Utils.js +90 -0
- package/lib/esm/Merging/Utils.js.map +1 -0
- package/lib/esm/Validation/Diagnostic.d.ts +322 -0
- package/lib/esm/Validation/Diagnostic.d.ts.map +1 -0
- package/lib/esm/Validation/Diagnostic.js +295 -0
- package/lib/esm/Validation/Diagnostic.js.map +1 -0
- package/lib/esm/Validation/DiagnosticReporter.d.ts +97 -0
- package/lib/esm/Validation/DiagnosticReporter.d.ts.map +1 -0
- package/lib/esm/Validation/DiagnosticReporter.js +105 -0
- package/lib/esm/Validation/DiagnosticReporter.js.map +1 -0
- package/lib/esm/Validation/ECRules.d.ts +454 -0
- package/lib/esm/Validation/ECRules.d.ts.map +1 -0
- package/lib/esm/Validation/ECRules.js +578 -0
- package/lib/esm/Validation/ECRules.js.map +1 -0
- package/lib/esm/Validation/LoggingDiagnosticReporter.d.ts +14 -0
- package/lib/esm/Validation/LoggingDiagnosticReporter.d.ts.map +1 -0
- package/lib/esm/Validation/LoggingDiagnosticReporter.js +37 -0
- package/lib/esm/Validation/LoggingDiagnosticReporter.js.map +1 -0
- package/lib/esm/Validation/RuleSuppressionSet.d.ts +60 -0
- package/lib/esm/Validation/RuleSuppressionSet.d.ts.map +1 -0
- package/lib/esm/Validation/RuleSuppressionSet.js +9 -0
- package/lib/esm/Validation/RuleSuppressionSet.js.map +1 -0
- package/lib/esm/Validation/Rules.d.ts +65 -0
- package/lib/esm/Validation/Rules.d.ts.map +1 -0
- package/lib/esm/Validation/Rules.js +9 -0
- package/lib/esm/Validation/Rules.js.map +1 -0
- package/lib/esm/Validation/SchemaChanges.d.ts +640 -0
- package/lib/esm/Validation/SchemaChanges.d.ts.map +1 -0
- package/lib/esm/Validation/SchemaChanges.js +1141 -0
- package/lib/esm/Validation/SchemaChanges.js.map +1 -0
- package/lib/esm/Validation/SchemaCompareDiagnostics.d.ts +423 -0
- package/lib/esm/Validation/SchemaCompareDiagnostics.d.ts.map +1 -0
- package/lib/esm/Validation/SchemaCompareDiagnostics.js +109 -0
- package/lib/esm/Validation/SchemaCompareDiagnostics.js.map +1 -0
- package/lib/esm/Validation/SchemaCompareReporter.d.ts +12 -0
- package/lib/esm/Validation/SchemaCompareReporter.d.ts.map +1 -0
- package/lib/esm/Validation/SchemaCompareReporter.js +9 -0
- package/lib/esm/Validation/SchemaCompareReporter.js.map +1 -0
- package/lib/esm/Validation/SchemaCompareResultDelegate.d.ts +237 -0
- package/lib/esm/Validation/SchemaCompareResultDelegate.d.ts.map +1 -0
- package/lib/esm/Validation/SchemaCompareResultDelegate.js +346 -0
- package/lib/esm/Validation/SchemaCompareResultDelegate.js.map +1 -0
- package/lib/esm/Validation/SchemaCompareVisitor.d.ts +120 -0
- package/lib/esm/Validation/SchemaCompareVisitor.d.ts.map +1 -0
- package/lib/esm/Validation/SchemaCompareVisitor.js +222 -0
- package/lib/esm/Validation/SchemaCompareVisitor.js.map +1 -0
- package/lib/esm/Validation/SchemaComparer.d.ts +211 -0
- package/lib/esm/Validation/SchemaComparer.d.ts.map +1 -0
- package/lib/esm/Validation/SchemaComparer.js +770 -0
- package/lib/esm/Validation/SchemaComparer.js.map +1 -0
- package/lib/esm/Validation/SchemaValidater.d.ts +20 -0
- package/lib/esm/Validation/SchemaValidater.d.ts.map +1 -0
- package/lib/esm/Validation/SchemaValidater.js +55 -0
- package/lib/esm/Validation/SchemaValidater.js.map +1 -0
- package/lib/esm/Validation/SchemaValidationVisitor.d.ts +171 -0
- package/lib/esm/Validation/SchemaValidationVisitor.d.ts.map +1 -0
- package/lib/esm/Validation/SchemaValidationVisitor.js +488 -0
- package/lib/esm/Validation/SchemaValidationVisitor.js.map +1 -0
- package/lib/esm/Validation/SchemaWalker.d.ts +23 -0
- package/lib/esm/Validation/SchemaWalker.d.ts.map +1 -0
- package/lib/esm/Validation/SchemaWalker.js +50 -0
- package/lib/esm/Validation/SchemaWalker.js.map +1 -0
- package/lib/esm/ecschema-editing.d.ts +49 -0
- package/lib/esm/ecschema-editing.d.ts.map +1 -0
- package/lib/esm/ecschema-editing.js +52 -0
- package/lib/esm/ecschema-editing.js.map +1 -0
- package/package.json +12 -10
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module Validation
|
|
3
|
+
*/
|
|
4
|
+
import { AnyClass, AnyProperty, CustomAttribute, CustomAttributeContainerProps, EntityClass, Enumeration, RelationshipClass, RelationshipConstraint, Schema } from "@itwin/ecschema-metadata";
|
|
5
|
+
import { ClassDiagnostic, CustomAttributeContainerDiagnostic, DiagnosticType, PropertyDiagnostic, RelationshipConstraintDiagnostic, SchemaDiagnostic, SchemaItemDiagnostic } from "./Diagnostic";
|
|
6
|
+
import { IRuleSet } from "./Rules";
|
|
7
|
+
/**
|
|
8
|
+
* The unique diagnostic codes for ECObjects rules.
|
|
9
|
+
*
|
|
10
|
+
* To provide meaning to code values, with anticipation
|
|
11
|
+
* of future rules for all current EC Types, the following
|
|
12
|
+
* value ranges should be used:
|
|
13
|
+
*
|
|
14
|
+
* - Schema: 000-099
|
|
15
|
+
* - Class: 100-199
|
|
16
|
+
* - Constant: 200-299
|
|
17
|
+
* - CustomAttribute 300-399
|
|
18
|
+
* - CustomAttributeClass: 400-499
|
|
19
|
+
* - CustomAttributeContainer: 500-599
|
|
20
|
+
* - EntityClass: 600-699
|
|
21
|
+
* - Enumeration: 700-799
|
|
22
|
+
* - Format: 800-899
|
|
23
|
+
* - InvertedUnit: 900-999
|
|
24
|
+
* - KindOfQuantity: 1000-1099
|
|
25
|
+
* - Mixin: 1100-1199
|
|
26
|
+
* - Phenomenon: 1200-1299
|
|
27
|
+
* - Property: 1300-1399
|
|
28
|
+
* - PropertyCategory: 1400-1499
|
|
29
|
+
* - RelationshipClass: 1500-1599
|
|
30
|
+
* - RelationshipConstraint: 1600-1699
|
|
31
|
+
* - StructClass: 1700-1799
|
|
32
|
+
* - Unit: 1800-1899
|
|
33
|
+
* - UnitSystem: 1900-1999
|
|
34
|
+
* @beta
|
|
35
|
+
*/
|
|
36
|
+
export declare const DiagnosticCodes: {
|
|
37
|
+
BaseClassIsSealed: string;
|
|
38
|
+
BaseClassOfDifferentType: string;
|
|
39
|
+
AbstractClassWithNonAbstractBase: string;
|
|
40
|
+
CustomAttributeNotOfConcreteClass: string;
|
|
41
|
+
CustomAttributeSchemaMustBeReferenced: string;
|
|
42
|
+
CustomAttributeClassNotFound: string;
|
|
43
|
+
EnumerationTypeUnsupported: string;
|
|
44
|
+
MixinAppliedToClassMustDeriveFromConstraint: string;
|
|
45
|
+
IncompatibleValueTypePropertyOverride: string;
|
|
46
|
+
IncompatibleTypePropertyOverride: string;
|
|
47
|
+
IncompatibleUnitPropertyOverride: string;
|
|
48
|
+
AbstractConstraintMustNarrowBaseConstraints: string;
|
|
49
|
+
DerivedConstraintsMustNarrowBaseConstraints: string;
|
|
50
|
+
ConstraintClassesDeriveFromAbstractConstraint: string;
|
|
51
|
+
AtLeastOneConstraintClassDefined: string;
|
|
52
|
+
AbstractConstraintMustExistWithMultipleConstraints: string;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* The list of [[IDiagnostic]] implementation classes used by the EC rule implementations.
|
|
56
|
+
* @beta
|
|
57
|
+
*/
|
|
58
|
+
export declare const Diagnostics: {
|
|
59
|
+
/** EC-001: Required message parameters: schema name, referenced schema name */
|
|
60
|
+
SupplementalSchemasCannotBeReferenced: {
|
|
61
|
+
new (schema: Schema, messageArgs: [string, string], category?: import("./Diagnostic").DiagnosticCategory): {
|
|
62
|
+
readonly code: string;
|
|
63
|
+
readonly messageText: string;
|
|
64
|
+
readonly schema: Schema;
|
|
65
|
+
readonly diagnosticType: DiagnosticType;
|
|
66
|
+
ecDefinition: Schema;
|
|
67
|
+
messageArgs?: [string, string] | undefined;
|
|
68
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
69
|
+
};
|
|
70
|
+
code: string;
|
|
71
|
+
diagnosticType: DiagnosticType;
|
|
72
|
+
};
|
|
73
|
+
/** EC-002: Required message parameters: schema name, reference schema alias, first schema reference name, second schema reference name. */
|
|
74
|
+
SchemaRefAliasMustBeUnique: {
|
|
75
|
+
new (schema: Schema, messageArgs: [string, string, string, string], category?: import("./Diagnostic").DiagnosticCategory): {
|
|
76
|
+
readonly code: string;
|
|
77
|
+
readonly messageText: string;
|
|
78
|
+
readonly schema: Schema;
|
|
79
|
+
readonly diagnosticType: DiagnosticType;
|
|
80
|
+
ecDefinition: Schema;
|
|
81
|
+
messageArgs?: [string, string, string, string] | undefined;
|
|
82
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
83
|
+
};
|
|
84
|
+
code: string;
|
|
85
|
+
diagnosticType: DiagnosticType;
|
|
86
|
+
};
|
|
87
|
+
/** EC-003: Required message parameters: schema name, cycle text */
|
|
88
|
+
ReferenceCyclesNotAllowed: {
|
|
89
|
+
new (schema: Schema, messageArgs: [string, string], category?: import("./Diagnostic").DiagnosticCategory): {
|
|
90
|
+
readonly code: string;
|
|
91
|
+
readonly messageText: string;
|
|
92
|
+
readonly schema: Schema;
|
|
93
|
+
readonly diagnosticType: DiagnosticType;
|
|
94
|
+
ecDefinition: Schema;
|
|
95
|
+
messageArgs?: [string, string] | undefined;
|
|
96
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
97
|
+
};
|
|
98
|
+
code: string;
|
|
99
|
+
diagnosticType: DiagnosticType;
|
|
100
|
+
};
|
|
101
|
+
/** EC-100: Required message parameters: childClass.FullName, baseClass.FullName */
|
|
102
|
+
BaseClassIsSealed: {
|
|
103
|
+
new (ecClass: AnyClass, messageArgs: [string, string], category?: import("./Diagnostic").DiagnosticCategory): {
|
|
104
|
+
readonly code: string;
|
|
105
|
+
readonly messageText: string;
|
|
106
|
+
readonly schema: Schema;
|
|
107
|
+
readonly diagnosticType: DiagnosticType;
|
|
108
|
+
ecDefinition: AnyClass;
|
|
109
|
+
messageArgs?: [string, string] | undefined;
|
|
110
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
111
|
+
};
|
|
112
|
+
diagnosticType: DiagnosticType;
|
|
113
|
+
};
|
|
114
|
+
/** EC-101: Required message parameters: childClass.FullName, baseClass.FullName, baseClass.schemaItemType */
|
|
115
|
+
BaseClassIsOfDifferentType: {
|
|
116
|
+
new (ecClass: AnyClass, messageArgs: [string, string, string], category?: import("./Diagnostic").DiagnosticCategory): {
|
|
117
|
+
readonly code: string;
|
|
118
|
+
readonly messageText: string;
|
|
119
|
+
readonly schema: Schema;
|
|
120
|
+
readonly diagnosticType: DiagnosticType;
|
|
121
|
+
ecDefinition: AnyClass;
|
|
122
|
+
messageArgs?: [string, string, string] | undefined;
|
|
123
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
124
|
+
};
|
|
125
|
+
diagnosticType: DiagnosticType;
|
|
126
|
+
};
|
|
127
|
+
/** **DEPRECATED** EC-102: Required message parameters: childClass.FullName, baseClass.FullName */
|
|
128
|
+
AbstractClassWithNonAbstractBase: {
|
|
129
|
+
new (ecClass: AnyClass, messageArgs: [string, string], category?: import("./Diagnostic").DiagnosticCategory): {
|
|
130
|
+
readonly code: string;
|
|
131
|
+
readonly messageText: string;
|
|
132
|
+
readonly schema: Schema;
|
|
133
|
+
readonly diagnosticType: DiagnosticType;
|
|
134
|
+
ecDefinition: AnyClass;
|
|
135
|
+
messageArgs?: [string, string] | undefined;
|
|
136
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
137
|
+
};
|
|
138
|
+
diagnosticType: DiagnosticType;
|
|
139
|
+
};
|
|
140
|
+
/** EC-500: Required message parameters: CustomAttribute container name and CustomAttributeClass name. */
|
|
141
|
+
CustomAttributeNotOfConcreteClass: {
|
|
142
|
+
new (container: CustomAttributeContainerProps, messageArgs: [string, string], category?: import("./Diagnostic").DiagnosticCategory): {
|
|
143
|
+
readonly code: string;
|
|
144
|
+
readonly messageText: string;
|
|
145
|
+
readonly schema: Schema;
|
|
146
|
+
readonly diagnosticType: DiagnosticType;
|
|
147
|
+
ecDefinition: CustomAttributeContainerProps;
|
|
148
|
+
messageArgs?: [string, string] | undefined;
|
|
149
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
/** EC-501: Required message parameters: CustomAttribute container name, CustomAttributeClass name, CustomAttributeClass Schema name. */
|
|
153
|
+
CustomAttributeSchemaMustBeReferenced: {
|
|
154
|
+
new (container: CustomAttributeContainerProps, messageArgs: [string, string], category?: import("./Diagnostic").DiagnosticCategory): {
|
|
155
|
+
readonly code: string;
|
|
156
|
+
readonly messageText: string;
|
|
157
|
+
readonly schema: Schema;
|
|
158
|
+
readonly diagnosticType: DiagnosticType;
|
|
159
|
+
ecDefinition: CustomAttributeContainerProps;
|
|
160
|
+
messageArgs?: [string, string] | undefined;
|
|
161
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
/** EC-502: Required message parameters: CustomAttribute container name and CustomAttributeClass name. */
|
|
165
|
+
CustomAttributeClassNotFound: {
|
|
166
|
+
new (container: CustomAttributeContainerProps, messageArgs: [string, string], category?: import("./Diagnostic").DiagnosticCategory): {
|
|
167
|
+
readonly code: string;
|
|
168
|
+
readonly messageText: string;
|
|
169
|
+
readonly schema: Schema;
|
|
170
|
+
readonly diagnosticType: DiagnosticType;
|
|
171
|
+
ecDefinition: CustomAttributeContainerProps;
|
|
172
|
+
messageArgs?: [string, string] | undefined;
|
|
173
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
/** EC-700: Required message parameters: Enumeration name */
|
|
177
|
+
EnumerationTypeUnsupported: {
|
|
178
|
+
new (ecDefinition: import("@itwin/ecschema-metadata").SchemaItem, messageArgs: [string], category?: import("./Diagnostic").DiagnosticCategory): {
|
|
179
|
+
readonly code: string;
|
|
180
|
+
readonly messageText: string;
|
|
181
|
+
readonly schema: Schema;
|
|
182
|
+
readonly diagnosticType: DiagnosticType;
|
|
183
|
+
ecDefinition: Enumeration;
|
|
184
|
+
messageArgs?: [string] | undefined;
|
|
185
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
186
|
+
};
|
|
187
|
+
diagnosticType: DiagnosticType;
|
|
188
|
+
};
|
|
189
|
+
/** EC-1100: Required message parameters: mixin class fullName, class fullName, applies to constraint class fullName */
|
|
190
|
+
MixinAppliedToClassMustDeriveFromConstraint: {
|
|
191
|
+
new (ecDefinition: import("@itwin/ecschema-metadata").SchemaItem, messageArgs: [string, string, string], category?: import("./Diagnostic").DiagnosticCategory): {
|
|
192
|
+
readonly code: string;
|
|
193
|
+
readonly messageText: string;
|
|
194
|
+
readonly schema: Schema;
|
|
195
|
+
readonly diagnosticType: DiagnosticType;
|
|
196
|
+
ecDefinition: EntityClass;
|
|
197
|
+
messageArgs?: [string, string, string] | undefined;
|
|
198
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
199
|
+
};
|
|
200
|
+
diagnosticType: DiagnosticType;
|
|
201
|
+
};
|
|
202
|
+
/** EC-1300: Required message parameters: childClass.FullName, property name, baseClass.FullName, base value type, child value type */
|
|
203
|
+
IncompatibleValueTypePropertyOverride: {
|
|
204
|
+
new (property: AnyProperty, messageArgs?: [string, string, string, string, string] | undefined, category?: import("./Diagnostic").DiagnosticCategory): {
|
|
205
|
+
readonly code: string;
|
|
206
|
+
readonly messageText: string;
|
|
207
|
+
readonly schema: Schema;
|
|
208
|
+
readonly diagnosticType: DiagnosticType;
|
|
209
|
+
ecDefinition: AnyProperty;
|
|
210
|
+
messageArgs?: [string, string, string, string, string] | undefined;
|
|
211
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
212
|
+
};
|
|
213
|
+
code: string;
|
|
214
|
+
};
|
|
215
|
+
/** EC-1301: Required message parameters: childClass.FullName, property name, baseClass.FullName, base property type, child property type */
|
|
216
|
+
IncompatibleTypePropertyOverride: {
|
|
217
|
+
new (property: AnyProperty, messageArgs?: [string, string, string, string, string] | undefined, category?: import("./Diagnostic").DiagnosticCategory): {
|
|
218
|
+
readonly code: string;
|
|
219
|
+
readonly messageText: string;
|
|
220
|
+
readonly schema: Schema;
|
|
221
|
+
readonly diagnosticType: DiagnosticType;
|
|
222
|
+
ecDefinition: AnyProperty;
|
|
223
|
+
messageArgs?: [string, string, string, string, string] | undefined;
|
|
224
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
225
|
+
};
|
|
226
|
+
code: string;
|
|
227
|
+
};
|
|
228
|
+
/** EC-1302: Required message parameters: childClass.Name, property name, baseClass.Name, baseClass Koq name, baseClass Koq persistence unit name, child class Koq persistence unit name, child class Koq name */
|
|
229
|
+
IncompatibleUnitPropertyOverride: {
|
|
230
|
+
new (property: AnyProperty, messageArgs?: [string, string, string, string, string, string, string] | undefined, category?: import("./Diagnostic").DiagnosticCategory): {
|
|
231
|
+
readonly code: string;
|
|
232
|
+
readonly messageText: string;
|
|
233
|
+
readonly schema: Schema;
|
|
234
|
+
readonly diagnosticType: DiagnosticType;
|
|
235
|
+
ecDefinition: AnyProperty;
|
|
236
|
+
messageArgs?: [string, string, string, string, string, string, string] | undefined;
|
|
237
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
238
|
+
};
|
|
239
|
+
code: string;
|
|
240
|
+
};
|
|
241
|
+
/** EC-1303: Required message parameters: property.fullName, navigation relationship.fullName */
|
|
242
|
+
NavigationRelationshipMustBeRoot: {
|
|
243
|
+
new (property: AnyProperty, messageArgs?: [string, string] | undefined, category?: import("./Diagnostic").DiagnosticCategory): {
|
|
244
|
+
readonly code: string;
|
|
245
|
+
readonly messageText: string;
|
|
246
|
+
readonly schema: Schema;
|
|
247
|
+
readonly diagnosticType: DiagnosticType;
|
|
248
|
+
ecDefinition: AnyProperty;
|
|
249
|
+
messageArgs?: [string, string] | undefined;
|
|
250
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
251
|
+
};
|
|
252
|
+
code: string;
|
|
253
|
+
};
|
|
254
|
+
/** EC-1304: Required message parameters: property.fullName, navigation relationship.fullName */
|
|
255
|
+
NavigationTargetMustHaveSingularMultiplicity: {
|
|
256
|
+
new (property: AnyProperty, messageArgs?: [string, string, string] | undefined, category?: import("./Diagnostic").DiagnosticCategory): {
|
|
257
|
+
readonly code: string;
|
|
258
|
+
readonly messageText: string;
|
|
259
|
+
readonly schema: Schema;
|
|
260
|
+
readonly diagnosticType: DiagnosticType;
|
|
261
|
+
ecDefinition: AnyProperty;
|
|
262
|
+
messageArgs?: [string, string, string] | undefined;
|
|
263
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
264
|
+
};
|
|
265
|
+
code: string;
|
|
266
|
+
};
|
|
267
|
+
/** EC-1305: Required message parameters: property.fullName, navigation relationship.fullName */
|
|
268
|
+
NavigationRelationshipAbstractConstraintEntityOrMixin: {
|
|
269
|
+
new (property: AnyProperty, messageArgs?: [string, string] | undefined, category?: import("./Diagnostic").DiagnosticCategory): {
|
|
270
|
+
readonly code: string;
|
|
271
|
+
readonly messageText: string;
|
|
272
|
+
readonly schema: Schema;
|
|
273
|
+
readonly diagnosticType: DiagnosticType;
|
|
274
|
+
ecDefinition: AnyProperty;
|
|
275
|
+
messageArgs?: [string, string] | undefined;
|
|
276
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
277
|
+
};
|
|
278
|
+
code: string;
|
|
279
|
+
};
|
|
280
|
+
/** EC-1306: Required message parameters: class name, property name, navigation relationship.fullName */
|
|
281
|
+
NavigationClassMustBeAConstraintClassOfRelationship: {
|
|
282
|
+
new (property: AnyProperty, messageArgs?: [string, string, string, string] | undefined, category?: import("./Diagnostic").DiagnosticCategory): {
|
|
283
|
+
readonly code: string;
|
|
284
|
+
readonly messageText: string;
|
|
285
|
+
readonly schema: Schema;
|
|
286
|
+
readonly diagnosticType: DiagnosticType;
|
|
287
|
+
ecDefinition: AnyProperty;
|
|
288
|
+
messageArgs?: [string, string, string, string] | undefined;
|
|
289
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
290
|
+
};
|
|
291
|
+
code: string;
|
|
292
|
+
};
|
|
293
|
+
/** EC-1500: Required message parameters: abstract constraint class name, relationship end (source/target), relationship name, base relationship name */
|
|
294
|
+
AbstractConstraintMustNarrowBaseConstraints: {
|
|
295
|
+
new (ecDefinition: import("@itwin/ecschema-metadata").SchemaItem, messageArgs: [string, string, string, string], category?: import("./Diagnostic").DiagnosticCategory): {
|
|
296
|
+
readonly code: string;
|
|
297
|
+
readonly messageText: string;
|
|
298
|
+
readonly schema: Schema;
|
|
299
|
+
readonly diagnosticType: DiagnosticType;
|
|
300
|
+
ecDefinition: RelationshipClass;
|
|
301
|
+
messageArgs?: [string, string, string, string] | undefined;
|
|
302
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
303
|
+
};
|
|
304
|
+
diagnosticType: DiagnosticType;
|
|
305
|
+
};
|
|
306
|
+
/** EC-1501: Required message parameters: constraint class name, relationship end (source/target), relationship name, base relationship name */
|
|
307
|
+
DerivedConstraintsMustNarrowBaseConstraints: {
|
|
308
|
+
new (ecDefinition: import("@itwin/ecschema-metadata").SchemaItem, messageArgs: [string, string, string, string], category?: import("./Diagnostic").DiagnosticCategory): {
|
|
309
|
+
readonly code: string;
|
|
310
|
+
readonly messageText: string;
|
|
311
|
+
readonly schema: Schema;
|
|
312
|
+
readonly diagnosticType: DiagnosticType;
|
|
313
|
+
ecDefinition: RelationshipClass;
|
|
314
|
+
messageArgs?: [string, string, string, string] | undefined;
|
|
315
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
316
|
+
};
|
|
317
|
+
diagnosticType: DiagnosticType;
|
|
318
|
+
};
|
|
319
|
+
/** EC-1502: Required message parameters: constraint class name, relationship end (source/target), relationship name, abstract constraint class name */
|
|
320
|
+
ConstraintClassesDeriveFromAbstractConstraint: {
|
|
321
|
+
new (ecDefinition: import("@itwin/ecschema-metadata").SchemaItem, messageArgs: [string, string, string, string], category?: import("./Diagnostic").DiagnosticCategory): {
|
|
322
|
+
readonly code: string;
|
|
323
|
+
readonly messageText: string;
|
|
324
|
+
readonly schema: Schema;
|
|
325
|
+
readonly diagnosticType: DiagnosticType;
|
|
326
|
+
ecDefinition: RelationshipClass;
|
|
327
|
+
messageArgs?: [string, string, string, string] | undefined;
|
|
328
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
329
|
+
};
|
|
330
|
+
diagnosticType: DiagnosticType;
|
|
331
|
+
};
|
|
332
|
+
/** EC-1600: Required message parameters: relationship end (source/target), relationship name */
|
|
333
|
+
AtLeastOneConstraintClassDefined: {
|
|
334
|
+
new (constraint: RelationshipConstraint, messageArgs: [string, string], category?: import("./Diagnostic").DiagnosticCategory): {
|
|
335
|
+
readonly code: string;
|
|
336
|
+
readonly messageText: string;
|
|
337
|
+
readonly schema: Schema;
|
|
338
|
+
readonly diagnosticType: DiagnosticType;
|
|
339
|
+
ecDefinition: RelationshipConstraint;
|
|
340
|
+
messageArgs?: [string, string] | undefined;
|
|
341
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
/** EC-1601: Required message parameters: relationship end (source/target), relationship name */
|
|
345
|
+
AbstractConstraintMustExistWithMultipleConstraints: {
|
|
346
|
+
new (constraint: RelationshipConstraint, messageArgs: [string, string], category?: import("./Diagnostic").DiagnosticCategory): {
|
|
347
|
+
readonly code: string;
|
|
348
|
+
readonly messageText: string;
|
|
349
|
+
readonly schema: Schema;
|
|
350
|
+
readonly diagnosticType: DiagnosticType;
|
|
351
|
+
ecDefinition: RelationshipConstraint;
|
|
352
|
+
messageArgs?: [string, string] | undefined;
|
|
353
|
+
category: import("./Diagnostic").DiagnosticCategory;
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
/**
|
|
358
|
+
* All schema validation rules that fall under the category of ECObjects.
|
|
359
|
+
* @beta
|
|
360
|
+
*/
|
|
361
|
+
export declare const ECRuleSet: IRuleSet;
|
|
362
|
+
/**
|
|
363
|
+
* Validates schema references against multiple EC rules.
|
|
364
|
+
* @param schema The schema to validate.
|
|
365
|
+
* @internal
|
|
366
|
+
*/
|
|
367
|
+
export declare function validateSchemaReferences(schema: Schema): AsyncIterable<SchemaDiagnostic<any[]>>;
|
|
368
|
+
/**
|
|
369
|
+
* Validates schema references against multiple EC rules.
|
|
370
|
+
* @param schema The schema to validate.
|
|
371
|
+
* @internal
|
|
372
|
+
*/
|
|
373
|
+
export declare function validateSchemaReferencesSync(schema: Schema): Iterable<SchemaDiagnostic<any[]>>;
|
|
374
|
+
/**
|
|
375
|
+
* EC Rule: Sealed classes cannot be a base class.
|
|
376
|
+
* @internal
|
|
377
|
+
*/
|
|
378
|
+
export declare function baseClassIsSealed(ecClass: AnyClass): AsyncIterable<ClassDiagnostic<any[]>>;
|
|
379
|
+
/**
|
|
380
|
+
* EC Rule: Base and child class must be of the same type (i.e. Entity, Mixin, Relationship, etc.)
|
|
381
|
+
* @internal
|
|
382
|
+
*/
|
|
383
|
+
export declare function baseClassIsOfDifferentType(ecClass: AnyClass): AsyncIterable<ClassDiagnostic<any[]>>;
|
|
384
|
+
/**
|
|
385
|
+
* EC Rule: When overriding a class primitive property, the child and base property must be of the same type (string, number, etc...).
|
|
386
|
+
* @internal
|
|
387
|
+
*/
|
|
388
|
+
export declare function incompatibleValueTypePropertyOverride(property: AnyProperty): AsyncIterable<PropertyDiagnostic<any[]>>;
|
|
389
|
+
/**
|
|
390
|
+
* EC Rule: When overriding a class property, the child and base property must be of the same property type (primitive, struct, enumeration, etc...).
|
|
391
|
+
* @internal
|
|
392
|
+
*/
|
|
393
|
+
export declare function incompatibleTypePropertyOverride(property: AnyProperty): AsyncIterable<PropertyDiagnostic<any[]>>;
|
|
394
|
+
/**
|
|
395
|
+
* EC Rule: When overriding a kindOfQuantity property, the child and base property units must be the same.
|
|
396
|
+
* @internal
|
|
397
|
+
*/
|
|
398
|
+
export declare function incompatibleUnitPropertyOverride(property: AnyProperty): AsyncIterable<PropertyDiagnostic<any[]>>;
|
|
399
|
+
/**
|
|
400
|
+
* Validates Navigation Properties. EC Rules: 1303, 1304
|
|
401
|
+
* @internal
|
|
402
|
+
*/
|
|
403
|
+
export declare function validateNavigationProperty(property: AnyProperty): AsyncIterable<PropertyDiagnostic<any[]>>;
|
|
404
|
+
/**
|
|
405
|
+
* Validates a Relationship class and yields EC-1500, EC-1501, and EC-1502 rule violations.
|
|
406
|
+
* @internal
|
|
407
|
+
*/
|
|
408
|
+
export declare function validateRelationship(ecClass: RelationshipClass): AsyncIterable<SchemaItemDiagnostic<RelationshipClass, any[]>>;
|
|
409
|
+
/**
|
|
410
|
+
* EC Rule: When overriding a RelationshipClass, the derived abstract constraint must narrow the base constraint classes.
|
|
411
|
+
* @internal
|
|
412
|
+
*/
|
|
413
|
+
export declare function abstractConstraintMustNarrowBaseConstraints(ecClass: RelationshipClass): AsyncIterable<SchemaItemDiagnostic<RelationshipClass, any[]>>;
|
|
414
|
+
/**
|
|
415
|
+
* EC Rule: When overriding a RelationshipClass, derived constraint classes must narrow base constraint classes.
|
|
416
|
+
* @internal
|
|
417
|
+
*/
|
|
418
|
+
export declare function derivedConstraintsMustNarrowBaseConstraints(ecClass: RelationshipClass): AsyncIterable<SchemaItemDiagnostic<RelationshipClass, any[]>>;
|
|
419
|
+
/**
|
|
420
|
+
* EC Rule: All constraint classes must have a common base class specified in the abstract constraint.
|
|
421
|
+
* @internal
|
|
422
|
+
*/
|
|
423
|
+
export declare function constraintClassesDeriveFromAbstractConstraint(ecClass: RelationshipClass): AsyncIterable<SchemaItemDiagnostic<RelationshipClass, any[]>>;
|
|
424
|
+
/**
|
|
425
|
+
* Validates a RelationshipConstraint and yields EC-1600 and EC-1601 rule violations.
|
|
426
|
+
* @internal
|
|
427
|
+
*/
|
|
428
|
+
export declare function validateRelationshipConstraint(constraint: RelationshipConstraint): AsyncIterable<RelationshipConstraintDiagnostic<any[]>>;
|
|
429
|
+
/**
|
|
430
|
+
* EC Rule: At least on concrete constraint class must be defined in the list of constraint classes.
|
|
431
|
+
* @internal
|
|
432
|
+
*/
|
|
433
|
+
export declare function atLeastOneConstraintClassDefined(constraint: RelationshipConstraint): AsyncIterable<RelationshipConstraintDiagnostic<any[]>>;
|
|
434
|
+
/**
|
|
435
|
+
* EC Rule: If multiple constraints exist, an abstract constraint must be defined.
|
|
436
|
+
* @internal
|
|
437
|
+
*/
|
|
438
|
+
export declare function abstractConstraintMustExistWithMultipleConstraints(constraint: RelationshipConstraint): AsyncIterable<RelationshipConstraintDiagnostic<any[]>>;
|
|
439
|
+
/**
|
|
440
|
+
* EC Rule: Enumeration type must be a string or integer
|
|
441
|
+
* @internal
|
|
442
|
+
*/
|
|
443
|
+
export declare function enumerationTypeUnsupported(enumeration: Enumeration): AsyncIterable<SchemaItemDiagnostic<Enumeration, any[]>>;
|
|
444
|
+
/**
|
|
445
|
+
* EC Rule: Mixin applied to class must derived from the Mixin appliesTo constraint.
|
|
446
|
+
* @internal
|
|
447
|
+
*/
|
|
448
|
+
export declare function mixinAppliedToClassMustDeriveFromConstraint(entityClass: EntityClass): AsyncIterable<SchemaItemDiagnostic<EntityClass, any[]>>;
|
|
449
|
+
/**
|
|
450
|
+
* Validates a custom attribute instance and yields EC-500, EC-501, and EC-502 rule violations.
|
|
451
|
+
* @internal
|
|
452
|
+
*/
|
|
453
|
+
export declare function validateCustomAttributeInstance(container: CustomAttributeContainerProps, customAttribute: CustomAttribute): AsyncIterable<CustomAttributeContainerDiagnostic<any[]>>;
|
|
454
|
+
//# sourceMappingURL=ECRules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ECRules.d.ts","sourceRoot":"","sources":["../../../src/Validation/ECRules.ts"],"names":[],"mappings":"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"}
|