@itwin/ecschema-metadata 3.6.0-dev.54 → 3.6.0-dev.55
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.
- package/lib/cjs/Constants.d.ts +23 -23
- package/lib/cjs/Constants.js +33 -33
- package/lib/cjs/Constants.js.map +1 -1
- package/lib/cjs/Context.d.ts +139 -139
- package/lib/cjs/Context.js +204 -204
- package/lib/cjs/DelayedPromise.d.ts +88 -88
- package/lib/cjs/DelayedPromise.js +91 -91
- package/lib/cjs/DelayedPromise.js.map +1 -1
- package/lib/cjs/Deserialization/AbstractParser.d.ts +45 -45
- package/lib/cjs/Deserialization/AbstractParser.js +11 -11
- package/lib/cjs/Deserialization/AbstractParser.js.map +1 -1
- package/lib/cjs/Deserialization/Helper.d.ts +251 -251
- package/lib/cjs/Deserialization/Helper.js +843 -843
- package/lib/cjs/Deserialization/Helper.js.map +1 -1
- package/lib/cjs/Deserialization/JsonParser.d.ts +165 -165
- package/lib/cjs/Deserialization/JsonParser.js +680 -680
- package/lib/cjs/Deserialization/JsonParser.js.map +1 -1
- package/lib/cjs/Deserialization/JsonProps.d.ts +282 -282
- package/lib/cjs/Deserialization/JsonProps.js +9 -9
- package/lib/cjs/Deserialization/JsonProps.js.map +1 -1
- package/lib/cjs/Deserialization/SchemaGraphUtil.d.ts +34 -34
- package/lib/cjs/Deserialization/SchemaGraphUtil.js +77 -77
- package/lib/cjs/Deserialization/SchemaGraphUtil.js.map +1 -1
- package/lib/cjs/Deserialization/XmlParser.d.ts +85 -85
- package/lib/cjs/Deserialization/XmlParser.js +973 -973
- package/lib/cjs/Deserialization/XmlParser.js.map +1 -1
- package/lib/cjs/Deserialization/XmlSerializationUtils.d.ts +54 -54
- package/lib/cjs/Deserialization/XmlSerializationUtils.js +174 -174
- package/lib/cjs/Deserialization/XmlSerializationUtils.js.map +1 -1
- package/lib/cjs/ECName.d.ts +30 -30
- package/lib/cjs/ECName.js +85 -85
- package/lib/cjs/ECName.js.map +1 -1
- package/lib/cjs/ECObjects.d.ts +162 -162
- package/lib/cjs/ECObjects.js +453 -453
- package/lib/cjs/ECObjects.js.map +1 -1
- package/lib/cjs/Exception.d.ts +43 -43
- package/lib/cjs/Exception.js +86 -86
- package/lib/cjs/Exception.js.map +1 -1
- package/lib/cjs/Interfaces.d.ts +66 -66
- package/lib/cjs/Interfaces.js +9 -9
- package/lib/cjs/Interfaces.js.map +1 -1
- package/lib/cjs/Metadata/Class.d.ts +243 -243
- package/lib/cjs/Metadata/Class.js +558 -558
- package/lib/cjs/Metadata/Class.js.map +1 -1
- package/lib/cjs/Metadata/Constant.d.ts +64 -64
- package/lib/cjs/Metadata/Constant.js +123 -123
- package/lib/cjs/Metadata/Constant.js.map +1 -1
- package/lib/cjs/Metadata/CustomAttribute.d.ts +23 -23
- package/lib/cjs/Metadata/CustomAttribute.js +27 -27
- package/lib/cjs/Metadata/CustomAttribute.js.map +1 -1
- package/lib/cjs/Metadata/CustomAttributeClass.d.ts +39 -39
- package/lib/cjs/Metadata/CustomAttributeClass.js +68 -68
- package/lib/cjs/Metadata/CustomAttributeClass.js.map +1 -1
- package/lib/cjs/Metadata/EntityClass.d.ts +77 -77
- package/lib/cjs/Metadata/EntityClass.js +230 -230
- package/lib/cjs/Metadata/EntityClass.js.map +1 -1
- package/lib/cjs/Metadata/Enumeration.d.ts +86 -86
- package/lib/cjs/Metadata/Enumeration.js +159 -159
- package/lib/cjs/Metadata/Enumeration.js.map +1 -1
- package/lib/cjs/Metadata/Format.d.ts +98 -98
- package/lib/cjs/Metadata/Format.js +242 -242
- package/lib/cjs/Metadata/Format.js.map +1 -1
- package/lib/cjs/Metadata/InvertedUnit.d.ts +49 -49
- package/lib/cjs/Metadata/InvertedUnit.js +97 -97
- package/lib/cjs/Metadata/InvertedUnit.js.map +1 -1
- package/lib/cjs/Metadata/KindOfQuantity.d.ts +65 -65
- package/lib/cjs/Metadata/KindOfQuantity.js +225 -225
- package/lib/cjs/Metadata/KindOfQuantity.js.map +1 -1
- package/lib/cjs/Metadata/Mixin.d.ts +54 -54
- package/lib/cjs/Metadata/Mixin.js +113 -113
- package/lib/cjs/Metadata/Mixin.js.map +1 -1
- package/lib/cjs/Metadata/OverrideFormat.d.ts +55 -55
- package/lib/cjs/Metadata/OverrideFormat.js +88 -88
- package/lib/cjs/Metadata/OverrideFormat.js.map +1 -1
- package/lib/cjs/Metadata/Phenomenon.d.ts +33 -33
- package/lib/cjs/Metadata/Phenomenon.js +59 -59
- package/lib/cjs/Metadata/Phenomenon.js.map +1 -1
- package/lib/cjs/Metadata/Property.d.ts +197 -197
- package/lib/cjs/Metadata/Property.js +491 -491
- package/lib/cjs/Metadata/Property.js.map +1 -1
- package/lib/cjs/Metadata/PropertyCategory.d.ts +39 -39
- package/lib/cjs/Metadata/PropertyCategory.js +61 -61
- package/lib/cjs/Metadata/PropertyCategory.js.map +1 -1
- package/lib/cjs/Metadata/RelationshipClass.d.ts +152 -152
- package/lib/cjs/Metadata/RelationshipClass.js +349 -349
- package/lib/cjs/Metadata/RelationshipClass.js.map +1 -1
- package/lib/cjs/Metadata/Schema.d.ts +291 -291
- package/lib/cjs/Metadata/Schema.js +520 -520
- package/lib/cjs/Metadata/Schema.js.map +1 -1
- package/lib/cjs/Metadata/SchemaItem.d.ts +61 -61
- package/lib/cjs/Metadata/SchemaItem.js +136 -136
- package/lib/cjs/Metadata/SchemaItem.js.map +1 -1
- package/lib/cjs/Metadata/Unit.d.ts +76 -76
- package/lib/cjs/Metadata/Unit.js +162 -162
- package/lib/cjs/Metadata/UnitSystem.d.ts +20 -20
- package/lib/cjs/Metadata/UnitSystem.js +29 -29
- package/lib/cjs/Metadata/UnitSystem.js.map +1 -1
- package/lib/cjs/PropertyTypes.d.ts +49 -49
- package/lib/cjs/PropertyTypes.js +91 -91
- package/lib/cjs/PropertyTypes.js.map +1 -1
- package/lib/cjs/SchemaJsonLocater.d.ts +34 -34
- package/lib/cjs/SchemaJsonLocater.js +42 -42
- package/lib/cjs/SchemaJsonLocater.js.map +1 -1
- package/lib/cjs/SchemaKey.d.ts +110 -110
- package/lib/cjs/SchemaKey.js +219 -219
- package/lib/cjs/SchemaKey.js.map +1 -1
- package/lib/cjs/SchemaLoader.d.ts +23 -23
- package/lib/cjs/SchemaLoader.js +47 -47
- package/lib/cjs/SchemaLoader.js.map +1 -1
- package/lib/cjs/SchemaPartVisitorDelegate.d.ts +274 -274
- package/lib/cjs/SchemaPartVisitorDelegate.js +212 -212
- package/lib/cjs/SchemaPartVisitorDelegate.js.map +1 -1
- package/lib/cjs/UnitConversion/Graph.d.ts +34 -34
- package/lib/cjs/UnitConversion/Graph.js +83 -83
- package/lib/cjs/UnitConversion/Graph.js.map +1 -1
- package/lib/cjs/UnitConversion/Parser.d.ts +8 -8
- package/lib/cjs/UnitConversion/Parser.js +42 -42
- package/lib/cjs/UnitConversion/Parser.js.map +1 -1
- package/lib/cjs/UnitConversion/UnitConversion.d.ts +45 -45
- package/lib/cjs/UnitConversion/UnitConversion.js +77 -77
- package/lib/cjs/UnitConversion/UnitConversion.js.map +1 -1
- package/lib/cjs/UnitConversion/UnitConverter.d.ts +39 -39
- package/lib/cjs/UnitConversion/UnitConverter.js +116 -116
- package/lib/cjs/UnitConversion/UnitConverter.js.map +1 -1
- package/lib/cjs/UnitConversion/UnitTree.d.ts +43 -43
- package/lib/cjs/UnitConversion/UnitTree.js +169 -169
- package/lib/cjs/UnitConversion/UnitTree.js.map +1 -1
- package/lib/cjs/UnitProvider/SchemaUnitProvider.d.ts +77 -77
- package/lib/cjs/UnitProvider/SchemaUnitProvider.js +236 -236
- package/lib/cjs/UnitProvider/SchemaUnitProvider.js.map +1 -1
- package/lib/cjs/Validation/SchemaWalker.d.ts +23 -23
- package/lib/cjs/Validation/SchemaWalker.js +53 -53
- package/lib/cjs/Validation/SchemaWalker.js.map +1 -1
- package/lib/cjs/ecschema-metadata.d.ts +51 -51
- package/lib/cjs/ecschema-metadata.js +96 -96
- package/lib/cjs/ecschema-metadata.js.map +1 -1
- package/lib/cjs/utils/SchemaGraph.d.ts +25 -25
- package/lib/cjs/utils/SchemaGraph.js +65 -65
- package/lib/cjs/utils/SchemaGraph.js.map +1 -1
- package/package.json +7 -7
package/lib/cjs/Constants.d.ts
CHANGED
|
@@ -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
|
package/lib/cjs/Constants.js
CHANGED
|
@@ -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
|
package/lib/cjs/Constants.js.map
CHANGED
|
@@ -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"]}
|
package/lib/cjs/Context.d.ts
CHANGED
|
@@ -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
|