@itwin/ecschema-editing 3.4.0-dev.48 → 3.4.0-dev.50
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/Editing/Constants.d.ts +20 -20
- package/lib/cjs/Editing/Constants.js +64 -64
- package/lib/cjs/Editing/Constants.js.map +1 -1
- package/lib/cjs/Editing/CustomAttributes.d.ts +20 -20
- package/lib/cjs/Editing/CustomAttributes.js +62 -62
- package/lib/cjs/Editing/CustomAttributes.js.map +1 -1
- package/lib/cjs/Editing/ECClasses.d.ts +54 -54
- package/lib/cjs/Editing/ECClasses.js +269 -269
- package/lib/cjs/Editing/ECClasses.js.map +1 -1
- package/lib/cjs/Editing/Editor.d.ts +112 -112
- package/lib/cjs/Editing/Editor.js +166 -166
- package/lib/cjs/Editing/Editor.js.map +1 -1
- package/lib/cjs/Editing/Entities.d.ts +25 -25
- package/lib/cjs/Editing/Entities.js +124 -124
- package/lib/cjs/Editing/Entities.js.map +1 -1
- package/lib/cjs/Editing/Enumerations.d.ts +21 -21
- package/lib/cjs/Editing/Enumerations.js +76 -76
- package/lib/cjs/Editing/Enumerations.js.map +1 -1
- package/lib/cjs/Editing/Formats.d.ts +21 -21
- package/lib/cjs/Editing/Formats.js +63 -63
- package/lib/cjs/Editing/Formats.js.map +1 -1
- package/lib/cjs/Editing/InvertedUnits.d.ts +17 -17
- package/lib/cjs/Editing/InvertedUnits.js +85 -85
- package/lib/cjs/Editing/InvertedUnits.js.map +1 -1
- package/lib/cjs/Editing/KindOfQuantities.d.ts +28 -28
- package/lib/cjs/Editing/KindOfQuantities.js +79 -79
- package/lib/cjs/Editing/KindOfQuantities.js.map +1 -1
- package/lib/cjs/Editing/Mixins.d.ts +22 -22
- package/lib/cjs/Editing/Mixins.js +88 -88
- package/lib/cjs/Editing/Mixins.js.map +1 -1
- package/lib/cjs/Editing/Mutable/MutableCAClass.d.ts +9 -9
- package/lib/cjs/Editing/Mutable/MutableCAClass.js +15 -15
- package/lib/cjs/Editing/Mutable/MutableCAClass.js.map +1 -1
- package/lib/cjs/Editing/Mutable/MutableClass.d.ts +34 -34
- package/lib/cjs/Editing/Mutable/MutableClass.js +22 -22
- package/lib/cjs/Editing/Mutable/MutableClass.js.map +1 -1
- package/lib/cjs/Editing/Mutable/MutableConstant.d.ts +12 -12
- package/lib/cjs/Editing/Mutable/MutableConstant.js +15 -15
- package/lib/cjs/Editing/Mutable/MutableConstant.js.map +1 -1
- package/lib/cjs/Editing/Mutable/MutableEntityClass.d.ts +15 -15
- package/lib/cjs/Editing/Mutable/MutableEntityClass.js +59 -59
- package/lib/cjs/Editing/Mutable/MutableEntityClass.js.map +1 -1
- package/lib/cjs/Editing/Mutable/MutableEnumeration.d.ts +9 -9
- package/lib/cjs/Editing/Mutable/MutableEnumeration.js +14 -14
- package/lib/cjs/Editing/Mutable/MutableEnumeration.js.map +1 -1
- package/lib/cjs/Editing/Mutable/MutableFormat.d.ts +18 -18
- package/lib/cjs/Editing/Mutable/MutableFormat.js +15 -15
- package/lib/cjs/Editing/Mutable/MutableFormat.js.map +1 -1
- package/lib/cjs/Editing/Mutable/MutableInvertedUnit.d.ts +10 -10
- package/lib/cjs/Editing/Mutable/MutableInvertedUnit.js +15 -15
- package/lib/cjs/Editing/Mutable/MutableInvertedUnit.js.map +1 -1
- package/lib/cjs/Editing/Mutable/MutableKindOfQuantity.d.ts +10 -10
- package/lib/cjs/Editing/Mutable/MutableKindOfQuantity.js +15 -15
- package/lib/cjs/Editing/Mutable/MutableKindOfQuantity.js.map +1 -1
- package/lib/cjs/Editing/Mutable/MutableMixin.d.ts +11 -11
- package/lib/cjs/Editing/Mutable/MutableMixin.js +15 -15
- package/lib/cjs/Editing/Mutable/MutableMixin.js.map +1 -1
- package/lib/cjs/Editing/Mutable/MutablePhenomenon.d.ts +9 -9
- package/lib/cjs/Editing/Mutable/MutablePhenomenon.js +15 -15
- package/lib/cjs/Editing/Mutable/MutablePhenomenon.js.map +1 -1
- package/lib/cjs/Editing/Mutable/MutableProperty.d.ts +8 -8
- package/lib/cjs/Editing/Mutable/MutableProperty.js +15 -15
- package/lib/cjs/Editing/Mutable/MutableProperty.js.map +1 -1
- package/lib/cjs/Editing/Mutable/MutablePropertyCategory.d.ts +9 -9
- package/lib/cjs/Editing/Mutable/MutablePropertyCategory.js +15 -15
- package/lib/cjs/Editing/Mutable/MutablePropertyCategory.js.map +1 -1
- package/lib/cjs/Editing/Mutable/MutableRelationshipClass.d.ts +21 -21
- package/lib/cjs/Editing/Mutable/MutableRelationshipClass.js +24 -24
- package/lib/cjs/Editing/Mutable/MutableRelationshipClass.js.map +1 -1
- package/lib/cjs/Editing/Mutable/MutableSchema.d.ts +45 -45
- package/lib/cjs/Editing/Mutable/MutableSchema.js +17 -17
- package/lib/cjs/Editing/Mutable/MutableSchema.js.map +1 -1
- package/lib/cjs/Editing/Mutable/MutableUnit.d.ts +11 -11
- package/lib/cjs/Editing/Mutable/MutableUnit.js +15 -15
- package/lib/cjs/Editing/Mutable/MutableUnit.js.map +1 -1
- package/lib/cjs/Editing/Mutable/MutableUnitSystem.d.ts +8 -8
- package/lib/cjs/Editing/Mutable/MutableUnitSystem.js +15 -15
- package/lib/cjs/Editing/Mutable/MutableUnitSystem.js.map +1 -1
- package/lib/cjs/Editing/Phenomena.d.ts +15 -15
- package/lib/cjs/Editing/Phenomena.js +47 -47
- package/lib/cjs/Editing/Phenomena.js.map +1 -1
- package/lib/cjs/Editing/PropertyCategories.d.ts +16 -16
- package/lib/cjs/Editing/PropertyCategories.js +53 -53
- package/lib/cjs/Editing/PropertyCategories.js.map +1 -1
- package/lib/cjs/Editing/RelationshipClasses.d.ts +21 -21
- package/lib/cjs/Editing/RelationshipClasses.js +69 -69
- package/lib/cjs/Editing/RelationshipClasses.js.map +1 -1
- package/lib/cjs/Editing/Structs.d.ts +19 -19
- package/lib/cjs/Editing/Structs.js +60 -60
- package/lib/cjs/Editing/Structs.js.map +1 -1
- package/lib/cjs/Editing/UnitSystems.d.ts +15 -15
- package/lib/cjs/Editing/UnitSystems.js +43 -43
- package/lib/cjs/Editing/UnitSystems.js.map +1 -1
- package/lib/cjs/Editing/Units.d.ts +15 -15
- package/lib/cjs/Editing/Units.js +61 -61
- package/lib/cjs/Editing/Units.js.map +1 -1
- package/lib/cjs/Validation/Diagnostic.d.ts +321 -321
- 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/DiagnosticReporter.js.map +1 -1
- package/lib/cjs/Validation/ECRules.d.ts +438 -438
- package/lib/cjs/Validation/ECRules.js +583 -583
- package/lib/cjs/Validation/ECRules.js.map +1 -1
- package/lib/cjs/Validation/LoggingDiagnosticReporter.d.ts +13 -13
- package/lib/cjs/Validation/LoggingDiagnosticReporter.js +40 -40
- package/lib/cjs/Validation/LoggingDiagnosticReporter.js.map +1 -1
- package/lib/cjs/Validation/RuleSuppressionSet.d.ts +58 -58
- package/lib/cjs/Validation/RuleSuppressionSet.js +9 -9
- package/lib/cjs/Validation/RuleSuppressionSet.js.map +1 -1
- package/lib/cjs/Validation/Rules.d.ts +64 -64
- package/lib/cjs/Validation/Rules.js +9 -9
- package/lib/cjs/Validation/Rules.js.map +1 -1
- package/lib/cjs/Validation/SchemaChanges.d.ts +607 -607
- package/lib/cjs/Validation/SchemaChanges.js +1135 -1135
- package/lib/cjs/Validation/SchemaChanges.js.map +1 -1
- package/lib/cjs/Validation/SchemaCompareDiagnostics.d.ts +422 -422
- package/lib/cjs/Validation/SchemaCompareDiagnostics.js +111 -111
- package/lib/cjs/Validation/SchemaCompareDiagnostics.js.map +1 -1
- package/lib/cjs/Validation/SchemaCompareReporter.d.ts +11 -11
- package/lib/cjs/Validation/SchemaCompareReporter.js +9 -9
- package/lib/cjs/Validation/SchemaCompareReporter.js.map +1 -1
- package/lib/cjs/Validation/SchemaCompareResultDelegate.d.ts +236 -236
- package/lib/cjs/Validation/SchemaCompareResultDelegate.js +348 -348
- package/lib/cjs/Validation/SchemaCompareResultDelegate.js.map +1 -1
- package/lib/cjs/Validation/SchemaCompareVisitor.d.ts +119 -119
- package/lib/cjs/Validation/SchemaCompareVisitor.js +206 -206
- package/lib/cjs/Validation/SchemaCompareVisitor.js.map +1 -1
- package/lib/cjs/Validation/SchemaComparer.d.ts +171 -171
- package/lib/cjs/Validation/SchemaComparer.js +666 -666
- package/lib/cjs/Validation/SchemaComparer.js.map +1 -1
- package/lib/cjs/Validation/SchemaValidater.d.ts +19 -19
- package/lib/cjs/Validation/SchemaValidater.js +61 -61
- package/lib/cjs/Validation/SchemaValidater.js.map +1 -1
- package/lib/cjs/Validation/SchemaValidationVisitor.d.ts +170 -170
- package/lib/cjs/Validation/SchemaValidationVisitor.js +490 -490
- package/lib/cjs/Validation/SchemaValidationVisitor.js.map +1 -1
- package/lib/cjs/Validation/SchemaWalker.d.ts +22 -22
- package/lib/cjs/Validation/SchemaWalker.js +51 -51
- package/lib/cjs/Validation/SchemaWalker.js.map +1 -1
- package/lib/cjs/ecschema-editing.d.ts +33 -33
- package/lib/cjs/ecschema-editing.js +54 -54
- package/lib/cjs/ecschema-editing.js.map +1 -1
- package/package.json +10 -10
- package/public/locales/en/ECSchemaEditing.json +26 -26
|
@@ -1,112 +1,112 @@
|
|
|
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
|
-
/** @packageDocumentation
|
|
7
|
-
* @module Comparison
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.SchemaCompareDiagnostics = exports.SchemaCompareCodes = void 0;
|
|
11
|
-
const Diagnostic_1 = require("./Diagnostic");
|
|
12
|
-
/* eslint-disable @typescript-eslint/naming-convention */
|
|
13
|
-
/**
|
|
14
|
-
* The unique diagnostic codes for Schema comparison.
|
|
15
|
-
* @beta
|
|
16
|
-
*/
|
|
17
|
-
exports.SchemaCompareCodes = {
|
|
18
|
-
SchemaDelta: "SC-100",
|
|
19
|
-
SchemaReferenceMissing: "SC-101",
|
|
20
|
-
SchemaItemDelta: "SC-102",
|
|
21
|
-
SchemaItemMissing: "SC-103",
|
|
22
|
-
ClassDelta: "SC-104",
|
|
23
|
-
BaseClassDelta: "SC-105",
|
|
24
|
-
PropertyDelta: "SC-106",
|
|
25
|
-
PropertyMissing: "SC-107",
|
|
26
|
-
EntityMixinMissing: "SC-108",
|
|
27
|
-
MixinDelta: "SC-109",
|
|
28
|
-
RelationshipDelta: "SC-110",
|
|
29
|
-
RelationshipConstraintDelta: "SC-111",
|
|
30
|
-
RelationshipConstraintClassMissing: "SC-112",
|
|
31
|
-
CustomAttributeClassDelta: "SC-113",
|
|
32
|
-
CustomAttributeInstanceClassMissing: "SC-114",
|
|
33
|
-
EnumerationDelta: "SC-115",
|
|
34
|
-
EnumeratorMissing: "SC-116",
|
|
35
|
-
EnumeratorDelta: "SC-117",
|
|
36
|
-
KoqDelta: "SC-118",
|
|
37
|
-
PresentationUnitMissing: "SC-119",
|
|
38
|
-
PropertyCategoryDelta: "SC-120",
|
|
39
|
-
FormatDelta: "SC-121",
|
|
40
|
-
FormatUnitMissing: "SC-122",
|
|
41
|
-
UnitLabelOverrideDelta: "SC-123",
|
|
42
|
-
UnitDelta: "SC-124",
|
|
43
|
-
InvertedUnitDelta: "SC-125",
|
|
44
|
-
PhenomenonDelta: "SC-126",
|
|
45
|
-
ConstantDelta: "SC-127",
|
|
46
|
-
SchemaReferenceDelta: "SC-128",
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* The list of [[IDiagnostic]] implementation classes used by the Schema comparison framework.
|
|
50
|
-
* @beta
|
|
51
|
-
*/
|
|
52
|
-
exports.SchemaCompareDiagnostics = {
|
|
53
|
-
/** Required message parameters: property name, property A value, property B value */
|
|
54
|
-
SchemaDelta: (0, Diagnostic_1.createSchemaDiagnosticClass)(exports.SchemaCompareCodes.SchemaDelta, ""),
|
|
55
|
-
/** Required message parameters: reference schema name */
|
|
56
|
-
SchemaReferenceMissing: (0, Diagnostic_1.createSchemaDiagnosticClass)(exports.SchemaCompareCodes.SchemaReferenceMissing, ""),
|
|
57
|
-
/** Required message parameters: schema name, version A, version B */
|
|
58
|
-
SchemaReferenceDelta: (0, Diagnostic_1.createSchemaDiagnosticClass)(exports.SchemaCompareCodes.SchemaReferenceDelta, ""),
|
|
59
|
-
/** Required message parameters: property name, property A value, property B value */
|
|
60
|
-
SchemaItemDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.SchemaItemDelta, ""),
|
|
61
|
-
/** Required message parameters: none */
|
|
62
|
-
SchemaItemMissing: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.SchemaItemMissing, ""),
|
|
63
|
-
/** Required message parameters: property name, property A value, property B value */
|
|
64
|
-
ClassDelta: (0, Diagnostic_1.createClassDiagnosticClass)(exports.SchemaCompareCodes.ClassDelta, ""),
|
|
65
|
-
/** Required message parameters: Class A base class, Class B base class */
|
|
66
|
-
BaseClassDelta: (0, Diagnostic_1.createClassDiagnosticClass)(exports.SchemaCompareCodes.BaseClassDelta, ""),
|
|
67
|
-
/** Required message parameters: property name, property A value, property B value */
|
|
68
|
-
PropertyDelta: (0, Diagnostic_1.createPropertyDiagnosticClass)(exports.SchemaCompareCodes.PropertyDelta, ""),
|
|
69
|
-
/** Required message parameters: none */
|
|
70
|
-
PropertyMissing: (0, Diagnostic_1.createPropertyDiagnosticClass)(exports.SchemaCompareCodes.PropertyMissing, ""),
|
|
71
|
-
/** Required message parameters: Mixin */
|
|
72
|
-
EntityMixinMissing: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.EntityMixinMissing, ""),
|
|
73
|
-
/** Required message parameters: property name, property A value, property B value */
|
|
74
|
-
MixinDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.MixinDelta, ""),
|
|
75
|
-
/** Required message parameters: property name, property A value, property B value */
|
|
76
|
-
RelationshipDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.RelationshipDelta, ""),
|
|
77
|
-
/** Required message parameters: property name, property A value, property B value */
|
|
78
|
-
RelationshipConstraintDelta: (0, Diagnostic_1.createRelationshipConstraintDiagnosticClass)(exports.SchemaCompareCodes.RelationshipConstraintDelta, ""),
|
|
79
|
-
/** Required message parameters: constraint class */
|
|
80
|
-
RelationshipConstraintClassMissing: (0, Diagnostic_1.createRelationshipConstraintDiagnosticClass)(exports.SchemaCompareCodes.RelationshipConstraintClassMissing, ""),
|
|
81
|
-
/** Required message parameters: property name, property A value, property B value */
|
|
82
|
-
CustomAttributeClassDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.CustomAttributeClassDelta, ""),
|
|
83
|
-
/** Required message parameters: CustomAttributeClass name */
|
|
84
|
-
CustomAttributeInstanceClassMissing: (0, Diagnostic_1.createCustomAttributeContainerDiagnosticClass)(exports.SchemaCompareCodes.CustomAttributeInstanceClassMissing, ""),
|
|
85
|
-
/** Required message parameters: property name, property A value, property B value */
|
|
86
|
-
EnumerationDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.EnumerationDelta, ""),
|
|
87
|
-
/** Required message parameters: Enumerator */
|
|
88
|
-
EnumeratorMissing: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.EnumeratorMissing, ""),
|
|
89
|
-
/** Required message parameters: Enumerator property name, property A value, property B value */
|
|
90
|
-
EnumeratorDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.EnumeratorDelta, ""),
|
|
91
|
-
/** Required message parameters: property name, property A value, property B value */
|
|
92
|
-
KoqDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.KoqDelta, ""),
|
|
93
|
-
/** Required message parameters: PresentationUnit (Format | OverrideFormat) */
|
|
94
|
-
PresentationUnitMissing: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.PresentationUnitMissing, ""),
|
|
95
|
-
/** Required message parameters: property name, property A value, property B value */
|
|
96
|
-
PropertyCategoryDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.PropertyCategoryDelta, ""),
|
|
97
|
-
/** Required message parameters: property name, property A value, property B value */
|
|
98
|
-
FormatDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.FormatDelta, ""),
|
|
99
|
-
/** Required message parameters: Unit or InvertedUnit */
|
|
100
|
-
FormatUnitMissing: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.FormatUnitMissing, ""),
|
|
101
|
-
/** Required message parameters: Unit or InvertedUnit, label A, label B */
|
|
102
|
-
UnitLabelOverrideDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.UnitLabelOverrideDelta, ""),
|
|
103
|
-
/** Required message parameters: property name, property A value, property B value */
|
|
104
|
-
UnitDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.UnitDelta, ""),
|
|
105
|
-
/** Required message parameters: property name, property A value, property B value */
|
|
106
|
-
InvertedUnitDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.InvertedUnitDelta, ""),
|
|
107
|
-
/** Required message parameters: property name, property A value, property B value */
|
|
108
|
-
PhenomenonDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.PhenomenonDelta, ""),
|
|
109
|
-
/** Required message parameters: property name, property A value, property B value */
|
|
110
|
-
ConstantDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.ConstantDelta, ""),
|
|
111
|
-
};
|
|
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
|
+
/** @packageDocumentation
|
|
7
|
+
* @module Comparison
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.SchemaCompareDiagnostics = exports.SchemaCompareCodes = void 0;
|
|
11
|
+
const Diagnostic_1 = require("./Diagnostic");
|
|
12
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
13
|
+
/**
|
|
14
|
+
* The unique diagnostic codes for Schema comparison.
|
|
15
|
+
* @beta
|
|
16
|
+
*/
|
|
17
|
+
exports.SchemaCompareCodes = {
|
|
18
|
+
SchemaDelta: "SC-100",
|
|
19
|
+
SchemaReferenceMissing: "SC-101",
|
|
20
|
+
SchemaItemDelta: "SC-102",
|
|
21
|
+
SchemaItemMissing: "SC-103",
|
|
22
|
+
ClassDelta: "SC-104",
|
|
23
|
+
BaseClassDelta: "SC-105",
|
|
24
|
+
PropertyDelta: "SC-106",
|
|
25
|
+
PropertyMissing: "SC-107",
|
|
26
|
+
EntityMixinMissing: "SC-108",
|
|
27
|
+
MixinDelta: "SC-109",
|
|
28
|
+
RelationshipDelta: "SC-110",
|
|
29
|
+
RelationshipConstraintDelta: "SC-111",
|
|
30
|
+
RelationshipConstraintClassMissing: "SC-112",
|
|
31
|
+
CustomAttributeClassDelta: "SC-113",
|
|
32
|
+
CustomAttributeInstanceClassMissing: "SC-114",
|
|
33
|
+
EnumerationDelta: "SC-115",
|
|
34
|
+
EnumeratorMissing: "SC-116",
|
|
35
|
+
EnumeratorDelta: "SC-117",
|
|
36
|
+
KoqDelta: "SC-118",
|
|
37
|
+
PresentationUnitMissing: "SC-119",
|
|
38
|
+
PropertyCategoryDelta: "SC-120",
|
|
39
|
+
FormatDelta: "SC-121",
|
|
40
|
+
FormatUnitMissing: "SC-122",
|
|
41
|
+
UnitLabelOverrideDelta: "SC-123",
|
|
42
|
+
UnitDelta: "SC-124",
|
|
43
|
+
InvertedUnitDelta: "SC-125",
|
|
44
|
+
PhenomenonDelta: "SC-126",
|
|
45
|
+
ConstantDelta: "SC-127",
|
|
46
|
+
SchemaReferenceDelta: "SC-128",
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* The list of [[IDiagnostic]] implementation classes used by the Schema comparison framework.
|
|
50
|
+
* @beta
|
|
51
|
+
*/
|
|
52
|
+
exports.SchemaCompareDiagnostics = {
|
|
53
|
+
/** Required message parameters: property name, property A value, property B value */
|
|
54
|
+
SchemaDelta: (0, Diagnostic_1.createSchemaDiagnosticClass)(exports.SchemaCompareCodes.SchemaDelta, ""),
|
|
55
|
+
/** Required message parameters: reference schema name */
|
|
56
|
+
SchemaReferenceMissing: (0, Diagnostic_1.createSchemaDiagnosticClass)(exports.SchemaCompareCodes.SchemaReferenceMissing, ""),
|
|
57
|
+
/** Required message parameters: schema name, version A, version B */
|
|
58
|
+
SchemaReferenceDelta: (0, Diagnostic_1.createSchemaDiagnosticClass)(exports.SchemaCompareCodes.SchemaReferenceDelta, ""),
|
|
59
|
+
/** Required message parameters: property name, property A value, property B value */
|
|
60
|
+
SchemaItemDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.SchemaItemDelta, ""),
|
|
61
|
+
/** Required message parameters: none */
|
|
62
|
+
SchemaItemMissing: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.SchemaItemMissing, ""),
|
|
63
|
+
/** Required message parameters: property name, property A value, property B value */
|
|
64
|
+
ClassDelta: (0, Diagnostic_1.createClassDiagnosticClass)(exports.SchemaCompareCodes.ClassDelta, ""),
|
|
65
|
+
/** Required message parameters: Class A base class, Class B base class */
|
|
66
|
+
BaseClassDelta: (0, Diagnostic_1.createClassDiagnosticClass)(exports.SchemaCompareCodes.BaseClassDelta, ""),
|
|
67
|
+
/** Required message parameters: property name, property A value, property B value */
|
|
68
|
+
PropertyDelta: (0, Diagnostic_1.createPropertyDiagnosticClass)(exports.SchemaCompareCodes.PropertyDelta, ""),
|
|
69
|
+
/** Required message parameters: none */
|
|
70
|
+
PropertyMissing: (0, Diagnostic_1.createPropertyDiagnosticClass)(exports.SchemaCompareCodes.PropertyMissing, ""),
|
|
71
|
+
/** Required message parameters: Mixin */
|
|
72
|
+
EntityMixinMissing: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.EntityMixinMissing, ""),
|
|
73
|
+
/** Required message parameters: property name, property A value, property B value */
|
|
74
|
+
MixinDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.MixinDelta, ""),
|
|
75
|
+
/** Required message parameters: property name, property A value, property B value */
|
|
76
|
+
RelationshipDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.RelationshipDelta, ""),
|
|
77
|
+
/** Required message parameters: property name, property A value, property B value */
|
|
78
|
+
RelationshipConstraintDelta: (0, Diagnostic_1.createRelationshipConstraintDiagnosticClass)(exports.SchemaCompareCodes.RelationshipConstraintDelta, ""),
|
|
79
|
+
/** Required message parameters: constraint class */
|
|
80
|
+
RelationshipConstraintClassMissing: (0, Diagnostic_1.createRelationshipConstraintDiagnosticClass)(exports.SchemaCompareCodes.RelationshipConstraintClassMissing, ""),
|
|
81
|
+
/** Required message parameters: property name, property A value, property B value */
|
|
82
|
+
CustomAttributeClassDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.CustomAttributeClassDelta, ""),
|
|
83
|
+
/** Required message parameters: CustomAttributeClass name */
|
|
84
|
+
CustomAttributeInstanceClassMissing: (0, Diagnostic_1.createCustomAttributeContainerDiagnosticClass)(exports.SchemaCompareCodes.CustomAttributeInstanceClassMissing, ""),
|
|
85
|
+
/** Required message parameters: property name, property A value, property B value */
|
|
86
|
+
EnumerationDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.EnumerationDelta, ""),
|
|
87
|
+
/** Required message parameters: Enumerator */
|
|
88
|
+
EnumeratorMissing: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.EnumeratorMissing, ""),
|
|
89
|
+
/** Required message parameters: Enumerator property name, property A value, property B value */
|
|
90
|
+
EnumeratorDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.EnumeratorDelta, ""),
|
|
91
|
+
/** Required message parameters: property name, property A value, property B value */
|
|
92
|
+
KoqDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.KoqDelta, ""),
|
|
93
|
+
/** Required message parameters: PresentationUnit (Format | OverrideFormat) */
|
|
94
|
+
PresentationUnitMissing: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.PresentationUnitMissing, ""),
|
|
95
|
+
/** Required message parameters: property name, property A value, property B value */
|
|
96
|
+
PropertyCategoryDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.PropertyCategoryDelta, ""),
|
|
97
|
+
/** Required message parameters: property name, property A value, property B value */
|
|
98
|
+
FormatDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.FormatDelta, ""),
|
|
99
|
+
/** Required message parameters: Unit or InvertedUnit */
|
|
100
|
+
FormatUnitMissing: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.FormatUnitMissing, ""),
|
|
101
|
+
/** Required message parameters: Unit or InvertedUnit, label A, label B */
|
|
102
|
+
UnitLabelOverrideDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.UnitLabelOverrideDelta, ""),
|
|
103
|
+
/** Required message parameters: property name, property A value, property B value */
|
|
104
|
+
UnitDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.UnitDelta, ""),
|
|
105
|
+
/** Required message parameters: property name, property A value, property B value */
|
|
106
|
+
InvertedUnitDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.InvertedUnitDelta, ""),
|
|
107
|
+
/** Required message parameters: property name, property A value, property B value */
|
|
108
|
+
PhenomenonDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.PhenomenonDelta, ""),
|
|
109
|
+
/** Required message parameters: property name, property A value, property B value */
|
|
110
|
+
ConstantDelta: (0, Diagnostic_1.createSchemaItemDiagnosticClass)(exports.SchemaCompareCodes.ConstantDelta, ""),
|
|
111
|
+
};
|
|
112
112
|
//# sourceMappingURL=SchemaCompareDiagnostics.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaCompareDiagnostics.js","sourceRoot":"","sources":["../../../src/Validation/SchemaCompareDiagnostics.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAMH,6CAGsB;AAEtB,yDAAyD;AAEzD;;;GAGG;AACU,QAAA,kBAAkB,GAAG;IAChC,WAAW,EAAE,QAAQ;IACrB,sBAAsB,EAAE,QAAQ;IAChC,eAAe,EAAE,QAAQ;IACzB,iBAAiB,EAAE,QAAQ;IAC3B,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,QAAQ;IACxB,aAAa,EAAE,QAAQ;IACvB,eAAe,EAAE,QAAQ;IACzB,kBAAkB,EAAE,QAAQ;IAC5B,UAAU,EAAE,QAAQ;IACpB,iBAAiB,EAAE,QAAQ;IAC3B,2BAA2B,EAAE,QAAQ;IACrC,kCAAkC,EAAE,QAAQ;IAC5C,yBAAyB,EAAE,QAAQ;IAC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uBAAuB,EAAE,EAAE,CAAC;IAEnJ,sFAAsF;IACtF,qBAAqB,EAAE,IAAA,4CAA+B,EAAuC,0BAAkB,CAAC,qBAAqB,EAAE,EAAE,CAAC;IAE1I,sFAAsF;IACtF,WAAW,EAAE,IAAA,4CAA+B,EAA6B,0BAAkB,CAAC,WAAW,EAAE,EAAE,CAAC;IAE5G,wDAAwD;IACxD,iBAAiB,EAAE,IAAA,4CAA+B,EAAgC,0BAAkB,CAAC,iBAAiB,EAAE,EAAE,CAAC;IAE3H,0EAA0E;IAC1E,sBAAsB,EAAE,IAAA,4CAA+B,EAAwE,0BAAkB,CAAC,sBAAsB,EAAE,EAAE,CAAC;IAE7K,sFAAsF;IACtF,SAAS,EAAE,IAAA,4CAA+B,EAAmC,0BAAkB,CAAC,SAAS,EAAE,EAAE,CAAC;IAE9G,sFAAsF;IACtF,iBAAiB,EAAE,IAAA,4CAA+B,EAAyC,0BAAkB,CAAC,iBAAiB,EAAE,EAAE,CAAC;IAEpI,sFAAsF;IACtF,eAAe,EAAE,IAAA,4CAA+B,EAAyC,0BAAkB,CAAC,eAAe,EAAE,EAAE,CAAC;IAEhI,sFAAsF;IACtF,aAAa,EAAE,IAAA,4CAA+B,EAAqC,0BAAkB,CAAC,aAAa,EAAE,EAAE,CAAC;CACzH,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Comparison\n */\n\nimport { AnyClass, AnyEnumerator, Constant, CustomAttribute, CustomAttributeClass, EntityClass,\n Enumeration, Format, InvertedUnit, KindOfQuantity, Mixin, OverrideFormat, PropertyCategory,\n RelationshipClass, Schema, SchemaItem, Unit,\n} from \"@itwin/ecschema-metadata\";\nimport {\n createClassDiagnosticClass, createCustomAttributeContainerDiagnosticClass, createPropertyDiagnosticClass,\n createRelationshipConstraintDiagnosticClass, createSchemaDiagnosticClass, createSchemaItemDiagnosticClass,\n} from \"./Diagnostic\";\n\n/* eslint-disable @typescript-eslint/naming-convention */\n\n/**\n * The unique diagnostic codes for Schema comparison.\n * @beta\n */\nexport const SchemaCompareCodes = {\n SchemaDelta: \"SC-100\",\n SchemaReferenceMissing: \"SC-101\",\n SchemaItemDelta: \"SC-102\",\n SchemaItemMissing: \"SC-103\",\n ClassDelta: \"SC-104\",\n BaseClassDelta: \"SC-105\",\n PropertyDelta: \"SC-106\",\n PropertyMissing: \"SC-107\",\n EntityMixinMissing: \"SC-108\",\n MixinDelta: \"SC-109\",\n RelationshipDelta: \"SC-110\",\n RelationshipConstraintDelta: \"SC-111\",\n RelationshipConstraintClassMissing: \"SC-112\",\n CustomAttributeClassDelta: \"SC-113\",\n CustomAttributeInstanceClassMissing: \"SC-114\",\n EnumerationDelta: \"SC-115\",\n EnumeratorMissing: \"SC-116\",\n EnumeratorDelta: \"SC-117\",\n KoqDelta: \"SC-118\",\n PresentationUnitMissing: \"SC-119\",\n PropertyCategoryDelta: \"SC-120\",\n FormatDelta: \"SC-121\",\n FormatUnitMissing: \"SC-122\",\n UnitLabelOverrideDelta: \"SC-123\",\n UnitDelta: \"SC-124\",\n InvertedUnitDelta: \"SC-125\",\n PhenomenonDelta: \"SC-126\",\n ConstantDelta: \"SC-127\",\n SchemaReferenceDelta: \"SC-128\",\n};\n\n/**\n * The list of [[IDiagnostic]] implementation classes used by the Schema comparison framework.\n * @beta\n */\nexport const SchemaCompareDiagnostics = {\n /** Required message parameters: property name, property A value, property B value */\n SchemaDelta: createSchemaDiagnosticClass<[string, any, any]>(SchemaCompareCodes.SchemaDelta, \"\"),\n\n /** Required message parameters: reference schema name */\n SchemaReferenceMissing: createSchemaDiagnosticClass<[Schema]>(SchemaCompareCodes.SchemaReferenceMissing, \"\"),\n\n /** Required message parameters: schema name, version A, version B */\n SchemaReferenceDelta: createSchemaDiagnosticClass<[Schema, string, string]>(SchemaCompareCodes.SchemaReferenceDelta, \"\"),\n\n /** Required message parameters: property name, property A value, property B value */\n SchemaItemDelta: createSchemaItemDiagnosticClass<SchemaItem, [string, any, any]>(SchemaCompareCodes.SchemaItemDelta, \"\"),\n\n /** Required message parameters: none */\n SchemaItemMissing: createSchemaItemDiagnosticClass<SchemaItem, []>(SchemaCompareCodes.SchemaItemMissing, \"\"),\n\n /** Required message parameters: property name, property A value, property B value */\n ClassDelta: createClassDiagnosticClass<[string, any, any]>(SchemaCompareCodes.ClassDelta, \"\"),\n\n /** Required message parameters: Class A base class, Class B base class */\n BaseClassDelta: createClassDiagnosticClass<[AnyClass | undefined, AnyClass | undefined]>(SchemaCompareCodes.BaseClassDelta, \"\"),\n\n /** Required message parameters: property name, property A value, property B value */\n PropertyDelta: createPropertyDiagnosticClass<[string, any, any]>(SchemaCompareCodes.PropertyDelta, \"\"),\n\n /** Required message parameters: none */\n PropertyMissing: createPropertyDiagnosticClass<[]>(SchemaCompareCodes.PropertyMissing, \"\"),\n\n /** Required message parameters: Mixin */\n EntityMixinMissing: createSchemaItemDiagnosticClass<EntityClass, [Mixin]>(SchemaCompareCodes.EntityMixinMissing, \"\"),\n\n /** Required message parameters: property name, property A value, property B value */\n MixinDelta: createSchemaItemDiagnosticClass<Mixin, [string, any, any]>(SchemaCompareCodes.MixinDelta, \"\"),\n\n /** Required message parameters: property name, property A value, property B value */\n RelationshipDelta: createSchemaItemDiagnosticClass<RelationshipClass, [string, any, any]>(SchemaCompareCodes.RelationshipDelta, \"\"),\n\n /** Required message parameters: property name, property A value, property B value */\n RelationshipConstraintDelta: createRelationshipConstraintDiagnosticClass<[string, any, any]>(SchemaCompareCodes.RelationshipConstraintDelta, \"\"),\n\n /** Required message parameters: constraint class */\n RelationshipConstraintClassMissing: createRelationshipConstraintDiagnosticClass<[AnyClass]>(SchemaCompareCodes.RelationshipConstraintClassMissing, \"\"),\n\n /** Required message parameters: property name, property A value, property B value */\n CustomAttributeClassDelta: createSchemaItemDiagnosticClass<CustomAttributeClass, [string, any, any]>(SchemaCompareCodes.CustomAttributeClassDelta, \"\"),\n\n /** Required message parameters: CustomAttributeClass name */\n CustomAttributeInstanceClassMissing: createCustomAttributeContainerDiagnosticClass<[CustomAttribute]>(SchemaCompareCodes.CustomAttributeInstanceClassMissing, \"\"),\n\n /** Required message parameters: property name, property A value, property B value */\n EnumerationDelta: createSchemaItemDiagnosticClass<Enumeration, [string, string, string]>(SchemaCompareCodes.EnumerationDelta, \"\"),\n\n /** Required message parameters: Enumerator */\n EnumeratorMissing: createSchemaItemDiagnosticClass<Enumeration, [AnyEnumerator]>(SchemaCompareCodes.EnumeratorMissing, \"\"),\n\n /** Required message parameters: Enumerator property name, property A value, property B value */\n EnumeratorDelta: createSchemaItemDiagnosticClass<Enumeration, [AnyEnumerator, string, any, any]>(SchemaCompareCodes.EnumeratorDelta, \"\"),\n\n /** Required message parameters: property name, property A value, property B value */\n KoqDelta: createSchemaItemDiagnosticClass<KindOfQuantity, [string, any, any]>(SchemaCompareCodes.KoqDelta, \"\"),\n\n /** Required message parameters: PresentationUnit (Format | OverrideFormat) */\n PresentationUnitMissing: createSchemaItemDiagnosticClass<KindOfQuantity, [Format | OverrideFormat]>(SchemaCompareCodes.PresentationUnitMissing, \"\"),\n\n /** Required message parameters: property name, property A value, property B value */\n PropertyCategoryDelta: createSchemaItemDiagnosticClass<PropertyCategory, [string, any, any]>(SchemaCompareCodes.PropertyCategoryDelta, \"\"),\n\n /** Required message parameters: property name, property A value, property B value */\n FormatDelta: createSchemaItemDiagnosticClass<Format, [string, any, any]>(SchemaCompareCodes.FormatDelta, \"\"),\n\n /** Required message parameters: Unit or InvertedUnit */\n FormatUnitMissing: createSchemaItemDiagnosticClass<Format, [Unit | InvertedUnit]>(SchemaCompareCodes.FormatUnitMissing, \"\"),\n\n /** Required message parameters: Unit or InvertedUnit, label A, label B */\n UnitLabelOverrideDelta: createSchemaItemDiagnosticClass<Format, [Unit | InvertedUnit, string | undefined, string | undefined]>(SchemaCompareCodes.UnitLabelOverrideDelta, \"\"),\n\n /** Required message parameters: property name, property A value, property B value */\n UnitDelta: createSchemaItemDiagnosticClass<Format, [string, string, string]>(SchemaCompareCodes.UnitDelta, \"\"),\n\n /** Required message parameters: property name, property A value, property B value */\n InvertedUnitDelta: createSchemaItemDiagnosticClass<InvertedUnit, [string, string, string]>(SchemaCompareCodes.InvertedUnitDelta, \"\"),\n\n /** Required message parameters: property name, property A value, property B value */\n PhenomenonDelta: createSchemaItemDiagnosticClass<InvertedUnit, [string, string, string]>(SchemaCompareCodes.PhenomenonDelta, \"\"),\n\n /** Required message parameters: property name, property A value, property B value */\n ConstantDelta: createSchemaItemDiagnosticClass<Constant, [string, string, string]>(SchemaCompareCodes.ConstantDelta, \"\"),\n};\n"]}
|
|
1
|
+
{"version":3,"file":"SchemaCompareDiagnostics.js","sourceRoot":"","sources":["../../../src/Validation/SchemaCompareDiagnostics.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAMH,6CAGsB;AAEtB,yDAAyD;AAEzD;;;GAGG;AACU,QAAA,kBAAkB,GAAG;IAChC,WAAW,EAAE,QAAQ;IACrB,sBAAsB,EAAE,QAAQ;IAChC,eAAe,EAAE,QAAQ;IACzB,iBAAiB,EAAE,QAAQ;IAC3B,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,QAAQ;IACxB,aAAa,EAAE,QAAQ;IACvB,eAAe,EAAE,QAAQ;IACzB,kBAAkB,EAAE,QAAQ;IAC5B,UAAU,EAAE,QAAQ;IACpB,iBAAiB,EAAE,QAAQ;IAC3B,2BAA2B,EAAE,QAAQ;IACrC,kCAAkC,EAAE,QAAQ;IAC5C,yBAAyB,EAAE,QAAQ;IACnC,mCAAmC,EAAE,QAAQ;IAC7C,gBAAgB,EAAE,QAAQ;IAC1B,iBAAiB,EAAE,QAAQ;IAC3B,eAAe,EAAE,QAAQ;IACzB,QAAQ,EAAE,QAAQ;IAClB,uBAAuB,EAAE,QAAQ;IACjC,qBAAqB,EAAE,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AAkB,CAAC,WAAW,EAAE,EAAE,CAAC;IAE5G,wDAAwD;IACxD,iBAAiB,EAAE,IAAA,4CAA+B,EAAgC,0BAAkB,CAAC,iBAAiB,EAAE,EAAE,CAAC;IAE3H,0EAA0E;IAC1E,sBAAsB,EAAE,IAAA,4CAA+B,EAAwE,0BAAkB,CAAC,sBAAsB,EAAE,EAAE,CAAC;IAE7K,sFAAsF;IACtF,SAAS,EAAE,IAAA,4CAA+B,EAAmC,0BAAkB,CAAC,SAAS,EAAE,EAAE,CAAC;IAE9G,sFAAsF;IACtF,iBAAiB,EAAE,IAAA,4CAA+B,EAAyC,0BAAkB,CAAC,iBAAiB,EAAE,EAAE,CAAC;IAEpI,sFAAsF;IACtF,eAAe,EAAE,IAAA,4CAA+B,EAAyC,0BAAkB,CAAC,eAAe,EAAE,EAAE,CAAC;IAEhI,sFAAsF;IACtF,aAAa,EAAE,IAAA,4CAA+B,EAAqC,0BAAkB,CAAC,aAAa,EAAE,EAAE,CAAC;CACzH,CAAC","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/** @packageDocumentation\r\n * @module Comparison\r\n */\r\n\r\nimport { AnyClass, AnyEnumerator, Constant, CustomAttribute, CustomAttributeClass, EntityClass,\r\n Enumeration, Format, InvertedUnit, KindOfQuantity, Mixin, OverrideFormat, PropertyCategory,\r\n RelationshipClass, Schema, SchemaItem, Unit,\r\n} from \"@itwin/ecschema-metadata\";\r\nimport {\r\n createClassDiagnosticClass, createCustomAttributeContainerDiagnosticClass, createPropertyDiagnosticClass,\r\n createRelationshipConstraintDiagnosticClass, createSchemaDiagnosticClass, createSchemaItemDiagnosticClass,\r\n} from \"./Diagnostic\";\r\n\r\n/* eslint-disable @typescript-eslint/naming-convention */\r\n\r\n/**\r\n * The unique diagnostic codes for Schema comparison.\r\n * @beta\r\n */\r\nexport const SchemaCompareCodes = {\r\n SchemaDelta: \"SC-100\",\r\n SchemaReferenceMissing: \"SC-101\",\r\n SchemaItemDelta: \"SC-102\",\r\n SchemaItemMissing: \"SC-103\",\r\n ClassDelta: \"SC-104\",\r\n BaseClassDelta: \"SC-105\",\r\n PropertyDelta: \"SC-106\",\r\n PropertyMissing: \"SC-107\",\r\n EntityMixinMissing: \"SC-108\",\r\n MixinDelta: \"SC-109\",\r\n RelationshipDelta: \"SC-110\",\r\n RelationshipConstraintDelta: \"SC-111\",\r\n RelationshipConstraintClassMissing: \"SC-112\",\r\n CustomAttributeClassDelta: \"SC-113\",\r\n CustomAttributeInstanceClassMissing: \"SC-114\",\r\n EnumerationDelta: \"SC-115\",\r\n EnumeratorMissing: \"SC-116\",\r\n EnumeratorDelta: \"SC-117\",\r\n KoqDelta: \"SC-118\",\r\n PresentationUnitMissing: \"SC-119\",\r\n PropertyCategoryDelta: \"SC-120\",\r\n FormatDelta: \"SC-121\",\r\n FormatUnitMissing: \"SC-122\",\r\n UnitLabelOverrideDelta: \"SC-123\",\r\n UnitDelta: \"SC-124\",\r\n InvertedUnitDelta: \"SC-125\",\r\n PhenomenonDelta: \"SC-126\",\r\n ConstantDelta: \"SC-127\",\r\n SchemaReferenceDelta: \"SC-128\",\r\n};\r\n\r\n/**\r\n * The list of [[IDiagnostic]] implementation classes used by the Schema comparison framework.\r\n * @beta\r\n */\r\nexport const SchemaCompareDiagnostics = {\r\n /** Required message parameters: property name, property A value, property B value */\r\n SchemaDelta: createSchemaDiagnosticClass<[string, any, any]>(SchemaCompareCodes.SchemaDelta, \"\"),\r\n\r\n /** Required message parameters: reference schema name */\r\n SchemaReferenceMissing: createSchemaDiagnosticClass<[Schema]>(SchemaCompareCodes.SchemaReferenceMissing, \"\"),\r\n\r\n /** Required message parameters: schema name, version A, version B */\r\n SchemaReferenceDelta: createSchemaDiagnosticClass<[Schema, string, string]>(SchemaCompareCodes.SchemaReferenceDelta, \"\"),\r\n\r\n /** Required message parameters: property name, property A value, property B value */\r\n SchemaItemDelta: createSchemaItemDiagnosticClass<SchemaItem, [string, any, any]>(SchemaCompareCodes.SchemaItemDelta, \"\"),\r\n\r\n /** Required message parameters: none */\r\n SchemaItemMissing: createSchemaItemDiagnosticClass<SchemaItem, []>(SchemaCompareCodes.SchemaItemMissing, \"\"),\r\n\r\n /** Required message parameters: property name, property A value, property B value */\r\n ClassDelta: createClassDiagnosticClass<[string, any, any]>(SchemaCompareCodes.ClassDelta, \"\"),\r\n\r\n /** Required message parameters: Class A base class, Class B base class */\r\n BaseClassDelta: createClassDiagnosticClass<[AnyClass | undefined, AnyClass | undefined]>(SchemaCompareCodes.BaseClassDelta, \"\"),\r\n\r\n /** Required message parameters: property name, property A value, property B value */\r\n PropertyDelta: createPropertyDiagnosticClass<[string, any, any]>(SchemaCompareCodes.PropertyDelta, \"\"),\r\n\r\n /** Required message parameters: none */\r\n PropertyMissing: createPropertyDiagnosticClass<[]>(SchemaCompareCodes.PropertyMissing, \"\"),\r\n\r\n /** Required message parameters: Mixin */\r\n EntityMixinMissing: createSchemaItemDiagnosticClass<EntityClass, [Mixin]>(SchemaCompareCodes.EntityMixinMissing, \"\"),\r\n\r\n /** Required message parameters: property name, property A value, property B value */\r\n MixinDelta: createSchemaItemDiagnosticClass<Mixin, [string, any, any]>(SchemaCompareCodes.MixinDelta, \"\"),\r\n\r\n /** Required message parameters: property name, property A value, property B value */\r\n RelationshipDelta: createSchemaItemDiagnosticClass<RelationshipClass, [string, any, any]>(SchemaCompareCodes.RelationshipDelta, \"\"),\r\n\r\n /** Required message parameters: property name, property A value, property B value */\r\n RelationshipConstraintDelta: createRelationshipConstraintDiagnosticClass<[string, any, any]>(SchemaCompareCodes.RelationshipConstraintDelta, \"\"),\r\n\r\n /** Required message parameters: constraint class */\r\n RelationshipConstraintClassMissing: createRelationshipConstraintDiagnosticClass<[AnyClass]>(SchemaCompareCodes.RelationshipConstraintClassMissing, \"\"),\r\n\r\n /** Required message parameters: property name, property A value, property B value */\r\n CustomAttributeClassDelta: createSchemaItemDiagnosticClass<CustomAttributeClass, [string, any, any]>(SchemaCompareCodes.CustomAttributeClassDelta, \"\"),\r\n\r\n /** Required message parameters: CustomAttributeClass name */\r\n CustomAttributeInstanceClassMissing: createCustomAttributeContainerDiagnosticClass<[CustomAttribute]>(SchemaCompareCodes.CustomAttributeInstanceClassMissing, \"\"),\r\n\r\n /** Required message parameters: property name, property A value, property B value */\r\n EnumerationDelta: createSchemaItemDiagnosticClass<Enumeration, [string, string, string]>(SchemaCompareCodes.EnumerationDelta, \"\"),\r\n\r\n /** Required message parameters: Enumerator */\r\n EnumeratorMissing: createSchemaItemDiagnosticClass<Enumeration, [AnyEnumerator]>(SchemaCompareCodes.EnumeratorMissing, \"\"),\r\n\r\n /** Required message parameters: Enumerator property name, property A value, property B value */\r\n EnumeratorDelta: createSchemaItemDiagnosticClass<Enumeration, [AnyEnumerator, string, any, any]>(SchemaCompareCodes.EnumeratorDelta, \"\"),\r\n\r\n /** Required message parameters: property name, property A value, property B value */\r\n KoqDelta: createSchemaItemDiagnosticClass<KindOfQuantity, [string, any, any]>(SchemaCompareCodes.KoqDelta, \"\"),\r\n\r\n /** Required message parameters: PresentationUnit (Format | OverrideFormat) */\r\n PresentationUnitMissing: createSchemaItemDiagnosticClass<KindOfQuantity, [Format | OverrideFormat]>(SchemaCompareCodes.PresentationUnitMissing, \"\"),\r\n\r\n /** Required message parameters: property name, property A value, property B value */\r\n PropertyCategoryDelta: createSchemaItemDiagnosticClass<PropertyCategory, [string, any, any]>(SchemaCompareCodes.PropertyCategoryDelta, \"\"),\r\n\r\n /** Required message parameters: property name, property A value, property B value */\r\n FormatDelta: createSchemaItemDiagnosticClass<Format, [string, any, any]>(SchemaCompareCodes.FormatDelta, \"\"),\r\n\r\n /** Required message parameters: Unit or InvertedUnit */\r\n FormatUnitMissing: createSchemaItemDiagnosticClass<Format, [Unit | InvertedUnit]>(SchemaCompareCodes.FormatUnitMissing, \"\"),\r\n\r\n /** Required message parameters: Unit or InvertedUnit, label A, label B */\r\n UnitLabelOverrideDelta: createSchemaItemDiagnosticClass<Format, [Unit | InvertedUnit, string | undefined, string | undefined]>(SchemaCompareCodes.UnitLabelOverrideDelta, \"\"),\r\n\r\n /** Required message parameters: property name, property A value, property B value */\r\n UnitDelta: createSchemaItemDiagnosticClass<Format, [string, string, string]>(SchemaCompareCodes.UnitDelta, \"\"),\r\n\r\n /** Required message parameters: property name, property A value, property B value */\r\n InvertedUnitDelta: createSchemaItemDiagnosticClass<InvertedUnit, [string, string, string]>(SchemaCompareCodes.InvertedUnitDelta, \"\"),\r\n\r\n /** Required message parameters: property name, property A value, property B value */\r\n PhenomenonDelta: createSchemaItemDiagnosticClass<InvertedUnit, [string, string, string]>(SchemaCompareCodes.PhenomenonDelta, \"\"),\r\n\r\n /** Required message parameters: property name, property A value, property B value */\r\n ConstantDelta: createSchemaItemDiagnosticClass<Constant, [string, string, string]>(SchemaCompareCodes.ConstantDelta, \"\"),\r\n};\r\n"]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module Comparison
|
|
3
|
-
*/
|
|
4
|
-
import { ISchemaChanges } from "./SchemaChanges";
|
|
5
|
-
/**
|
|
6
|
-
* Interface for reporting ISchemaChanges objects.
|
|
7
|
-
* @alpha
|
|
8
|
-
*/
|
|
9
|
-
export interface ISchemaCompareReporter {
|
|
10
|
-
report(schemaChanges: ISchemaChanges): void;
|
|
11
|
-
}
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module Comparison
|
|
3
|
+
*/
|
|
4
|
+
import { ISchemaChanges } from "./SchemaChanges";
|
|
5
|
+
/**
|
|
6
|
+
* Interface for reporting ISchemaChanges objects.
|
|
7
|
+
* @alpha
|
|
8
|
+
*/
|
|
9
|
+
export interface ISchemaCompareReporter {
|
|
10
|
+
report(schemaChanges: ISchemaChanges): void;
|
|
11
|
+
}
|
|
12
12
|
//# sourceMappingURL=SchemaCompareReporter.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
-
/** @packageDocumentation
|
|
7
|
-
* @module Comparison
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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
|
+
/** @packageDocumentation
|
|
7
|
+
* @module Comparison
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
//# sourceMappingURL=SchemaCompareReporter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaCompareReporter.js","sourceRoot":"","sources":["../../../src/Validation/SchemaCompareReporter.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Comparison\n */\n\nimport { ISchemaChanges } from \"./SchemaChanges\";\n\n/**\n * Interface for reporting ISchemaChanges objects.\n * @alpha\n */\nexport interface ISchemaCompareReporter {\n report(schemaChanges: ISchemaChanges): void;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"SchemaCompareReporter.js","sourceRoot":"","sources":["../../../src/Validation/SchemaCompareReporter.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","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/** @packageDocumentation\r\n * @module Comparison\r\n */\r\n\r\nimport { ISchemaChanges } from \"./SchemaChanges\";\r\n\r\n/**\r\n * Interface for reporting ISchemaChanges objects.\r\n * @alpha\r\n */\r\nexport interface ISchemaCompareReporter {\r\n report(schemaChanges: ISchemaChanges): void;\r\n}\r\n"]}
|