@itwin/ecschema-editing 4.0.0-dev.7 → 4.0.0-dev.72

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 (106) 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/CustomAttributes.d.ts +20 -20
  5. package/lib/cjs/Editing/CustomAttributes.js +59 -59
  6. package/lib/cjs/Editing/ECClasses.d.ts +54 -54
  7. package/lib/cjs/Editing/ECClasses.js +269 -269
  8. package/lib/cjs/Editing/Editor.d.ts +112 -112
  9. package/lib/cjs/Editing/Editor.js +166 -166
  10. package/lib/cjs/Editing/Entities.d.ts +25 -25
  11. package/lib/cjs/Editing/Entities.js +116 -116
  12. package/lib/cjs/Editing/Entities.js.map +1 -1
  13. package/lib/cjs/Editing/Enumerations.d.ts +21 -21
  14. package/lib/cjs/Editing/Enumerations.js +66 -66
  15. package/lib/cjs/Editing/Formats.d.ts +21 -21
  16. package/lib/cjs/Editing/Formats.js +61 -61
  17. package/lib/cjs/Editing/InvertedUnits.d.ts +17 -17
  18. package/lib/cjs/Editing/InvertedUnits.js +82 -82
  19. package/lib/cjs/Editing/KindOfQuantities.d.ts +28 -28
  20. package/lib/cjs/Editing/KindOfQuantities.js +78 -78
  21. package/lib/cjs/Editing/Mixins.d.ts +22 -22
  22. package/lib/cjs/Editing/Mixins.js +84 -84
  23. package/lib/cjs/Editing/Mutable/MutableCAClass.d.ts +9 -9
  24. package/lib/cjs/Editing/Mutable/MutableCAClass.js +15 -15
  25. package/lib/cjs/Editing/Mutable/MutableClass.d.ts +34 -34
  26. package/lib/cjs/Editing/Mutable/MutableClass.js +22 -22
  27. package/lib/cjs/Editing/Mutable/MutableConstant.d.ts +12 -12
  28. package/lib/cjs/Editing/Mutable/MutableConstant.js +15 -15
  29. package/lib/cjs/Editing/Mutable/MutableEntityClass.d.ts +15 -15
  30. package/lib/cjs/Editing/Mutable/MutableEntityClass.js +59 -59
  31. package/lib/cjs/Editing/Mutable/MutableEnumeration.d.ts +9 -9
  32. package/lib/cjs/Editing/Mutable/MutableEnumeration.js +14 -14
  33. package/lib/cjs/Editing/Mutable/MutableFormat.d.ts +18 -18
  34. package/lib/cjs/Editing/Mutable/MutableFormat.js +15 -15
  35. package/lib/cjs/Editing/Mutable/MutableInvertedUnit.d.ts +10 -10
  36. package/lib/cjs/Editing/Mutable/MutableInvertedUnit.js +15 -15
  37. package/lib/cjs/Editing/Mutable/MutableKindOfQuantity.d.ts +10 -10
  38. package/lib/cjs/Editing/Mutable/MutableKindOfQuantity.js +15 -15
  39. package/lib/cjs/Editing/Mutable/MutableMixin.d.ts +11 -11
  40. package/lib/cjs/Editing/Mutable/MutableMixin.js +15 -15
  41. package/lib/cjs/Editing/Mutable/MutablePhenomenon.d.ts +9 -9
  42. package/lib/cjs/Editing/Mutable/MutablePhenomenon.js +15 -15
  43. package/lib/cjs/Editing/Mutable/MutableProperty.d.ts +8 -8
  44. package/lib/cjs/Editing/Mutable/MutableProperty.js +15 -15
  45. package/lib/cjs/Editing/Mutable/MutablePropertyCategory.d.ts +9 -9
  46. package/lib/cjs/Editing/Mutable/MutablePropertyCategory.js +15 -15
  47. package/lib/cjs/Editing/Mutable/MutableRelationshipClass.d.ts +21 -21
  48. package/lib/cjs/Editing/Mutable/MutableRelationshipClass.js +24 -24
  49. package/lib/cjs/Editing/Mutable/MutableSchema.d.ts +45 -45
  50. package/lib/cjs/Editing/Mutable/MutableSchema.js +17 -17
  51. package/lib/cjs/Editing/Mutable/MutableUnit.d.ts +11 -11
  52. package/lib/cjs/Editing/Mutable/MutableUnit.js +15 -15
  53. package/lib/cjs/Editing/Mutable/MutableUnitSystem.d.ts +8 -8
  54. package/lib/cjs/Editing/Mutable/MutableUnitSystem.js +15 -15
  55. package/lib/cjs/Editing/Phenomena.d.ts +15 -15
  56. package/lib/cjs/Editing/Phenomena.js +44 -44
  57. package/lib/cjs/Editing/PropertyCategories.d.ts +16 -16
  58. package/lib/cjs/Editing/PropertyCategories.js +51 -51
  59. package/lib/cjs/Editing/RelationshipClasses.d.ts +21 -21
  60. package/lib/cjs/Editing/RelationshipClasses.js +68 -68
  61. package/lib/cjs/Editing/Structs.d.ts +19 -19
  62. package/lib/cjs/Editing/Structs.js +57 -57
  63. package/lib/cjs/Editing/UnitSystems.d.ts +15 -15
  64. package/lib/cjs/Editing/UnitSystems.js +41 -41
  65. package/lib/cjs/Editing/Units.d.ts +15 -15
  66. package/lib/cjs/Editing/Units.js +58 -58
  67. package/lib/cjs/Validation/Diagnostic.d.ts +321 -321
  68. package/lib/cjs/Validation/Diagnostic.d.ts.map +1 -1
  69. package/lib/cjs/Validation/Diagnostic.js +310 -310
  70. package/lib/cjs/Validation/Diagnostic.js.map +1 -1
  71. package/lib/cjs/Validation/DiagnosticReporter.d.ts +96 -96
  72. package/lib/cjs/Validation/DiagnosticReporter.js +106 -106
  73. package/lib/cjs/Validation/ECRules.d.ts +443 -448
  74. package/lib/cjs/Validation/ECRules.d.ts.map +1 -1
  75. package/lib/cjs/Validation/ECRules.js +579 -593
  76. package/lib/cjs/Validation/ECRules.js.map +1 -1
  77. package/lib/cjs/Validation/LoggingDiagnosticReporter.d.ts +13 -13
  78. package/lib/cjs/Validation/LoggingDiagnosticReporter.js +40 -40
  79. package/lib/cjs/Validation/RuleSuppressionSet.d.ts +59 -59
  80. package/lib/cjs/Validation/RuleSuppressionSet.d.ts.map +1 -1
  81. package/lib/cjs/Validation/RuleSuppressionSet.js +9 -9
  82. package/lib/cjs/Validation/Rules.d.ts +64 -64
  83. package/lib/cjs/Validation/Rules.d.ts.map +1 -1
  84. package/lib/cjs/Validation/Rules.js +9 -9
  85. package/lib/cjs/Validation/SchemaChanges.d.ts +607 -607
  86. package/lib/cjs/Validation/SchemaChanges.js +1135 -1135
  87. package/lib/cjs/Validation/SchemaCompareDiagnostics.d.ts +422 -422
  88. package/lib/cjs/Validation/SchemaCompareDiagnostics.js +111 -111
  89. package/lib/cjs/Validation/SchemaCompareReporter.d.ts +11 -11
  90. package/lib/cjs/Validation/SchemaCompareReporter.js +9 -9
  91. package/lib/cjs/Validation/SchemaCompareResultDelegate.d.ts +236 -236
  92. package/lib/cjs/Validation/SchemaCompareResultDelegate.js +348 -348
  93. package/lib/cjs/Validation/SchemaCompareVisitor.d.ts +119 -119
  94. package/lib/cjs/Validation/SchemaCompareVisitor.js +206 -206
  95. package/lib/cjs/Validation/SchemaComparer.d.ts +171 -171
  96. package/lib/cjs/Validation/SchemaComparer.js +666 -666
  97. package/lib/cjs/Validation/SchemaValidater.d.ts +19 -19
  98. package/lib/cjs/Validation/SchemaValidater.js +61 -61
  99. package/lib/cjs/Validation/SchemaValidationVisitor.d.ts +170 -170
  100. package/lib/cjs/Validation/SchemaValidationVisitor.js +492 -492
  101. package/lib/cjs/Validation/SchemaWalker.d.ts +22 -22
  102. package/lib/cjs/Validation/SchemaWalker.js +51 -51
  103. package/lib/cjs/ecschema-editing.d.ts +33 -33
  104. package/lib/cjs/ecschema-editing.js +58 -54
  105. package/lib/cjs/ecschema-editing.js.map +1 -1
  106. package/package.json +15 -15
@@ -1,19 +1,19 @@
1
- import { Format, InvertedUnit, Unit } from "@itwin/ecschema-metadata";
2
- import { FormatType, ShowSignOption } from "@itwin/core-quantity";
3
- /**
4
- * @internal
5
- * An abstract class used for schema editing.
6
- */
7
- export declare abstract class MutableFormat extends Format {
8
- abstract addUnit(unit: Unit | InvertedUnit, label?: string): void;
9
- abstract setPrecision(precision: number): void;
10
- abstract setFormatType(formatType: FormatType): void;
11
- abstract setRoundFactor(roundFactor: number): void;
12
- abstract setShowSignOption(signOption: ShowSignOption): void;
13
- abstract setDecimalSeparator(separator: string): void;
14
- abstract setThousandSeparator(separator: string): void;
15
- abstract setUomSeparator(separator: string): void;
16
- abstract setStationSeparator(separator: string): void;
17
- abstract setDisplayLabel(displayLabel: string): void;
18
- }
1
+ import { Format, InvertedUnit, Unit } from "@itwin/ecschema-metadata";
2
+ import { FormatType, ShowSignOption } from "@itwin/core-quantity";
3
+ /**
4
+ * @internal
5
+ * An abstract class used for schema editing.
6
+ */
7
+ export declare abstract class MutableFormat extends Format {
8
+ abstract addUnit(unit: Unit | InvertedUnit, label?: string): void;
9
+ abstract setPrecision(precision: number): void;
10
+ abstract setFormatType(formatType: FormatType): void;
11
+ abstract setRoundFactor(roundFactor: number): void;
12
+ abstract setShowSignOption(signOption: ShowSignOption): void;
13
+ abstract setDecimalSeparator(separator: string): void;
14
+ abstract setThousandSeparator(separator: string): void;
15
+ abstract setUomSeparator(separator: string): void;
16
+ abstract setStationSeparator(separator: string): void;
17
+ abstract setDisplayLabel(displayLabel: string): void;
18
+ }
19
19
  //# sourceMappingURL=MutableFormat.d.ts.map
@@ -1,16 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MutableFormat = void 0;
4
- /*---------------------------------------------------------------------------------------------
5
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
- * See LICENSE.md in the project root for license terms and full copyright notice.
7
- *--------------------------------------------------------------------------------------------*/
8
- const ecschema_metadata_1 = require("@itwin/ecschema-metadata");
9
- /**
10
- * @internal
11
- * An abstract class used for schema editing.
12
- */
13
- class MutableFormat extends ecschema_metadata_1.Format {
14
- }
15
- exports.MutableFormat = MutableFormat;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MutableFormat = void 0;
4
+ /*---------------------------------------------------------------------------------------------
5
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
+ * See LICENSE.md in the project root for license terms and full copyright notice.
7
+ *--------------------------------------------------------------------------------------------*/
8
+ const ecschema_metadata_1 = require("@itwin/ecschema-metadata");
9
+ /**
10
+ * @internal
11
+ * An abstract class used for schema editing.
12
+ */
13
+ class MutableFormat extends ecschema_metadata_1.Format {
14
+ }
15
+ exports.MutableFormat = MutableFormat;
16
16
  //# sourceMappingURL=MutableFormat.js.map
@@ -1,11 +1,11 @@
1
- import { InvertedUnit, LazyLoadedUnit, LazyLoadedUnitSystem } from "@itwin/ecschema-metadata";
2
- /**
3
- * @internal
4
- * An abstract class used for schema editing.
5
- */
6
- export declare abstract class MutableInvertedUnit extends InvertedUnit {
7
- abstract setInvertsUnit(invertsUnit: LazyLoadedUnit): void;
8
- abstract setUnitSystem(unitSystem: LazyLoadedUnitSystem): void;
9
- abstract setDisplayLabel(displayLabel: string): void;
10
- }
1
+ import { InvertedUnit, LazyLoadedUnit, LazyLoadedUnitSystem } from "@itwin/ecschema-metadata";
2
+ /**
3
+ * @internal
4
+ * An abstract class used for schema editing.
5
+ */
6
+ export declare abstract class MutableInvertedUnit extends InvertedUnit {
7
+ abstract setInvertsUnit(invertsUnit: LazyLoadedUnit): void;
8
+ abstract setUnitSystem(unitSystem: LazyLoadedUnitSystem): void;
9
+ abstract setDisplayLabel(displayLabel: string): void;
10
+ }
11
11
  //# sourceMappingURL=MutableInvertedUnit.d.ts.map
@@ -1,16 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MutableInvertedUnit = void 0;
4
- /*---------------------------------------------------------------------------------------------
5
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
- * See LICENSE.md in the project root for license terms and full copyright notice.
7
- *--------------------------------------------------------------------------------------------*/
8
- const ecschema_metadata_1 = require("@itwin/ecschema-metadata");
9
- /**
10
- * @internal
11
- * An abstract class used for schema editing.
12
- */
13
- class MutableInvertedUnit extends ecschema_metadata_1.InvertedUnit {
14
- }
15
- exports.MutableInvertedUnit = MutableInvertedUnit;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MutableInvertedUnit = void 0;
4
+ /*---------------------------------------------------------------------------------------------
5
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
+ * See LICENSE.md in the project root for license terms and full copyright notice.
7
+ *--------------------------------------------------------------------------------------------*/
8
+ const ecschema_metadata_1 = require("@itwin/ecschema-metadata");
9
+ /**
10
+ * @internal
11
+ * An abstract class used for schema editing.
12
+ */
13
+ class MutableInvertedUnit extends ecschema_metadata_1.InvertedUnit {
14
+ }
15
+ exports.MutableInvertedUnit = MutableInvertedUnit;
16
16
  //# sourceMappingURL=MutableInvertedUnit.js.map
@@ -1,11 +1,11 @@
1
- import { Format, InvertedUnit, KindOfQuantity, OverrideFormat, Unit } from "@itwin/ecschema-metadata";
2
- /**
3
- * @internal
4
- * An abstract class used for schema editing.
5
- */
6
- export declare abstract class MutableKindOfQuantity extends KindOfQuantity {
7
- abstract addPresentationFormat(format: Format | OverrideFormat, isDefault: boolean): void;
8
- abstract createFormatOverride(parent: Format, precision?: number, unitLabelOverrides?: Array<[Unit | InvertedUnit, string | undefined]>): OverrideFormat;
9
- abstract setDisplayLabel(displayLabel: string): void;
10
- }
1
+ import { Format, InvertedUnit, KindOfQuantity, OverrideFormat, Unit } from "@itwin/ecschema-metadata";
2
+ /**
3
+ * @internal
4
+ * An abstract class used for schema editing.
5
+ */
6
+ export declare abstract class MutableKindOfQuantity extends KindOfQuantity {
7
+ abstract addPresentationFormat(format: Format | OverrideFormat, isDefault: boolean): void;
8
+ abstract createFormatOverride(parent: Format, precision?: number, unitLabelOverrides?: Array<[Unit | InvertedUnit, string | undefined]>): OverrideFormat;
9
+ abstract setDisplayLabel(displayLabel: string): void;
10
+ }
11
11
  //# sourceMappingURL=MutableKindOfQuantity.d.ts.map
@@ -1,16 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MutableKindOfQuantity = void 0;
4
- /*---------------------------------------------------------------------------------------------
5
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
- * See LICENSE.md in the project root for license terms and full copyright notice.
7
- *--------------------------------------------------------------------------------------------*/
8
- const ecschema_metadata_1 = require("@itwin/ecschema-metadata");
9
- /**
10
- * @internal
11
- * An abstract class used for schema editing.
12
- */
13
- class MutableKindOfQuantity extends ecschema_metadata_1.KindOfQuantity {
14
- }
15
- exports.MutableKindOfQuantity = MutableKindOfQuantity;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MutableKindOfQuantity = void 0;
4
+ /*---------------------------------------------------------------------------------------------
5
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
+ * See LICENSE.md in the project root for license terms and full copyright notice.
7
+ *--------------------------------------------------------------------------------------------*/
8
+ const ecschema_metadata_1 = require("@itwin/ecschema-metadata");
9
+ /**
10
+ * @internal
11
+ * An abstract class used for schema editing.
12
+ */
13
+ class MutableKindOfQuantity extends ecschema_metadata_1.KindOfQuantity {
14
+ }
15
+ exports.MutableKindOfQuantity = MutableKindOfQuantity;
16
16
  //# sourceMappingURL=MutableKindOfQuantity.js.map
@@ -1,12 +1,12 @@
1
- import { LazyLoadedEntityClass, Mixin, NavigationProperty, RelationshipClass, StrengthDirection } from "@itwin/ecschema-metadata";
2
- /**
3
- * @internal
4
- * An abstract class used for schema editing.
5
- */
6
- export declare abstract class MutableMixin extends Mixin {
7
- abstract setAppliesTo(entityClass: LazyLoadedEntityClass): void;
8
- abstract createNavigationProperty(name: string, relationship: string | RelationshipClass, direction: string | StrengthDirection): Promise<NavigationProperty>;
9
- abstract createNavigationPropertySync(name: string, relationship: string | RelationshipClass, direction: string | StrengthDirection): NavigationProperty;
10
- abstract setDisplayLabel(displayLabel: string): void;
11
- }
1
+ import { LazyLoadedEntityClass, Mixin, NavigationProperty, RelationshipClass, StrengthDirection } from "@itwin/ecschema-metadata";
2
+ /**
3
+ * @internal
4
+ * An abstract class used for schema editing.
5
+ */
6
+ export declare abstract class MutableMixin extends Mixin {
7
+ abstract setAppliesTo(entityClass: LazyLoadedEntityClass): void;
8
+ abstract createNavigationProperty(name: string, relationship: string | RelationshipClass, direction: string | StrengthDirection): Promise<NavigationProperty>;
9
+ abstract createNavigationPropertySync(name: string, relationship: string | RelationshipClass, direction: string | StrengthDirection): NavigationProperty;
10
+ abstract setDisplayLabel(displayLabel: string): void;
11
+ }
12
12
  //# sourceMappingURL=MutableMixin.d.ts.map
@@ -1,16 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MutableMixin = void 0;
4
- /*---------------------------------------------------------------------------------------------
5
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
- * See LICENSE.md in the project root for license terms and full copyright notice.
7
- *--------------------------------------------------------------------------------------------*/
8
- const ecschema_metadata_1 = require("@itwin/ecschema-metadata");
9
- /**
10
- * @internal
11
- * An abstract class used for schema editing.
12
- */
13
- class MutableMixin extends ecschema_metadata_1.Mixin {
14
- }
15
- exports.MutableMixin = MutableMixin;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MutableMixin = void 0;
4
+ /*---------------------------------------------------------------------------------------------
5
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
+ * See LICENSE.md in the project root for license terms and full copyright notice.
7
+ *--------------------------------------------------------------------------------------------*/
8
+ const ecschema_metadata_1 = require("@itwin/ecschema-metadata");
9
+ /**
10
+ * @internal
11
+ * An abstract class used for schema editing.
12
+ */
13
+ class MutableMixin extends ecschema_metadata_1.Mixin {
14
+ }
15
+ exports.MutableMixin = MutableMixin;
16
16
  //# sourceMappingURL=MutableMixin.js.map
@@ -1,10 +1,10 @@
1
- import { Phenomenon } from "@itwin/ecschema-metadata";
2
- /**
3
- * @internal
4
- * An abstract class used for schema editing.
5
- */
6
- export declare abstract class MutablePhenomenon extends Phenomenon {
7
- abstract setDefinition(definition: string): Promise<void>;
8
- abstract setDisplayLabel(displayLabel: string): void;
9
- }
1
+ import { Phenomenon } from "@itwin/ecschema-metadata";
2
+ /**
3
+ * @internal
4
+ * An abstract class used for schema editing.
5
+ */
6
+ export declare abstract class MutablePhenomenon extends Phenomenon {
7
+ abstract setDefinition(definition: string): Promise<void>;
8
+ abstract setDisplayLabel(displayLabel: string): void;
9
+ }
10
10
  //# sourceMappingURL=MutablePhenomenon.d.ts.map
@@ -1,16 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MutablePhenomenon = void 0;
4
- /*---------------------------------------------------------------------------------------------
5
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
- * See LICENSE.md in the project root for license terms and full copyright notice.
7
- *--------------------------------------------------------------------------------------------*/
8
- const ecschema_metadata_1 = require("@itwin/ecschema-metadata");
9
- /**
10
- * @internal
11
- * An abstract class used for schema editing.
12
- */
13
- class MutablePhenomenon extends ecschema_metadata_1.Phenomenon {
14
- }
15
- exports.MutablePhenomenon = MutablePhenomenon;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MutablePhenomenon = void 0;
4
+ /*---------------------------------------------------------------------------------------------
5
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
+ * See LICENSE.md in the project root for license terms and full copyright notice.
7
+ *--------------------------------------------------------------------------------------------*/
8
+ const ecschema_metadata_1 = require("@itwin/ecschema-metadata");
9
+ /**
10
+ * @internal
11
+ * An abstract class used for schema editing.
12
+ */
13
+ class MutablePhenomenon extends ecschema_metadata_1.Phenomenon {
14
+ }
15
+ exports.MutablePhenomenon = MutablePhenomenon;
16
16
  //# sourceMappingURL=MutablePhenomenon.js.map
@@ -1,9 +1,9 @@
1
- import { CustomAttribute, Property } from "@itwin/ecschema-metadata";
2
- /**
3
- * @internal
4
- * An abstract class used for schema editing.
5
- */
6
- export declare abstract class MutableProperty extends Property {
7
- abstract addCustomAttribute(customAttribute: CustomAttribute): void;
8
- }
1
+ import { CustomAttribute, Property } from "@itwin/ecschema-metadata";
2
+ /**
3
+ * @internal
4
+ * An abstract class used for schema editing.
5
+ */
6
+ export declare abstract class MutableProperty extends Property {
7
+ abstract addCustomAttribute(customAttribute: CustomAttribute): void;
8
+ }
9
9
  //# sourceMappingURL=MutableProperty.d.ts.map
@@ -1,16 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MutableProperty = void 0;
4
- /*---------------------------------------------------------------------------------------------
5
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
- * See LICENSE.md in the project root for license terms and full copyright notice.
7
- *--------------------------------------------------------------------------------------------*/
8
- const ecschema_metadata_1 = require("@itwin/ecschema-metadata");
9
- /**
10
- * @internal
11
- * An abstract class used for schema editing.
12
- */
13
- class MutableProperty extends ecschema_metadata_1.Property {
14
- }
15
- exports.MutableProperty = MutableProperty;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MutableProperty = void 0;
4
+ /*---------------------------------------------------------------------------------------------
5
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
+ * See LICENSE.md in the project root for license terms and full copyright notice.
7
+ *--------------------------------------------------------------------------------------------*/
8
+ const ecschema_metadata_1 = require("@itwin/ecschema-metadata");
9
+ /**
10
+ * @internal
11
+ * An abstract class used for schema editing.
12
+ */
13
+ class MutableProperty extends ecschema_metadata_1.Property {
14
+ }
15
+ exports.MutableProperty = MutableProperty;
16
16
  //# sourceMappingURL=MutableProperty.js.map
@@ -1,10 +1,10 @@
1
- import { PropertyCategory } from "@itwin/ecschema-metadata";
2
- /**
3
- * @internal
4
- * An abstract class used for schema editing.
5
- */
6
- export declare abstract class MutablePropertyCategory extends PropertyCategory {
7
- abstract setPriority(priority: number): void;
8
- abstract setDisplayLabel(displayLabel: string): void;
9
- }
1
+ import { PropertyCategory } from "@itwin/ecschema-metadata";
2
+ /**
3
+ * @internal
4
+ * An abstract class used for schema editing.
5
+ */
6
+ export declare abstract class MutablePropertyCategory extends PropertyCategory {
7
+ abstract setPriority(priority: number): void;
8
+ abstract setDisplayLabel(displayLabel: string): void;
9
+ }
10
10
  //# sourceMappingURL=MutablePropertyCategory.d.ts.map
@@ -1,16 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MutablePropertyCategory = void 0;
4
- /*---------------------------------------------------------------------------------------------
5
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
- * See LICENSE.md in the project root for license terms and full copyright notice.
7
- *--------------------------------------------------------------------------------------------*/
8
- const ecschema_metadata_1 = require("@itwin/ecschema-metadata");
9
- /**
10
- * @internal
11
- * An abstract class used for schema editing.
12
- */
13
- class MutablePropertyCategory extends ecschema_metadata_1.PropertyCategory {
14
- }
15
- exports.MutablePropertyCategory = MutablePropertyCategory;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MutablePropertyCategory = void 0;
4
+ /*---------------------------------------------------------------------------------------------
5
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
+ * See LICENSE.md in the project root for license terms and full copyright notice.
7
+ *--------------------------------------------------------------------------------------------*/
8
+ const ecschema_metadata_1 = require("@itwin/ecschema-metadata");
9
+ /**
10
+ * @internal
11
+ * An abstract class used for schema editing.
12
+ */
13
+ class MutablePropertyCategory extends ecschema_metadata_1.PropertyCategory {
14
+ }
15
+ exports.MutablePropertyCategory = MutablePropertyCategory;
16
16
  //# sourceMappingURL=MutablePropertyCategory.js.map
@@ -1,22 +1,22 @@
1
- import { CustomAttribute, NavigationProperty, RelationshipClass, RelationshipConstraint, StrengthDirection, StrengthType } from "@itwin/ecschema-metadata";
2
- /**
3
- * Hackish approach that works like a "friend class" so we can access protected members without making them public.
4
- * @internal
5
- */
6
- export declare abstract class MutableRelationshipConstraint extends RelationshipConstraint {
7
- abstract addCustomAttribute(customAttribute: CustomAttribute): void;
8
- }
9
- /**
10
- * @internal
11
- * An abstract class used for schema editing.
12
- */
13
- export declare abstract class MutableRelationshipClass extends RelationshipClass {
14
- get source(): MutableRelationshipConstraint;
15
- get target(): MutableRelationshipConstraint;
16
- abstract setStrength(strength: StrengthType): void;
17
- abstract setStrengthDirection(direction: StrengthDirection): void;
18
- abstract createNavigationProperty(name: string, relationship: string | RelationshipClass, direction: string | StrengthDirection): Promise<NavigationProperty>;
19
- abstract createNavigationPropertySync(name: string, relationship: string | RelationshipClass, direction: string | StrengthDirection): NavigationProperty;
20
- abstract setDisplayLabel(displayLabel: string): void;
21
- }
1
+ import { CustomAttribute, NavigationProperty, RelationshipClass, RelationshipConstraint, StrengthDirection, StrengthType } from "@itwin/ecschema-metadata";
2
+ /**
3
+ * Hackish approach that works like a "friend class" so we can access protected members without making them public.
4
+ * @internal
5
+ */
6
+ export declare abstract class MutableRelationshipConstraint extends RelationshipConstraint {
7
+ abstract addCustomAttribute(customAttribute: CustomAttribute): void;
8
+ }
9
+ /**
10
+ * @internal
11
+ * An abstract class used for schema editing.
12
+ */
13
+ export declare abstract class MutableRelationshipClass extends RelationshipClass {
14
+ get source(): MutableRelationshipConstraint;
15
+ get target(): MutableRelationshipConstraint;
16
+ abstract setStrength(strength: StrengthType): void;
17
+ abstract setStrengthDirection(direction: StrengthDirection): void;
18
+ abstract createNavigationProperty(name: string, relationship: string | RelationshipClass, direction: string | StrengthDirection): Promise<NavigationProperty>;
19
+ abstract createNavigationPropertySync(name: string, relationship: string | RelationshipClass, direction: string | StrengthDirection): NavigationProperty;
20
+ abstract setDisplayLabel(displayLabel: string): void;
21
+ }
22
22
  //# sourceMappingURL=MutableRelationshipClass.d.ts.map
@@ -1,25 +1,25 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MutableRelationshipClass = exports.MutableRelationshipConstraint = void 0;
4
- /*---------------------------------------------------------------------------------------------
5
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
- * See LICENSE.md in the project root for license terms and full copyright notice.
7
- *--------------------------------------------------------------------------------------------*/
8
- const ecschema_metadata_1 = require("@itwin/ecschema-metadata");
9
- /**
10
- * Hackish approach that works like a "friend class" so we can access protected members without making them public.
11
- * @internal
12
- */
13
- class MutableRelationshipConstraint extends ecschema_metadata_1.RelationshipConstraint {
14
- }
15
- exports.MutableRelationshipConstraint = MutableRelationshipConstraint;
16
- /**
17
- * @internal
18
- * An abstract class used for schema editing.
19
- */
20
- class MutableRelationshipClass extends ecschema_metadata_1.RelationshipClass {
21
- get source() { return this._source; }
22
- get target() { return this._target; }
23
- }
24
- exports.MutableRelationshipClass = MutableRelationshipClass;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MutableRelationshipClass = exports.MutableRelationshipConstraint = void 0;
4
+ /*---------------------------------------------------------------------------------------------
5
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
+ * See LICENSE.md in the project root for license terms and full copyright notice.
7
+ *--------------------------------------------------------------------------------------------*/
8
+ const ecschema_metadata_1 = require("@itwin/ecschema-metadata");
9
+ /**
10
+ * Hackish approach that works like a "friend class" so we can access protected members without making them public.
11
+ * @internal
12
+ */
13
+ class MutableRelationshipConstraint extends ecschema_metadata_1.RelationshipConstraint {
14
+ }
15
+ exports.MutableRelationshipConstraint = MutableRelationshipConstraint;
16
+ /**
17
+ * @internal
18
+ * An abstract class used for schema editing.
19
+ */
20
+ class MutableRelationshipClass extends ecschema_metadata_1.RelationshipClass {
21
+ get source() { return this._source; }
22
+ get target() { return this._target; }
23
+ }
24
+ exports.MutableRelationshipClass = MutableRelationshipClass;
25
25
  //# sourceMappingURL=MutableRelationshipClass.js.map
@@ -1,46 +1,46 @@
1
- import { Constant, CustomAttribute, CustomAttributeClass, ECClassModifier, EntityClass, Enumeration, Format, InvertedUnit, KindOfQuantity, Mixin, Phenomenon, PrimitiveType, PropertyCategory, RelationshipClass, Schema, SchemaContext, SchemaItem, StructClass, Unit, UnitSystem } from "@itwin/ecschema-metadata";
2
- /**
3
- * Hackish approach that works like a "friend class" so we can access protected members without making them public.
4
- * We cannot put this into Helper.ts and make it non-export, because we are importing Helper.ts from this file, and the circular import
5
- * would prevent this class from extending Schema.
6
- * @internal
7
- */
8
- export declare abstract class MutableSchema extends Schema {
9
- abstract addCustomAttribute(customAttribute: CustomAttribute): void;
10
- abstract createEntityClass(name: string, modifier?: ECClassModifier): Promise<EntityClass>;
11
- abstract createEntityClassSync(name: string, modifier?: ECClassModifier): EntityClass;
12
- abstract createMixinClass(name: string): Promise<Mixin>;
13
- abstract createMixinClassSync(name: string): Mixin;
14
- abstract createStructClass(name: string, modifier?: ECClassModifier): Promise<StructClass>;
15
- abstract createStructClassSync(name: string, modifier?: ECClassModifier): StructClass;
16
- abstract createCustomAttributeClass(name: string, modifier?: ECClassModifier): Promise<CustomAttributeClass>;
17
- abstract createCustomAttributeClassSync(name: string, modifier?: ECClassModifier): CustomAttributeClass;
18
- abstract createRelationshipClass(name: string, modifier?: ECClassModifier): Promise<RelationshipClass>;
19
- abstract createRelationshipClassSync(name: string, modifier?: ECClassModifier): RelationshipClass;
20
- abstract createEnumeration(name: string, primitiveType?: PrimitiveType.Integer | PrimitiveType.String): Promise<Enumeration>;
21
- abstract createEnumerationSync(name: string, primitiveType?: PrimitiveType.Integer | PrimitiveType.String): Enumeration;
22
- abstract createKindOfQuantity(name: string): Promise<KindOfQuantity>;
23
- abstract createKindOfQuantitySync(name: string): KindOfQuantity;
24
- abstract createUnit(name: string): Promise<Unit>;
25
- abstract createUnitSync(name: string): Unit;
26
- abstract createConstant(name: string): Promise<Constant>;
27
- abstract createConstantSync(name: string): Constant;
28
- abstract createInvertedUnit(name: string): Promise<InvertedUnit>;
29
- abstract createInvertedUnitSync(name: string): InvertedUnit;
30
- abstract createPhenomenon(name: string): Promise<Phenomenon>;
31
- abstract createPhenomenonSync(name: string): Phenomenon;
32
- abstract createFormat(name: string): Promise<Format>;
33
- abstract createFormatSync(name: string): Format;
34
- abstract createUnitSystem(name: string): Promise<UnitSystem>;
35
- abstract createUnitSystemSync(name: string): UnitSystem;
36
- abstract createPropertyCategory(name: string): Promise<PropertyCategory>;
37
- abstract createPropertyCategorySync(name: string): PropertyCategory;
38
- abstract addItem<T extends SchemaItem>(item: T): void;
39
- abstract addReference(refSchema: Schema): Promise<void>;
40
- abstract addReferenceSync(refSchema: Schema): void;
41
- abstract setContext(schemaContext: SchemaContext): void;
42
- abstract setVersion(readVersion?: number, writeVersion?: number, minorVersion?: number): void;
43
- abstract deleteClass(name: string): Promise<void>;
44
- abstract deleteClassSync(name: string): void;
45
- }
1
+ import { Constant, CustomAttribute, CustomAttributeClass, ECClassModifier, EntityClass, Enumeration, Format, InvertedUnit, KindOfQuantity, Mixin, Phenomenon, PrimitiveType, PropertyCategory, RelationshipClass, Schema, SchemaContext, SchemaItem, StructClass, Unit, UnitSystem } from "@itwin/ecschema-metadata";
2
+ /**
3
+ * Hackish approach that works like a "friend class" so we can access protected members without making them public.
4
+ * We cannot put this into Helper.ts and make it non-export, because we are importing Helper.ts from this file, and the circular import
5
+ * would prevent this class from extending Schema.
6
+ * @internal
7
+ */
8
+ export declare abstract class MutableSchema extends Schema {
9
+ abstract addCustomAttribute(customAttribute: CustomAttribute): void;
10
+ abstract createEntityClass(name: string, modifier?: ECClassModifier): Promise<EntityClass>;
11
+ abstract createEntityClassSync(name: string, modifier?: ECClassModifier): EntityClass;
12
+ abstract createMixinClass(name: string): Promise<Mixin>;
13
+ abstract createMixinClassSync(name: string): Mixin;
14
+ abstract createStructClass(name: string, modifier?: ECClassModifier): Promise<StructClass>;
15
+ abstract createStructClassSync(name: string, modifier?: ECClassModifier): StructClass;
16
+ abstract createCustomAttributeClass(name: string, modifier?: ECClassModifier): Promise<CustomAttributeClass>;
17
+ abstract createCustomAttributeClassSync(name: string, modifier?: ECClassModifier): CustomAttributeClass;
18
+ abstract createRelationshipClass(name: string, modifier?: ECClassModifier): Promise<RelationshipClass>;
19
+ abstract createRelationshipClassSync(name: string, modifier?: ECClassModifier): RelationshipClass;
20
+ abstract createEnumeration(name: string, primitiveType?: PrimitiveType.Integer | PrimitiveType.String): Promise<Enumeration>;
21
+ abstract createEnumerationSync(name: string, primitiveType?: PrimitiveType.Integer | PrimitiveType.String): Enumeration;
22
+ abstract createKindOfQuantity(name: string): Promise<KindOfQuantity>;
23
+ abstract createKindOfQuantitySync(name: string): KindOfQuantity;
24
+ abstract createUnit(name: string): Promise<Unit>;
25
+ abstract createUnitSync(name: string): Unit;
26
+ abstract createConstant(name: string): Promise<Constant>;
27
+ abstract createConstantSync(name: string): Constant;
28
+ abstract createInvertedUnit(name: string): Promise<InvertedUnit>;
29
+ abstract createInvertedUnitSync(name: string): InvertedUnit;
30
+ abstract createPhenomenon(name: string): Promise<Phenomenon>;
31
+ abstract createPhenomenonSync(name: string): Phenomenon;
32
+ abstract createFormat(name: string): Promise<Format>;
33
+ abstract createFormatSync(name: string): Format;
34
+ abstract createUnitSystem(name: string): Promise<UnitSystem>;
35
+ abstract createUnitSystemSync(name: string): UnitSystem;
36
+ abstract createPropertyCategory(name: string): Promise<PropertyCategory>;
37
+ abstract createPropertyCategorySync(name: string): PropertyCategory;
38
+ abstract addItem<T extends SchemaItem>(item: T): void;
39
+ abstract addReference(refSchema: Schema): Promise<void>;
40
+ abstract addReferenceSync(refSchema: Schema): void;
41
+ abstract setContext(schemaContext: SchemaContext): void;
42
+ abstract setVersion(readVersion?: number, writeVersion?: number, minorVersion?: number): void;
43
+ abstract deleteClass(name: string): Promise<void>;
44
+ abstract deleteClassSync(name: string): void;
45
+ }
46
46
  //# sourceMappingURL=MutableSchema.d.ts.map
@@ -1,18 +1,18 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MutableSchema = void 0;
4
- /*---------------------------------------------------------------------------------------------
5
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
- * See LICENSE.md in the project root for license terms and full copyright notice.
7
- *--------------------------------------------------------------------------------------------*/
8
- const ecschema_metadata_1 = require("@itwin/ecschema-metadata");
9
- /**
10
- * Hackish approach that works like a "friend class" so we can access protected members without making them public.
11
- * We cannot put this into Helper.ts and make it non-export, because we are importing Helper.ts from this file, and the circular import
12
- * would prevent this class from extending Schema.
13
- * @internal
14
- */
15
- class MutableSchema extends ecschema_metadata_1.Schema {
16
- }
17
- exports.MutableSchema = MutableSchema;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MutableSchema = void 0;
4
+ /*---------------------------------------------------------------------------------------------
5
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
+ * See LICENSE.md in the project root for license terms and full copyright notice.
7
+ *--------------------------------------------------------------------------------------------*/
8
+ const ecschema_metadata_1 = require("@itwin/ecschema-metadata");
9
+ /**
10
+ * Hackish approach that works like a "friend class" so we can access protected members without making them public.
11
+ * We cannot put this into Helper.ts and make it non-export, because we are importing Helper.ts from this file, and the circular import
12
+ * would prevent this class from extending Schema.
13
+ * @internal
14
+ */
15
+ class MutableSchema extends ecschema_metadata_1.Schema {
16
+ }
17
+ exports.MutableSchema = MutableSchema;
18
18
  //# sourceMappingURL=MutableSchema.js.map