@itwin/ecschema-metadata 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 (150) hide show
  1. package/CHANGELOG.md +41 -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/Helper.js.map +1 -1
  18. package/lib/cjs/Deserialization/JsonParser.d.ts +165 -165
  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 +282 -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/SchemaGraphUtil.js.map +1 -1
  28. package/lib/cjs/Deserialization/XmlParser.d.ts +85 -85
  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/Deserialization/XmlSerializationUtils.js.map +1 -1
  34. package/lib/cjs/ECName.d.ts +30 -30
  35. package/lib/cjs/ECName.js +85 -85
  36. package/lib/cjs/ECName.js.map +1 -1
  37. package/lib/cjs/ECObjects.d.ts +162 -162
  38. package/lib/cjs/ECObjects.js +453 -453
  39. package/lib/cjs/ECObjects.js.map +1 -1
  40. package/lib/cjs/Exception.d.ts +43 -43
  41. package/lib/cjs/Exception.js +84 -84
  42. package/lib/cjs/Exception.js.map +1 -1
  43. package/lib/cjs/Interfaces.d.ts +66 -66
  44. package/lib/cjs/Interfaces.d.ts.map +1 -1
  45. package/lib/cjs/Interfaces.js +9 -9
  46. package/lib/cjs/Interfaces.js.map +1 -1
  47. package/lib/cjs/Metadata/Class.d.ts +243 -243
  48. package/lib/cjs/Metadata/Class.js +558 -558
  49. package/lib/cjs/Metadata/Class.js.map +1 -1
  50. package/lib/cjs/Metadata/Constant.d.ts +64 -64
  51. package/lib/cjs/Metadata/Constant.js +123 -123
  52. package/lib/cjs/Metadata/Constant.js.map +1 -1
  53. package/lib/cjs/Metadata/CustomAttribute.d.ts +23 -23
  54. package/lib/cjs/Metadata/CustomAttribute.js +27 -27
  55. package/lib/cjs/Metadata/CustomAttribute.js.map +1 -1
  56. package/lib/cjs/Metadata/CustomAttributeClass.d.ts +39 -39
  57. package/lib/cjs/Metadata/CustomAttributeClass.js +68 -68
  58. package/lib/cjs/Metadata/CustomAttributeClass.js.map +1 -1
  59. package/lib/cjs/Metadata/EntityClass.d.ts +77 -77
  60. package/lib/cjs/Metadata/EntityClass.js +230 -230
  61. package/lib/cjs/Metadata/EntityClass.js.map +1 -1
  62. package/lib/cjs/Metadata/Enumeration.d.ts +86 -86
  63. package/lib/cjs/Metadata/Enumeration.d.ts.map +1 -1
  64. package/lib/cjs/Metadata/Enumeration.js +159 -159
  65. package/lib/cjs/Metadata/Enumeration.js.map +1 -1
  66. package/lib/cjs/Metadata/Format.d.ts +98 -98
  67. package/lib/cjs/Metadata/Format.js +242 -242
  68. package/lib/cjs/Metadata/Format.js.map +1 -1
  69. package/lib/cjs/Metadata/InvertedUnit.d.ts +49 -49
  70. package/lib/cjs/Metadata/InvertedUnit.js +97 -97
  71. package/lib/cjs/Metadata/InvertedUnit.js.map +1 -1
  72. package/lib/cjs/Metadata/KindOfQuantity.d.ts +65 -65
  73. package/lib/cjs/Metadata/KindOfQuantity.js +225 -225
  74. package/lib/cjs/Metadata/KindOfQuantity.js.map +1 -1
  75. package/lib/cjs/Metadata/Mixin.d.ts +54 -54
  76. package/lib/cjs/Metadata/Mixin.js +113 -113
  77. package/lib/cjs/Metadata/Mixin.js.map +1 -1
  78. package/lib/cjs/Metadata/OverrideFormat.d.ts +55 -55
  79. package/lib/cjs/Metadata/OverrideFormat.js +88 -88
  80. package/lib/cjs/Metadata/OverrideFormat.js.map +1 -1
  81. package/lib/cjs/Metadata/Phenomenon.d.ts +33 -33
  82. package/lib/cjs/Metadata/Phenomenon.js +59 -59
  83. package/lib/cjs/Metadata/Phenomenon.js.map +1 -1
  84. package/lib/cjs/Metadata/Property.d.ts +197 -197
  85. package/lib/cjs/Metadata/Property.d.ts.map +1 -1
  86. package/lib/cjs/Metadata/Property.js +491 -491
  87. package/lib/cjs/Metadata/Property.js.map +1 -1
  88. package/lib/cjs/Metadata/PropertyCategory.d.ts +39 -39
  89. package/lib/cjs/Metadata/PropertyCategory.js +61 -61
  90. package/lib/cjs/Metadata/PropertyCategory.js.map +1 -1
  91. package/lib/cjs/Metadata/RelationshipClass.d.ts +152 -152
  92. package/lib/cjs/Metadata/RelationshipClass.js +349 -349
  93. package/lib/cjs/Metadata/RelationshipClass.js.map +1 -1
  94. package/lib/cjs/Metadata/Schema.d.ts +291 -291
  95. package/lib/cjs/Metadata/Schema.d.ts.map +1 -1
  96. package/lib/cjs/Metadata/Schema.js +520 -520
  97. package/lib/cjs/Metadata/Schema.js.map +1 -1
  98. package/lib/cjs/Metadata/SchemaItem.d.ts +61 -61
  99. package/lib/cjs/Metadata/SchemaItem.js +136 -136
  100. package/lib/cjs/Metadata/SchemaItem.js.map +1 -1
  101. package/lib/cjs/Metadata/Unit.d.ts +76 -76
  102. package/lib/cjs/Metadata/Unit.js +162 -162
  103. package/lib/cjs/Metadata/Unit.js.map +1 -1
  104. package/lib/cjs/Metadata/UnitSystem.d.ts +20 -20
  105. package/lib/cjs/Metadata/UnitSystem.js +29 -29
  106. package/lib/cjs/Metadata/UnitSystem.js.map +1 -1
  107. package/lib/cjs/PropertyTypes.d.ts +49 -49
  108. package/lib/cjs/PropertyTypes.js +91 -91
  109. package/lib/cjs/PropertyTypes.js.map +1 -1
  110. package/lib/cjs/SchemaJsonLocater.d.ts +34 -34
  111. package/lib/cjs/SchemaJsonLocater.d.ts.map +1 -1
  112. package/lib/cjs/SchemaJsonLocater.js +42 -42
  113. package/lib/cjs/SchemaJsonLocater.js.map +1 -1
  114. package/lib/cjs/SchemaKey.d.ts +110 -110
  115. package/lib/cjs/SchemaKey.js +219 -219
  116. package/lib/cjs/SchemaKey.js.map +1 -1
  117. package/lib/cjs/SchemaLoader.d.ts +23 -23
  118. package/lib/cjs/SchemaLoader.js +47 -47
  119. package/lib/cjs/SchemaLoader.js.map +1 -1
  120. package/lib/cjs/SchemaPartVisitorDelegate.d.ts +274 -274
  121. package/lib/cjs/SchemaPartVisitorDelegate.js +212 -212
  122. package/lib/cjs/SchemaPartVisitorDelegate.js.map +1 -1
  123. package/lib/cjs/UnitConversion/Graph.d.ts +34 -34
  124. package/lib/cjs/UnitConversion/Graph.js +83 -83
  125. package/lib/cjs/UnitConversion/Graph.js.map +1 -1
  126. package/lib/cjs/UnitConversion/Parser.d.ts +8 -8
  127. package/lib/cjs/UnitConversion/Parser.js +42 -42
  128. package/lib/cjs/UnitConversion/Parser.js.map +1 -1
  129. package/lib/cjs/UnitConversion/UnitConversion.d.ts +45 -45
  130. package/lib/cjs/UnitConversion/UnitConversion.js +77 -77
  131. package/lib/cjs/UnitConversion/UnitConversion.js.map +1 -1
  132. package/lib/cjs/UnitConversion/UnitConverter.d.ts +39 -39
  133. package/lib/cjs/UnitConversion/UnitConverter.js +116 -116
  134. package/lib/cjs/UnitConversion/UnitConverter.js.map +1 -1
  135. package/lib/cjs/UnitConversion/UnitTree.d.ts +43 -43
  136. package/lib/cjs/UnitConversion/UnitTree.js +169 -169
  137. package/lib/cjs/UnitConversion/UnitTree.js.map +1 -1
  138. package/lib/cjs/UnitProvider/SchemaUnitProvider.d.ts +77 -77
  139. package/lib/cjs/UnitProvider/SchemaUnitProvider.js +234 -236
  140. package/lib/cjs/UnitProvider/SchemaUnitProvider.js.map +1 -1
  141. package/lib/cjs/Validation/SchemaWalker.d.ts +23 -23
  142. package/lib/cjs/Validation/SchemaWalker.js +53 -53
  143. package/lib/cjs/Validation/SchemaWalker.js.map +1 -1
  144. package/lib/cjs/ecschema-metadata.d.ts +51 -51
  145. package/lib/cjs/ecschema-metadata.js +100 -96
  146. package/lib/cjs/ecschema-metadata.js.map +1 -1
  147. package/lib/cjs/utils/SchemaGraph.d.ts +25 -25
  148. package/lib/cjs/utils/SchemaGraph.js +65 -65
  149. package/lib/cjs/utils/SchemaGraph.js.map +1 -1
  150. package/package.json +12 -12
package/CHANGELOG.md CHANGED
@@ -1,6 +1,46 @@
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 Wed, 12 Apr 2023 13:12:42 GMT and should not be manually modified.
4
+
5
+ ## 3.7.2
6
+ Wed, 12 Apr 2023 13:12:42 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 3.7.1
11
+ Mon, 03 Apr 2023 15:15:37 GMT
12
+
13
+ _Version update only_
14
+
15
+ ## 3.7.0
16
+ Wed, 29 Mar 2023 15:02:27 GMT
17
+
18
+ _Version update only_
19
+
20
+ ## 3.6.3
21
+ Mon, 27 Mar 2023 16:26:47 GMT
22
+
23
+ _Version update only_
24
+
25
+ ## 3.6.2
26
+ Fri, 17 Mar 2023 17:52:32 GMT
27
+
28
+ _Version update only_
29
+
30
+ ## 3.6.1
31
+ Fri, 24 Feb 2023 22:00:48 GMT
32
+
33
+ _Version update only_
34
+
35
+ ## 3.6.0
36
+ Wed, 08 Feb 2023 14:58:40 GMT
37
+
38
+ _Version update only_
39
+
40
+ ## 3.5.6
41
+ Fri, 24 Feb 2023 16:02:47 GMT
42
+
43
+ _Version update only_
4
44
 
5
45
  ## 3.5.5
6
46
  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":["/*---------------------------------------------------------------------------------------------\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\n/**\n * @internal\n */\nexport class ECStringConstants {\n // Relationship End\n public static readonly RELATIONSHIP_END_SOURCE: string = \"Source\";\n public static readonly RELATIONSHIP_END_TARGET: string = \"Target\";\n\n // Container Type\n public static readonly CONTAINERTYPE_SCHEMA: string = \"Schema\";\n public static readonly CONTAINERTYPE_ENTITYCLASS: string = \"EntityClass\";\n public static readonly CONTAINERTYPE_CUSTOMATTRIBUTECLASS: string = \"CustomAttributeClass\";\n public static readonly CONTAINERTYPE_STRUCTCLASS: string = \"StructClass\";\n public static readonly CONTAINERTYPE_RELATIONSHIPCLASS: string = \"RelationshipClass\";\n public static readonly CONTAINERTYPE_ANYCLASS: string = \"AnyClass\";\n\n public static readonly CONTAINERTYPE_PRIMITIVEPROPERTY: string = \"PrimitiveProperty\";\n public static readonly CONTAINERTYPE_STRUCTPROPERTY: string = \"StructProperty\";\n public static readonly CONTAINERTYPE_PRIMITIVEARRAYPROPERTY: string = \"ArrayProperty\";\n public static readonly CONTAINERTYPE_STRUCTARRAYPROPERTY: string = \"StructArrayProperty\";\n public static readonly CONTAINERTYPE_NAVIGATIONPROPERTY: string = \"NavigationProperty\";\n public static readonly CONTAINERTYPE_ANYPROPERTY: string = \"AnyProperty\";\n\n public static readonly CONTAINERTYPE_SOURCERELATIONSHIPCONSTRAINT: string = \"SourceRelationshipConstraint\";\n public static readonly CONTAINERTYPE_TARGETRELATIONSHIPCONSTRAINT: string = \"TargetRelationshipConstraint\";\n public static readonly CONTAINERTYPE_ANYRELATIONSHIPCONSTRAINT: string = \"AnyRelationshipConstraint\";\n\n public static readonly CONTAINERTYPE_ANY: string = \"Any\";\n}\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