@itwin/ecschema-metadata 4.0.0-dev.1 → 4.0.0-dev.100

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 (135) hide show
  1. package/CHANGELOG.md +51 -1
  2. package/lib/cjs/Constants.d.ts +23 -23
  3. package/lib/cjs/Constants.js +33 -33
  4. package/lib/cjs/Constants.js.map +1 -1
  5. package/lib/cjs/Context.d.ts +139 -139
  6. package/lib/cjs/Context.js +204 -204
  7. package/lib/cjs/DelayedPromise.d.ts +88 -88
  8. package/lib/cjs/DelayedPromise.d.ts.map +1 -1
  9. package/lib/cjs/DelayedPromise.js +91 -91
  10. package/lib/cjs/DelayedPromise.js.map +1 -1
  11. package/lib/cjs/Deserialization/AbstractParser.d.ts +45 -45
  12. package/lib/cjs/Deserialization/AbstractParser.d.ts.map +1 -1
  13. package/lib/cjs/Deserialization/AbstractParser.js +11 -11
  14. package/lib/cjs/Deserialization/AbstractParser.js.map +1 -1
  15. package/lib/cjs/Deserialization/Helper.d.ts +251 -251
  16. package/lib/cjs/Deserialization/Helper.js +843 -843
  17. package/lib/cjs/Deserialization/JsonParser.d.ts +165 -165
  18. package/lib/cjs/Deserialization/JsonParser.d.ts.map +1 -1
  19. package/lib/cjs/Deserialization/JsonParser.js +680 -680
  20. package/lib/cjs/Deserialization/JsonParser.js.map +1 -1
  21. package/lib/cjs/Deserialization/JsonProps.d.ts +268 -282
  22. package/lib/cjs/Deserialization/JsonProps.d.ts.map +1 -1
  23. package/lib/cjs/Deserialization/JsonProps.js +9 -9
  24. package/lib/cjs/Deserialization/JsonProps.js.map +1 -1
  25. package/lib/cjs/Deserialization/SchemaGraphUtil.d.ts +34 -34
  26. package/lib/cjs/Deserialization/SchemaGraphUtil.js +77 -77
  27. package/lib/cjs/Deserialization/XmlParser.d.ts +85 -85
  28. package/lib/cjs/Deserialization/XmlParser.d.ts.map +1 -1
  29. package/lib/cjs/Deserialization/XmlParser.js +973 -973
  30. package/lib/cjs/Deserialization/XmlParser.js.map +1 -1
  31. package/lib/cjs/Deserialization/XmlSerializationUtils.d.ts +54 -54
  32. package/lib/cjs/Deserialization/XmlSerializationUtils.js +174 -174
  33. package/lib/cjs/ECName.d.ts +30 -30
  34. package/lib/cjs/ECName.js +85 -85
  35. package/lib/cjs/ECObjects.d.ts +162 -162
  36. package/lib/cjs/ECObjects.js +453 -453
  37. package/lib/cjs/Exception.d.ts +43 -43
  38. package/lib/cjs/Exception.d.ts.map +1 -1
  39. package/lib/cjs/Exception.js +84 -86
  40. package/lib/cjs/Exception.js.map +1 -1
  41. package/lib/cjs/Interfaces.d.ts +66 -66
  42. package/lib/cjs/Interfaces.d.ts.map +1 -1
  43. package/lib/cjs/Interfaces.js +9 -9
  44. package/lib/cjs/Metadata/Class.d.ts +243 -243
  45. package/lib/cjs/Metadata/Class.js +558 -558
  46. package/lib/cjs/Metadata/Class.js.map +1 -1
  47. package/lib/cjs/Metadata/Constant.d.ts +64 -64
  48. package/lib/cjs/Metadata/Constant.js +123 -123
  49. package/lib/cjs/Metadata/Constant.js.map +1 -1
  50. package/lib/cjs/Metadata/CustomAttribute.d.ts +23 -23
  51. package/lib/cjs/Metadata/CustomAttribute.js +27 -27
  52. package/lib/cjs/Metadata/CustomAttributeClass.d.ts +39 -39
  53. package/lib/cjs/Metadata/CustomAttributeClass.js +68 -68
  54. package/lib/cjs/Metadata/CustomAttributeClass.js.map +1 -1
  55. package/lib/cjs/Metadata/EntityClass.d.ts +77 -77
  56. package/lib/cjs/Metadata/EntityClass.js +230 -230
  57. package/lib/cjs/Metadata/Enumeration.d.ts +86 -86
  58. package/lib/cjs/Metadata/Enumeration.d.ts.map +1 -1
  59. package/lib/cjs/Metadata/Enumeration.js +159 -159
  60. package/lib/cjs/Metadata/Enumeration.js.map +1 -1
  61. package/lib/cjs/Metadata/Format.d.ts +98 -98
  62. package/lib/cjs/Metadata/Format.d.ts.map +1 -1
  63. package/lib/cjs/Metadata/Format.js +242 -242
  64. package/lib/cjs/Metadata/Format.js.map +1 -1
  65. package/lib/cjs/Metadata/InvertedUnit.d.ts +49 -49
  66. package/lib/cjs/Metadata/InvertedUnit.js +97 -97
  67. package/lib/cjs/Metadata/KindOfQuantity.d.ts +65 -65
  68. package/lib/cjs/Metadata/KindOfQuantity.js +225 -225
  69. package/lib/cjs/Metadata/KindOfQuantity.js.map +1 -1
  70. package/lib/cjs/Metadata/Mixin.d.ts +54 -54
  71. package/lib/cjs/Metadata/Mixin.js +113 -113
  72. package/lib/cjs/Metadata/Mixin.js.map +1 -1
  73. package/lib/cjs/Metadata/OverrideFormat.d.ts +67 -55
  74. package/lib/cjs/Metadata/OverrideFormat.d.ts.map +1 -1
  75. package/lib/cjs/Metadata/OverrideFormat.js +126 -88
  76. package/lib/cjs/Metadata/OverrideFormat.js.map +1 -1
  77. package/lib/cjs/Metadata/Phenomenon.d.ts +33 -33
  78. package/lib/cjs/Metadata/Phenomenon.js +59 -59
  79. package/lib/cjs/Metadata/Property.d.ts +197 -197
  80. package/lib/cjs/Metadata/Property.d.ts.map +1 -1
  81. package/lib/cjs/Metadata/Property.js +491 -491
  82. package/lib/cjs/Metadata/Property.js.map +1 -1
  83. package/lib/cjs/Metadata/PropertyCategory.d.ts +39 -39
  84. package/lib/cjs/Metadata/PropertyCategory.js +61 -61
  85. package/lib/cjs/Metadata/PropertyCategory.js.map +1 -1
  86. package/lib/cjs/Metadata/RelationshipClass.d.ts +152 -152
  87. package/lib/cjs/Metadata/RelationshipClass.js +349 -349
  88. package/lib/cjs/Metadata/RelationshipClass.js.map +1 -1
  89. package/lib/cjs/Metadata/Schema.d.ts +291 -291
  90. package/lib/cjs/Metadata/Schema.d.ts.map +1 -1
  91. package/lib/cjs/Metadata/Schema.js +520 -520
  92. package/lib/cjs/Metadata/Schema.js.map +1 -1
  93. package/lib/cjs/Metadata/SchemaItem.d.ts +61 -61
  94. package/lib/cjs/Metadata/SchemaItem.js +136 -136
  95. package/lib/cjs/Metadata/Unit.d.ts +76 -76
  96. package/lib/cjs/Metadata/Unit.d.ts.map +1 -1
  97. package/lib/cjs/Metadata/Unit.js +162 -162
  98. package/lib/cjs/Metadata/Unit.js.map +1 -1
  99. package/lib/cjs/Metadata/UnitSystem.d.ts +20 -20
  100. package/lib/cjs/Metadata/UnitSystem.js +29 -29
  101. package/lib/cjs/PropertyTypes.d.ts +49 -49
  102. package/lib/cjs/PropertyTypes.js +91 -91
  103. package/lib/cjs/PropertyTypes.js.map +1 -1
  104. package/lib/cjs/SchemaJsonLocater.d.ts +34 -34
  105. package/lib/cjs/SchemaJsonLocater.d.ts.map +1 -1
  106. package/lib/cjs/SchemaJsonLocater.js +42 -42
  107. package/lib/cjs/SchemaKey.d.ts +110 -110
  108. package/lib/cjs/SchemaKey.js +219 -219
  109. package/lib/cjs/SchemaLoader.d.ts +23 -23
  110. package/lib/cjs/SchemaLoader.js +47 -47
  111. package/lib/cjs/SchemaPartVisitorDelegate.d.ts +274 -274
  112. package/lib/cjs/SchemaPartVisitorDelegate.js +212 -212
  113. package/lib/cjs/UnitConversion/Graph.d.ts +34 -34
  114. package/lib/cjs/UnitConversion/Graph.js +83 -83
  115. package/lib/cjs/UnitConversion/Parser.d.ts +8 -8
  116. package/lib/cjs/UnitConversion/Parser.js +42 -42
  117. package/lib/cjs/UnitConversion/UnitConversion.d.ts +45 -45
  118. package/lib/cjs/UnitConversion/UnitConversion.js +77 -77
  119. package/lib/cjs/UnitConversion/UnitConversion.js.map +1 -1
  120. package/lib/cjs/UnitConversion/UnitConverter.d.ts +39 -39
  121. package/lib/cjs/UnitConversion/UnitConverter.js +116 -116
  122. package/lib/cjs/UnitConversion/UnitTree.d.ts +43 -43
  123. package/lib/cjs/UnitConversion/UnitTree.js +169 -169
  124. package/lib/cjs/UnitProvider/SchemaUnitProvider.d.ts +77 -77
  125. package/lib/cjs/UnitProvider/SchemaUnitProvider.d.ts.map +1 -1
  126. package/lib/cjs/UnitProvider/SchemaUnitProvider.js +234 -236
  127. package/lib/cjs/UnitProvider/SchemaUnitProvider.js.map +1 -1
  128. package/lib/cjs/Validation/SchemaWalker.d.ts +23 -23
  129. package/lib/cjs/Validation/SchemaWalker.js +53 -53
  130. package/lib/cjs/ecschema-metadata.d.ts +51 -51
  131. package/lib/cjs/ecschema-metadata.js +100 -96
  132. package/lib/cjs/ecschema-metadata.js.map +1 -1
  133. package/lib/cjs/utils/SchemaGraph.d.ts +25 -25
  134. package/lib/cjs/utils/SchemaGraph.js +65 -65
  135. package/package.json +13 -14
package/CHANGELOG.md CHANGED
@@ -1,6 +1,56 @@
1
1
  # Change Log - @itwin/ecschema-metadata
2
2
 
3
- This log was last generated on Thu, 26 Jan 2023 22:53:27 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 25 Apr 2023 17:50:35 GMT and should not be manually modified.
4
+
5
+ ## 3.7.4
6
+ Tue, 25 Apr 2023 17:50:35 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 3.7.3
11
+ Thu, 20 Apr 2023 13:19:29 GMT
12
+
13
+ _Version update only_
14
+
15
+ ## 3.7.2
16
+ Wed, 12 Apr 2023 13:12:42 GMT
17
+
18
+ _Version update only_
19
+
20
+ ## 3.7.1
21
+ Mon, 03 Apr 2023 15:15:37 GMT
22
+
23
+ _Version update only_
24
+
25
+ ## 3.7.0
26
+ Wed, 29 Mar 2023 15:02:27 GMT
27
+
28
+ _Version update only_
29
+
30
+ ## 3.6.3
31
+ Mon, 27 Mar 2023 16:26:47 GMT
32
+
33
+ _Version update only_
34
+
35
+ ## 3.6.2
36
+ Fri, 17 Mar 2023 17:52:32 GMT
37
+
38
+ _Version update only_
39
+
40
+ ## 3.6.1
41
+ Fri, 24 Feb 2023 22:00:48 GMT
42
+
43
+ _Version update only_
44
+
45
+ ## 3.6.0
46
+ Wed, 08 Feb 2023 14:58:40 GMT
47
+
48
+ _Version update only_
49
+
50
+ ## 3.5.6
51
+ Fri, 24 Feb 2023 16:02:47 GMT
52
+
53
+ _Version update only_
4
54
 
5
55
  ## 3.5.5
6
56
  Thu, 26 Jan 2023 22:53:27 GMT
@@ -1,24 +1,24 @@
1
- /**
2
- * @internal
3
- */
4
- export declare class ECStringConstants {
5
- static readonly RELATIONSHIP_END_SOURCE: string;
6
- static readonly RELATIONSHIP_END_TARGET: string;
7
- static readonly CONTAINERTYPE_SCHEMA: string;
8
- static readonly CONTAINERTYPE_ENTITYCLASS: string;
9
- static readonly CONTAINERTYPE_CUSTOMATTRIBUTECLASS: string;
10
- static readonly CONTAINERTYPE_STRUCTCLASS: string;
11
- static readonly CONTAINERTYPE_RELATIONSHIPCLASS: string;
12
- static readonly CONTAINERTYPE_ANYCLASS: string;
13
- static readonly CONTAINERTYPE_PRIMITIVEPROPERTY: string;
14
- static readonly CONTAINERTYPE_STRUCTPROPERTY: string;
15
- static readonly CONTAINERTYPE_PRIMITIVEARRAYPROPERTY: string;
16
- static readonly CONTAINERTYPE_STRUCTARRAYPROPERTY: string;
17
- static readonly CONTAINERTYPE_NAVIGATIONPROPERTY: string;
18
- static readonly CONTAINERTYPE_ANYPROPERTY: string;
19
- static readonly CONTAINERTYPE_SOURCERELATIONSHIPCONSTRAINT: string;
20
- static readonly CONTAINERTYPE_TARGETRELATIONSHIPCONSTRAINT: string;
21
- static readonly CONTAINERTYPE_ANYRELATIONSHIPCONSTRAINT: string;
22
- static readonly CONTAINERTYPE_ANY: string;
23
- }
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare class ECStringConstants {
5
+ static readonly RELATIONSHIP_END_SOURCE: string;
6
+ static readonly RELATIONSHIP_END_TARGET: string;
7
+ static readonly CONTAINERTYPE_SCHEMA: string;
8
+ static readonly CONTAINERTYPE_ENTITYCLASS: string;
9
+ static readonly CONTAINERTYPE_CUSTOMATTRIBUTECLASS: string;
10
+ static readonly CONTAINERTYPE_STRUCTCLASS: string;
11
+ static readonly CONTAINERTYPE_RELATIONSHIPCLASS: string;
12
+ static readonly CONTAINERTYPE_ANYCLASS: string;
13
+ static readonly CONTAINERTYPE_PRIMITIVEPROPERTY: string;
14
+ static readonly CONTAINERTYPE_STRUCTPROPERTY: string;
15
+ static readonly CONTAINERTYPE_PRIMITIVEARRAYPROPERTY: string;
16
+ static readonly CONTAINERTYPE_STRUCTARRAYPROPERTY: string;
17
+ static readonly CONTAINERTYPE_NAVIGATIONPROPERTY: string;
18
+ static readonly CONTAINERTYPE_ANYPROPERTY: string;
19
+ static readonly CONTAINERTYPE_SOURCERELATIONSHIPCONSTRAINT: string;
20
+ static readonly CONTAINERTYPE_TARGETRELATIONSHIPCONSTRAINT: string;
21
+ static readonly CONTAINERTYPE_ANYRELATIONSHIPCONSTRAINT: string;
22
+ static readonly CONTAINERTYPE_ANY: string;
23
+ }
24
24
  //# sourceMappingURL=Constants.d.ts.map
@@ -1,34 +1,34 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.ECStringConstants = void 0;
8
- /**
9
- * @internal
10
- */
11
- class ECStringConstants {
12
- }
13
- exports.ECStringConstants = ECStringConstants;
14
- // Relationship End
15
- ECStringConstants.RELATIONSHIP_END_SOURCE = "Source";
16
- ECStringConstants.RELATIONSHIP_END_TARGET = "Target";
17
- // Container Type
18
- ECStringConstants.CONTAINERTYPE_SCHEMA = "Schema";
19
- ECStringConstants.CONTAINERTYPE_ENTITYCLASS = "EntityClass";
20
- ECStringConstants.CONTAINERTYPE_CUSTOMATTRIBUTECLASS = "CustomAttributeClass";
21
- ECStringConstants.CONTAINERTYPE_STRUCTCLASS = "StructClass";
22
- ECStringConstants.CONTAINERTYPE_RELATIONSHIPCLASS = "RelationshipClass";
23
- ECStringConstants.CONTAINERTYPE_ANYCLASS = "AnyClass";
24
- ECStringConstants.CONTAINERTYPE_PRIMITIVEPROPERTY = "PrimitiveProperty";
25
- ECStringConstants.CONTAINERTYPE_STRUCTPROPERTY = "StructProperty";
26
- ECStringConstants.CONTAINERTYPE_PRIMITIVEARRAYPROPERTY = "ArrayProperty";
27
- ECStringConstants.CONTAINERTYPE_STRUCTARRAYPROPERTY = "StructArrayProperty";
28
- ECStringConstants.CONTAINERTYPE_NAVIGATIONPROPERTY = "NavigationProperty";
29
- ECStringConstants.CONTAINERTYPE_ANYPROPERTY = "AnyProperty";
30
- ECStringConstants.CONTAINERTYPE_SOURCERELATIONSHIPCONSTRAINT = "SourceRelationshipConstraint";
31
- ECStringConstants.CONTAINERTYPE_TARGETRELATIONSHIPCONSTRAINT = "TargetRelationshipConstraint";
32
- ECStringConstants.CONTAINERTYPE_ANYRELATIONSHIPCONSTRAINT = "AnyRelationshipConstraint";
33
- ECStringConstants.CONTAINERTYPE_ANY = "Any";
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
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.ECStringConstants = void 0;
8
+ /**
9
+ * @internal
10
+ */
11
+ class ECStringConstants {
12
+ }
13
+ // Relationship End
14
+ ECStringConstants.RELATIONSHIP_END_SOURCE = "Source";
15
+ ECStringConstants.RELATIONSHIP_END_TARGET = "Target";
16
+ // Container Type
17
+ ECStringConstants.CONTAINERTYPE_SCHEMA = "Schema";
18
+ ECStringConstants.CONTAINERTYPE_ENTITYCLASS = "EntityClass";
19
+ ECStringConstants.CONTAINERTYPE_CUSTOMATTRIBUTECLASS = "CustomAttributeClass";
20
+ ECStringConstants.CONTAINERTYPE_STRUCTCLASS = "StructClass";
21
+ ECStringConstants.CONTAINERTYPE_RELATIONSHIPCLASS = "RelationshipClass";
22
+ ECStringConstants.CONTAINERTYPE_ANYCLASS = "AnyClass";
23
+ ECStringConstants.CONTAINERTYPE_PRIMITIVEPROPERTY = "PrimitiveProperty";
24
+ ECStringConstants.CONTAINERTYPE_STRUCTPROPERTY = "StructProperty";
25
+ ECStringConstants.CONTAINERTYPE_PRIMITIVEARRAYPROPERTY = "ArrayProperty";
26
+ ECStringConstants.CONTAINERTYPE_STRUCTARRAYPROPERTY = "StructArrayProperty";
27
+ ECStringConstants.CONTAINERTYPE_NAVIGATIONPROPERTY = "NavigationProperty";
28
+ ECStringConstants.CONTAINERTYPE_ANYPROPERTY = "AnyProperty";
29
+ ECStringConstants.CONTAINERTYPE_SOURCERELATIONSHIPCONSTRAINT = "SourceRelationshipConstraint";
30
+ ECStringConstants.CONTAINERTYPE_TARGETRELATIONSHIPCONSTRAINT = "TargetRelationshipConstraint";
31
+ ECStringConstants.CONTAINERTYPE_ANYRELATIONSHIPCONSTRAINT = "AnyRelationshipConstraint";
32
+ ECStringConstants.CONTAINERTYPE_ANY = "Any";
33
+ exports.ECStringConstants = ECStringConstants;
34
34
  //# sourceMappingURL=Constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Constants.js","sourceRoot":"","sources":["../../src/Constants.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F;;GAEG;AACH,MAAa,iBAAiB;;AAA9B,8CAyBC;AAxBC,mBAAmB;AACI,yCAAuB,GAAW,QAAQ,CAAC;AAC3C,yCAAuB,GAAW,QAAQ,CAAC;AAElE,iBAAiB;AACM,sCAAoB,GAAW,QAAQ,CAAC;AACxC,2CAAyB,GAAW,aAAa,CAAC;AAClD,oDAAkC,GAAW,sBAAsB,CAAC;AACpE,2CAAyB,GAAW,aAAa,CAAC;AAClD,iDAA+B,GAAW,mBAAmB,CAAC;AAC9D,wCAAsB,GAAW,UAAU,CAAC;AAE5C,iDAA+B,GAAW,mBAAmB,CAAC;AAC9D,8CAA4B,GAAW,gBAAgB,CAAC;AACxD,sDAAoC,GAAW,eAAe,CAAC;AAC/D,mDAAiC,GAAW,qBAAqB,CAAC;AAClE,kDAAgC,GAAW,oBAAoB,CAAC;AAChE,2CAAyB,GAAW,aAAa,CAAC;AAElD,4DAA0C,GAAW,8BAA8B,CAAC;AACpF,4DAA0C,GAAW,8BAA8B,CAAC;AACpF,yDAAuC,GAAW,2BAA2B,CAAC;AAE9E,mCAAiB,GAAW,KAAK,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n/**\r\n * @internal\r\n */\r\nexport class ECStringConstants {\r\n // Relationship End\r\n public static readonly RELATIONSHIP_END_SOURCE: string = \"Source\";\r\n public static readonly RELATIONSHIP_END_TARGET: string = \"Target\";\r\n\r\n // Container Type\r\n public static readonly CONTAINERTYPE_SCHEMA: string = \"Schema\";\r\n public static readonly CONTAINERTYPE_ENTITYCLASS: string = \"EntityClass\";\r\n public static readonly CONTAINERTYPE_CUSTOMATTRIBUTECLASS: string = \"CustomAttributeClass\";\r\n public static readonly CONTAINERTYPE_STRUCTCLASS: string = \"StructClass\";\r\n public static readonly CONTAINERTYPE_RELATIONSHIPCLASS: string = \"RelationshipClass\";\r\n public static readonly CONTAINERTYPE_ANYCLASS: string = \"AnyClass\";\r\n\r\n public static readonly CONTAINERTYPE_PRIMITIVEPROPERTY: string = \"PrimitiveProperty\";\r\n public static readonly CONTAINERTYPE_STRUCTPROPERTY: string = \"StructProperty\";\r\n public static readonly CONTAINERTYPE_PRIMITIVEARRAYPROPERTY: string = \"ArrayProperty\";\r\n public static readonly CONTAINERTYPE_STRUCTARRAYPROPERTY: string = \"StructArrayProperty\";\r\n public static readonly CONTAINERTYPE_NAVIGATIONPROPERTY: string = \"NavigationProperty\";\r\n public static readonly CONTAINERTYPE_ANYPROPERTY: string = \"AnyProperty\";\r\n\r\n public static readonly CONTAINERTYPE_SOURCERELATIONSHIPCONSTRAINT: string = \"SourceRelationshipConstraint\";\r\n public static readonly CONTAINERTYPE_TARGETRELATIONSHIPCONSTRAINT: string = \"TargetRelationshipConstraint\";\r\n public static readonly CONTAINERTYPE_ANYRELATIONSHIPCONSTRAINT: string = \"AnyRelationshipConstraint\";\r\n\r\n public static readonly CONTAINERTYPE_ANY: string = \"Any\";\r\n}\r\n"]}
1
+ {"version":3,"file":"Constants.js","sourceRoot":"","sources":["../../src/Constants.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F;;GAEG;AACH,MAAa,iBAAiB;;AAC5B,mBAAmB;AACI,yCAAuB,GAAW,QAAQ,CAAC;AAC3C,yCAAuB,GAAW,QAAQ,CAAC;AAElE,iBAAiB;AACM,sCAAoB,GAAW,QAAQ,CAAC;AACxC,2CAAyB,GAAW,aAAa,CAAC;AAClD,oDAAkC,GAAW,sBAAsB,CAAC;AACpE,2CAAyB,GAAW,aAAa,CAAC;AAClD,iDAA+B,GAAW,mBAAmB,CAAC;AAC9D,wCAAsB,GAAW,UAAU,CAAC;AAE5C,iDAA+B,GAAW,mBAAmB,CAAC;AAC9D,8CAA4B,GAAW,gBAAgB,CAAC;AACxD,sDAAoC,GAAW,eAAe,CAAC;AAC/D,mDAAiC,GAAW,qBAAqB,CAAC;AAClE,kDAAgC,GAAW,oBAAoB,CAAC;AAChE,2CAAyB,GAAW,aAAa,CAAC;AAElD,4DAA0C,GAAW,8BAA8B,CAAC;AACpF,4DAA0C,GAAW,8BAA8B,CAAC;AACpF,yDAAuC,GAAW,2BAA2B,CAAC;AAE9E,mCAAiB,GAAW,KAAK,CAAC;AAxB9C,8CAAiB","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\r\n/**\r\n * @internal\r\n */\r\nexport class ECStringConstants {\r\n // Relationship End\r\n public static readonly RELATIONSHIP_END_SOURCE: string = \"Source\";\r\n public static readonly RELATIONSHIP_END_TARGET: string = \"Target\";\r\n\r\n // Container Type\r\n public static readonly CONTAINERTYPE_SCHEMA: string = \"Schema\";\r\n public static readonly CONTAINERTYPE_ENTITYCLASS: string = \"EntityClass\";\r\n public static readonly CONTAINERTYPE_CUSTOMATTRIBUTECLASS: string = \"CustomAttributeClass\";\r\n public static readonly CONTAINERTYPE_STRUCTCLASS: string = \"StructClass\";\r\n public static readonly CONTAINERTYPE_RELATIONSHIPCLASS: string = \"RelationshipClass\";\r\n public static readonly CONTAINERTYPE_ANYCLASS: string = \"AnyClass\";\r\n\r\n public static readonly CONTAINERTYPE_PRIMITIVEPROPERTY: string = \"PrimitiveProperty\";\r\n public static readonly CONTAINERTYPE_STRUCTPROPERTY: string = \"StructProperty\";\r\n public static readonly CONTAINERTYPE_PRIMITIVEARRAYPROPERTY: string = \"ArrayProperty\";\r\n public static readonly CONTAINERTYPE_STRUCTARRAYPROPERTY: string = \"StructArrayProperty\";\r\n public static readonly CONTAINERTYPE_NAVIGATIONPROPERTY: string = \"NavigationProperty\";\r\n public static readonly CONTAINERTYPE_ANYPROPERTY: string = \"AnyProperty\";\r\n\r\n public static readonly CONTAINERTYPE_SOURCERELATIONSHIPCONSTRAINT: string = \"SourceRelationshipConstraint\";\r\n public static readonly CONTAINERTYPE_TARGETRELATIONSHIPCONSTRAINT: string = \"TargetRelationshipConstraint\";\r\n public static readonly CONTAINERTYPE_ANYRELATIONSHIPCONSTRAINT: string = \"AnyRelationshipConstraint\";\r\n\r\n public static readonly CONTAINERTYPE_ANY: string = \"Any\";\r\n}\r\n"]}
@@ -1,140 +1,140 @@
1
- import { SchemaMatchType } from "./ECObjects";
2
- import { Schema } from "./Metadata/Schema";
3
- import { SchemaItem } from "./Metadata/SchemaItem";
4
- import { SchemaItemKey, SchemaKey } from "./SchemaKey";
5
- /**
6
- * @beta
7
- */
8
- export declare class SchemaMap extends Array<Schema> {
9
- }
10
- /**
11
- * The interface defines what is needed to be a ISchemaLocater, which are used in a SchemaContext.
12
- * @beta
13
- */
14
- export interface ISchemaLocater {
15
- /**
16
- * Attempts to get a schema from the locater. Yields undefined if no matching schema is found.
17
- * For schemas that may have references, construct and call through a SchemaContext instead.
18
- * @param schemaKey key to look up
19
- * @param matchType how to match key against candidate schemas
20
- * @param context optional context for loading schema references
21
- */
22
- getSchema<T extends Schema>(schemaKey: SchemaKey, matchType: SchemaMatchType, context?: SchemaContext): Promise<T | undefined>;
23
- /**
24
- * Attempts to get a schema from the locater. Yields undefined if no matching schema is found.
25
- * For schemas that may have references, construct and call through a SchemaContext instead.
26
- * @param schemaKey key to look up
27
- * @param matchType how to match key against candidate schemas
28
- * @param context optional context for loading schema references
29
- */
30
- getSchemaSync<T extends Schema>(schemaKey: SchemaKey, matchType: SchemaMatchType, context?: SchemaContext): T | undefined;
31
- }
32
- /**
33
- * @beta
34
- */
35
- export interface ISchemaItemLocater {
36
- getSchemaItem<T extends SchemaItem>(schemaItemKey: SchemaItemKey): Promise<T | undefined>;
37
- }
38
- /**
39
- * @beta
40
- */
41
- export declare class SchemaCache implements ISchemaLocater {
42
- private _schema;
43
- constructor();
44
- get count(): number;
45
- /**
46
- * Adds a schema to the cache. Does not allow for duplicate schemas, checks using SchemaMatchType.Latest.
47
- * @param schema The schema to add to the cache.
48
- */
49
- addSchema<T extends Schema>(schema: T): Promise<void>;
50
- /**
51
- * Adds a schema to the cache. Does not allow for duplicate schemas, checks using SchemaMatchType.Latest.
52
- * @param schema The schema to add to the cache.
53
- */
54
- addSchemaSync<T extends Schema>(schema: T): void;
55
- /**
56
- * Gets the schema which matches the provided SchemaKey.
57
- * @param schemaKey The SchemaKey describing the schema to get from the cache.
58
- * @param matchType The match type to use when locating the schema
59
- */
60
- getSchema<T extends Schema>(schemaKey: SchemaKey, matchType?: SchemaMatchType): Promise<T | undefined>;
61
- /**
62
- *
63
- * @param schemaKey
64
- * @param matchType
65
- */
66
- getSchemaSync<T extends Schema>(schemaKey: SchemaKey, matchType?: SchemaMatchType): T | undefined;
67
- /**
68
- * Generator function that can iterate through each schema in _schema SchemaMap and items for each Schema
69
- */
70
- getSchemaItems(): IterableIterator<SchemaItem>;
71
- /**
72
- * Gets all the schemas from the schema cache.
73
- * @returns An array of Schema objects.
74
- */
75
- getAllSchemas(): Schema[];
76
- }
77
- /**
78
- * The SchemaContext, context object is used to facilitate schema and schema item location.
79
- *
80
- * The context controls the lifetime of each schema that it knows about. It has to be explicitly removed from the context to delete a schema object.
81
- *
82
- * The context is made up of a group of Schema Locators.
83
- * @beta
84
- */
85
- export declare class SchemaContext implements ISchemaLocater, ISchemaItemLocater {
86
- private _locaters;
87
- private _knownSchemas;
88
- constructor();
89
- addLocater(locater: ISchemaLocater): void;
90
- /**
91
- * Adds the schema to this context
92
- * @param schema The schema to add to this context
93
- */
94
- addSchema(schema: Schema): Promise<void>;
95
- /**
96
- * Adds the schema to this context
97
- * @param schema The schema to add to this context
98
- */
99
- addSchemaSync(schema: Schema): void;
100
- /**
101
- * Adds the given SchemaItem to the the SchemaContext by locating the schema, with the best match of SchemaMatchType.Exact, and
102
- * @param schemaItem The SchemaItem to add
103
- */
104
- addSchemaItem(schemaItem: SchemaItem): Promise<void>;
105
- /**
106
- *
107
- * @param schemaKey
108
- */
109
- getSchema<T extends Schema>(schemaKey: SchemaKey, matchType?: SchemaMatchType): Promise<T | undefined>;
110
- /**
111
- *
112
- * @param schemaKey
113
- */
114
- getSchemaSync<T extends Schema>(schemaKey: SchemaKey, matchType?: SchemaMatchType): T | undefined;
115
- /**
116
- * Attempts to get a Schema from the context's cache.
117
- * @param schemaKey The SchemaKey to identify the Schema.
118
- * @param matchType The SchemaMatch type to use. Default is SchemaMatchType.Latest.
119
- * @internal
120
- */
121
- getCachedSchema<T extends Schema>(schemaKey: SchemaKey, matchType?: SchemaMatchType): Promise<T | undefined>;
122
- /**
123
- * Attempts to get a Schema from the context's cache.
124
- * @param schemaKey The SchemaKey to identify the Schema.
125
- * @param matchType The SchemaMatch type to use. Default is SchemaMatchType.Latest.
126
- * @internal
127
- */
128
- getCachedSchemaSync<T extends Schema>(schemaKey: SchemaKey, matchType?: SchemaMatchType): Schema | undefined;
129
- getSchemaItem<T extends SchemaItem>(schemaItemKey: SchemaItemKey): Promise<T | undefined>;
130
- getSchemaItemSync<T extends SchemaItem>(schemaItemKey: SchemaItemKey): T | undefined;
131
- getSchemaItems(): IterableIterator<SchemaItem>;
132
- /**
133
- * Gets all the Schemas known by the context. This includes schemas added to the
134
- * context using [[SchemaContext.addSchema]]. This does not include schemas that
135
- * can be located by an ISchemaLocater instance added to the context.
136
- * @returns An array of Schema objects.
137
- */
138
- getKnownSchemas(): Schema[];
139
- }
1
+ import { SchemaMatchType } from "./ECObjects";
2
+ import { Schema } from "./Metadata/Schema";
3
+ import { SchemaItem } from "./Metadata/SchemaItem";
4
+ import { SchemaItemKey, SchemaKey } from "./SchemaKey";
5
+ /**
6
+ * @beta
7
+ */
8
+ export declare class SchemaMap extends Array<Schema> {
9
+ }
10
+ /**
11
+ * The interface defines what is needed to be a ISchemaLocater, which are used in a SchemaContext.
12
+ * @beta
13
+ */
14
+ export interface ISchemaLocater {
15
+ /**
16
+ * Attempts to get a schema from the locater. Yields undefined if no matching schema is found.
17
+ * For schemas that may have references, construct and call through a SchemaContext instead.
18
+ * @param schemaKey key to look up
19
+ * @param matchType how to match key against candidate schemas
20
+ * @param context optional context for loading schema references
21
+ */
22
+ getSchema<T extends Schema>(schemaKey: SchemaKey, matchType: SchemaMatchType, context?: SchemaContext): Promise<T | undefined>;
23
+ /**
24
+ * Attempts to get a schema from the locater. Yields undefined if no matching schema is found.
25
+ * For schemas that may have references, construct and call through a SchemaContext instead.
26
+ * @param schemaKey key to look up
27
+ * @param matchType how to match key against candidate schemas
28
+ * @param context optional context for loading schema references
29
+ */
30
+ getSchemaSync<T extends Schema>(schemaKey: SchemaKey, matchType: SchemaMatchType, context?: SchemaContext): T | undefined;
31
+ }
32
+ /**
33
+ * @beta
34
+ */
35
+ export interface ISchemaItemLocater {
36
+ getSchemaItem<T extends SchemaItem>(schemaItemKey: SchemaItemKey): Promise<T | undefined>;
37
+ }
38
+ /**
39
+ * @beta
40
+ */
41
+ export declare class SchemaCache implements ISchemaLocater {
42
+ private _schema;
43
+ constructor();
44
+ get count(): number;
45
+ /**
46
+ * Adds a schema to the cache. Does not allow for duplicate schemas, checks using SchemaMatchType.Latest.
47
+ * @param schema The schema to add to the cache.
48
+ */
49
+ addSchema<T extends Schema>(schema: T): Promise<void>;
50
+ /**
51
+ * Adds a schema to the cache. Does not allow for duplicate schemas, checks using SchemaMatchType.Latest.
52
+ * @param schema The schema to add to the cache.
53
+ */
54
+ addSchemaSync<T extends Schema>(schema: T): void;
55
+ /**
56
+ * Gets the schema which matches the provided SchemaKey.
57
+ * @param schemaKey The SchemaKey describing the schema to get from the cache.
58
+ * @param matchType The match type to use when locating the schema
59
+ */
60
+ getSchema<T extends Schema>(schemaKey: SchemaKey, matchType?: SchemaMatchType): Promise<T | undefined>;
61
+ /**
62
+ *
63
+ * @param schemaKey
64
+ * @param matchType
65
+ */
66
+ getSchemaSync<T extends Schema>(schemaKey: SchemaKey, matchType?: SchemaMatchType): T | undefined;
67
+ /**
68
+ * Generator function that can iterate through each schema in _schema SchemaMap and items for each Schema
69
+ */
70
+ getSchemaItems(): IterableIterator<SchemaItem>;
71
+ /**
72
+ * Gets all the schemas from the schema cache.
73
+ * @returns An array of Schema objects.
74
+ */
75
+ getAllSchemas(): Schema[];
76
+ }
77
+ /**
78
+ * The SchemaContext, context object is used to facilitate schema and schema item location.
79
+ *
80
+ * The context controls the lifetime of each schema that it knows about. It has to be explicitly removed from the context to delete a schema object.
81
+ *
82
+ * The context is made up of a group of Schema Locators.
83
+ * @beta
84
+ */
85
+ export declare class SchemaContext implements ISchemaLocater, ISchemaItemLocater {
86
+ private _locaters;
87
+ private _knownSchemas;
88
+ constructor();
89
+ addLocater(locater: ISchemaLocater): void;
90
+ /**
91
+ * Adds the schema to this context
92
+ * @param schema The schema to add to this context
93
+ */
94
+ addSchema(schema: Schema): Promise<void>;
95
+ /**
96
+ * Adds the schema to this context
97
+ * @param schema The schema to add to this context
98
+ */
99
+ addSchemaSync(schema: Schema): void;
100
+ /**
101
+ * Adds the given SchemaItem to the the SchemaContext by locating the schema, with the best match of SchemaMatchType.Exact, and
102
+ * @param schemaItem The SchemaItem to add
103
+ */
104
+ addSchemaItem(schemaItem: SchemaItem): Promise<void>;
105
+ /**
106
+ *
107
+ * @param schemaKey
108
+ */
109
+ getSchema<T extends Schema>(schemaKey: SchemaKey, matchType?: SchemaMatchType): Promise<T | undefined>;
110
+ /**
111
+ *
112
+ * @param schemaKey
113
+ */
114
+ getSchemaSync<T extends Schema>(schemaKey: SchemaKey, matchType?: SchemaMatchType): T | undefined;
115
+ /**
116
+ * Attempts to get a Schema from the context's cache.
117
+ * @param schemaKey The SchemaKey to identify the Schema.
118
+ * @param matchType The SchemaMatch type to use. Default is SchemaMatchType.Latest.
119
+ * @internal
120
+ */
121
+ getCachedSchema<T extends Schema>(schemaKey: SchemaKey, matchType?: SchemaMatchType): Promise<T | undefined>;
122
+ /**
123
+ * Attempts to get a Schema from the context's cache.
124
+ * @param schemaKey The SchemaKey to identify the Schema.
125
+ * @param matchType The SchemaMatch type to use. Default is SchemaMatchType.Latest.
126
+ * @internal
127
+ */
128
+ getCachedSchemaSync<T extends Schema>(schemaKey: SchemaKey, matchType?: SchemaMatchType): Schema | undefined;
129
+ getSchemaItem<T extends SchemaItem>(schemaItemKey: SchemaItemKey): Promise<T | undefined>;
130
+ getSchemaItemSync<T extends SchemaItem>(schemaItemKey: SchemaItemKey): T | undefined;
131
+ getSchemaItems(): IterableIterator<SchemaItem>;
132
+ /**
133
+ * Gets all the Schemas known by the context. This includes schemas added to the
134
+ * context using [[SchemaContext.addSchema]]. This does not include schemas that
135
+ * can be located by an ISchemaLocater instance added to the context.
136
+ * @returns An array of Schema objects.
137
+ */
138
+ getKnownSchemas(): Schema[];
139
+ }
140
140
  //# sourceMappingURL=Context.d.ts.map