@itwin/ecschema-editing 4.0.0-dev.6 → 4.0.0-dev.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/lib/cjs/Editing/Constants.d.ts +20 -20
  3. package/lib/cjs/Editing/Constants.js +60 -60
  4. package/lib/cjs/Editing/Constants.js.map +1 -1
  5. package/lib/cjs/Editing/CustomAttributes.d.ts +20 -20
  6. package/lib/cjs/Editing/CustomAttributes.js +59 -59
  7. package/lib/cjs/Editing/CustomAttributes.js.map +1 -1
  8. package/lib/cjs/Editing/ECClasses.d.ts +54 -54
  9. package/lib/cjs/Editing/ECClasses.js +269 -269
  10. package/lib/cjs/Editing/ECClasses.js.map +1 -1
  11. package/lib/cjs/Editing/Editor.d.ts +112 -112
  12. package/lib/cjs/Editing/Editor.js +166 -166
  13. package/lib/cjs/Editing/Editor.js.map +1 -1
  14. package/lib/cjs/Editing/Entities.d.ts +25 -25
  15. package/lib/cjs/Editing/Entities.js +116 -116
  16. package/lib/cjs/Editing/Entities.js.map +1 -1
  17. package/lib/cjs/Editing/Enumerations.d.ts +21 -21
  18. package/lib/cjs/Editing/Enumerations.js +66 -66
  19. package/lib/cjs/Editing/Enumerations.js.map +1 -1
  20. package/lib/cjs/Editing/Formats.d.ts +21 -21
  21. package/lib/cjs/Editing/Formats.js +61 -61
  22. package/lib/cjs/Editing/Formats.js.map +1 -1
  23. package/lib/cjs/Editing/InvertedUnits.d.ts +17 -17
  24. package/lib/cjs/Editing/InvertedUnits.js +82 -82
  25. package/lib/cjs/Editing/InvertedUnits.js.map +1 -1
  26. package/lib/cjs/Editing/KindOfQuantities.d.ts +28 -28
  27. package/lib/cjs/Editing/KindOfQuantities.js +78 -78
  28. package/lib/cjs/Editing/KindOfQuantities.js.map +1 -1
  29. package/lib/cjs/Editing/Mixins.d.ts +22 -22
  30. package/lib/cjs/Editing/Mixins.js +84 -84
  31. package/lib/cjs/Editing/Mixins.js.map +1 -1
  32. package/lib/cjs/Editing/Mutable/MutableCAClass.d.ts +9 -9
  33. package/lib/cjs/Editing/Mutable/MutableCAClass.js +15 -15
  34. package/lib/cjs/Editing/Mutable/MutableCAClass.js.map +1 -1
  35. package/lib/cjs/Editing/Mutable/MutableClass.d.ts +34 -34
  36. package/lib/cjs/Editing/Mutable/MutableClass.js +22 -22
  37. package/lib/cjs/Editing/Mutable/MutableClass.js.map +1 -1
  38. package/lib/cjs/Editing/Mutable/MutableConstant.d.ts +12 -12
  39. package/lib/cjs/Editing/Mutable/MutableConstant.js +15 -15
  40. package/lib/cjs/Editing/Mutable/MutableConstant.js.map +1 -1
  41. package/lib/cjs/Editing/Mutable/MutableEntityClass.d.ts +15 -15
  42. package/lib/cjs/Editing/Mutable/MutableEntityClass.js +59 -59
  43. package/lib/cjs/Editing/Mutable/MutableEntityClass.js.map +1 -1
  44. package/lib/cjs/Editing/Mutable/MutableEnumeration.d.ts +9 -9
  45. package/lib/cjs/Editing/Mutable/MutableEnumeration.js +14 -14
  46. package/lib/cjs/Editing/Mutable/MutableEnumeration.js.map +1 -1
  47. package/lib/cjs/Editing/Mutable/MutableFormat.d.ts +18 -18
  48. package/lib/cjs/Editing/Mutable/MutableFormat.js +15 -15
  49. package/lib/cjs/Editing/Mutable/MutableFormat.js.map +1 -1
  50. package/lib/cjs/Editing/Mutable/MutableInvertedUnit.d.ts +10 -10
  51. package/lib/cjs/Editing/Mutable/MutableInvertedUnit.js +15 -15
  52. package/lib/cjs/Editing/Mutable/MutableInvertedUnit.js.map +1 -1
  53. package/lib/cjs/Editing/Mutable/MutableKindOfQuantity.d.ts +10 -10
  54. package/lib/cjs/Editing/Mutable/MutableKindOfQuantity.js +15 -15
  55. package/lib/cjs/Editing/Mutable/MutableKindOfQuantity.js.map +1 -1
  56. package/lib/cjs/Editing/Mutable/MutableMixin.d.ts +11 -11
  57. package/lib/cjs/Editing/Mutable/MutableMixin.js +15 -15
  58. package/lib/cjs/Editing/Mutable/MutableMixin.js.map +1 -1
  59. package/lib/cjs/Editing/Mutable/MutablePhenomenon.d.ts +9 -9
  60. package/lib/cjs/Editing/Mutable/MutablePhenomenon.js +15 -15
  61. package/lib/cjs/Editing/Mutable/MutablePhenomenon.js.map +1 -1
  62. package/lib/cjs/Editing/Mutable/MutableProperty.d.ts +8 -8
  63. package/lib/cjs/Editing/Mutable/MutableProperty.js +15 -15
  64. package/lib/cjs/Editing/Mutable/MutableProperty.js.map +1 -1
  65. package/lib/cjs/Editing/Mutable/MutablePropertyCategory.d.ts +9 -9
  66. package/lib/cjs/Editing/Mutable/MutablePropertyCategory.js +15 -15
  67. package/lib/cjs/Editing/Mutable/MutablePropertyCategory.js.map +1 -1
  68. package/lib/cjs/Editing/Mutable/MutableRelationshipClass.d.ts +21 -21
  69. package/lib/cjs/Editing/Mutable/MutableRelationshipClass.js +24 -24
  70. package/lib/cjs/Editing/Mutable/MutableRelationshipClass.js.map +1 -1
  71. package/lib/cjs/Editing/Mutable/MutableSchema.d.ts +45 -45
  72. package/lib/cjs/Editing/Mutable/MutableSchema.js +17 -17
  73. package/lib/cjs/Editing/Mutable/MutableSchema.js.map +1 -1
  74. package/lib/cjs/Editing/Mutable/MutableUnit.d.ts +11 -11
  75. package/lib/cjs/Editing/Mutable/MutableUnit.js +15 -15
  76. package/lib/cjs/Editing/Mutable/MutableUnit.js.map +1 -1
  77. package/lib/cjs/Editing/Mutable/MutableUnitSystem.d.ts +8 -8
  78. package/lib/cjs/Editing/Mutable/MutableUnitSystem.js +15 -15
  79. package/lib/cjs/Editing/Mutable/MutableUnitSystem.js.map +1 -1
  80. package/lib/cjs/Editing/Phenomena.d.ts +15 -15
  81. package/lib/cjs/Editing/Phenomena.js +44 -44
  82. package/lib/cjs/Editing/Phenomena.js.map +1 -1
  83. package/lib/cjs/Editing/PropertyCategories.d.ts +16 -16
  84. package/lib/cjs/Editing/PropertyCategories.js +51 -51
  85. package/lib/cjs/Editing/PropertyCategories.js.map +1 -1
  86. package/lib/cjs/Editing/RelationshipClasses.d.ts +21 -21
  87. package/lib/cjs/Editing/RelationshipClasses.js +68 -68
  88. package/lib/cjs/Editing/RelationshipClasses.js.map +1 -1
  89. package/lib/cjs/Editing/Structs.d.ts +19 -19
  90. package/lib/cjs/Editing/Structs.js +57 -57
  91. package/lib/cjs/Editing/Structs.js.map +1 -1
  92. package/lib/cjs/Editing/UnitSystems.d.ts +15 -15
  93. package/lib/cjs/Editing/UnitSystems.js +41 -41
  94. package/lib/cjs/Editing/UnitSystems.js.map +1 -1
  95. package/lib/cjs/Editing/Units.d.ts +15 -15
  96. package/lib/cjs/Editing/Units.js +58 -58
  97. package/lib/cjs/Editing/Units.js.map +1 -1
  98. package/lib/cjs/Validation/Diagnostic.d.ts +321 -321
  99. package/lib/cjs/Validation/Diagnostic.d.ts.map +1 -1
  100. package/lib/cjs/Validation/Diagnostic.js +310 -310
  101. package/lib/cjs/Validation/Diagnostic.js.map +1 -1
  102. package/lib/cjs/Validation/DiagnosticReporter.d.ts +96 -96
  103. package/lib/cjs/Validation/DiagnosticReporter.js +106 -106
  104. package/lib/cjs/Validation/DiagnosticReporter.js.map +1 -1
  105. package/lib/cjs/Validation/ECRules.d.ts +448 -448
  106. package/lib/cjs/Validation/ECRules.js +593 -593
  107. package/lib/cjs/Validation/ECRules.js.map +1 -1
  108. package/lib/cjs/Validation/LoggingDiagnosticReporter.d.ts +13 -13
  109. package/lib/cjs/Validation/LoggingDiagnosticReporter.js +40 -40
  110. package/lib/cjs/Validation/LoggingDiagnosticReporter.js.map +1 -1
  111. package/lib/cjs/Validation/RuleSuppressionSet.d.ts +59 -59
  112. package/lib/cjs/Validation/RuleSuppressionSet.d.ts.map +1 -1
  113. package/lib/cjs/Validation/RuleSuppressionSet.js +9 -9
  114. package/lib/cjs/Validation/RuleSuppressionSet.js.map +1 -1
  115. package/lib/cjs/Validation/Rules.d.ts +64 -64
  116. package/lib/cjs/Validation/Rules.d.ts.map +1 -1
  117. package/lib/cjs/Validation/Rules.js +9 -9
  118. package/lib/cjs/Validation/Rules.js.map +1 -1
  119. package/lib/cjs/Validation/SchemaChanges.d.ts +607 -607
  120. package/lib/cjs/Validation/SchemaChanges.js +1135 -1135
  121. package/lib/cjs/Validation/SchemaChanges.js.map +1 -1
  122. package/lib/cjs/Validation/SchemaCompareDiagnostics.d.ts +422 -422
  123. package/lib/cjs/Validation/SchemaCompareDiagnostics.js +111 -111
  124. package/lib/cjs/Validation/SchemaCompareDiagnostics.js.map +1 -1
  125. package/lib/cjs/Validation/SchemaCompareReporter.d.ts +11 -11
  126. package/lib/cjs/Validation/SchemaCompareReporter.js +9 -9
  127. package/lib/cjs/Validation/SchemaCompareReporter.js.map +1 -1
  128. package/lib/cjs/Validation/SchemaCompareResultDelegate.d.ts +236 -236
  129. package/lib/cjs/Validation/SchemaCompareResultDelegate.js +348 -348
  130. package/lib/cjs/Validation/SchemaCompareResultDelegate.js.map +1 -1
  131. package/lib/cjs/Validation/SchemaCompareVisitor.d.ts +119 -119
  132. package/lib/cjs/Validation/SchemaCompareVisitor.js +206 -206
  133. package/lib/cjs/Validation/SchemaCompareVisitor.js.map +1 -1
  134. package/lib/cjs/Validation/SchemaComparer.d.ts +171 -171
  135. package/lib/cjs/Validation/SchemaComparer.js +666 -666
  136. package/lib/cjs/Validation/SchemaComparer.js.map +1 -1
  137. package/lib/cjs/Validation/SchemaValidater.d.ts +19 -19
  138. package/lib/cjs/Validation/SchemaValidater.js +61 -61
  139. package/lib/cjs/Validation/SchemaValidater.js.map +1 -1
  140. package/lib/cjs/Validation/SchemaValidationVisitor.d.ts +170 -170
  141. package/lib/cjs/Validation/SchemaValidationVisitor.js +492 -492
  142. package/lib/cjs/Validation/SchemaValidationVisitor.js.map +1 -1
  143. package/lib/cjs/Validation/SchemaWalker.d.ts +22 -22
  144. package/lib/cjs/Validation/SchemaWalker.js +51 -51
  145. package/lib/cjs/Validation/SchemaWalker.js.map +1 -1
  146. package/lib/cjs/ecschema-editing.d.ts +33 -33
  147. package/lib/cjs/ecschema-editing.js +58 -54
  148. package/lib/cjs/ecschema-editing.js.map +1 -1
  149. package/package.json +12 -12
  150. package/public/locales/en/ECSchemaEditing.json +26 -26
@@ -1,65 +1,65 @@
1
- /** @packageDocumentation
2
- * @module Validation
3
- */
4
- import { AnyClass, AnyECType, AnyProperty, Constant, CustomAttribute, CustomAttributeClass, CustomAttributeContainerProps, EntityClass, Enumeration, Format, InvertedUnit, KindOfQuantity, Mixin, Phenomenon, PropertyCategory, RelationshipClass, RelationshipConstraint, Schema, SchemaItem, StructClass, Unit, UnitSystem } from "@itwin/ecschema-metadata";
5
- import { BaseDiagnostic } from "./Diagnostic";
6
- /**
7
- * Interface used for all rule implementations used during schema validation.
8
- * @beta
9
- */
10
- export declare type IRule<T extends AnyECType, U = {}> = (ecDefinition: T, ...args: U[]) => AsyncIterable<BaseDiagnostic<T, any[]>>;
11
- /** @beta */
12
- export declare type BaseRule<T extends AnyECType, U extends AnyECType> = IRule<T, U>;
13
- /**
14
- * Interface used to represent logical collection of [IRule]($ecschema-editing) instances.
15
- * @beta
16
- */
17
- export interface IRuleSet {
18
- /** The name of the rule set. */
19
- name: string;
20
- /** A collection of schema names that should be excluded from adhering to the rules defined in this rule set. */
21
- schemaExclusionSet?: string[];
22
- /** The rules that apply to [Schema]($ecschema-metadata) objects. */
23
- schemaRules?: Array<IRule<Schema>>;
24
- /** The rules that apply to [SchemaItem]($ecschema-metadata) objects. */
25
- schemaItemRules?: Array<IRule<SchemaItem>>;
26
- /** The rules that apply to [ECClass]($ecschema-metadata) objects. */
27
- classRules?: Array<IRule<AnyClass>>;
28
- /** The rules that apply to [Property]($ecschema-metadata) objects. */
29
- propertyRules?: Array<IRule<AnyProperty>>;
30
- /** The rules that apply to [EntityClass]($ecschema-metadata) objects. */
31
- entityClassRules?: Array<IRule<EntityClass>>;
32
- /** The rules that apply to [StructClass]($ecschema-metadata) objects. */
33
- structClassRules?: Array<IRule<StructClass>>;
34
- /** The rules that apply to [Mixin]($ecschema-metadata) objects. */
35
- mixinRules?: Array<IRule<Mixin>>;
36
- /** The rules that apply to [RelationshipClass]($ecschema-metadata) objects. */
37
- relationshipRules?: Array<IRule<RelationshipClass>>;
38
- /** The rules that apply to [RelationshipConstraint]($ecschema-metadata) objects. */
39
- relationshipConstraintRules?: Array<IRule<RelationshipConstraint>>;
40
- /** The rules that apply to [CustomAttributeClass]($ecschema-metadata) objects. */
41
- customAttributeClassRules?: Array<IRule<CustomAttributeClass>>;
42
- /** The rules that apply to [CustomAttributeContainerProps]($ecschema-metadata) objects. */
43
- customAttributeContainerRules?: Array<IRule<CustomAttributeContainerProps>>;
44
- /** The rules that apply to [CustomAttribute]($ecschema-metadata) objects. */
45
- customAttributeInstanceRules?: Array<BaseRule<CustomAttributeContainerProps, CustomAttribute>>;
46
- /** The rules that apply to [Enumeration]($ecschema-metadata) objects. */
47
- enumerationRules?: Array<IRule<Enumeration>>;
48
- /** The rules that apply to [KindOfQuantity]($ecschema-metadata) objects. */
49
- kindOfQuantityRules?: Array<IRule<KindOfQuantity>>;
50
- /** The rules that apply to [PropertyCategory]($ecschema-metadata) objects. */
51
- propertyCategoryRules?: Array<IRule<PropertyCategory>>;
52
- /** The rules that apply to [Format]($ecschema-metadata) objects. */
53
- formatRules?: Array<IRule<Format>>;
54
- /** The rules that apply to [Unit]($ecschema-metadata) objects. */
55
- unitRules?: Array<IRule<Unit>>;
56
- /** The rules that apply to [InvertedUnit]($ecschema-metadata) objects. */
57
- invertedUnitRules?: Array<IRule<InvertedUnit>>;
58
- /** The rules that apply to [UnitSystem]($ecschema-metadata) objects. */
59
- unitSystemRules?: Array<IRule<UnitSystem>>;
60
- /** The rules that apply to [Phenomenon]($ecschema-metadata) objects. */
61
- phenomenonRules?: Array<IRule<Phenomenon>>;
62
- /** The rules that apply to [Constant]($ecschema-metadata) objects. */
63
- constantRules?: Array<IRule<Constant>>;
64
- }
1
+ /** @packageDocumentation
2
+ * @module Validation
3
+ */
4
+ import { AnyClass, AnyECType, AnyProperty, Constant, CustomAttribute, CustomAttributeClass, CustomAttributeContainerProps, EntityClass, Enumeration, Format, InvertedUnit, KindOfQuantity, Mixin, Phenomenon, PropertyCategory, RelationshipClass, RelationshipConstraint, Schema, SchemaItem, StructClass, Unit, UnitSystem } from "@itwin/ecschema-metadata";
5
+ import { BaseDiagnostic } from "./Diagnostic";
6
+ /**
7
+ * Interface used for all rule implementations used during schema validation.
8
+ * @beta
9
+ */
10
+ export type IRule<T extends AnyECType, U = {}> = (ecDefinition: T, ...args: U[]) => AsyncIterable<BaseDiagnostic<T, any[]>>;
11
+ /** @beta */
12
+ export type BaseRule<T extends AnyECType, U extends AnyECType> = IRule<T, U>;
13
+ /**
14
+ * Interface used to represent logical collection of [IRule]($ecschema-editing) instances.
15
+ * @beta
16
+ */
17
+ export interface IRuleSet {
18
+ /** The name of the rule set. */
19
+ name: string;
20
+ /** A collection of schema names that should be excluded from adhering to the rules defined in this rule set. */
21
+ schemaExclusionSet?: string[];
22
+ /** The rules that apply to [Schema]($ecschema-metadata) objects. */
23
+ schemaRules?: Array<IRule<Schema>>;
24
+ /** The rules that apply to [SchemaItem]($ecschema-metadata) objects. */
25
+ schemaItemRules?: Array<IRule<SchemaItem>>;
26
+ /** The rules that apply to [ECClass]($ecschema-metadata) objects. */
27
+ classRules?: Array<IRule<AnyClass>>;
28
+ /** The rules that apply to [Property]($ecschema-metadata) objects. */
29
+ propertyRules?: Array<IRule<AnyProperty>>;
30
+ /** The rules that apply to [EntityClass]($ecschema-metadata) objects. */
31
+ entityClassRules?: Array<IRule<EntityClass>>;
32
+ /** The rules that apply to [StructClass]($ecschema-metadata) objects. */
33
+ structClassRules?: Array<IRule<StructClass>>;
34
+ /** The rules that apply to [Mixin]($ecschema-metadata) objects. */
35
+ mixinRules?: Array<IRule<Mixin>>;
36
+ /** The rules that apply to [RelationshipClass]($ecschema-metadata) objects. */
37
+ relationshipRules?: Array<IRule<RelationshipClass>>;
38
+ /** The rules that apply to [RelationshipConstraint]($ecschema-metadata) objects. */
39
+ relationshipConstraintRules?: Array<IRule<RelationshipConstraint>>;
40
+ /** The rules that apply to [CustomAttributeClass]($ecschema-metadata) objects. */
41
+ customAttributeClassRules?: Array<IRule<CustomAttributeClass>>;
42
+ /** The rules that apply to [CustomAttributeContainerProps]($ecschema-metadata) objects. */
43
+ customAttributeContainerRules?: Array<IRule<CustomAttributeContainerProps>>;
44
+ /** The rules that apply to [CustomAttribute]($ecschema-metadata) objects. */
45
+ customAttributeInstanceRules?: Array<BaseRule<CustomAttributeContainerProps, CustomAttribute>>;
46
+ /** The rules that apply to [Enumeration]($ecschema-metadata) objects. */
47
+ enumerationRules?: Array<IRule<Enumeration>>;
48
+ /** The rules that apply to [KindOfQuantity]($ecschema-metadata) objects. */
49
+ kindOfQuantityRules?: Array<IRule<KindOfQuantity>>;
50
+ /** The rules that apply to [PropertyCategory]($ecschema-metadata) objects. */
51
+ propertyCategoryRules?: Array<IRule<PropertyCategory>>;
52
+ /** The rules that apply to [Format]($ecschema-metadata) objects. */
53
+ formatRules?: Array<IRule<Format>>;
54
+ /** The rules that apply to [Unit]($ecschema-metadata) objects. */
55
+ unitRules?: Array<IRule<Unit>>;
56
+ /** The rules that apply to [InvertedUnit]($ecschema-metadata) objects. */
57
+ invertedUnitRules?: Array<IRule<InvertedUnit>>;
58
+ /** The rules that apply to [UnitSystem]($ecschema-metadata) objects. */
59
+ unitSystemRules?: Array<IRule<UnitSystem>>;
60
+ /** The rules that apply to [Phenomenon]($ecschema-metadata) objects. */
61
+ phenomenonRules?: Array<IRule<Phenomenon>>;
62
+ /** The rules that apply to [Constant]($ecschema-metadata) objects. */
63
+ constantRules?: Array<IRule<Constant>>;
64
+ }
65
65
  //# sourceMappingURL=Rules.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Rules.d.ts","sourceRoot":"","sources":["../../../src/Validation/Rules.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,QAAQ,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E,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;IACnD,8EAA8E;IAC9E,qBAAqB,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC;IACvD,oEAAoE;IACpE,WAAW,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IACnC,kEAAkE;IAClE,SAAS,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/B,0EAA0E;IAC1E,iBAAiB,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;IAC/C,wEAAwE;IACxE,eAAe,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;IAC3C,wEAAwE;IACxE,eAAe,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;IAC3C,sEAAsE;IACtE,aAAa,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;CACxC"}
@@ -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 Validation
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 Validation
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  //# sourceMappingURL=Rules.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Rules.js","sourceRoot":"","sources":["../../../src/Validation/Rules.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 Validation\r\n */\r\n\r\nimport { AnyClass, AnyECType, AnyProperty, Constant, CustomAttribute, CustomAttributeClass,\r\n CustomAttributeContainerProps, EntityClass, Enumeration, Format, InvertedUnit, KindOfQuantity, Mixin, Phenomenon,\r\n PropertyCategory, RelationshipClass, RelationshipConstraint, Schema, SchemaItem, StructClass, Unit,\r\n UnitSystem } from \"@itwin/ecschema-metadata\";\r\nimport { BaseDiagnostic } from \"./Diagnostic\";\r\n\r\n/**\r\n * Interface used for all rule implementations used during schema validation.\r\n * @beta\r\n */\r\nexport type IRule<T extends AnyECType, U = {}> = (ecDefinition: T, ...args: U[]) => AsyncIterable<BaseDiagnostic<T, any[]>>;\r\n\r\n/** @beta */\r\nexport type BaseRule<T extends AnyECType, U extends AnyECType> = IRule<T, U>;\r\n\r\n/**\r\n * Interface used to represent logical collection of [IRule]($ecschema-editing) instances.\r\n * @beta\r\n */\r\nexport interface IRuleSet {\r\n /** The name of the rule set. */\r\n name: string;\r\n\r\n /** A collection of schema names that should be excluded from adhering to the rules defined in this rule set. */\r\n schemaExclusionSet?: string[];\r\n\r\n /** The rules that apply to [Schema]($ecschema-metadata) objects. */\r\n schemaRules?: Array<IRule<Schema>>;\r\n /** The rules that apply to [SchemaItem]($ecschema-metadata) objects. */\r\n schemaItemRules?: Array<IRule<SchemaItem>>;\r\n /** The rules that apply to [ECClass]($ecschema-metadata) objects. */\r\n classRules?: Array<IRule<AnyClass>>;\r\n /** The rules that apply to [Property]($ecschema-metadata) objects. */\r\n propertyRules?: Array<IRule<AnyProperty>>;\r\n /** The rules that apply to [EntityClass]($ecschema-metadata) objects. */\r\n entityClassRules?: Array<IRule<EntityClass>>;\r\n /** The rules that apply to [StructClass]($ecschema-metadata) objects. */\r\n structClassRules?: Array<IRule<StructClass>>;\r\n /** The rules that apply to [Mixin]($ecschema-metadata) objects. */\r\n mixinRules?: Array<IRule<Mixin>>;\r\n /** The rules that apply to [RelationshipClass]($ecschema-metadata) objects. */\r\n relationshipRules?: Array<IRule<RelationshipClass>>;\r\n /** The rules that apply to [RelationshipConstraint]($ecschema-metadata) objects. */\r\n relationshipConstraintRules?: Array<IRule<RelationshipConstraint>>;\r\n /** The rules that apply to [CustomAttributeClass]($ecschema-metadata) objects. */\r\n customAttributeClassRules?: Array<IRule<CustomAttributeClass>>;\r\n /** The rules that apply to [CustomAttributeContainerProps]($ecschema-metadata) objects. */\r\n customAttributeContainerRules?: Array<IRule<CustomAttributeContainerProps>>;\r\n /** The rules that apply to [CustomAttribute]($ecschema-metadata) objects. */\r\n customAttributeInstanceRules?: Array<BaseRule<CustomAttributeContainerProps, CustomAttribute>>;\r\n /** The rules that apply to [Enumeration]($ecschema-metadata) objects. */\r\n enumerationRules?: Array<IRule<Enumeration>>;\r\n /** The rules that apply to [KindOfQuantity]($ecschema-metadata) objects. */\r\n kindOfQuantityRules?: Array<IRule<KindOfQuantity>>;\r\n /** The rules that apply to [PropertyCategory]($ecschema-metadata) objects. */\r\n propertyCategoryRules?: Array<IRule<PropertyCategory>>;\r\n /** The rules that apply to [Format]($ecschema-metadata) objects. */\r\n formatRules?: Array<IRule<Format>>;\r\n /** The rules that apply to [Unit]($ecschema-metadata) objects. */\r\n unitRules?: Array<IRule<Unit>>;\r\n /** The rules that apply to [InvertedUnit]($ecschema-metadata) objects. */\r\n invertedUnitRules?: Array<IRule<InvertedUnit>>;\r\n /** The rules that apply to [UnitSystem]($ecschema-metadata) objects. */\r\n unitSystemRules?: Array<IRule<UnitSystem>>;\r\n /** The rules that apply to [Phenomenon]($ecschema-metadata) objects. */\r\n phenomenonRules?: Array<IRule<Phenomenon>>;\r\n /** The rules that apply to [Constant]($ecschema-metadata) objects. */\r\n constantRules?: Array<IRule<Constant>>;\r\n}\r\n"]}
1
+ {"version":3,"file":"Rules.js","sourceRoot":"","sources":["../../../src/Validation/Rules.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 Validation\n */\n\nimport { AnyClass, AnyECType, AnyProperty, Constant, CustomAttribute, CustomAttributeClass,\n CustomAttributeContainerProps, EntityClass, Enumeration, Format, InvertedUnit, KindOfQuantity, Mixin, Phenomenon,\n PropertyCategory, RelationshipClass, RelationshipConstraint, Schema, SchemaItem, StructClass, Unit,\n UnitSystem } from \"@itwin/ecschema-metadata\";\nimport { BaseDiagnostic } from \"./Diagnostic\";\n\n/**\n * Interface used for all rule implementations used during schema validation.\n * @beta\n */\nexport type IRule<T extends AnyECType, U = {}> = (ecDefinition: T, ...args: U[]) => AsyncIterable<BaseDiagnostic<T, any[]>>;\n\n/** @beta */\nexport type BaseRule<T extends AnyECType, U extends AnyECType> = IRule<T, U>;\n\n/**\n * Interface used to represent logical collection of [IRule]($ecschema-editing) instances.\n * @beta\n */\nexport interface IRuleSet {\n /** The name of the rule set. */\n name: string;\n\n /** A collection of schema names that should be excluded from adhering to the rules defined in this rule set. */\n schemaExclusionSet?: string[];\n\n /** The rules that apply to [Schema]($ecschema-metadata) objects. */\n schemaRules?: Array<IRule<Schema>>;\n /** The rules that apply to [SchemaItem]($ecschema-metadata) objects. */\n schemaItemRules?: Array<IRule<SchemaItem>>;\n /** The rules that apply to [ECClass]($ecschema-metadata) objects. */\n classRules?: Array<IRule<AnyClass>>;\n /** The rules that apply to [Property]($ecschema-metadata) objects. */\n propertyRules?: Array<IRule<AnyProperty>>;\n /** The rules that apply to [EntityClass]($ecschema-metadata) objects. */\n entityClassRules?: Array<IRule<EntityClass>>;\n /** The rules that apply to [StructClass]($ecschema-metadata) objects. */\n structClassRules?: Array<IRule<StructClass>>;\n /** The rules that apply to [Mixin]($ecschema-metadata) objects. */\n mixinRules?: Array<IRule<Mixin>>;\n /** The rules that apply to [RelationshipClass]($ecschema-metadata) objects. */\n relationshipRules?: Array<IRule<RelationshipClass>>;\n /** The rules that apply to [RelationshipConstraint]($ecschema-metadata) objects. */\n relationshipConstraintRules?: Array<IRule<RelationshipConstraint>>;\n /** The rules that apply to [CustomAttributeClass]($ecschema-metadata) objects. */\n customAttributeClassRules?: Array<IRule<CustomAttributeClass>>;\n /** The rules that apply to [CustomAttributeContainerProps]($ecschema-metadata) objects. */\n customAttributeContainerRules?: Array<IRule<CustomAttributeContainerProps>>;\n /** The rules that apply to [CustomAttribute]($ecschema-metadata) objects. */\n customAttributeInstanceRules?: Array<BaseRule<CustomAttributeContainerProps, CustomAttribute>>;\n /** The rules that apply to [Enumeration]($ecschema-metadata) objects. */\n enumerationRules?: Array<IRule<Enumeration>>;\n /** The rules that apply to [KindOfQuantity]($ecschema-metadata) objects. */\n kindOfQuantityRules?: Array<IRule<KindOfQuantity>>;\n /** The rules that apply to [PropertyCategory]($ecschema-metadata) objects. */\n propertyCategoryRules?: Array<IRule<PropertyCategory>>;\n /** The rules that apply to [Format]($ecschema-metadata) objects. */\n formatRules?: Array<IRule<Format>>;\n /** The rules that apply to [Unit]($ecschema-metadata) objects. */\n unitRules?: Array<IRule<Unit>>;\n /** The rules that apply to [InvertedUnit]($ecschema-metadata) objects. */\n invertedUnitRules?: Array<IRule<InvertedUnit>>;\n /** The rules that apply to [UnitSystem]($ecschema-metadata) objects. */\n unitSystemRules?: Array<IRule<UnitSystem>>;\n /** The rules that apply to [Phenomenon]($ecschema-metadata) objects. */\n phenomenonRules?: Array<IRule<Phenomenon>>;\n /** The rules that apply to [Constant]($ecschema-metadata) objects. */\n constantRules?: Array<IRule<Constant>>;\n}\n"]}