@itwin/ecschema-editing 4.6.0-dev.8 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -1
- package/lib/cjs/Differencing/SchemaConflicts.d.ts +14 -0
- package/lib/cjs/Differencing/SchemaConflicts.d.ts.map +1 -1
- package/lib/cjs/Differencing/SchemaConflicts.js +15 -2
- package/lib/cjs/Differencing/SchemaConflicts.js.map +1 -1
- package/lib/cjs/Differencing/SchemaDiagnosticVisitor.d.ts.map +1 -1
- package/lib/cjs/Differencing/SchemaDiagnosticVisitor.js +0 -52
- package/lib/cjs/Differencing/SchemaDiagnosticVisitor.js.map +1 -1
- package/lib/cjs/Differencing/SchemaDifference.d.ts +2 -2
- package/lib/cjs/Differencing/SchemaDifference.d.ts.map +1 -1
- package/lib/cjs/Differencing/SchemaDifference.js +3 -3
- package/lib/cjs/Differencing/SchemaDifference.js.map +1 -1
- package/lib/cjs/Editing/Constants.js.map +1 -1
- package/lib/cjs/Editing/CustomAttributes.d.ts +1 -1
- package/lib/cjs/Editing/CustomAttributes.d.ts.map +1 -1
- package/lib/cjs/Editing/CustomAttributes.js +2 -2
- package/lib/cjs/Editing/CustomAttributes.js.map +1 -1
- package/lib/cjs/Editing/ECClasses.d.ts +29 -23
- package/lib/cjs/Editing/ECClasses.d.ts.map +1 -1
- package/lib/cjs/Editing/ECClasses.js +51 -95
- package/lib/cjs/Editing/ECClasses.js.map +1 -1
- package/lib/cjs/Editing/Editor.js.map +1 -1
- package/lib/cjs/Editing/Entities.d.ts +6 -7
- package/lib/cjs/Editing/Entities.d.ts.map +1 -1
- package/lib/cjs/Editing/Entities.js +7 -27
- package/lib/cjs/Editing/Entities.js.map +1 -1
- package/lib/cjs/Editing/Formats.js.map +1 -1
- package/lib/cjs/Editing/KindOfQuantities.js.map +1 -1
- package/lib/cjs/Editing/Mixins.d.ts +6 -2
- package/lib/cjs/Editing/Mixins.d.ts.map +1 -1
- package/lib/cjs/Editing/Mixins.js +7 -22
- package/lib/cjs/Editing/Mixins.js.map +1 -1
- package/lib/cjs/Editing/Mutable/MutableEntityClass.js +2 -2
- package/lib/cjs/Editing/Mutable/MutableEntityClass.js.map +1 -1
- package/lib/cjs/Editing/Mutable/MutableNavigationProperty.d.ts +8 -0
- package/lib/cjs/Editing/Mutable/MutableNavigationProperty.d.ts.map +1 -0
- package/lib/cjs/Editing/Mutable/MutableNavigationProperty.js +16 -0
- package/lib/cjs/Editing/Mutable/MutableNavigationProperty.js.map +1 -0
- package/lib/cjs/Editing/Mutable/MutableStructProperty.d.ts +8 -0
- package/lib/cjs/Editing/Mutable/MutableStructProperty.d.ts.map +1 -0
- package/lib/cjs/Editing/Mutable/MutableStructProperty.js +16 -0
- package/lib/cjs/Editing/Mutable/MutableStructProperty.js.map +1 -0
- package/lib/cjs/Editing/Properties.d.ts +201 -0
- package/lib/cjs/Editing/Properties.d.ts.map +1 -0
- package/lib/cjs/Editing/Properties.js +349 -0
- package/lib/cjs/Editing/Properties.js.map +1 -0
- package/lib/cjs/Editing/RelationshipClasses.d.ts +12 -1
- package/lib/cjs/Editing/RelationshipClasses.d.ts.map +1 -1
- package/lib/cjs/Editing/RelationshipClasses.js +26 -3
- package/lib/cjs/Editing/RelationshipClasses.js.map +1 -1
- package/lib/cjs/Editing/Structs.d.ts +1 -1
- package/lib/cjs/Editing/Structs.d.ts.map +1 -1
- package/lib/cjs/Editing/Structs.js +2 -2
- package/lib/cjs/Editing/Structs.js.map +1 -1
- package/lib/cjs/Merging/CAClassMerger.js.map +1 -1
- package/lib/cjs/Merging/ClassMerger.js +7 -16
- package/lib/cjs/Merging/ClassMerger.js.map +1 -1
- package/lib/cjs/Merging/ConstantMerger.js.map +1 -1
- package/lib/cjs/Merging/CustomAttributeMerger.d.ts.map +1 -1
- package/lib/cjs/Merging/CustomAttributeMerger.js +6 -1
- package/lib/cjs/Merging/CustomAttributeMerger.js.map +1 -1
- package/lib/cjs/Merging/EntityClassMerger.js.map +1 -1
- package/lib/cjs/Merging/EnumerationMerger.js.map +1 -1
- package/lib/cjs/Merging/KindOfQuantityMerger.js.map +1 -1
- package/lib/cjs/Merging/MixinMerger.js.map +1 -1
- package/lib/cjs/Merging/PhenomenonMerger.js.map +1 -1
- package/lib/cjs/Merging/PropertyCategoryMerger.js.map +1 -1
- package/lib/cjs/Merging/PropertyMerger.d.ts.map +1 -1
- package/lib/cjs/Merging/PropertyMerger.js +54 -23
- package/lib/cjs/Merging/PropertyMerger.js.map +1 -1
- package/lib/cjs/Merging/RelationshipClassMerger.js.map +1 -1
- package/lib/cjs/Merging/SchemaItemMerger.js.map +1 -1
- package/lib/cjs/Merging/SchemaMerger.d.ts +1 -1
- package/lib/cjs/Merging/SchemaMerger.d.ts.map +1 -1
- package/lib/cjs/Merging/SchemaMerger.js +12 -8
- package/lib/cjs/Merging/SchemaMerger.js.map +1 -1
- package/lib/cjs/Merging/SchemaReferenceMerger.js.map +1 -1
- package/lib/cjs/Merging/UnitSystemMerger.js.map +1 -1
- package/lib/cjs/Validation/Diagnostic.d.ts +2 -2
- package/lib/cjs/Validation/Diagnostic.d.ts.map +1 -1
- package/lib/cjs/Validation/Diagnostic.js +4 -4
- package/lib/cjs/Validation/Diagnostic.js.map +1 -1
- package/lib/cjs/Validation/DiagnosticReporter.js.map +1 -1
- package/lib/cjs/Validation/ECRules.d.ts +58 -58
- package/lib/cjs/Validation/ECRules.d.ts.map +1 -1
- package/lib/cjs/Validation/ECRules.js.map +1 -1
- package/lib/cjs/Validation/LoggingDiagnosticReporter.js.map +1 -1
- package/lib/cjs/Validation/SchemaChanges.d.ts +38 -6
- package/lib/cjs/Validation/SchemaChanges.d.ts.map +1 -1
- package/lib/cjs/Validation/SchemaChanges.js +97 -27
- package/lib/cjs/Validation/SchemaChanges.js.map +1 -1
- package/lib/cjs/Validation/SchemaCompareResultDelegate.js.map +1 -1
- package/lib/cjs/Validation/SchemaCompareVisitor.js +4 -3
- package/lib/cjs/Validation/SchemaCompareVisitor.js.map +1 -1
- package/lib/cjs/Validation/SchemaComparer.d.ts +1 -0
- package/lib/cjs/Validation/SchemaComparer.d.ts.map +1 -1
- package/lib/cjs/Validation/SchemaComparer.js +238 -260
- package/lib/cjs/Validation/SchemaComparer.js.map +1 -1
- package/lib/cjs/Validation/SchemaValidationVisitor.js.map +1 -1
- package/lib/cjs/Validation/SchemaWalker.js.map +1 -1
- package/lib/cjs/ecschema-editing.d.ts +2 -0
- package/lib/cjs/ecschema-editing.d.ts.map +1 -1
- package/lib/cjs/ecschema-editing.js +2 -0
- package/lib/cjs/ecschema-editing.js.map +1 -1
- package/package.json +11 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiagnosticReporter.js","sourceRoot":"","sources":["../../../src/Validation/DiagnosticReporter.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAKH,iCAAkC;AAElC,MAAM,oBAAoB,GAAG,kBAAkB,CAAC;AAChD,MAAM,uBAAuB,GAAG,aAAa,CAAC;AAC9C,MAAM,kBAAkB,GAAG,GAAG,oBAAoB,IAAI,uBAAuB,EAAE,CAAC;AAwBhF;;;;;GAKG;AACH,MAAsB,6BAA6B;IAGjD;;;OAGG;IACH,YAAY,YAAoC;QAC9C,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;IACpC,CAAC;IAED;;;OAGG;IACH,IAAW,YAAY;QACrB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,UAAyB;QACrC,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"DiagnosticReporter.js","sourceRoot":"","sources":["../../../src/Validation/DiagnosticReporter.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAKH,iCAAkC;AAElC,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,CAAC;QACjF,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,KAAa,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;IAC3G,CAAC;IAEO,aAAa,CAAC,UAAyB;QAC7C,IAAI,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;QAE1D,IAAI,UAAU,CAAC,WAAW,IAAI,UAAU,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC;YAC7D,iBAAiB,GAAG,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;QAC3F,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAEO,gBAAgB,CAAC,UAAyB;QAChD,IAAI,CAAC,IAAI,CAAC,YAAY;YACpB,OAAO,UAAU,CAAC,WAAW,CAAC;QAEhC,OAAO,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC,CAAC;IAClF,CAAC;IAEO,iBAAiB,CAAC,UAAyB;QACjD,OAAO,GAAG,kBAAkB,IAAI,UAAU,CAAC,IAAI,EAAE,CAAC;IACpD,CAAC;IAEO,aAAa,CAAI,KAA2B,EAAE,OAAgB;QACpE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI;YACvC,OAAO,MAAM,CAAC,KAAK,EAAE,OAAO,CAAU,CAAC;QAEzC,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AApED,4DAoEC","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 Diagnostic\n */\n\nimport { Localization } from \"@itwin/core-common\";\nimport { AnyDiagnostic } from \"./Diagnostic\";\n\nimport assert = require(\"assert\");\n\nconst translationNamespace = \"ECSchemaMetaData\";\nconst subTranslationNamespace = \"Diagnostics\";\nconst baseTranslationKey = `${translationNamespace}:${subTranslationNamespace}`;\n\n/**\n * Interface used to report [[IDiagnostic]] objects created during schema validation.\n * @beta\n */\nexport interface IDiagnosticReporter {\n /**\n * A map where the key is a schema full name and the value is a collection\n * of diagnostics codes identifying which rules violations to ignore during validation.\n */\n suppressions?: Map<string, string[]>;\n\n /** The localization object to use for message translation. */\n localization?: Localization;\n\n /**\n * Handles the given [[IDiagnostic]] based on the implementation requirements for a\n * given reporter.\n * @param diagnostic The diagnostic to report.\n */\n report(diagnostic: AnyDiagnostic): void;\n}\n\n/**\n * An abstract base class for [[IDiagnosticReporter]] implementation that used the\n * provided Map to suppress certain rule violations from being reported. The Map's key\n * a schema full name, and the Map's value is a collection of rule codes to suppress.\n * @beta\n */\nexport abstract class SuppressionDiagnosticReporter implements IDiagnosticReporter {\n private _suppressions?: Map<string, string[]>;\n\n /**\n * Initializes a new SuppressionDiagnosticReporter\n * @param suppressions A Map where the key is a schema full name and the value is collection of diagnostic codes to suppress.\n */\n constructor(suppressions?: Map<string, string[]>) {\n this._suppressions = suppressions;\n }\n\n /**\n * Gets the collection of ISchemaDiagnosticSuppression objects that identify\n * rules violations to ignore during validation.\n */\n public get suppressions(): Map<string, string[]> | undefined {\n return this._suppressions;\n }\n\n /**\n * Prior to reporting the [[IDiagnostic]], the diagnostic message is formatted (with translations)\n * base on arguments contained in the diagnostic. Calls reportDiagnostic after the message is formatted.\n * @param diagnostic The diagnostic to report.\n */\n public report(diagnostic: AnyDiagnostic) {\n if (this._suppressions && this._suppressions.has(diagnostic.schema.fullName)) {\n const suppressedCodes = this._suppressions.get(diagnostic.schema.fullName);\n if (suppressedCodes!.includes(diagnostic.code))\n return;\n }\n\n this.reportInternal(diagnostic);\n }\n\n /**\n * Handles the given [[IDiagnostic]] based on the implementation requirements for a\n * given reporter.\n * @param diagnostic The diagnostic to report.\n */\n protected abstract reportInternal(diagnostic: AnyDiagnostic): void;\n}\n\n/**\n * An abstract [[SuppressionDiagnosticReporter]] implementation that formats the\n * diagnostic message with the message args. If a Localization implementation is specified,\n * the message will also be translated.\n * @beta\n */\nexport abstract class FormatDiagnosticReporter extends SuppressionDiagnosticReporter {\n /**\n * Initializes a new FormatDiagnosticReporter\n * @param suppressions A Map where the key is a schema full name and the value is collection of diagnostic codes to suppress.\n * @param localization The Localization instance to use to translate validation messages.\n */\n constructor(suppressions?: Map<string, string[]>, localization?: Localization) {\n super(suppressions);\n this.localization = localization;\n }\n\n /** The Localization object to use for message translation. If undefined, no translation will occur. */\n public localization?: Localization;\n\n /**\n * Prior to reporting the [[IDiagnostic]], the diagnostic message is formatted (with translations)\n * base on arguments contained in the diagnostic. Calls reportDiagnostic after the message is formatted.\n * @param diagnostic The diagnostic to report.\n */\n public reportInternal(diagnostic: AnyDiagnostic) {\n const message = this.formatMessage(diagnostic);\n this.reportDiagnostic(diagnostic, message);\n }\n\n /**\n * Handles the given [[IDiagnostic]] based on the implementation requirements for a\n * given reporter.\n * @param diagnostic The diagnostic to report.\n * @param messageText The formatted message.\n */\n protected abstract reportDiagnostic(diagnostic: AnyDiagnostic, messageText: string): void;\n\n /**\n * Helper method that formats string with provided arguments where the place holders\n * are in the the format '{0}', '{1}', etc.\n * @param text The text to format.\n * @param args The arguments to place in the text.\n * @param baseIndex The base index for the args, used for validation (typically 0, which is the default).\n */\n protected formatStringFromArgs(text: string, args: ArrayLike<string>, baseIndex = 0): string {\n return text.replace(/{(\\d+)}/g, (_match, index: string) => this.assertDefined(args[+index + baseIndex]));\n }\n\n private formatMessage(diagnostic: AnyDiagnostic): string {\n let translatedMessage = this.translateMessage(diagnostic);\n\n if (diagnostic.messageArgs && diagnostic.messageArgs.length > 0)\n translatedMessage = this.formatStringFromArgs(translatedMessage, diagnostic.messageArgs);\n return translatedMessage;\n }\n\n private translateMessage(diagnostic: AnyDiagnostic): string {\n if (!this.localization)\n return diagnostic.messageText;\n\n return this.localization.getLocalizedString(this.getTranslationKey(diagnostic));\n }\n\n private getTranslationKey(diagnostic: AnyDiagnostic): string {\n return `${baseTranslationKey}.${diagnostic.code}`;\n }\n\n private assertDefined<T>(value: T | null | undefined, message?: string): T {\n if (value === undefined || value === null)\n return assert(false, message) as never;\n\n return value;\n }\n}\n"]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @module Validation
|
|
3
3
|
*/
|
|
4
4
|
import { AnyClass, AnyProperty, CustomAttribute, CustomAttributeContainerProps, EntityClass, Enumeration, RelationshipClass, RelationshipConstraint, Schema } from "@itwin/ecschema-metadata";
|
|
5
|
-
import { ClassDiagnostic, CustomAttributeContainerDiagnostic, PropertyDiagnostic, RelationshipConstraintDiagnostic, SchemaDiagnostic, SchemaItemDiagnostic } from "./Diagnostic";
|
|
5
|
+
import { ClassDiagnostic, CustomAttributeContainerDiagnostic, DiagnosticType, PropertyDiagnostic, RelationshipConstraintDiagnostic, SchemaDiagnostic, SchemaItemDiagnostic } from "./Diagnostic";
|
|
6
6
|
import { IRuleSet } from "./Rules";
|
|
7
7
|
/**
|
|
8
8
|
* The unique diagnostic codes for ECObjects rules.
|
|
@@ -62,13 +62,13 @@ export declare const Diagnostics: {
|
|
|
62
62
|
readonly code: string;
|
|
63
63
|
readonly messageText: string;
|
|
64
64
|
readonly schema: Schema;
|
|
65
|
-
readonly diagnosticType:
|
|
65
|
+
readonly diagnosticType: DiagnosticType;
|
|
66
66
|
ecDefinition: Schema;
|
|
67
|
-
messageArgs?: [string, string] | undefined;
|
|
67
|
+
messageArgs?: [string, string] | undefined;
|
|
68
68
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
69
69
|
};
|
|
70
70
|
code: string;
|
|
71
|
-
diagnosticType:
|
|
71
|
+
diagnosticType: DiagnosticType;
|
|
72
72
|
};
|
|
73
73
|
/** EC-002: Required message parameters: schema name, reference schema alias, first schema reference name, second schema reference name. */
|
|
74
74
|
SchemaRefAliasMustBeUnique: {
|
|
@@ -76,13 +76,13 @@ export declare const Diagnostics: {
|
|
|
76
76
|
readonly code: string;
|
|
77
77
|
readonly messageText: string;
|
|
78
78
|
readonly schema: Schema;
|
|
79
|
-
readonly diagnosticType:
|
|
79
|
+
readonly diagnosticType: DiagnosticType;
|
|
80
80
|
ecDefinition: Schema;
|
|
81
|
-
messageArgs?: [string, string, string, string] | undefined;
|
|
81
|
+
messageArgs?: [string, string, string, string] | undefined;
|
|
82
82
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
83
83
|
};
|
|
84
84
|
code: string;
|
|
85
|
-
diagnosticType:
|
|
85
|
+
diagnosticType: DiagnosticType;
|
|
86
86
|
};
|
|
87
87
|
/** EC-003: Required message parameters: schema name, cycle text */
|
|
88
88
|
ReferenceCyclesNotAllowed: {
|
|
@@ -90,13 +90,13 @@ export declare const Diagnostics: {
|
|
|
90
90
|
readonly code: string;
|
|
91
91
|
readonly messageText: string;
|
|
92
92
|
readonly schema: Schema;
|
|
93
|
-
readonly diagnosticType:
|
|
93
|
+
readonly diagnosticType: DiagnosticType;
|
|
94
94
|
ecDefinition: Schema;
|
|
95
|
-
messageArgs?: [string, string] | undefined;
|
|
95
|
+
messageArgs?: [string, string] | undefined;
|
|
96
96
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
97
97
|
};
|
|
98
98
|
code: string;
|
|
99
|
-
diagnosticType:
|
|
99
|
+
diagnosticType: DiagnosticType;
|
|
100
100
|
};
|
|
101
101
|
/** EC-100: Required message parameters: childClass.FullName, baseClass.FullName */
|
|
102
102
|
BaseClassIsSealed: {
|
|
@@ -104,12 +104,12 @@ export declare const Diagnostics: {
|
|
|
104
104
|
readonly code: string;
|
|
105
105
|
readonly messageText: string;
|
|
106
106
|
readonly schema: Schema;
|
|
107
|
-
readonly diagnosticType:
|
|
107
|
+
readonly diagnosticType: DiagnosticType;
|
|
108
108
|
ecDefinition: AnyClass;
|
|
109
|
-
messageArgs?: [string, string] | undefined;
|
|
109
|
+
messageArgs?: [string, string] | undefined;
|
|
110
110
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
111
111
|
};
|
|
112
|
-
diagnosticType:
|
|
112
|
+
diagnosticType: DiagnosticType;
|
|
113
113
|
};
|
|
114
114
|
/** EC-101: Required message parameters: childClass.FullName, baseClass.FullName, baseClass.schemaItemType */
|
|
115
115
|
BaseClassIsOfDifferentType: {
|
|
@@ -117,12 +117,12 @@ export declare const Diagnostics: {
|
|
|
117
117
|
readonly code: string;
|
|
118
118
|
readonly messageText: string;
|
|
119
119
|
readonly schema: Schema;
|
|
120
|
-
readonly diagnosticType:
|
|
120
|
+
readonly diagnosticType: DiagnosticType;
|
|
121
121
|
ecDefinition: AnyClass;
|
|
122
|
-
messageArgs?: [string, string, string] | undefined;
|
|
122
|
+
messageArgs?: [string, string, string] | undefined;
|
|
123
123
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
124
124
|
};
|
|
125
|
-
diagnosticType:
|
|
125
|
+
diagnosticType: DiagnosticType;
|
|
126
126
|
};
|
|
127
127
|
/** **DEPRECATED** EC-102: Required message parameters: childClass.FullName, baseClass.FullName */
|
|
128
128
|
AbstractClassWithNonAbstractBase: {
|
|
@@ -130,12 +130,12 @@ export declare const Diagnostics: {
|
|
|
130
130
|
readonly code: string;
|
|
131
131
|
readonly messageText: string;
|
|
132
132
|
readonly schema: Schema;
|
|
133
|
-
readonly diagnosticType:
|
|
133
|
+
readonly diagnosticType: DiagnosticType;
|
|
134
134
|
ecDefinition: AnyClass;
|
|
135
|
-
messageArgs?: [string, string] | undefined;
|
|
135
|
+
messageArgs?: [string, string] | undefined;
|
|
136
136
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
137
137
|
};
|
|
138
|
-
diagnosticType:
|
|
138
|
+
diagnosticType: DiagnosticType;
|
|
139
139
|
};
|
|
140
140
|
/** EC-500: Required message parameters: CustomAttribute container name and CustomAttributeClass name. */
|
|
141
141
|
CustomAttributeNotOfConcreteClass: {
|
|
@@ -143,9 +143,9 @@ export declare const Diagnostics: {
|
|
|
143
143
|
readonly code: string;
|
|
144
144
|
readonly messageText: string;
|
|
145
145
|
readonly schema: Schema;
|
|
146
|
-
readonly diagnosticType:
|
|
146
|
+
readonly diagnosticType: DiagnosticType;
|
|
147
147
|
ecDefinition: CustomAttributeContainerProps;
|
|
148
|
-
messageArgs?: [string, string] | undefined;
|
|
148
|
+
messageArgs?: [string, string] | undefined;
|
|
149
149
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
150
150
|
};
|
|
151
151
|
};
|
|
@@ -155,9 +155,9 @@ export declare const Diagnostics: {
|
|
|
155
155
|
readonly code: string;
|
|
156
156
|
readonly messageText: string;
|
|
157
157
|
readonly schema: Schema;
|
|
158
|
-
readonly diagnosticType:
|
|
158
|
+
readonly diagnosticType: DiagnosticType;
|
|
159
159
|
ecDefinition: CustomAttributeContainerProps;
|
|
160
|
-
messageArgs?: [string, string] | undefined;
|
|
160
|
+
messageArgs?: [string, string] | undefined;
|
|
161
161
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
162
162
|
};
|
|
163
163
|
};
|
|
@@ -167,9 +167,9 @@ export declare const Diagnostics: {
|
|
|
167
167
|
readonly code: string;
|
|
168
168
|
readonly messageText: string;
|
|
169
169
|
readonly schema: Schema;
|
|
170
|
-
readonly diagnosticType:
|
|
170
|
+
readonly diagnosticType: DiagnosticType;
|
|
171
171
|
ecDefinition: CustomAttributeContainerProps;
|
|
172
|
-
messageArgs?: [string, string] | undefined;
|
|
172
|
+
messageArgs?: [string, string] | undefined;
|
|
173
173
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
174
174
|
};
|
|
175
175
|
};
|
|
@@ -179,12 +179,12 @@ export declare const Diagnostics: {
|
|
|
179
179
|
readonly code: string;
|
|
180
180
|
readonly messageText: string;
|
|
181
181
|
readonly schema: Schema;
|
|
182
|
-
readonly diagnosticType:
|
|
182
|
+
readonly diagnosticType: DiagnosticType;
|
|
183
183
|
ecDefinition: Enumeration;
|
|
184
|
-
messageArgs?: [string] | undefined;
|
|
184
|
+
messageArgs?: [string] | undefined;
|
|
185
185
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
186
186
|
};
|
|
187
|
-
diagnosticType:
|
|
187
|
+
diagnosticType: DiagnosticType;
|
|
188
188
|
};
|
|
189
189
|
/** EC-1100: Required message parameters: mixin class fullName, class fullName, applies to constraint class fullName */
|
|
190
190
|
MixinAppliedToClassMustDeriveFromConstraint: {
|
|
@@ -192,12 +192,12 @@ export declare const Diagnostics: {
|
|
|
192
192
|
readonly code: string;
|
|
193
193
|
readonly messageText: string;
|
|
194
194
|
readonly schema: Schema;
|
|
195
|
-
readonly diagnosticType:
|
|
195
|
+
readonly diagnosticType: DiagnosticType;
|
|
196
196
|
ecDefinition: EntityClass;
|
|
197
|
-
messageArgs?: [string, string, string] | undefined;
|
|
197
|
+
messageArgs?: [string, string, string] | undefined;
|
|
198
198
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
199
199
|
};
|
|
200
|
-
diagnosticType:
|
|
200
|
+
diagnosticType: DiagnosticType;
|
|
201
201
|
};
|
|
202
202
|
/** EC-1300: Required message parameters: childClass.FullName, property name, baseClass.FullName, base value type, child value type */
|
|
203
203
|
IncompatibleValueTypePropertyOverride: {
|
|
@@ -205,9 +205,9 @@ export declare const Diagnostics: {
|
|
|
205
205
|
readonly code: string;
|
|
206
206
|
readonly messageText: string;
|
|
207
207
|
readonly schema: Schema;
|
|
208
|
-
readonly diagnosticType:
|
|
208
|
+
readonly diagnosticType: DiagnosticType;
|
|
209
209
|
ecDefinition: AnyProperty;
|
|
210
|
-
messageArgs?: [string, string, string, string, string] | undefined;
|
|
210
|
+
messageArgs?: [string, string, string, string, string] | undefined;
|
|
211
211
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
212
212
|
};
|
|
213
213
|
code: string;
|
|
@@ -218,9 +218,9 @@ export declare const Diagnostics: {
|
|
|
218
218
|
readonly code: string;
|
|
219
219
|
readonly messageText: string;
|
|
220
220
|
readonly schema: Schema;
|
|
221
|
-
readonly diagnosticType:
|
|
221
|
+
readonly diagnosticType: DiagnosticType;
|
|
222
222
|
ecDefinition: AnyProperty;
|
|
223
|
-
messageArgs?: [string, string, string, string, string] | undefined;
|
|
223
|
+
messageArgs?: [string, string, string, string, string] | undefined;
|
|
224
224
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
225
225
|
};
|
|
226
226
|
code: string;
|
|
@@ -231,9 +231,9 @@ export declare const Diagnostics: {
|
|
|
231
231
|
readonly code: string;
|
|
232
232
|
readonly messageText: string;
|
|
233
233
|
readonly schema: Schema;
|
|
234
|
-
readonly diagnosticType:
|
|
234
|
+
readonly diagnosticType: DiagnosticType;
|
|
235
235
|
ecDefinition: AnyProperty;
|
|
236
|
-
messageArgs?: [string, string, string, string, string, string, string] | undefined;
|
|
236
|
+
messageArgs?: [string, string, string, string, string, string, string] | undefined;
|
|
237
237
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
238
238
|
};
|
|
239
239
|
code: string;
|
|
@@ -244,9 +244,9 @@ export declare const Diagnostics: {
|
|
|
244
244
|
readonly code: string;
|
|
245
245
|
readonly messageText: string;
|
|
246
246
|
readonly schema: Schema;
|
|
247
|
-
readonly diagnosticType:
|
|
247
|
+
readonly diagnosticType: DiagnosticType;
|
|
248
248
|
ecDefinition: AnyProperty;
|
|
249
|
-
messageArgs?: [string, string] | undefined;
|
|
249
|
+
messageArgs?: [string, string] | undefined;
|
|
250
250
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
251
251
|
};
|
|
252
252
|
code: string;
|
|
@@ -257,9 +257,9 @@ export declare const Diagnostics: {
|
|
|
257
257
|
readonly code: string;
|
|
258
258
|
readonly messageText: string;
|
|
259
259
|
readonly schema: Schema;
|
|
260
|
-
readonly diagnosticType:
|
|
260
|
+
readonly diagnosticType: DiagnosticType;
|
|
261
261
|
ecDefinition: AnyProperty;
|
|
262
|
-
messageArgs?: [string, string, string] | undefined;
|
|
262
|
+
messageArgs?: [string, string, string] | undefined;
|
|
263
263
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
264
264
|
};
|
|
265
265
|
code: string;
|
|
@@ -270,9 +270,9 @@ export declare const Diagnostics: {
|
|
|
270
270
|
readonly code: string;
|
|
271
271
|
readonly messageText: string;
|
|
272
272
|
readonly schema: Schema;
|
|
273
|
-
readonly diagnosticType:
|
|
273
|
+
readonly diagnosticType: DiagnosticType;
|
|
274
274
|
ecDefinition: AnyProperty;
|
|
275
|
-
messageArgs?: [string, string] | undefined;
|
|
275
|
+
messageArgs?: [string, string] | undefined;
|
|
276
276
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
277
277
|
};
|
|
278
278
|
code: string;
|
|
@@ -283,9 +283,9 @@ export declare const Diagnostics: {
|
|
|
283
283
|
readonly code: string;
|
|
284
284
|
readonly messageText: string;
|
|
285
285
|
readonly schema: Schema;
|
|
286
|
-
readonly diagnosticType:
|
|
286
|
+
readonly diagnosticType: DiagnosticType;
|
|
287
287
|
ecDefinition: AnyProperty;
|
|
288
|
-
messageArgs?: [string, string, string, string] | undefined;
|
|
288
|
+
messageArgs?: [string, string, string, string] | undefined;
|
|
289
289
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
290
290
|
};
|
|
291
291
|
code: string;
|
|
@@ -296,12 +296,12 @@ export declare const Diagnostics: {
|
|
|
296
296
|
readonly code: string;
|
|
297
297
|
readonly messageText: string;
|
|
298
298
|
readonly schema: Schema;
|
|
299
|
-
readonly diagnosticType:
|
|
299
|
+
readonly diagnosticType: DiagnosticType;
|
|
300
300
|
ecDefinition: RelationshipClass;
|
|
301
|
-
messageArgs?: [string, string, string, string] | undefined;
|
|
301
|
+
messageArgs?: [string, string, string, string] | undefined;
|
|
302
302
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
303
303
|
};
|
|
304
|
-
diagnosticType:
|
|
304
|
+
diagnosticType: DiagnosticType;
|
|
305
305
|
};
|
|
306
306
|
/** EC-1501: Required message parameters: constraint class name, relationship end (source/target), relationship name, base relationship name */
|
|
307
307
|
DerivedConstraintsMustNarrowBaseConstraints: {
|
|
@@ -309,12 +309,12 @@ export declare const Diagnostics: {
|
|
|
309
309
|
readonly code: string;
|
|
310
310
|
readonly messageText: string;
|
|
311
311
|
readonly schema: Schema;
|
|
312
|
-
readonly diagnosticType:
|
|
312
|
+
readonly diagnosticType: DiagnosticType;
|
|
313
313
|
ecDefinition: RelationshipClass;
|
|
314
|
-
messageArgs?: [string, string, string, string] | undefined;
|
|
314
|
+
messageArgs?: [string, string, string, string] | undefined;
|
|
315
315
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
316
316
|
};
|
|
317
|
-
diagnosticType:
|
|
317
|
+
diagnosticType: DiagnosticType;
|
|
318
318
|
};
|
|
319
319
|
/** EC-1502: Required message parameters: constraint class name, relationship end (source/target), relationship name, abstract constraint class name */
|
|
320
320
|
ConstraintClassesDeriveFromAbstractConstraint: {
|
|
@@ -322,12 +322,12 @@ export declare const Diagnostics: {
|
|
|
322
322
|
readonly code: string;
|
|
323
323
|
readonly messageText: string;
|
|
324
324
|
readonly schema: Schema;
|
|
325
|
-
readonly diagnosticType:
|
|
325
|
+
readonly diagnosticType: DiagnosticType;
|
|
326
326
|
ecDefinition: RelationshipClass;
|
|
327
|
-
messageArgs?: [string, string, string, string] | undefined;
|
|
327
|
+
messageArgs?: [string, string, string, string] | undefined;
|
|
328
328
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
329
329
|
};
|
|
330
|
-
diagnosticType:
|
|
330
|
+
diagnosticType: DiagnosticType;
|
|
331
331
|
};
|
|
332
332
|
/** EC-1600: Required message parameters: relationship end (source/target), relationship name */
|
|
333
333
|
AtLeastOneConstraintClassDefined: {
|
|
@@ -335,9 +335,9 @@ export declare const Diagnostics: {
|
|
|
335
335
|
readonly code: string;
|
|
336
336
|
readonly messageText: string;
|
|
337
337
|
readonly schema: Schema;
|
|
338
|
-
readonly diagnosticType:
|
|
338
|
+
readonly diagnosticType: DiagnosticType;
|
|
339
339
|
ecDefinition: RelationshipConstraint;
|
|
340
|
-
messageArgs?: [string, string] | undefined;
|
|
340
|
+
messageArgs?: [string, string] | undefined;
|
|
341
341
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
342
342
|
};
|
|
343
343
|
};
|
|
@@ -347,9 +347,9 @@ export declare const Diagnostics: {
|
|
|
347
347
|
readonly code: string;
|
|
348
348
|
readonly messageText: string;
|
|
349
349
|
readonly schema: Schema;
|
|
350
|
-
readonly diagnosticType:
|
|
350
|
+
readonly diagnosticType: DiagnosticType;
|
|
351
351
|
ecDefinition: RelationshipConstraint;
|
|
352
|
-
messageArgs?: [string, string] | undefined;
|
|
352
|
+
messageArgs?: [string, string] | undefined;
|
|
353
353
|
category: import("./Diagnostic").DiagnosticCategory;
|
|
354
354
|
};
|
|
355
355
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ECRules.d.ts","sourceRoot":"","sources":["../../../src/Validation/ECRules.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EACL,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE,6BAA6B,EAClD,WAAW,EAAE,WAAW,EACjC,iBAAiB,EAAE,sBAAsB,EAA4B,MAAM,EAEtF,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,eAAe,EAC4F,kCAAkC,
|
|
1
|
+
{"version":3,"file":"ECRules.d.ts","sourceRoot":"","sources":["../../../src/Validation/ECRules.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EACL,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE,6BAA6B,EAClD,WAAW,EAAE,WAAW,EACjC,iBAAiB,EAAE,sBAAsB,EAA4B,MAAM,EAEtF,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,eAAe,EAC4F,kCAAkC,EAE7I,cAAc,EAAE,kBAAkB,EAAE,gCAAgC,EAAE,gBAAgB,EAAE,oBAAoB,EAC7G,MAAM,cAAc,CAAC;AACtB,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