@itwin/ecschema-editing 4.0.0-dev.8 → 4.0.0-dev.81

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 (151) hide show
  1. package/CHANGELOG.md +41 -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 +443 -448
  106. package/lib/cjs/Validation/ECRules.d.ts.map +1 -1
  107. package/lib/cjs/Validation/ECRules.js +579 -593
  108. package/lib/cjs/Validation/ECRules.js.map +1 -1
  109. package/lib/cjs/Validation/LoggingDiagnosticReporter.d.ts +13 -13
  110. package/lib/cjs/Validation/LoggingDiagnosticReporter.js +40 -40
  111. package/lib/cjs/Validation/LoggingDiagnosticReporter.js.map +1 -1
  112. package/lib/cjs/Validation/RuleSuppressionSet.d.ts +59 -59
  113. package/lib/cjs/Validation/RuleSuppressionSet.d.ts.map +1 -1
  114. package/lib/cjs/Validation/RuleSuppressionSet.js +9 -9
  115. package/lib/cjs/Validation/RuleSuppressionSet.js.map +1 -1
  116. package/lib/cjs/Validation/Rules.d.ts +64 -64
  117. package/lib/cjs/Validation/Rules.d.ts.map +1 -1
  118. package/lib/cjs/Validation/Rules.js +9 -9
  119. package/lib/cjs/Validation/Rules.js.map +1 -1
  120. package/lib/cjs/Validation/SchemaChanges.d.ts +607 -607
  121. package/lib/cjs/Validation/SchemaChanges.js +1135 -1135
  122. package/lib/cjs/Validation/SchemaChanges.js.map +1 -1
  123. package/lib/cjs/Validation/SchemaCompareDiagnostics.d.ts +422 -422
  124. package/lib/cjs/Validation/SchemaCompareDiagnostics.js +111 -111
  125. package/lib/cjs/Validation/SchemaCompareDiagnostics.js.map +1 -1
  126. package/lib/cjs/Validation/SchemaCompareReporter.d.ts +11 -11
  127. package/lib/cjs/Validation/SchemaCompareReporter.js +9 -9
  128. package/lib/cjs/Validation/SchemaCompareReporter.js.map +1 -1
  129. package/lib/cjs/Validation/SchemaCompareResultDelegate.d.ts +236 -236
  130. package/lib/cjs/Validation/SchemaCompareResultDelegate.js +348 -348
  131. package/lib/cjs/Validation/SchemaCompareResultDelegate.js.map +1 -1
  132. package/lib/cjs/Validation/SchemaCompareVisitor.d.ts +119 -119
  133. package/lib/cjs/Validation/SchemaCompareVisitor.js +206 -206
  134. package/lib/cjs/Validation/SchemaCompareVisitor.js.map +1 -1
  135. package/lib/cjs/Validation/SchemaComparer.d.ts +171 -171
  136. package/lib/cjs/Validation/SchemaComparer.js +666 -666
  137. package/lib/cjs/Validation/SchemaComparer.js.map +1 -1
  138. package/lib/cjs/Validation/SchemaValidater.d.ts +19 -19
  139. package/lib/cjs/Validation/SchemaValidater.js +61 -61
  140. package/lib/cjs/Validation/SchemaValidater.js.map +1 -1
  141. package/lib/cjs/Validation/SchemaValidationVisitor.d.ts +170 -170
  142. package/lib/cjs/Validation/SchemaValidationVisitor.js +492 -492
  143. package/lib/cjs/Validation/SchemaValidationVisitor.js.map +1 -1
  144. package/lib/cjs/Validation/SchemaWalker.d.ts +22 -22
  145. package/lib/cjs/Validation/SchemaWalker.js +51 -51
  146. package/lib/cjs/Validation/SchemaWalker.js.map +1 -1
  147. package/lib/cjs/ecschema-editing.d.ts +33 -33
  148. package/lib/cjs/ecschema-editing.js +58 -54
  149. package/lib/cjs/ecschema-editing.js.map +1 -1
  150. package/package.json +15 -15
  151. package/public/locales/en/ECSchemaEditing.json +26 -26
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@itwin/ecschema-editing",
3
- "version": "4.0.0-dev.8",
3
+ "version": "4.0.0-dev.81",
4
4
  "description": "ECSchema editing and validation API",
5
5
  "license": "MIT",
6
6
  "main": "lib/cjs/ecschema-editing.js",
7
7
  "typings": "lib/cjs/ecschema-editing",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "https://github.com/iTwin/itwinjs-core/tree/master/core/ecschema-editing"
10
+ "url": "https://github.com/iTwin/itwinjs-core.git",
11
+ "directory": "core/ecschema-editing"
11
12
  },
12
13
  "keywords": [
13
14
  "Bentley",
@@ -22,35 +23,35 @@
22
23
  },
23
24
  "devDependencies": {
24
25
  "@bentley/units-schema": "^1.0.5",
25
- "@itwin/build-tools": "4.0.0-dev.8",
26
- "@itwin/core-bentley": "4.0.0-dev.8",
27
- "@itwin/core-common": "4.0.0-dev.8",
28
- "@itwin/core-quantity": "4.0.0-dev.8",
29
- "@itwin/eslint-plugin": "4.0.0-dev.8",
30
- "@itwin/ecschema-metadata": "4.0.0-dev.8",
26
+ "@itwin/build-tools": "4.0.0-dev.81",
27
+ "@itwin/core-bentley": "4.0.0-dev.81",
28
+ "@itwin/core-common": "4.0.0-dev.81",
29
+ "@itwin/core-quantity": "4.0.0-dev.81",
30
+ "@itwin/eslint-plugin": "^4.0.0-dev.33",
31
+ "@itwin/ecschema-metadata": "4.0.0-dev.81",
31
32
  "@types/almost-equal": "1.1.0",
32
33
  "@types/benchmark": "^2.1.0",
33
34
  "@types/chai": "4.3.1",
34
35
  "@types/chai-as-promised": "^7",
35
36
  "@types/mocha": "^8.2.2",
36
- "@types/node": "18.11.5",
37
+ "@types/node": "^18.11.5",
37
38
  "@types/sinon": "^9.0.0",
38
39
  "@xmldom/xmldom": "~0.8.5",
39
40
  "benchmark": "^2.1.4",
40
41
  "chai": "^4.1.2",
41
42
  "chai-as-promised": "^7",
42
43
  "cpx2": "^3.0.0",
43
- "eslint": "^7.11.0",
44
+ "eslint": "^8.36.0",
44
45
  "mocha": "^10.0.0",
45
46
  "nyc": "^15.1.0",
46
47
  "rimraf": "^3.0.2",
47
48
  "sinon": "^9.0.2",
48
- "typescript": "~4.4.0"
49
+ "typescript": "~5.0.2"
49
50
  },
50
51
  "peerDependencies": {
51
- "@itwin/core-bentley": "^4.0.0-dev.8",
52
- "@itwin/core-quantity": "^4.0.0-dev.8",
53
- "@itwin/ecschema-metadata": "^4.0.0-dev.8"
52
+ "@itwin/core-bentley": "^4.0.0-dev.81",
53
+ "@itwin/core-quantity": "^4.0.0-dev.81",
54
+ "@itwin/ecschema-metadata": "^4.0.0-dev.81"
54
55
  },
55
56
  "nyc": {
56
57
  "extends": "./node_modules/@itwin/build-tools/.nycrc"
@@ -67,7 +68,6 @@
67
68
  },
68
69
  "scripts": {
69
70
  "build": "npm run -s build:cjs && npm run -s createLocalization && npm run -s copy:test-assets",
70
- "build:ci": "npm run -s build",
71
71
  "build:cjs": "tsc 1>&2 --outDir lib/cjs",
72
72
  "clean": "rimraf lib .rush/temp/package-deps*.json",
73
73
  "copy:test-assets": "cpx \"./src/test/assets/**/*\" ./lib/cjs/test/assets",
@@ -1,27 +1,27 @@
1
- {
2
- "Diagnostics": {
3
- "ECObjects-1": "Referenced schema '{1}' of schema '{0}' is a supplemental schema. Supplemental schemas are not allowed to be referenced.",
4
- "ECObjects-2": "Schema '{0}' has multiple schema references ({2}, {3}) with the same alias '{1}', which is not allowed.",
5
- "ECObjects-3": "Schema '{0}' has reference cycles: {1}",
6
- "ECObjects-100": "Class '{0}' cannot derive from sealed base class '{1}'.",
7
- "ECObjects-101": "Class '{0}' cannot derive from base class '{1}' of type '{2}'.",
8
- "ECObjects-102": "Abstract Class '{0}' cannot derive from base class '{1}' because it is not an abstract class.",
9
- "ECObjects-500": "The CustomAttribute container '{0}' has a CustomAttribute with the class '{1}' which is not a concrete class.",
10
- "ECObjects-501": "The CustomAttribute container '{0}' has a CustomAttribute with the class '{1}' whose schema is not referenced by the container's Schema.",
11
- "ECObjects-502": "The CustomAttribute container '{0}' has a CustomAttribute with the class '{1}' which cannot be found.",
12
- "ECObjects-700": "Enumeration '{0}' has invalid primitive type.",
13
- "ECObjects-1100": "Mixin '{0}' cannot be applied to the class '{1}' because it does not satisfy the applies to constraint '{2}'.",
14
- "ECObjects-1300": "The ECProperty '{0}.{1}' has a base property '{2}.{1}' with a value type of {3} which is incompatible with the value type of {4}.",
15
- "ECObjects-1301": "The ECProperty '{0}.{1}' has a base property '{2}.{1}' with a type of {3} which is incompatible with the type of {4}.",
16
- "ECObjects-1302": "The ECProperty '{0}.{1}' has a base property '{2}.{1}' with KindOfQuantity '{3}' with persistence unit '{4}' which is not the same as the persistence unit '{5}' of the provided KindOfQuantity '{6}'.",
17
- "ECObjects-1303": "The referenced relationship '{1}', used in NavigationProperty '{0}' is not the root relationship.",
18
- "ECObjects-1304": "NavigationProperty '{0}' uses the relationship '{1}' that cannot be traversed in the '{2}' direction due to a max multiplicity greater than 1.",
19
- "ECObjects-1305": "The NavigationProperty '{0}', using the relationship '{1}', points to a RelationshipClass, which is not allowed. NavigationProperties must point to an EntityClass or Mixin.",
20
- "ECObjects-1306": "The class '{0}' of NavigationProperty '{1}' is not supported by the {3} constraint of the referenced relationship '{2}'.",
21
- "ECObjects-1500": "The abstract constraint class '{0}' on the {1}-Constraint of '{2}' is not supported by the base class constraint in '{3}'.",
22
- "ECObjects-1501": "The constraint class '{0}' on the {1}-Constraint of '{2}' is not supported by the base class constraint in '{3}'.",
23
- "ECObjects-1502": "The constraint class '{0}' on the {1}-Constraint of '{2}' is not derived from the abstract constraint class '{3}'.",
24
- "ECObjects-1600": "The {0}-Constraint of '{1}' does not contain any constraint classes.",
25
- "ECObjects-1601": "The {0}-Constraint of '{1}' has multiple constraint classes which requires an abstract constraint to be defined."
26
- }
1
+ {
2
+ "Diagnostics": {
3
+ "ECObjects-1": "Referenced schema '{1}' of schema '{0}' is a supplemental schema. Supplemental schemas are not allowed to be referenced.",
4
+ "ECObjects-2": "Schema '{0}' has multiple schema references ({2}, {3}) with the same alias '{1}', which is not allowed.",
5
+ "ECObjects-3": "Schema '{0}' has reference cycles: {1}",
6
+ "ECObjects-100": "Class '{0}' cannot derive from sealed base class '{1}'.",
7
+ "ECObjects-101": "Class '{0}' cannot derive from base class '{1}' of type '{2}'.",
8
+ "ECObjects-102": "Abstract Class '{0}' cannot derive from base class '{1}' because it is not an abstract class.",
9
+ "ECObjects-500": "The CustomAttribute container '{0}' has a CustomAttribute with the class '{1}' which is not a concrete class.",
10
+ "ECObjects-501": "The CustomAttribute container '{0}' has a CustomAttribute with the class '{1}' whose schema is not referenced by the container's Schema.",
11
+ "ECObjects-502": "The CustomAttribute container '{0}' has a CustomAttribute with the class '{1}' which cannot be found.",
12
+ "ECObjects-700": "Enumeration '{0}' has invalid primitive type.",
13
+ "ECObjects-1100": "Mixin '{0}' cannot be applied to the class '{1}' because it does not satisfy the applies to constraint '{2}'.",
14
+ "ECObjects-1300": "The ECProperty '{0}.{1}' has a base property '{2}.{1}' with a value type of {3} which is incompatible with the value type of {4}.",
15
+ "ECObjects-1301": "The ECProperty '{0}.{1}' has a base property '{2}.{1}' with a type of {3} which is incompatible with the type of {4}.",
16
+ "ECObjects-1302": "The ECProperty '{0}.{1}' has a base property '{2}.{1}' with KindOfQuantity '{3}' with persistence unit '{4}' which is not the same as the persistence unit '{5}' of the provided KindOfQuantity '{6}'.",
17
+ "ECObjects-1303": "The referenced relationship '{1}', used in NavigationProperty '{0}' is not the root relationship.",
18
+ "ECObjects-1304": "NavigationProperty '{0}' uses the relationship '{1}' that cannot be traversed in the '{2}' direction due to a max multiplicity greater than 1.",
19
+ "ECObjects-1305": "The NavigationProperty '{0}', using the relationship '{1}', points to a RelationshipClass, which is not allowed. NavigationProperties must point to an EntityClass or Mixin.",
20
+ "ECObjects-1306": "The class '{0}' of NavigationProperty '{1}' is not supported by the {3} constraint of the referenced relationship '{2}'.",
21
+ "ECObjects-1500": "The abstract constraint class '{0}' on the {1}-Constraint of '{2}' is not supported by the base class constraint in '{3}'.",
22
+ "ECObjects-1501": "The constraint class '{0}' on the {1}-Constraint of '{2}' is not supported by the base class constraint in '{3}'.",
23
+ "ECObjects-1502": "The constraint class '{0}' on the {1}-Constraint of '{2}' is not derived from the abstract constraint class '{3}'.",
24
+ "ECObjects-1600": "The {0}-Constraint of '{1}' does not contain any constraint classes.",
25
+ "ECObjects-1601": "The {0}-Constraint of '{1}' has multiple constraint classes which requires an abstract constraint to be defined."
26
+ }
27
27
  }