@itwin/ecschema-metadata 3.5.0-dev.5 → 3.5.0-dev.51

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 (141) hide show
  1. package/CHANGELOG.md +46 -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.js +91 -91
  9. package/lib/cjs/DelayedPromise.js.map +1 -1
  10. package/lib/cjs/Deserialization/AbstractParser.d.ts +45 -45
  11. package/lib/cjs/Deserialization/AbstractParser.js +11 -11
  12. package/lib/cjs/Deserialization/AbstractParser.js.map +1 -1
  13. package/lib/cjs/Deserialization/Helper.d.ts +251 -251
  14. package/lib/cjs/Deserialization/Helper.js +843 -843
  15. package/lib/cjs/Deserialization/Helper.js.map +1 -1
  16. package/lib/cjs/Deserialization/JsonParser.d.ts +165 -165
  17. package/lib/cjs/Deserialization/JsonParser.js +680 -680
  18. package/lib/cjs/Deserialization/JsonParser.js.map +1 -1
  19. package/lib/cjs/Deserialization/JsonProps.d.ts +282 -282
  20. package/lib/cjs/Deserialization/JsonProps.js +9 -9
  21. package/lib/cjs/Deserialization/JsonProps.js.map +1 -1
  22. package/lib/cjs/Deserialization/SchemaGraphUtil.d.ts +34 -34
  23. package/lib/cjs/Deserialization/SchemaGraphUtil.js +77 -77
  24. package/lib/cjs/Deserialization/SchemaGraphUtil.js.map +1 -1
  25. package/lib/cjs/Deserialization/XmlParser.d.ts +85 -85
  26. package/lib/cjs/Deserialization/XmlParser.js +973 -973
  27. package/lib/cjs/Deserialization/XmlParser.js.map +1 -1
  28. package/lib/cjs/Deserialization/XmlSerializationUtils.d.ts +54 -54
  29. package/lib/cjs/Deserialization/XmlSerializationUtils.js +174 -174
  30. package/lib/cjs/Deserialization/XmlSerializationUtils.js.map +1 -1
  31. package/lib/cjs/ECName.d.ts +30 -30
  32. package/lib/cjs/ECName.js +85 -85
  33. package/lib/cjs/ECName.js.map +1 -1
  34. package/lib/cjs/ECObjects.d.ts +162 -162
  35. package/lib/cjs/ECObjects.js +453 -453
  36. package/lib/cjs/ECObjects.js.map +1 -1
  37. package/lib/cjs/Exception.d.ts +43 -43
  38. package/lib/cjs/Exception.js +86 -86
  39. package/lib/cjs/Exception.js.map +1 -1
  40. package/lib/cjs/Interfaces.d.ts +66 -66
  41. package/lib/cjs/Interfaces.js +9 -9
  42. package/lib/cjs/Interfaces.js.map +1 -1
  43. package/lib/cjs/Metadata/Class.d.ts +243 -243
  44. package/lib/cjs/Metadata/Class.js +558 -558
  45. package/lib/cjs/Metadata/Class.js.map +1 -1
  46. package/lib/cjs/Metadata/Constant.d.ts +64 -64
  47. package/lib/cjs/Metadata/Constant.js +123 -123
  48. package/lib/cjs/Metadata/Constant.js.map +1 -1
  49. package/lib/cjs/Metadata/CustomAttribute.d.ts +23 -23
  50. package/lib/cjs/Metadata/CustomAttribute.js +27 -27
  51. package/lib/cjs/Metadata/CustomAttribute.js.map +1 -1
  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/EntityClass.js.map +1 -1
  58. package/lib/cjs/Metadata/Enumeration.d.ts +86 -86
  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.js +242 -242
  63. package/lib/cjs/Metadata/Format.js.map +1 -1
  64. package/lib/cjs/Metadata/InvertedUnit.d.ts +49 -49
  65. package/lib/cjs/Metadata/InvertedUnit.js +97 -97
  66. package/lib/cjs/Metadata/InvertedUnit.js.map +1 -1
  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 +55 -55
  74. package/lib/cjs/Metadata/OverrideFormat.js +88 -88
  75. package/lib/cjs/Metadata/OverrideFormat.js.map +1 -1
  76. package/lib/cjs/Metadata/Phenomenon.d.ts +33 -33
  77. package/lib/cjs/Metadata/Phenomenon.js +59 -59
  78. package/lib/cjs/Metadata/Phenomenon.js.map +1 -1
  79. package/lib/cjs/Metadata/Property.d.ts +197 -197
  80. package/lib/cjs/Metadata/Property.js +491 -491
  81. package/lib/cjs/Metadata/Property.js.map +1 -1
  82. package/lib/cjs/Metadata/PropertyCategory.d.ts +39 -39
  83. package/lib/cjs/Metadata/PropertyCategory.js +61 -61
  84. package/lib/cjs/Metadata/PropertyCategory.js.map +1 -1
  85. package/lib/cjs/Metadata/RelationshipClass.d.ts +152 -152
  86. package/lib/cjs/Metadata/RelationshipClass.js +349 -349
  87. package/lib/cjs/Metadata/RelationshipClass.js.map +1 -1
  88. package/lib/cjs/Metadata/Schema.d.ts +291 -291
  89. package/lib/cjs/Metadata/Schema.js +520 -520
  90. package/lib/cjs/Metadata/Schema.js.map +1 -1
  91. package/lib/cjs/Metadata/SchemaItem.d.ts +61 -61
  92. package/lib/cjs/Metadata/SchemaItem.js +136 -136
  93. package/lib/cjs/Metadata/SchemaItem.js.map +1 -1
  94. package/lib/cjs/Metadata/Unit.d.ts +76 -76
  95. package/lib/cjs/Metadata/Unit.js +162 -162
  96. package/lib/cjs/Metadata/UnitSystem.d.ts +20 -20
  97. package/lib/cjs/Metadata/UnitSystem.js +29 -29
  98. package/lib/cjs/Metadata/UnitSystem.js.map +1 -1
  99. package/lib/cjs/PropertyTypes.d.ts +49 -49
  100. package/lib/cjs/PropertyTypes.js +91 -91
  101. package/lib/cjs/PropertyTypes.js.map +1 -1
  102. package/lib/cjs/SchemaJsonLocater.d.ts +34 -34
  103. package/lib/cjs/SchemaJsonLocater.js +42 -42
  104. package/lib/cjs/SchemaJsonLocater.js.map +1 -1
  105. package/lib/cjs/SchemaKey.d.ts +110 -110
  106. package/lib/cjs/SchemaKey.js +219 -219
  107. package/lib/cjs/SchemaKey.js.map +1 -1
  108. package/lib/cjs/SchemaLoader.d.ts +23 -23
  109. package/lib/cjs/SchemaLoader.js +47 -47
  110. package/lib/cjs/SchemaLoader.js.map +1 -1
  111. package/lib/cjs/SchemaPartVisitorDelegate.d.ts +274 -274
  112. package/lib/cjs/SchemaPartVisitorDelegate.js +212 -212
  113. package/lib/cjs/SchemaPartVisitorDelegate.js.map +1 -1
  114. package/lib/cjs/UnitConversion/Graph.d.ts +34 -34
  115. package/lib/cjs/UnitConversion/Graph.js +83 -83
  116. package/lib/cjs/UnitConversion/Graph.js.map +1 -1
  117. package/lib/cjs/UnitConversion/Parser.d.ts +8 -8
  118. package/lib/cjs/UnitConversion/Parser.js +42 -42
  119. package/lib/cjs/UnitConversion/Parser.js.map +1 -1
  120. package/lib/cjs/UnitConversion/UnitConversion.d.ts +45 -45
  121. package/lib/cjs/UnitConversion/UnitConversion.js +77 -77
  122. package/lib/cjs/UnitConversion/UnitConversion.js.map +1 -1
  123. package/lib/cjs/UnitConversion/UnitConverter.d.ts +39 -39
  124. package/lib/cjs/UnitConversion/UnitConverter.js +116 -116
  125. package/lib/cjs/UnitConversion/UnitConverter.js.map +1 -1
  126. package/lib/cjs/UnitConversion/UnitTree.d.ts +43 -43
  127. package/lib/cjs/UnitConversion/UnitTree.js +169 -169
  128. package/lib/cjs/UnitConversion/UnitTree.js.map +1 -1
  129. package/lib/cjs/UnitProvider/SchemaUnitProvider.d.ts +77 -77
  130. package/lib/cjs/UnitProvider/SchemaUnitProvider.js +236 -236
  131. package/lib/cjs/UnitProvider/SchemaUnitProvider.js.map +1 -1
  132. package/lib/cjs/Validation/SchemaWalker.d.ts +23 -23
  133. package/lib/cjs/Validation/SchemaWalker.js +53 -53
  134. package/lib/cjs/Validation/SchemaWalker.js.map +1 -1
  135. package/lib/cjs/ecschema-metadata.d.ts +51 -51
  136. package/lib/cjs/ecschema-metadata.js +96 -96
  137. package/lib/cjs/ecschema-metadata.js.map +1 -1
  138. package/lib/cjs/utils/SchemaGraph.d.ts +25 -25
  139. package/lib/cjs/utils/SchemaGraph.js +65 -65
  140. package/lib/cjs/utils/SchemaGraph.js.map +1 -1
  141. package/package.json +9 -9
package/CHANGELOG.md CHANGED
@@ -1,6 +1,51 @@
1
1
  # Change Log - @itwin/ecschema-metadata
2
2
 
3
- This log was last generated on Thu, 01 Sep 2022 14:37:22 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 10 Nov 2022 19:32:17 GMT and should not be manually modified.
4
+
5
+ ## 3.4.4
6
+ Thu, 10 Nov 2022 19:32:17 GMT
7
+
8
+ ### Updates
9
+
10
+ - bump xmldom to resolve GHSA-crh6-fp67-6883
11
+
12
+ ## 3.4.3
13
+ Fri, 28 Oct 2022 13:34:58 GMT
14
+
15
+ _Version update only_
16
+
17
+ ## 3.4.2
18
+ Mon, 24 Oct 2022 13:23:45 GMT
19
+
20
+ _Version update only_
21
+
22
+ ## 3.4.1
23
+ Mon, 17 Oct 2022 20:06:51 GMT
24
+
25
+ _Version update only_
26
+
27
+ ## 3.4.0
28
+ Thu, 13 Oct 2022 20:24:47 GMT
29
+
30
+ ### Updates
31
+
32
+ - Added SchemaLoader
33
+ - Updated Node types declaration to support latest v16
34
+
35
+ ## 3.3.5
36
+ Tue, 27 Sep 2022 11:50:59 GMT
37
+
38
+ _Version update only_
39
+
40
+ ## 3.3.4
41
+ Thu, 08 Sep 2022 19:00:05 GMT
42
+
43
+ _Version update only_
44
+
45
+ ## 3.3.3
46
+ Tue, 06 Sep 2022 20:54:19 GMT
47
+
48
+ _Version update only_
4
49
 
5
50
  ## 3.3.2
6
51
  Thu, 01 Sep 2022 14:37:22 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
+ 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";
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":["/*---------------------------------------------------------------------------------------------\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
+ {"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,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