@itwin/ecschema-metadata 3.0.0-dev.77 → 3.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.
- package/lib/{Constants.d.ts → cjs/Constants.d.ts} +0 -0
- package/lib/cjs/Constants.d.ts.map +1 -0
- package/lib/{Constants.js → cjs/Constants.js} +0 -0
- package/lib/cjs/Constants.js.map +1 -0
- package/lib/{Context.d.ts → cjs/Context.d.ts} +0 -0
- package/lib/cjs/Context.d.ts.map +1 -0
- package/lib/{Context.js → cjs/Context.js} +0 -0
- package/lib/cjs/Context.js.map +1 -0
- package/lib/{DelayedPromise.d.ts → cjs/DelayedPromise.d.ts} +0 -0
- package/lib/cjs/DelayedPromise.d.ts.map +1 -0
- package/lib/{DelayedPromise.js → cjs/DelayedPromise.js} +0 -0
- package/lib/cjs/DelayedPromise.js.map +1 -0
- package/lib/{Deserialization → cjs/Deserialization}/AbstractParser.d.ts +0 -0
- package/lib/cjs/Deserialization/AbstractParser.d.ts.map +1 -0
- package/lib/{Deserialization → cjs/Deserialization}/AbstractParser.js +0 -0
- package/lib/cjs/Deserialization/AbstractParser.js.map +1 -0
- package/lib/{Deserialization → cjs/Deserialization}/Helper.d.ts +0 -0
- package/lib/cjs/Deserialization/Helper.d.ts.map +1 -0
- package/lib/{Deserialization → cjs/Deserialization}/Helper.js +0 -0
- package/lib/cjs/Deserialization/Helper.js.map +1 -0
- package/lib/{Deserialization → cjs/Deserialization}/JsonParser.d.ts +0 -0
- package/lib/cjs/Deserialization/JsonParser.d.ts.map +1 -0
- package/lib/{Deserialization → cjs/Deserialization}/JsonParser.js +0 -0
- package/lib/cjs/Deserialization/JsonParser.js.map +1 -0
- package/lib/{Deserialization → cjs/Deserialization}/JsonProps.d.ts +0 -0
- package/lib/cjs/Deserialization/JsonProps.d.ts.map +1 -0
- package/lib/{Deserialization → cjs/Deserialization}/JsonProps.js +0 -0
- package/lib/cjs/Deserialization/JsonProps.js.map +1 -0
- package/lib/{Deserialization → cjs/Deserialization}/SchemaGraphUtil.d.ts +0 -0
- package/lib/cjs/Deserialization/SchemaGraphUtil.d.ts.map +1 -0
- package/lib/{Deserialization → cjs/Deserialization}/SchemaGraphUtil.js +0 -0
- package/lib/cjs/Deserialization/SchemaGraphUtil.js.map +1 -0
- package/lib/{Deserialization → cjs/Deserialization}/XmlParser.d.ts +0 -0
- package/lib/cjs/Deserialization/XmlParser.d.ts.map +1 -0
- package/lib/{Deserialization → cjs/Deserialization}/XmlParser.js +84 -29
- package/lib/cjs/Deserialization/XmlParser.js.map +1 -0
- package/lib/{Deserialization → cjs/Deserialization}/XmlSerializationUtils.d.ts +0 -0
- package/lib/cjs/Deserialization/XmlSerializationUtils.d.ts.map +1 -0
- package/lib/{Deserialization → cjs/Deserialization}/XmlSerializationUtils.js +0 -0
- package/lib/cjs/Deserialization/XmlSerializationUtils.js.map +1 -0
- package/lib/{ECName.d.ts → cjs/ECName.d.ts} +0 -0
- package/lib/cjs/ECName.d.ts.map +1 -0
- package/lib/{ECName.js → cjs/ECName.js} +0 -0
- package/lib/cjs/ECName.js.map +1 -0
- package/lib/{ECObjects.d.ts → cjs/ECObjects.d.ts} +0 -0
- package/lib/cjs/ECObjects.d.ts.map +1 -0
- package/lib/{ECObjects.js → cjs/ECObjects.js} +0 -0
- package/lib/cjs/ECObjects.js.map +1 -0
- package/lib/{Exception.d.ts → cjs/Exception.d.ts} +0 -0
- package/lib/cjs/Exception.d.ts.map +1 -0
- package/lib/{Exception.js → cjs/Exception.js} +0 -0
- package/lib/cjs/Exception.js.map +1 -0
- package/lib/{Interfaces.d.ts → cjs/Interfaces.d.ts} +0 -0
- package/lib/cjs/Interfaces.d.ts.map +1 -0
- package/lib/{Interfaces.js → cjs/Interfaces.js} +0 -0
- package/lib/cjs/Interfaces.js.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/Class.d.ts +0 -0
- package/lib/cjs/Metadata/Class.d.ts.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/Class.js +18 -50
- package/lib/cjs/Metadata/Class.js.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/Constant.d.ts +0 -0
- package/lib/cjs/Metadata/Constant.d.ts.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/Constant.js +0 -0
- package/lib/cjs/Metadata/Constant.js.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/CustomAttribute.d.ts +0 -0
- package/lib/cjs/Metadata/CustomAttribute.d.ts.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/CustomAttribute.js +0 -0
- package/lib/cjs/Metadata/CustomAttribute.js.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/CustomAttributeClass.d.ts +0 -0
- package/lib/cjs/Metadata/CustomAttributeClass.d.ts.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/CustomAttributeClass.js +0 -0
- package/lib/cjs/Metadata/CustomAttributeClass.js.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/EntityClass.d.ts +0 -0
- package/lib/cjs/Metadata/EntityClass.d.ts.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/EntityClass.js +0 -0
- package/lib/cjs/Metadata/EntityClass.js.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/Enumeration.d.ts +0 -0
- package/lib/cjs/Metadata/Enumeration.d.ts.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/Enumeration.js +0 -0
- package/lib/cjs/Metadata/Enumeration.js.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/Format.d.ts +0 -0
- package/lib/cjs/Metadata/Format.d.ts.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/Format.js +0 -0
- package/lib/cjs/Metadata/Format.js.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/InvertedUnit.d.ts +0 -0
- package/lib/cjs/Metadata/InvertedUnit.d.ts.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/InvertedUnit.js +0 -0
- package/lib/cjs/Metadata/InvertedUnit.js.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/KindOfQuantity.d.ts +0 -0
- package/lib/cjs/Metadata/KindOfQuantity.d.ts.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/KindOfQuantity.js +0 -0
- package/lib/cjs/Metadata/KindOfQuantity.js.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/Mixin.d.ts +0 -0
- package/lib/cjs/Metadata/Mixin.d.ts.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/Mixin.js +0 -0
- package/lib/cjs/Metadata/Mixin.js.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/OverrideFormat.d.ts +0 -0
- package/lib/cjs/Metadata/OverrideFormat.d.ts.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/OverrideFormat.js +0 -0
- package/lib/cjs/Metadata/OverrideFormat.js.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/Phenomenon.d.ts +0 -0
- package/lib/cjs/Metadata/Phenomenon.d.ts.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/Phenomenon.js +0 -0
- package/lib/cjs/Metadata/Phenomenon.js.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/Property.d.ts +0 -0
- package/lib/cjs/Metadata/Property.d.ts.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/Property.js +0 -0
- package/lib/cjs/Metadata/Property.js.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/PropertyCategory.d.ts +0 -0
- package/lib/cjs/Metadata/PropertyCategory.d.ts.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/PropertyCategory.js +0 -0
- package/lib/cjs/Metadata/PropertyCategory.js.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/RelationshipClass.d.ts +0 -0
- package/lib/cjs/Metadata/RelationshipClass.d.ts.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/RelationshipClass.js +0 -0
- package/lib/cjs/Metadata/RelationshipClass.js.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/Schema.d.ts +0 -0
- package/lib/cjs/Metadata/Schema.d.ts.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/Schema.js +0 -0
- package/lib/cjs/Metadata/Schema.js.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/SchemaItem.d.ts +0 -0
- package/lib/cjs/Metadata/SchemaItem.d.ts.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/SchemaItem.js +0 -0
- package/lib/cjs/Metadata/SchemaItem.js.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/Unit.d.ts +0 -0
- package/lib/cjs/Metadata/Unit.d.ts.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/Unit.js +0 -0
- package/lib/cjs/Metadata/Unit.js.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/UnitSystem.d.ts +0 -0
- package/lib/cjs/Metadata/UnitSystem.d.ts.map +1 -0
- package/lib/{Metadata → cjs/Metadata}/UnitSystem.js +0 -0
- package/lib/cjs/Metadata/UnitSystem.js.map +1 -0
- package/lib/{PropertyTypes.d.ts → cjs/PropertyTypes.d.ts} +0 -0
- package/lib/cjs/PropertyTypes.d.ts.map +1 -0
- package/lib/{PropertyTypes.js → cjs/PropertyTypes.js} +0 -0
- package/lib/cjs/PropertyTypes.js.map +1 -0
- package/lib/{SchemaKey.d.ts → cjs/SchemaKey.d.ts} +4 -0
- package/lib/cjs/SchemaKey.d.ts.map +1 -0
- package/lib/{SchemaKey.js → cjs/SchemaKey.js} +1 -1
- package/lib/cjs/SchemaKey.js.map +1 -0
- package/lib/{SchemaPartVisitorDelegate.d.ts → cjs/SchemaPartVisitorDelegate.d.ts} +0 -0
- package/lib/cjs/SchemaPartVisitorDelegate.d.ts.map +1 -0
- package/lib/{SchemaPartVisitorDelegate.js → cjs/SchemaPartVisitorDelegate.js} +0 -0
- package/lib/cjs/SchemaPartVisitorDelegate.js.map +1 -0
- package/lib/{UnitConversion → cjs/UnitConversion}/Graph.d.ts +0 -0
- package/lib/cjs/UnitConversion/Graph.d.ts.map +1 -0
- package/lib/{UnitConversion → cjs/UnitConversion}/Graph.js +0 -0
- package/lib/cjs/UnitConversion/Graph.js.map +1 -0
- package/lib/{UnitConversion → cjs/UnitConversion}/Parser.d.ts +0 -0
- package/lib/cjs/UnitConversion/Parser.d.ts.map +1 -0
- package/lib/{UnitConversion → cjs/UnitConversion}/Parser.js +0 -0
- package/lib/cjs/UnitConversion/Parser.js.map +1 -0
- package/lib/{UnitConversion → cjs/UnitConversion}/UnitConversion.d.ts +0 -0
- package/lib/cjs/UnitConversion/UnitConversion.d.ts.map +1 -0
- package/lib/{UnitConversion → cjs/UnitConversion}/UnitConversion.js +0 -0
- package/lib/cjs/UnitConversion/UnitConversion.js.map +1 -0
- package/lib/{UnitConversion → cjs/UnitConversion}/UnitConverter.d.ts +0 -0
- package/lib/cjs/UnitConversion/UnitConverter.d.ts.map +1 -0
- package/lib/{UnitConversion → cjs/UnitConversion}/UnitConverter.js +0 -0
- package/lib/cjs/UnitConversion/UnitConverter.js.map +1 -0
- package/lib/{UnitConversion → cjs/UnitConversion}/UnitTree.d.ts +0 -0
- package/lib/cjs/UnitConversion/UnitTree.d.ts.map +1 -0
- package/lib/{UnitConversion → cjs/UnitConversion}/UnitTree.js +0 -0
- package/lib/cjs/UnitConversion/UnitTree.js.map +1 -0
- package/lib/{Validation → cjs/Validation}/SchemaWalker.d.ts +0 -0
- package/lib/cjs/Validation/SchemaWalker.d.ts.map +1 -0
- package/lib/{Validation → cjs/Validation}/SchemaWalker.js +0 -0
- package/lib/cjs/Validation/SchemaWalker.js.map +1 -0
- package/lib/{ecschema-metadata.d.ts → cjs/ecschema-metadata.d.ts} +0 -0
- package/lib/cjs/ecschema-metadata.d.ts.map +1 -0
- package/lib/{ecschema-metadata.js → cjs/ecschema-metadata.js} +0 -0
- package/lib/cjs/ecschema-metadata.js.map +1 -0
- package/lib/{utils → cjs/utils}/FormatEnums.d.ts +0 -0
- package/lib/cjs/utils/FormatEnums.d.ts.map +1 -0
- package/lib/{utils → cjs/utils}/FormatEnums.js +0 -0
- package/lib/cjs/utils/FormatEnums.js.map +1 -0
- package/lib/{utils → cjs/utils}/SchemaGraph.d.ts +0 -0
- package/lib/cjs/utils/SchemaGraph.d.ts.map +1 -0
- package/lib/{utils → cjs/utils}/SchemaGraph.js +0 -0
- package/lib/cjs/utils/SchemaGraph.js.map +1 -0
- package/package.json +10 -9
- package/lib/Constants.d.ts.map +0 -1
- package/lib/Constants.js.map +0 -1
- package/lib/Context.d.ts.map +0 -1
- package/lib/Context.js.map +0 -1
- package/lib/DelayedPromise.d.ts.map +0 -1
- package/lib/DelayedPromise.js.map +0 -1
- package/lib/Deserialization/AbstractParser.d.ts.map +0 -1
- package/lib/Deserialization/AbstractParser.js.map +0 -1
- package/lib/Deserialization/Helper.d.ts.map +0 -1
- package/lib/Deserialization/Helper.js.map +0 -1
- package/lib/Deserialization/JsonParser.d.ts.map +0 -1
- package/lib/Deserialization/JsonParser.js.map +0 -1
- package/lib/Deserialization/JsonProps.d.ts.map +0 -1
- package/lib/Deserialization/JsonProps.js.map +0 -1
- package/lib/Deserialization/SchemaGraphUtil.d.ts.map +0 -1
- package/lib/Deserialization/SchemaGraphUtil.js.map +0 -1
- package/lib/Deserialization/XmlParser.d.ts.map +0 -1
- package/lib/Deserialization/XmlParser.js.map +0 -1
- package/lib/Deserialization/XmlSerializationUtils.d.ts.map +0 -1
- package/lib/Deserialization/XmlSerializationUtils.js.map +0 -1
- package/lib/ECName.d.ts.map +0 -1
- package/lib/ECName.js.map +0 -1
- package/lib/ECObjects.d.ts.map +0 -1
- package/lib/ECObjects.js.map +0 -1
- package/lib/Exception.d.ts.map +0 -1
- package/lib/Exception.js.map +0 -1
- package/lib/Interfaces.d.ts.map +0 -1
- package/lib/Interfaces.js.map +0 -1
- package/lib/Metadata/Class.d.ts.map +0 -1
- package/lib/Metadata/Class.js.map +0 -1
- package/lib/Metadata/Constant.d.ts.map +0 -1
- package/lib/Metadata/Constant.js.map +0 -1
- package/lib/Metadata/CustomAttribute.d.ts.map +0 -1
- package/lib/Metadata/CustomAttribute.js.map +0 -1
- package/lib/Metadata/CustomAttributeClass.d.ts.map +0 -1
- package/lib/Metadata/CustomAttributeClass.js.map +0 -1
- package/lib/Metadata/EntityClass.d.ts.map +0 -1
- package/lib/Metadata/EntityClass.js.map +0 -1
- package/lib/Metadata/Enumeration.d.ts.map +0 -1
- package/lib/Metadata/Enumeration.js.map +0 -1
- package/lib/Metadata/Format.d.ts.map +0 -1
- package/lib/Metadata/Format.js.map +0 -1
- package/lib/Metadata/InvertedUnit.d.ts.map +0 -1
- package/lib/Metadata/InvertedUnit.js.map +0 -1
- package/lib/Metadata/KindOfQuantity.d.ts.map +0 -1
- package/lib/Metadata/KindOfQuantity.js.map +0 -1
- package/lib/Metadata/Mixin.d.ts.map +0 -1
- package/lib/Metadata/Mixin.js.map +0 -1
- package/lib/Metadata/OverrideFormat.d.ts.map +0 -1
- package/lib/Metadata/OverrideFormat.js.map +0 -1
- package/lib/Metadata/Phenomenon.d.ts.map +0 -1
- package/lib/Metadata/Phenomenon.js.map +0 -1
- package/lib/Metadata/Property.d.ts.map +0 -1
- package/lib/Metadata/Property.js.map +0 -1
- package/lib/Metadata/PropertyCategory.d.ts.map +0 -1
- package/lib/Metadata/PropertyCategory.js.map +0 -1
- package/lib/Metadata/RelationshipClass.d.ts.map +0 -1
- package/lib/Metadata/RelationshipClass.js.map +0 -1
- package/lib/Metadata/Schema.d.ts.map +0 -1
- package/lib/Metadata/Schema.js.map +0 -1
- package/lib/Metadata/SchemaItem.d.ts.map +0 -1
- package/lib/Metadata/SchemaItem.js.map +0 -1
- package/lib/Metadata/Unit.d.ts.map +0 -1
- package/lib/Metadata/Unit.js.map +0 -1
- package/lib/Metadata/UnitSystem.d.ts.map +0 -1
- package/lib/Metadata/UnitSystem.js.map +0 -1
- package/lib/PropertyTypes.d.ts.map +0 -1
- package/lib/PropertyTypes.js.map +0 -1
- package/lib/SchemaKey.d.ts.map +0 -1
- package/lib/SchemaKey.js.map +0 -1
- package/lib/SchemaPartVisitorDelegate.d.ts.map +0 -1
- package/lib/SchemaPartVisitorDelegate.js.map +0 -1
- package/lib/UnitConversion/Graph.d.ts.map +0 -1
- package/lib/UnitConversion/Graph.js.map +0 -1
- package/lib/UnitConversion/Parser.d.ts.map +0 -1
- package/lib/UnitConversion/Parser.js.map +0 -1
- package/lib/UnitConversion/UnitConversion.d.ts.map +0 -1
- package/lib/UnitConversion/UnitConversion.js.map +0 -1
- package/lib/UnitConversion/UnitConverter.d.ts.map +0 -1
- package/lib/UnitConversion/UnitConverter.js.map +0 -1
- package/lib/UnitConversion/UnitTree.d.ts.map +0 -1
- package/lib/UnitConversion/UnitTree.js.map +0 -1
- package/lib/Validation/SchemaWalker.d.ts.map +0 -1
- package/lib/Validation/SchemaWalker.js.map +0 -1
- package/lib/ecschema-metadata.d.ts.map +0 -1
- package/lib/ecschema-metadata.js.map +0 -1
- package/lib/utils/FormatEnums.d.ts.map +0 -1
- package/lib/utils/FormatEnums.js.map +0 -1
- package/lib/utils/SchemaGraph.d.ts.map +0 -1
- package/lib/utils/SchemaGraph.js.map +0 -1
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../src/Constants.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,qBAAa,iBAAiB;IAE5B,gBAAuB,uBAAuB,EAAE,MAAM,CAAY;IAClE,gBAAuB,uBAAuB,EAAE,MAAM,CAAY;IAGlE,gBAAuB,oBAAoB,EAAE,MAAM,CAAY;IAC/D,gBAAuB,yBAAyB,EAAE,MAAM,CAAiB;IACzE,gBAAuB,kCAAkC,EAAE,MAAM,CAA0B;IAC3F,gBAAuB,yBAAyB,EAAE,MAAM,CAAiB;IACzE,gBAAuB,+BAA+B,EAAE,MAAM,CAAuB;IACrF,gBAAuB,sBAAsB,EAAE,MAAM,CAAc;IAEnE,gBAAuB,+BAA+B,EAAE,MAAM,CAAuB;IACrF,gBAAuB,4BAA4B,EAAE,MAAM,CAAoB;IAC/E,gBAAuB,oCAAoC,EAAE,MAAM,CAAmB;IACtF,gBAAuB,iCAAiC,EAAE,MAAM,CAAyB;IACzF,gBAAuB,gCAAgC,EAAE,MAAM,CAAwB;IACvF,gBAAuB,yBAAyB,EAAE,MAAM,CAAiB;IAEzE,gBAAuB,0CAA0C,EAAE,MAAM,CAAkC;IAC3G,gBAAuB,0CAA0C,EAAE,MAAM,CAAkC;IAC3G,gBAAuB,uCAAuC,EAAE,MAAM,CAA+B;IAErG,gBAAuB,iBAAiB,EAAE,MAAM,CAAS;CAC1D"}
|
|
File without changes
|
|
@@ -0,0 +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"]}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../src/Context.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,C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A6B,2BAAe,CAAC,MAAM;QACpH,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QACtE,OAAO,MAAW,CAAC;IACrB,CAAC;IAEM,KAAK,CAAC,aAAa,CAAuB,aAA4B;QAC3E,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,SAAS,EAAE,2BAAe,CAAC,MAAM,CAAC,CAAC;QACrF,IAAI,SAAS,KAAK,MAAM;YACtB,OAAO,SAAS,CAAC;QACnB,OAAO,MAAM,CAAC,OAAO,CAAI,aAAa,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;IAEM,iBAAiB,CAAuB,aAA4B;QACzE,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,SAAS,EAAE,2BAAe,CAAC,MAAM,CAAC,CAAC;QACnF,IAAI,SAAS,KAAK,MAAM;YACtB,OAAO,SAAS,CAAC;QACnB,OAAO,MAAM,CAAC,WAAW,CAAI,aAAa,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;CACF;AA5GD,sCA4GC","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\nimport { SchemaMatchType } from \"./ECObjects\";\r\nimport { ECObjectsError, ECObjectsStatus } from \"./Exception\";\r\nimport { MutableSchema, Schema } from \"./Metadata/Schema\";\r\nimport { SchemaItem } from \"./Metadata/SchemaItem\";\r\nimport { SchemaItemKey, SchemaKey } from \"./SchemaKey\";\r\n\r\n/**\r\n * @beta\r\n */\r\nexport class SchemaMap extends Array<Schema> { }\r\n\r\n/**\r\n * The interface defines what is needed to be a ISchemaLocater, which are used in a SchemaContext.\r\n * @beta\r\n */\r\nexport interface ISchemaLocater {\r\n\r\n /**\r\n * Attempts to get a schema from the locater. Yields undefined if no matching schema is found.\r\n * For schemas that may have references, construct and call through a SchemaContext instead.\r\n * @param schemaKey key to look up\r\n * @param matchType how to match key against candidate schemas\r\n * @param context optional context for loading schema references\r\n */\r\n getSchema<T extends Schema>(schemaKey: SchemaKey, matchType: SchemaMatchType, context?: SchemaContext): Promise<T | undefined>;\r\n\r\n /**\r\n * Attempts to get a schema from the locater. Yields undefined if no matching schema is found.\r\n * For schemas that may have references, construct and call through a SchemaContext instead.\r\n * @param schemaKey key to look up\r\n * @param matchType how to match key against candidate schemas\r\n * @param context optional context for loading schema references\r\n */\r\n getSchemaSync<T extends Schema>(schemaKey: SchemaKey, matchType: SchemaMatchType, context?: SchemaContext): T | undefined;\r\n}\r\n\r\n/**\r\n * @beta\r\n */\r\nexport interface ISchemaItemLocater {\r\n getSchemaItem<T extends SchemaItem>(schemaItemKey: SchemaItemKey): Promise<T | undefined>;\r\n}\r\n\r\n/**\r\n * @beta\r\n */\r\nexport class SchemaCache implements ISchemaLocater {\r\n private _schema: SchemaMap;\r\n\r\n constructor() {\r\n this._schema = new SchemaMap();\r\n }\r\n\r\n public get count() { return this._schema.length; }\r\n\r\n /**\r\n * Adds a schema to the cache. Does not allow for duplicate schemas, checks using SchemaMatchType.Latest.\r\n * @param schema The schema to add to the cache.\r\n */\r\n public async addSchema<T extends Schema>(schema: T) {\r\n if (await this.getSchema<T>(schema.schemaKey))\r\n throw new ECObjectsError(ECObjectsStatus.DuplicateSchema, `The schema, ${schema.schemaKey.toString()}, already exists within this cache.`);\r\n\r\n this._schema.push(schema);\r\n }\r\n\r\n /**\r\n * Adds a schema to the cache. Does not allow for duplicate schemas, checks using SchemaMatchType.Latest.\r\n * @param schema The schema to add to the cache.\r\n */\r\n public addSchemaSync<T extends Schema>(schema: T) {\r\n if (this.getSchemaSync<T>(schema.schemaKey))\r\n throw new ECObjectsError(ECObjectsStatus.DuplicateSchema, `The schema, ${schema.schemaKey.toString()}, already exists within this cache.`);\r\n\r\n this._schema.push(schema);\r\n }\r\n\r\n /**\r\n * Gets the schema which matches the provided SchemaKey.\r\n * @param schemaKey The SchemaKey describing the schema to get from the cache.\r\n * @param matchType The match type to use when locating the schema\r\n */\r\n public async getSchema<T extends Schema>(schemaKey: SchemaKey, matchType: SchemaMatchType = SchemaMatchType.Latest): Promise<T | undefined> {\r\n if (this.count === 0)\r\n return undefined;\r\n\r\n const findFunc = (schema: Schema) => {\r\n return schema.schemaKey.matches(schemaKey, matchType);\r\n };\r\n\r\n const foundSchema = this._schema.find(findFunc);\r\n\r\n if (!foundSchema)\r\n return undefined;\r\n\r\n return foundSchema as T;\r\n }\r\n\r\n /**\r\n *\r\n * @param schemaKey\r\n * @param matchType\r\n */\r\n public getSchemaSync<T extends Schema>(schemaKey: SchemaKey, matchType: SchemaMatchType = SchemaMatchType.Latest): T | undefined {\r\n if (this.count === 0)\r\n return undefined;\r\n\r\n const findFunc = (schema: Schema) => {\r\n return schema.schemaKey.matches(schemaKey, matchType);\r\n };\r\n\r\n const foundSchema = this._schema.find(findFunc);\r\n\r\n if (!foundSchema)\r\n return foundSchema;\r\n\r\n return foundSchema as T;\r\n }\r\n}\r\n\r\n/**\r\n * The SchemaContext, context object is used to facilitate schema and schema item location.\r\n *\r\n * 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.\r\n *\r\n * The context is made up of a group of Schema Locators.\r\n * @beta\r\n */\r\nexport class SchemaContext implements ISchemaLocater, ISchemaItemLocater {\r\n private _locaters: ISchemaLocater[];\r\n\r\n private _knownSchemas: SchemaCache;\r\n\r\n constructor() {\r\n this._locaters = [];\r\n\r\n this._knownSchemas = new SchemaCache();\r\n this._locaters.push(this._knownSchemas);\r\n }\r\n\r\n public addLocater(locater: ISchemaLocater) {\r\n this._locaters.push(locater);\r\n }\r\n\r\n /**\r\n * Adds the schema to this context\r\n * @param schema The schema to add to this context\r\n */\r\n public async addSchema(schema: Schema) {\r\n this.addSchemaSync(schema);\r\n }\r\n\r\n /**\r\n * Adds the schema to this context\r\n * @param schema The schema to add to this context\r\n */\r\n public addSchemaSync(schema: Schema) {\r\n this._knownSchemas.addSchemaSync(schema);\r\n }\r\n\r\n /**\r\n * Adds the given SchemaItem to the the SchemaContext by locating the schema, with the best match of SchemaMatchType.Exact, and\r\n * @param schemaItem The SchemaItem to add\r\n */\r\n public async addSchemaItem(schemaItem: SchemaItem) {\r\n const schema = await this.getSchema(schemaItem.key.schemaKey, SchemaMatchType.Exact);\r\n if (!schema)\r\n throw new ECObjectsError(ECObjectsStatus.UnableToLocateSchema, `Unable to add the schema item ${schemaItem.name} to the schema ${schemaItem.key.schemaKey.toString()} because the schema could not be located.`);\r\n\r\n (schema as MutableSchema).addItem(schemaItem);\r\n }\r\n\r\n /**\r\n *\r\n * @param schemaKey\r\n */\r\n public async getSchema<T extends Schema>(schemaKey: SchemaKey, matchType: SchemaMatchType = SchemaMatchType.Latest): Promise<T | undefined> {\r\n // the first locater is _knownSchemas, so we don't have to check the cache explicitly here\r\n for (const locater of this._locaters) {\r\n const schema = await locater.getSchema<T>(schemaKey, matchType, this);\r\n if (undefined !== schema)\r\n return schema;\r\n }\r\n\r\n return undefined;\r\n }\r\n\r\n /**\r\n *\r\n * @param schemaKey\r\n */\r\n public getSchemaSync<T extends Schema>(schemaKey: SchemaKey, matchType: SchemaMatchType = SchemaMatchType.Latest): T | undefined {\r\n // the first locater is _knownSchemas, so we don't have to check the cache explicitly here\r\n for (const locater of this._locaters) {\r\n const schema = locater.getSchemaSync<T>(schemaKey, matchType, this);\r\n if (undefined !== schema)\r\n return schema;\r\n }\r\n\r\n return undefined;\r\n }\r\n\r\n /**\r\n * Attempts to get a Schema from the context's cache.\r\n * @param schemaKey The SchemaKey to identify the Schema.\r\n * @param matchType The SchemaMatch type to use. Default is SchemaMatchType.Latest.\r\n * @internal\r\n */\r\n public async getCachedSchema<T extends Schema>(schemaKey: SchemaKey, matchType: SchemaMatchType = SchemaMatchType.Latest): Promise<T | undefined> {\r\n return this.getCachedSchemaSync(schemaKey, matchType) as T;\r\n }\r\n\r\n /**\r\n * Attempts to get a Schema from the context's cache.\r\n * @param schemaKey The SchemaKey to identify the Schema.\r\n * @param matchType The SchemaMatch type to use. Default is SchemaMatchType.Latest.\r\n * @internal\r\n */\r\n public getCachedSchemaSync<T extends Schema>(schemaKey: SchemaKey, matchType: SchemaMatchType = SchemaMatchType.Latest): Schema | undefined {\r\n const schema = this._knownSchemas.getSchemaSync(schemaKey, matchType);\r\n return schema as T;\r\n }\r\n\r\n public async getSchemaItem<T extends SchemaItem>(schemaItemKey: SchemaItemKey): Promise<T | undefined> {\r\n const schema = await this.getSchema(schemaItemKey.schemaKey, SchemaMatchType.Latest);\r\n if (undefined === schema)\r\n return undefined;\r\n return schema.getItem<T>(schemaItemKey.name);\r\n }\r\n\r\n public getSchemaItemSync<T extends SchemaItem>(schemaItemKey: SchemaItemKey): T | undefined {\r\n const schema = this.getSchemaSync(schemaItemKey.schemaKey, SchemaMatchType.Latest);\r\n if (undefined === schema)\r\n return undefined;\r\n return schema.getItemSync<T>(schemaItemKey.name);\r\n }\r\n}\r\n"]}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DelayedPromise.d.ts","sourceRoot":"","sources":["../../src/DelayedPromise.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,cAAc,CAAC,CAAC,CAAE,YAAW,OAAO,CAAC,CAAC,CAAC;IAElD;;;OAGG;gBACS,aAAa,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC;IAS3C,SAAgB,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,SAAS,CAAa;IAE5D;;OAEG;IACI,KAAK,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC;IAE/B;;;;;OAKG;IACU,IAAI,CAAC,QAAQ,GAAG,CAAC,EAAE,QAAQ,GAAG,KAAK,EAAE,WAAW,CAAC,EAAE,CAAC,CAAC,KAAK,E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OAAO,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAkB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAoB,CAAC,CAAC;YAClF,CAAC;SACF,CAAC;QAEF,OAAO,IAAI,KAAK,CAAC,KAAK,EAAE,OAAO,CAAgD,CAAC;IAClF,CAAC;CACF,CAAuC,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/** @packageDocumentation\n * @module Utils\n */\n\n/**\n * Similar to a normal Promise, a DelayedPromise represents the eventual completion (or failure)\n * and resulting value of an asynchronous operation ***that has not yet started***.\n *\n * The asynchronous operation behind a DelayedPromise will start when any of the following occurs:\n * - The DelayedPromise is `await`ed.\n * - A callback is attached via `.then()` or `.catch(() => { })`.\n * - The asynchronous operation is explicitly started via `.start()`\n *\n * Just as normal Promises will never return to their pending state once fulfilled or rejected,\n * a DelayedPromise will never re-execute its asynchronous operation more than **once**.\n *\n * Ultimately, a DelayedPromise is nothing more than some syntactic sugar that allows you to\n * represent an (asynchronously) lazily-loaded value as an instance property instead of a method.\n * You could also accomplish something similar by defining an async function as a property getter.\n * However, since a property defined as a DelayedPromise will not start simply by being accessed,\n * additional (non-lazily-loaded) \"nested\" properties can be added.\n *\n * [!alert text=\"*Remember:* Unlike regular Promises in JavaScript, DelayedPromises represent processes that **may not** already be happening.\" kind=\"warning\"]\n * @beta\n */\nexport class DelayedPromise<T> implements Promise<T> {\n\n /**\n * Constructs a DelayedPromise object.\n * @param startCallback The asynchronous callback to execute when this DelayedPromise should be \"started\".\n */\n constructor(startCallback: () => Promise<T>) {\n let pending: Promise<T> | undefined;\n this.start = async () => {\n pending = pending || startCallback();\n return pending;\n };\n }\n\n // We need this in order to fulfill the Promise interface defined in lib.es2015.symbol.wellknown.d.ts\n public readonly [Symbol.toStringTag]: \"Promise\" = \"Promise\";\n\n /**\n * Explicitly starts the asynchronous operation behind this DelayedPromise (if it hasn't started already).\n */\n public start: () => Promise<T>;\n\n /**\n * Attaches callbacks for the resolution and/or rejection of the Promise.\n * @param onfulfilled The callback to execute when the Promise is resolved.\n * @param onrejected The callback to execute when the Promise is rejected.\n * @return A Promise for the completion of which ever callback is executed.\n */\n public async then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2> {\n return this.start().then(onfulfilled, onrejected);\n }\n\n /**\n * Attaches a callback for only the rejection of the Promise.\n * @param onrejected The callback to execute when the Promise is rejected.\n * @return A Promise for the completion of the callback.\n */\n public async catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult> {\n return this.start().catch(onrejected);\n }\n\n /**\n * Attaches a callback for only the finally clause of the Promise.\n * @param onrejected The callback to execute when the Promise is finalized.\n * @return A Promise for the completion of the callback.\n */\n public async finally(onFinally?: (() => void) | undefined | null): Promise<T> {\n return this.start().finally(onFinally);\n }\n}\n\n// This keeps us from accidentally overriding one of DelayedPromise's methods in the DelayedPromiseWithProps constructor\n/**\n * @beta\n */\nexport interface NoDelayedPromiseMethods {\n [propName: string]: any;\n start?: never;\n then?: never;\n catch?: never;\n}\n\n// See definition of DelayedPromiseWithProps below\n/**\n * @beta\n */\nexport interface DelayedPromiseWithPropsConstructor {\n\n /**\n * Constructs a DelayedPromiseWithProps object, which is at once both:\n * - A DelayedPromise object representing the eventual completion (or failure)\n * of an asynchronous operation returning a value of type `TPayload`\n * - _and_ a readonly \"wrapper\" around an instance of type `TProps`\n *\n * @param props An object with properties and methods that will be accessible\n * as if they were readonly properties of the DelayedPromiseWithProps object being constructed.\n * @param startCallback The asynchronous callback to execute when as soon as this DelayedPromise should be \"started\".\n */\n new <TProps extends NoDelayedPromiseMethods, TPayload>(props: TProps, startCallback: () => Promise<TPayload>): Readonly<TProps> & DelayedPromise<TPayload>; // eslint-disable-line @typescript-eslint/prefer-function-type\n}\n\n// Because the property getters that wrap `props` are dynamically added, TypeScript isn't aware of them.\n// So by defining this as a class _expression_, we can cast the constructed type to Readonly<TProps> & DelayedPromise<TPayload>\n/**\n * @beta\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DelayedPromiseWithProps = (class <TProps extends NoDelayedPromiseMethods, TPayload> extends DelayedPromise<TPayload> {\n constructor(props: TProps, cb: () => Promise<TPayload>) {\n super(cb);\n\n const handler = {\n get: (target: TProps, name: string) => {\n return (name in this) ? this[name as keyof this] : target[name as keyof TProps];\n },\n };\n\n return new Proxy(props, handler) as Readonly<TProps> & DelayedPromise<TPayload>;\n }\n}) as DelayedPromiseWithPropsConstructor;\n\n/* eslint-disable @typescript-eslint/no-redeclare */\n\n/** Define the type of a DelayedPromiseWithProps instance\n * @beta\n */\nexport type DelayedPromiseWithProps<TProps, TPayload> = Readonly<TProps> & DelayedPromise<TPayload>;\n"]}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractParser.d.ts","sourceRoot":"","sources":["../../../src/Deserialization/AbstractParser.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,aAAa,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,UAAU,EAC7I,uBAAuB,EAAE,eAAe,EAAE,2BAA2B,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,sBAAsB,EAC5I,WAAW,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,SAAS,EAAE,eAAe,EAC/H,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE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,eAAe,CAAC;aACzF,iDAAiD,CAAC,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAe,QAAQ,CAAC,eAAe,CAAC,CAAc;CAC3K;AAED,gBAAgB;AAEhB,MAAM,WAAW,yBAAyB,CAAC,OAAO,EAAE,KAAK,GAAG,GAAG,EAAE,SAAS,GAAG,KAAK;IAAI,KAAI,GAAG,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,cAAc,CAAC,KAAK,EAAE,SAAS,CAAC,CAAA;CAAE"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractParser.js","sourceRoot":"","sources":["../../../src/Deserialization/AbstractParser.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAmB/F,gBAAgB;AAChB,MAAsB,cAAc;CAiCnC;AAjCD,wCAiCC","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\nimport {\r\n ConstantProps, CustomAttributeClassProps, EntityClassProps, EnumerationProps, FormatProps, InvertedUnitProps, KindOfQuantityProps, MixinProps,\r\n NavigationPropertyProps, PhenomenonProps, PrimitiveArrayPropertyProps, PrimitivePropertyProps, PropertyCategoryProps, RelationshipClassProps,\r\n SchemaProps, SchemaReferenceProps, StructArrayPropertyProps, StructClassProps, StructPropertyProps, UnitProps, UnitSystemProps,\r\n} from \"../Deserialization/JsonProps\";\r\nimport { CustomAttribute } from \"../Metadata/CustomAttribute\";\r\nimport { CustomAttributeClass } from \"../Metadata/CustomAttributeClass\";\r\n\r\ntype SchemaItemTuple<T> = Readonly<[string /** Name */, string /** SchemaItemType */, Readonly<T>]>;\r\ntype PropertyTuple<T> = Readonly<[string /** Name */, string /** Property */, Readonly<T>]>;\r\n\r\n/** @internal */\r\nexport type CustomAttributeProvider = (caClass: CustomAttributeClass) => CustomAttribute;\r\n\r\n/** @internal */\r\nexport type CAProviderTuple = Readonly<[string /** Full Name */, CustomAttributeProvider]>;\r\n\r\n/** @internal */\r\nexport abstract class AbstractParser<TItem = any, TProperty = TItem> {\r\n public abstract parseSchema(): SchemaProps;\r\n public abstract getReferences(): Iterable<SchemaReferenceProps>;\r\n\r\n public abstract getItems(): Iterable<SchemaItemTuple<TItem>>;\r\n public abstract findItem(itemName: string): SchemaItemTuple<TItem> | undefined;\r\n\r\n public abstract parseEntityClass(data: Readonly<TItem>): EntityClassProps;\r\n public abstract parseMixin(data: Readonly<TItem>): MixinProps;\r\n public abstract parseStructClass(data: Readonly<TItem>): StructClassProps;\r\n public abstract parseCustomAttributeClass(data: Readonly<TItem>): CustomAttributeClassProps;\r\n public abstract parseRelationshipClass(data: Readonly<TItem>): RelationshipClassProps;\r\n public abstract parseEnumeration(data: Readonly<TItem>): EnumerationProps;\r\n public abstract parseKindOfQuantity(data: Readonly<TItem>): KindOfQuantityProps;\r\n public abstract parsePropertyCategory(data: Readonly<TItem>): PropertyCategoryProps;\r\n public abstract parseUnit(data: Readonly<TItem>): UnitProps;\r\n public abstract parseInvertedUnit(data: Readonly<TItem>): InvertedUnitProps;\r\n public abstract parseConstant(data: Readonly<TItem>): ConstantProps;\r\n public abstract parsePhenomenon(data: Readonly<TItem>): PhenomenonProps;\r\n public abstract parseFormat(data: Readonly<TItem>): FormatProps;\r\n public abstract parseUnitSystem(data: Readonly<TItem>): UnitSystemProps;\r\n\r\n public abstract getProperties(data: Readonly<TItem>): Iterable<PropertyTuple<TProperty>>;\r\n public abstract parsePrimitiveProperty(data: Readonly<TProperty>): PrimitivePropertyProps;\r\n public abstract parseStructProperty(data: Readonly<TProperty>): StructPropertyProps;\r\n public abstract parsePrimitiveArrayProperty(data: Readonly<TProperty>): PrimitiveArrayPropertyProps;\r\n public abstract parseStructArrayProperty(data: Readonly<TProperty>): StructArrayPropertyProps;\r\n public abstract parseNavigationProperty(data: Readonly<TProperty>): NavigationPropertyProps;\r\n\r\n public abstract getSchemaCustomAttributeProviders(): Iterable<CAProviderTuple>;\r\n public abstract getClassCustomAttributeProviders(data: Readonly<TItem>): Iterable<CAProviderTuple>;\r\n public abstract getPropertyCustomAttributeProviders(data: Readonly<TProperty>): Iterable<CAProviderTuple>;\r\n public abstract getRelationshipConstraintCustomAttributeProviders(data: Readonly<TItem>): [Iterable<CAProviderTuple> /* source */, Iterable<CAProviderTuple> /* target */];\r\n}\r\n\r\n/** @internal */\r\n// eslint-disable-next-line @typescript-eslint/prefer-function-type\r\nexport interface AbstractParserConstructor<TSchema, TItem = any, TProperty = TItem> { new(obj: Readonly<TSchema>): AbstractParser<TItem, TProperty> }\r\n"]}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Helper.d.ts","sourceRoot":"","sources":["../../../src/Deserialization/Helper.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAc3C,OAAO,EAAiB,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAI3D,OAAO,EAAE,kBAAkB,EAA6B,MAAM,8BAA8B,CAAC;AAE7F,OAAO,EAAkB,yBAAyB,EAAmB,MAAM,kBAAkB,CAAC;AAO9F;;;;GAIG;AACH,qBAAa,gBAAgB,CAAC,CAAC,GAAG,OAAO;IACvC,OAAO,CAAC,QAAQ,CAAgB;IAChC,OAAO,CAAC,cAAc,CAAC,CAA4B;IACnD,OAAO,CAAC,WAAW,CAAwC;IAC3D,OAAO,CAAC,OAAO,CAA2B;IAI1C,OAAO,CAAC,OAAO,CAAC,CAAS;gBAEb,UAAU,EAAE,yBAAyB,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,kBAAkB;IAM3G;;;;OAIG;IACU,UAAU,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,EAA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CAAC,kBAAkB,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;SAC/C;QAED,WAAW,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QAChC,IAAI,CAAC,wBAAwB,CAAC,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,mCAAmC,CAAC,WAAW,CAAC,CAAC,CAAC;IAC5G,CAAC;IAED;;;;;OAKG;IACK,KAAK,CAAC,oBAAoB,CAAC,SAAyB,EAAE,WAAsC;QAClG,KAAK,MAAM,aAAa,IAAI,WAAW,EAAE;YACvC,0CAA0C;YAC1C,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,CAAC,CAAyB,CAAC;YAEpF,kEAAkE;YAClE,MAAM,QAAQ,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;YAClC,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;YACzC,SAAmC,CAAC,kBAAkB,CAAC,eAAe,CAAC,CAAC;SAC1E;IACH,CAAC;IAED;;;;OAIG;IACK,wBAAwB,CAAC,SAAyB,EAAE,WAAsC;QAChG,KAAK,MAAM,aAAa,IAAI,WAAW,EAAE;YACvC,0CAA0C;YAC1C,MAAM,OAAO,GAAG,IAAI,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAyB,CAAC;YAElF,kEAAkE;YAClE,MAAM,QAAQ,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;YAClC,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;YACzC,SAAmC,CAAC,kBAAkB,CAAC,eAAe,CAAC,CAAC;SAC1E;IACH,CAAC;CACF;AAv8BD,4CAu8BC","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\nimport { SchemaContext } from \"../Context\";\r\nimport { parsePrimitiveType, parseSchemaItemType, SchemaItemType, SchemaMatchType } from \"../ECObjects\";\r\nimport { ECObjectsError, ECObjectsStatus } from \"../Exception\";\r\nimport { AnyClass, AnySchemaItem } from \"../Interfaces\";\r\nimport { ECClass, MutableClass } from \"../Metadata/Class\";\r\nimport { Constant } from \"../Metadata/Constant\";\r\nimport { CustomAttributeClass } from \"../Metadata/CustomAttributeClass\";\r\nimport { EntityClass, MutableEntityClass } from \"../Metadata/EntityClass\";\r\nimport { Format } from \"../Metadata/Format\";\r\nimport { InvertedUnit } from \"../Metadata/InvertedUnit\";\r\nimport { KindOfQuantity } from \"../Metadata/KindOfQuantity\";\r\nimport { Mixin } from \"../Metadata/Mixin\";\r\nimport { MutableProperty, Property } from \"../Metadata/Property\";\r\nimport { MutableRelationshipConstraint, RelationshipClass, RelationshipConstraint } from \"../Metadata/RelationshipClass\";\r\nimport { MutableSchema, Schema } from \"../Metadata/Schema\";\r\nimport { SchemaItem } from \"../Metadata/SchemaItem\";\r\nimport { Unit } from \"../Metadata/Unit\";\r\nimport { ECVersion, SchemaItemKey, SchemaKey } from \"../SchemaKey\";\r\nimport { ISchemaPartVisitor, SchemaPartVisitorDelegate } from \"../SchemaPartVisitorDelegate\";\r\nimport { getItemNamesFromFormatString } from \"../utils/FormatEnums\";\r\nimport { AbstractParser, AbstractParserConstructor, CAProviderTuple } from \"./AbstractParser\";\r\nimport { ClassProps, PropertyProps, RelationshipConstraintProps, SchemaReferenceProps } from \"./JsonProps\";\r\nimport { SchemaGraph } from \"../utils/SchemaGraph\";\r\n\r\ntype AnyCAContainer = Schema | ECClass | Property | RelationshipConstraint;\r\ntype AnyMutableCAContainer = MutableSchema | MutableClass | MutableProperty | MutableRelationshipConstraint;\r\n\r\n/**\r\n * This class properly handles the order the deserialization of ECSchemas and SchemaItems from serialized formats.\r\n * For example, when deserializing an ECClass most times all base class should be de-serialized before the given class.\r\n * @internal\r\n */\r\nexport class SchemaReadHelper<T = unknown> {\r\n private _context: SchemaContext;\r\n private _visitorHelper?: SchemaPartVisitorDelegate;\r\n private _parserType: AbstractParserConstructor<T, unknown>;\r\n private _parser!: AbstractParser<unknown>;\r\n\r\n // Cache of the schema currently being loaded. This schema is in the _context but to\r\n // avoid going back to the context every time, the cache is used.\r\n private _schema?: Schema;\r\n\r\n constructor(parserType: AbstractParserConstructor<T>, context?: SchemaContext, visitor?: ISchemaPartVisitor) {\r\n this._context = (undefined !== context) ? context : new SchemaContext();\r\n this._visitorHelper = visitor ? new SchemaPartVisitorDelegate(visitor) : undefined;\r\n this._parserType = parserType;\r\n }\r\n\r\n /**\r\n * Populates the given Schema from a serialized representation.\r\n * @param schema The Schema to populate\r\n * @param rawSchema The serialized data to use to populate the Schema.\r\n */\r\n public async readSchema<U extends Schema>(schema: U, rawSchema: T): Promise<U> {\r\n // Ensure context matches schema context\r\n if (schema.context) {\r\n if (this._context !== schema.context)\r\n throw new ECObjectsError(ECObjectsStatus.DifferentSchemaContexts, \"The SchemaContext of the schema must be the same SchemaContext held by the SchemaReadHelper.\");\r\n } else {\r\n (schema as Schema as MutableSchema).setContext(this._context);\r\n }\r\n\r\n this._parser = new this._parserType(rawSchema);\r\n\r\n // Loads all of the properties on the Schema object\r\n await schema.fromJSON(this._parser.parseSchema());\r\n\r\n this._schema = schema;\r\n\r\n // Need to add this schema to the context to be able to locate schemaItems within the context.\r\n await this._context.addSchema(schema);\r\n\r\n // Load schema references first\r\n // Need to figure out if other schemas are present.\r\n for (const reference of this._parser.getReferences()) {\r\n await this.loadSchemaReference(reference);\r\n }\r\n\r\n if (this._visitorHelper)\r\n await this._visitorHelper.visitSchema(schema, false);\r\n\r\n // Load all schema items\r\n for (const [itemName, itemType, rawItem] of this._parser.getItems()) {\r\n // Make sure the item has not already been read. No need to check the SchemaContext because all SchemaItems are added to a Schema,\r\n // which would be found when adding to the context.\r\n if (await schema.getItem(itemName) !== undefined)\r\n continue;\r\n\r\n const loadedItem = await this.loadSchemaItem(schema, itemName, itemType, rawItem);\r\n if (loadedItem && this._visitorHelper) {\r\n await this._visitorHelper.visitSchemaPart(loadedItem);\r\n }\r\n }\r\n\r\n await this.loadCustomAttributes(schema, this._parser.getSchemaCustomAttributeProviders());\r\n\r\n if (this._visitorHelper)\r\n await this._visitorHelper.visitSchema(schema);\r\n\r\n return schema;\r\n }\r\n\r\n /**\r\n * Populates the given Schema from a serialized representation.\r\n * @param schema The Schema to populate\r\n * @param rawSchema The serialized data to use to populate the Schema.\r\n */\r\n public readSchemaSync<U extends Schema>(schema: U, rawSchema: T): U {\r\n this._parser = new this._parserType(rawSchema);\r\n\r\n // Loads all of the properties on the Schema object\r\n schema.fromJSONSync(this._parser.parseSchema());\r\n\r\n this._schema = schema;\r\n\r\n // Need to add this schema to the context to be able to locate schemaItems within the context.\r\n this._context.addSchemaSync(schema);\r\n\r\n // Load schema references first\r\n // Need to figure out if other schemas are present.\r\n for (const reference of this._parser.getReferences()) {\r\n this.loadSchemaReferenceSync(reference);\r\n }\r\n\r\n if (this._visitorHelper)\r\n this._visitorHelper.visitSchemaSync(schema, false);\r\n\r\n // Load all schema items\r\n for (const [itemName, itemType, rawItem] of this._parser.getItems()) {\r\n // Make sure the item has not already been read. No need to check the SchemaContext because all SchemaItems are added to a Schema,\r\n // which would be found when adding to the context.\r\n if (schema.getItemSync(itemName) !== undefined)\r\n continue;\r\n\r\n const loadedItem = this.loadSchemaItemSync(schema, itemName, itemType, rawItem);\r\n if (loadedItem && this._visitorHelper) {\r\n this._visitorHelper.visitSchemaPartSync(loadedItem);\r\n }\r\n }\r\n\r\n this.loadCustomAttributesSync(schema, this._parser.getSchemaCustomAttributeProviders());\r\n\r\n if (this._visitorHelper)\r\n this._visitorHelper.visitSchemaSync(schema);\r\n\r\n return schema;\r\n }\r\n\r\n /**\r\n * Ensures that the schema references can be located and adds them to the schema.\r\n * @param ref The object to read the SchemaReference's props from.\r\n */\r\n private async loadSchemaReference(ref: SchemaReferenceProps): Promise<void> {\r\n const schemaKey = new SchemaKey(ref.name, ECVersion.fromString(ref.version));\r\n const refSchema = await this._context.getSchema(schemaKey, SchemaMatchType.LatestWriteCompatible);\r\n if (undefined === refSchema)\r\n throw new ECObjectsError(ECObjectsStatus.UnableToLocateSchema, `Could not locate the referenced schema, ${ref.name}.${ref.version}, of ${this._schema!.schemaKey.name}`);\r\n\r\n await (this._schema as MutableSchema).addReference(refSchema);\r\n const results = this.validateSchemaReferences(this._schema!);\r\n\r\n let errorMessage: string = \"\";\r\n for (const result of results) {\r\n errorMessage += `${result}\\r\\n`;\r\n }\r\n\r\n if (errorMessage) {\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `${errorMessage}`);\r\n }\r\n }\r\n\r\n /**\r\n * Ensures that the schema references can be located and adds them to the schema.\r\n * @param ref The object to read the SchemaReference's props from.\r\n */\r\n private loadSchemaReferenceSync(ref: SchemaReferenceProps): void {\r\n const schemaKey = new SchemaKey(ref.name, ECVersion.fromString(ref.version));\r\n const refSchema = this._context.getSchemaSync(schemaKey, SchemaMatchType.LatestWriteCompatible);\r\n if (!refSchema)\r\n throw new ECObjectsError(ECObjectsStatus.UnableToLocateSchema, `Could not locate the referenced schema, ${ref.name}.${ref.version}, of ${this._schema!.schemaKey.name}`);\r\n\r\n (this._schema as MutableSchema).addReferenceSync(refSchema);\r\n const results = this.validateSchemaReferences(this._schema!);\r\n\r\n let errorMessage: string = \"\";\r\n for (const result of results) {\r\n errorMessage += `${result}\\r\\n`;\r\n }\r\n\r\n if (errorMessage) {\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `${errorMessage}`);\r\n }\r\n }\r\n\r\n /**\r\n * Validates schema references against multiple EC rules.\r\n * @param schema The schema to validate.\r\n */\r\n private *validateSchemaReferences(schema: Schema): Iterable<string> {\r\n const aliases = new Map();\r\n for (const schemaRef of schema.references) {\r\n if (schemaRef.customAttributes && schemaRef.customAttributes.has(\"CoreCustomAttributes.SupplementalSchema\"))\r\n yield `Referenced schema '${schemaRef.name}' of schema '${schema.name}' is a supplemental schema. Supplemental schemas are not allowed to be referenced.`;\r\n\r\n if (schema.schemaKey.matches(schemaRef.schemaKey))\r\n yield `Schema '${schema.name}' has reference cycles: '${schema.name} --> ${schemaRef.name}'`;\r\n\r\n if (aliases.has(schemaRef.alias)) {\r\n const currentRef = aliases.get(schemaRef.alias);\r\n yield `Schema '${schema.name}' has multiple schema references (${currentRef.name}, $schemaRef.name}) with the same alias '${schemaRef.alias}', which is not allowed.`;\r\n } else {\r\n aliases.set(schemaRef.alias, schemaRef);\r\n }\r\n }\r\n\r\n const graph = new SchemaGraph(schema);\r\n const cycles = graph.detectCycles();\r\n if (cycles) {\r\n const result = cycles.map((cycle) => `${cycle.schema.name} --> ${cycle.refSchema.name}`).join(\", \");\r\n yield `Schema '${schema.name}' has reference cycles: ${result}`;\r\n }\r\n }\r\n\r\n /**\r\n * Given the schema item object, the anticipated type and the name a schema item is created and loaded into the schema provided.\r\n * @param schema The Schema the SchemaItem to.\r\n * @param name The name of the schema item to be loaded.\r\n * @param itemType The SchemaItemType of the item to load.\r\n * @param schemaItemObject The Object to populate the SchemaItem with.\r\n */\r\n private async loadSchemaItem(schema: Schema, name: string, itemType: string, schemaItemObject: Readonly<unknown>): Promise<SchemaItem | undefined> {\r\n let schemaItem: AnySchemaItem | undefined;\r\n\r\n switch (parseSchemaItemType(itemType)) {\r\n case SchemaItemType.EntityClass:\r\n schemaItem = await (schema as MutableSchema).createEntityClass(name);\r\n await this.loadEntityClass(schemaItem, schemaItemObject);\r\n break;\r\n case SchemaItemType.StructClass:\r\n schemaItem = await (schema as MutableSchema).createStructClass(name);\r\n const structProps = this._parser.parseStructClass(schemaItemObject);\r\n await this.loadClass(schemaItem, structProps, schemaItemObject);\r\n break;\r\n case SchemaItemType.Mixin:\r\n schemaItem = await (schema as MutableSchema).createMixinClass(name);\r\n await this.loadMixin(schemaItem, schemaItemObject);\r\n break;\r\n case SchemaItemType.CustomAttributeClass:\r\n schemaItem = await (schema as MutableSchema).createCustomAttributeClass(name);\r\n const caClassProps = this._parser.parseCustomAttributeClass(schemaItemObject);\r\n await this.loadClass(schemaItem, caClassProps, schemaItemObject);\r\n break;\r\n case SchemaItemType.RelationshipClass:\r\n schemaItem = await (schema as MutableSchema).createRelationshipClass(name);\r\n await this.loadRelationshipClass(schemaItem, schemaItemObject);\r\n break;\r\n case SchemaItemType.KindOfQuantity:\r\n schemaItem = await (schema as MutableSchema).createKindOfQuantity(name);\r\n await this.loadKindOfQuantity(schemaItem, schemaItemObject);\r\n break;\r\n case SchemaItemType.Unit:\r\n schemaItem = await (schema as MutableSchema).createUnit(name);\r\n await this.loadUnit(schemaItem, schemaItemObject);\r\n break;\r\n case SchemaItemType.Constant:\r\n schemaItem = await (schema as MutableSchema).createConstant(name);\r\n await this.loadConstant(schemaItem, schemaItemObject);\r\n break;\r\n case SchemaItemType.InvertedUnit:\r\n schemaItem = await (schema as MutableSchema).createInvertedUnit(name);\r\n await this.loadInvertedUnit(schemaItem, schemaItemObject);\r\n break;\r\n case SchemaItemType.Format:\r\n schemaItem = await (schema as MutableSchema).createFormat(name);\r\n await this.loadFormat(schemaItem, schemaItemObject);\r\n break;\r\n case SchemaItemType.Phenomenon:\r\n schemaItem = await (schema as MutableSchema).createPhenomenon(name);\r\n const phenomenonProps = this._parser.parsePhenomenon(schemaItemObject);\r\n await schemaItem.fromJSON(phenomenonProps);\r\n break;\r\n case SchemaItemType.UnitSystem:\r\n schemaItem = await (schema as MutableSchema).createUnitSystem(name);\r\n await schemaItem.fromJSON(this._parser.parseUnitSystem(schemaItemObject));\r\n break;\r\n case SchemaItemType.PropertyCategory:\r\n schemaItem = await (schema as MutableSchema).createPropertyCategory(name);\r\n const propertyCategoryProps = this._parser.parsePropertyCategory(schemaItemObject);\r\n await schemaItem.fromJSON(propertyCategoryProps);\r\n break;\r\n case SchemaItemType.Enumeration:\r\n schemaItem = await (schema as MutableSchema).createEnumeration(name);\r\n const enumerationProps = this._parser.parseEnumeration(schemaItemObject);\r\n await schemaItem.fromJSON(enumerationProps);\r\n break;\r\n // NOTE: we are being permissive here and allowing unknown types to silently fail. Not sure if we want to hard fail or just do a basic deserialization\r\n }\r\n\r\n return schemaItem;\r\n }\r\n\r\n /**\r\n * Given the schema item object, the anticipated type and the name a schema item is created and loaded into the schema provided.\r\n * @param schema The Schema the SchemaItem to.\r\n * @param name The name of the schema item to be loaded.\r\n * @param itemType The SchemaItemType of the item to load.\r\n * @param schemaItemObject The Object to populate the SchemaItem with.\r\n */\r\n private loadSchemaItemSync(schema: Schema, name: string, itemType: string, schemaItemObject: Readonly<unknown>): SchemaItem | undefined {\r\n let schemaItem: AnySchemaItem | undefined;\r\n\r\n switch (parseSchemaItemType(itemType)) {\r\n case SchemaItemType.EntityClass:\r\n schemaItem = (schema as MutableSchema).createEntityClassSync(name);\r\n this.loadEntityClassSync(schemaItem, schemaItemObject);\r\n break;\r\n case SchemaItemType.StructClass:\r\n schemaItem = (schema as MutableSchema).createStructClassSync(name);\r\n const structProps = this._parser.parseStructClass(schemaItemObject);\r\n this.loadClassSync(schemaItem, structProps, schemaItemObject);\r\n break;\r\n case SchemaItemType.Mixin:\r\n schemaItem = (schema as MutableSchema).createMixinClassSync(name);\r\n this.loadMixinSync(schemaItem, schemaItemObject);\r\n break;\r\n case SchemaItemType.CustomAttributeClass:\r\n schemaItem = (schema as MutableSchema).createCustomAttributeClassSync(name);\r\n const caClassProps = this._parser.parseCustomAttributeClass(schemaItemObject);\r\n this.loadClassSync(schemaItem, caClassProps, schemaItemObject);\r\n break;\r\n case SchemaItemType.RelationshipClass:\r\n schemaItem = (schema as MutableSchema).createRelationshipClassSync(name);\r\n this.loadRelationshipClassSync(schemaItem, schemaItemObject);\r\n break;\r\n case SchemaItemType.KindOfQuantity:\r\n schemaItem = (schema as MutableSchema).createKindOfQuantitySync(name);\r\n this.loadKindOfQuantitySync(schemaItem, schemaItemObject);\r\n break;\r\n case SchemaItemType.Unit:\r\n schemaItem = (schema as MutableSchema).createUnitSync(name);\r\n this.loadUnitSync(schemaItem, schemaItemObject);\r\n break;\r\n case SchemaItemType.Constant:\r\n schemaItem = (schema as MutableSchema).createConstantSync(name);\r\n this.loadConstantSync(schemaItem, schemaItemObject);\r\n break;\r\n case SchemaItemType.InvertedUnit:\r\n schemaItem = (schema as MutableSchema).createInvertedUnitSync(name);\r\n this.loadInvertedUnitSync(schemaItem, schemaItemObject);\r\n break;\r\n case SchemaItemType.Format:\r\n schemaItem = (schema as MutableSchema).createFormatSync(name);\r\n this.loadFormatSync(schemaItem, schemaItemObject);\r\n break;\r\n case SchemaItemType.Phenomenon:\r\n schemaItem = (schema as MutableSchema).createPhenomenonSync(name);\r\n const phenomenonProps = this._parser.parsePhenomenon(schemaItemObject);\r\n schemaItem.fromJSONSync(phenomenonProps);\r\n break;\r\n case SchemaItemType.UnitSystem:\r\n schemaItem = (schema as MutableSchema).createUnitSystemSync(name);\r\n schemaItem.fromJSONSync(this._parser.parseUnitSystem(schemaItemObject));\r\n break;\r\n case SchemaItemType.PropertyCategory:\r\n schemaItem = (schema as MutableSchema).createPropertyCategorySync(name);\r\n const propertyCategoryProps = this._parser.parsePropertyCategory(schemaItemObject);\r\n schemaItem.fromJSONSync(propertyCategoryProps);\r\n break;\r\n case SchemaItemType.Enumeration:\r\n schemaItem = (schema as MutableSchema).createEnumerationSync(name);\r\n const enumerationProps = this._parser.parseEnumeration(schemaItemObject);\r\n schemaItem.fromJSONSync(enumerationProps);\r\n break;\r\n // NOTE: we are being permissive here and allowing unknown types to silently fail. Not sure if we want to hard fail or just do a basic deserialization\r\n }\r\n return schemaItem;\r\n }\r\n\r\n /**\r\n * Given the full (Schema.ItemName) or qualified (alias:ItemName) item name, returns\r\n * a tuple of strings in the format [\"SchemaName\", \"ItemName\"]. The schema name may be\r\n * empty if the item comes from the schema being parsed.\r\n * @param fullOrQualifiedName The full or qualified name of the schema item.\r\n * @param schema The schema that will be used to lookup the schema name by alias, if necessary.\r\n */\r\n private static resolveSchemaAndItemName(fullOrQualifiedName: string, schema?: Schema): [string, string] {\r\n const [schemaName, itemName] = SchemaItem.parseFullName(fullOrQualifiedName);\r\n\r\n // If a schema is provided we attempt to resolve the alias by looking at the reference schemas.\r\n if (undefined !== schema && -1 !== fullOrQualifiedName.indexOf(\":\")) {\r\n const refName = schema.getReferenceNameByAlias(schemaName);\r\n if (undefined === refName)\r\n throw new ECObjectsError(ECObjectsStatus.UnableToLocateSchema, `Could not resolve schema alias '${schemaName}' for schema item '${itemName}.`);\r\n return [refName, itemName];\r\n }\r\n\r\n return [schemaName, itemName];\r\n }\r\n\r\n /**\r\n * Finds the a SchemaItem matching the name first by checking the schema that is being deserialized. If it does\r\n * not exist within the schema, the SchemaContext will be searched.\r\n * @param name The full (Schema.ItemName) or qualified (alias:ItemName) name of the SchemaItem to search for.\r\n * @param skipVisitor Used to break Mixin -appliesTo-> Entity -extends-> Mixin cycle.\r\n * @param loadCallBack Only called if the SchemaItem had to be loaded.\r\n * @return The SchemaItem if it had to be loaded, otherwise undefined.\r\n */\r\n private async findSchemaItem(name: string, skipVisitor = false, loadCallBack?: (item: SchemaItem) => void): Promise<SchemaItem | undefined> {\r\n let schemaItem: SchemaItem | undefined;\r\n // TODO: A better solution should be investigated for handling both an alias and the schema name.\r\n const [schemaName, itemName] = SchemaReadHelper.resolveSchemaAndItemName(name, this._schema);\r\n const isInThisSchema = (this._schema && this._schema.name.toLowerCase() === schemaName.toLowerCase());\r\n\r\n if (undefined === schemaName || 0 === schemaName.length)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The SchemaItem ${name} is invalid without a schema name`);\r\n\r\n if (isInThisSchema && undefined === await this._schema!.getItem(itemName)) {\r\n const foundItem = this._parser.findItem(itemName);\r\n if (foundItem) {\r\n schemaItem = await this.loadSchemaItem(this._schema!, ...foundItem);\r\n if (!skipVisitor && schemaItem && this._visitorHelper) {\r\n await this._visitorHelper.visitSchemaPart(schemaItem);\r\n }\r\n if (loadCallBack && schemaItem)\r\n loadCallBack(schemaItem);\r\n\r\n return schemaItem;\r\n }\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `Unable to locate SchemaItem ${name}.`);\r\n }\r\n\r\n schemaItem = await this._context.getSchemaItem(new SchemaItemKey(itemName, new SchemaKey(schemaName)));\r\n if (undefined === schemaItem)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `Unable to locate SchemaItem ${name}.`);\r\n\r\n return schemaItem;\r\n }\r\n\r\n /**\r\n * Finds the a SchemaItem matching the name first by checking the schema that is being deserialized. If it does\r\n * not exist within the schema, the SchemaContext will be searched.\r\n * @param name The full (Schema.ItemName) or qualified (alias:ItemName) name of the SchemaItem to search for.\r\n * @param skipVisitor Used to break Mixin -appliesTo-> Entity -extends-> Mixin cycle.\r\n * @param loadCallBack Only called if the SchemaItem had to be loaded.\r\n * @return The SchemaItem if it had to be loaded, otherwise undefined.\r\n */\r\n private findSchemaItemSync(name: string, skipVisitor = false, loadCallBack?: (item: SchemaItem) => void): SchemaItem | undefined {\r\n let schemaItem: SchemaItem | undefined;\r\n // TODO: A better solution should be investigated for handling both an alias and the schema name.\r\n const [schemaName, itemName] = SchemaReadHelper.resolveSchemaAndItemName(name, this._schema);\r\n const isInThisSchema = (this._schema && this._schema.name.toLowerCase() === schemaName.toLowerCase());\r\n\r\n if (undefined === schemaName || schemaName.length === 0)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The SchemaItem ${name} is invalid without a schema name`);\r\n\r\n if (isInThisSchema && undefined === this._schema!.getItemSync(itemName)) {\r\n const foundItem = this._parser.findItem(itemName);\r\n if (foundItem) {\r\n schemaItem = this.loadSchemaItemSync(this._schema!, ...foundItem);\r\n if (!skipVisitor && schemaItem && this._visitorHelper) {\r\n this._visitorHelper.visitSchemaPartSync(schemaItem);\r\n }\r\n if (loadCallBack && schemaItem)\r\n loadCallBack(schemaItem);\r\n\r\n return schemaItem;\r\n }\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `Unable to locate SchemaItem ${name}.`);\r\n }\r\n\r\n schemaItem = this._context.getSchemaItemSync(new SchemaItemKey(itemName, new SchemaKey(schemaName)));\r\n if (undefined === schemaItem)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `Unable to locate SchemaItem ${name}.`);\r\n\r\n return schemaItem;\r\n }\r\n\r\n /**\r\n * Load dependencies on phenomenon and unitSystem for a Unit object and load the Unit from its serialized format.\r\n * @param unit The Unit object that we are loading dependencies for and \"deserializing into\".\r\n * @param rawUnit The serialized unit data\r\n */\r\n private async loadUnit(unit: Unit, rawUnit: Readonly<unknown>): Promise<void> {\r\n const unitProps = this._parser.parseUnit(rawUnit);\r\n\r\n await this.findSchemaItem(unitProps.phenomenon, true);\r\n await this.findSchemaItem(unitProps.unitSystem, true);\r\n\r\n await unit.fromJSON(unitProps);\r\n }\r\n\r\n /**\r\n * Load dependencies on phenomenon and unitSystem for a Unit object and load the Unit from its serialized format.\r\n * @param unit The Unit object that we are loading dependencies for and \"deserializing into\".\r\n * @param rawUnit The serialized unit data\r\n */\r\n private loadUnitSync(unit: Unit, rawUnit: Readonly<unknown>) {\r\n const unitProps = this._parser.parseUnit(rawUnit);\r\n\r\n this.findSchemaItemSync(unitProps.phenomenon, true);\r\n this.findSchemaItemSync(unitProps.unitSystem, true);\r\n\r\n unit.fromJSONSync(unitProps);\r\n }\r\n\r\n /**\r\n * Load the persistence unit and presentation unit dependencies for a KindOfQuantity object and load the KoQ from its serialized format.\r\n * @param koq The KindOfQuantity object that we are loading dependencies for and \"deserializing into\".\r\n * @param rawKoQ The serialized kind of quantity data\r\n */\r\n private async loadKindOfQuantity(koq: KindOfQuantity, rawKoQ: Readonly<unknown>): Promise<void> {\r\n const koqProps = this._parser.parseKindOfQuantity(rawKoQ);\r\n await this.findSchemaItem(koqProps.persistenceUnit);\r\n\r\n if (undefined !== koqProps.presentationUnits) {\r\n for (const formatString of koqProps.presentationUnits) {\r\n for (const name of getItemNamesFromFormatString(formatString)) {\r\n await this.findSchemaItem(name);\r\n }\r\n }\r\n }\r\n\r\n await koq.fromJSON(koqProps);\r\n }\r\n\r\n /**\r\n * Load the persistence unit and presentation unit dependencies for a KindOfQuantity object and load the KoQ from its serialized format.\r\n * @param koq The KindOfQuantity object that we are loading dependencies for and \"deserializing into\".\r\n * @param rawKoQ The serialized kind of quantity data\r\n */\r\n private loadKindOfQuantitySync(koq: KindOfQuantity, rawKoQ: Readonly<unknown>) {\r\n const koqProps = this._parser.parseKindOfQuantity(rawKoQ);\r\n this.findSchemaItemSync(koqProps.persistenceUnit);\r\n\r\n if (undefined !== koqProps.presentationUnits) {\r\n for (const formatString of koqProps.presentationUnits) {\r\n for (const name of getItemNamesFromFormatString(formatString)) {\r\n this.findSchemaItemSync(name);\r\n }\r\n }\r\n }\r\n koq.fromJSONSync(koqProps);\r\n }\r\n\r\n /**\r\n * Load the phenomenon dependency for a Constant object and load the Constant from its serialized format.\r\n * @param constant The Constant object that we are loading the phenomenon dependency for\r\n * @param rawConstant The serialized constant data\r\n */\r\n private async loadConstant(constant: Constant, rawConstant: Readonly<unknown>): Promise<void> {\r\n const constantProps = this._parser.parseConstant(rawConstant);\r\n\r\n await this.findSchemaItem(constantProps.phenomenon, true);\r\n await constant.fromJSON(constantProps);\r\n }\r\n\r\n /**\r\n * Load the phenomenon dependency for a Constant object and load the Constant from its serialized format.\r\n * @param constant The Constant object that we are loading dependencies for and \"deserializing into\".\r\n * @param rawConstant The serialized constant data\r\n */\r\n private loadConstantSync(constant: Constant, rawConstant: Readonly<unknown>) {\r\n const constantProps = this._parser.parseConstant(rawConstant);\r\n\r\n this.findSchemaItemSync(constantProps.phenomenon, true);\r\n constant.fromJSONSync(constantProps);\r\n }\r\n\r\n /**\r\n * Load the unit system and invertsUnit dependencies for an Inverted Unit object and load the Inverted Unit from its serialized format.\r\n * @param invertedUnit The InvertedUnit object that we are loading dependencies for and \"deserializing into\".\r\n * @param rawInvertedUnit The serialized inverted unit data.\r\n */\r\n private async loadInvertedUnit(invertedUnit: InvertedUnit, rawInvertedUnit: Readonly<unknown>): Promise<void> {\r\n const invertedUnitProps = this._parser.parseInvertedUnit(rawInvertedUnit);\r\n\r\n await this.findSchemaItem(invertedUnitProps.invertsUnit, true);\r\n await this.findSchemaItem(invertedUnitProps.unitSystem, true);\r\n\r\n await invertedUnit.fromJSON(invertedUnitProps);\r\n }\r\n\r\n /**\r\n * Load the unit system and invertsUnit dependencies for an Inverted Unit object and load the Inverted Unit from its serialized format.\r\n * @param invertedUnit The InvertedUnit object that we are loading dependencies for and \"deserializing into\".\r\n * @param rawInvertedUnit The serialized inverted unit data.\r\n */\r\n private loadInvertedUnitSync(invertedUnit: InvertedUnit, rawInvertedUnit: Readonly<unknown>) {\r\n const invertedUnitProps = this._parser.parseInvertedUnit(rawInvertedUnit);\r\n\r\n this.findSchemaItemSync(invertedUnitProps.invertsUnit, true);\r\n this.findSchemaItemSync(invertedUnitProps.unitSystem, true);\r\n\r\n invertedUnit.fromJSONSync(invertedUnitProps);\r\n }\r\n\r\n /**\r\n * Load the unit dependencies for a Format object and load the Format from its serialized format.\r\n * @param format The Format object that we are loading dependencies for and \"deserializing into\".\r\n * @param rawFormat The serialized format data.\r\n */\r\n private async loadFormat(format: Format, rawFormat: Readonly<unknown>): Promise<void> {\r\n const formatProps = this._parser.parseFormat(rawFormat);\r\n\r\n if (undefined !== formatProps.composite) {\r\n const formatUnits = formatProps.composite.units;\r\n for (const unit of formatUnits) {\r\n await this.findSchemaItem(unit.name, true);\r\n }\r\n }\r\n await format.fromJSON(formatProps);\r\n }\r\n\r\n /**\r\n * Load the unit dependencies for a Format object and load the Format from its serialized format.\r\n * @param format The Format object that we are loading dependencies for and \"deserializing into\".\r\n * @param rawFormat The serialized format data.\r\n */\r\n private loadFormatSync(format: Format, rawFormat: Readonly<unknown>) {\r\n const formatProps = this._parser.parseFormat(rawFormat);\r\n\r\n if (undefined !== formatProps.composite) {\r\n const formatUnits = formatProps.composite.units;\r\n for (const unit of formatUnits) {\r\n this.findSchemaItemSync(unit.name, true);\r\n }\r\n }\r\n\r\n format.fromJSONSync(formatProps);\r\n }\r\n\r\n /**\r\n * Load the base class and property type dependencies for an ECClass object and load the ECClass (and its properties) from its serialized format.\r\n * @param classObj The ECClass object that we are loading dependencies for and \"deserializing into\".\r\n * @param classProps The parsed class props object.\r\n * @param rawClass The serialized class data.\r\n */\r\n private async loadClass(classObj: AnyClass, classProps: ClassProps, rawClass: Readonly<unknown>): Promise<void> {\r\n const baseClassLoaded = async (baseClass: SchemaItem) => {\r\n if (this._visitorHelper)\r\n await this._visitorHelper.visitSchemaPart(baseClass);\r\n };\r\n\r\n // Load base class first\r\n if (undefined !== classProps.baseClass) {\r\n await this.findSchemaItem(classProps.baseClass, true, baseClassLoaded);\r\n }\r\n\r\n // Now deserialize the class itself, *before* any properties\r\n // (We need to do this to break Entity -navProp-> Relationship -constraint-> Entity cycle.)\r\n await (classObj as ECClass).fromJSON(classProps);\r\n\r\n for (const [propName, propType, rawProp] of this._parser.getProperties(rawClass)) {\r\n await this.loadPropertyTypes(classObj, propName, propType, rawProp);\r\n }\r\n\r\n await this.loadCustomAttributes(classObj, this._parser.getClassCustomAttributeProviders(rawClass));\r\n }\r\n\r\n /**\r\n * Load the base class and property type dependencies for an ECClass object and load the ECClass (and its properties) from its serialized format.\r\n * @param classObj The ECClass object that we are loading dependencies for and \"deserializing into\".\r\n * @param classProps The parsed class props object.\r\n * @param rawClass The serialized class data.\r\n */\r\n private loadClassSync(classObj: AnyClass, classProps: ClassProps, rawClass: Readonly<unknown>): void {\r\n const baseClassLoaded = async (baseClass: SchemaItem) => {\r\n if (this._visitorHelper)\r\n this._visitorHelper.visitSchemaPartSync(baseClass);\r\n };\r\n\r\n // Load base class first\r\n if (undefined !== classProps.baseClass) {\r\n this.findSchemaItemSync(classProps.baseClass, true, baseClassLoaded);\r\n }\r\n\r\n // Now deserialize the class itself, *before* any properties\r\n // (We need to do this to break Entity -navProp-> Relationship -constraint-> Entity cycle.)\r\n (classObj as ECClass).fromJSONSync(classProps);\r\n\r\n for (const [propName, propType, rawProp] of this._parser.getProperties(rawClass)) {\r\n this.loadPropertyTypesSync(classObj, propName, propType, rawProp);\r\n }\r\n\r\n this.loadCustomAttributesSync(classObj, this._parser.getClassCustomAttributeProviders(rawClass));\r\n }\r\n\r\n /**\r\n * Load the mixin, base class, and property type dependencies for an EntityClass object and load the EntityClass (and properties) from its serialized format.\r\n * @param entity The EntityClass that we are loading dependencies for and \"deserializing into\".\r\n * @param rawEntity The serialized entity class data.\r\n */\r\n private async loadEntityClass(entity: EntityClass, rawEntity: Readonly<unknown>): Promise<void> {\r\n const entityClassProps = this._parser.parseEntityClass(rawEntity);\r\n\r\n // Load Mixin classes first\r\n if (undefined !== entityClassProps.mixins) {\r\n for (const mixinName of entityClassProps.mixins)\r\n await this.findSchemaItem(mixinName);\r\n }\r\n\r\n await this.loadClass(entity, entityClassProps, rawEntity);\r\n }\r\n\r\n /**\r\n * Load the mixin, base class, and property type dependencies for an EntityClass object and load the EntityClass (and properties) from its serialized format.\r\n * @param entity The EntityClass that we are loading dependencies for and \"deserializing into\".\r\n * @param rawEntity The serialized entity class data.\r\n */\r\n private loadEntityClassSync(entity: EntityClass, rawEntity: Readonly<unknown>): void {\r\n const entityClassProps = this._parser.parseEntityClass(rawEntity);\r\n\r\n // Load Mixin classes first\r\n if (undefined !== entityClassProps.mixins) {\r\n for (const mixinName of entityClassProps.mixins)\r\n this.findSchemaItemSync(mixinName);\r\n }\r\n\r\n this.loadClassSync(entity, entityClassProps, rawEntity);\r\n }\r\n\r\n /**\r\n * Load the appliesTo class, base class, and property type dependencies for a Mixin object and load the Mixin (and properties) from its serialized format.\r\n * @param mixin The Mixin that we are loading dependencies for and \"deserializing into\".\r\n * @param rawMixin The serialized mixin data.\r\n */\r\n private async loadMixin(mixin: Mixin, rawMixin: Readonly<unknown>): Promise<void> {\r\n const mixinProps = this._parser.parseMixin(rawMixin);\r\n\r\n const appliesToLoaded = async (appliesToClass: SchemaItem) => {\r\n if (this._visitorHelper)\r\n await this._visitorHelper.visitSchemaPart(appliesToClass);\r\n };\r\n\r\n await this.findSchemaItem(mixinProps.appliesTo, true, appliesToLoaded);\r\n\r\n await this.loadClass(mixin, mixinProps, rawMixin);\r\n }\r\n\r\n /**\r\n * Load the appliesTo class, base class, and property type dependencies for a Mixin object and load the Mixin (and properties) from its serialized format.\r\n * @param mixin The Mixin that we are loading dependencies for and \"deserializing into\".\r\n * @param rawMixin The serialized mixin data.\r\n */\r\n private loadMixinSync(mixin: Mixin, rawMixin: Readonly<unknown>): void {\r\n const mixinProps = this._parser.parseMixin(rawMixin);\r\n\r\n const appliesToLoaded = async (appliesToClass: SchemaItem) => {\r\n if (this._visitorHelper)\r\n await this._visitorHelper.visitSchemaPart(appliesToClass);\r\n };\r\n\r\n this.findSchemaItemSync(mixinProps.appliesTo, true, appliesToLoaded);\r\n\r\n this.loadClassSync(mixin, mixinProps, rawMixin);\r\n }\r\n\r\n /**\r\n * Load the relationship constraint, base class, and property type dependencies for a RelationshipClass object and load the RelationshipClass (and properties) from its serialized format.\r\n * @param rel The RelationshipClass that we are loading dependencies for and \"deserializing into\".\r\n * @param rawRel The serialized relationship class data.\r\n */\r\n private async loadRelationshipClass(rel: RelationshipClass, rawRel: Readonly<unknown>): Promise<void> {\r\n const relationshipClassProps = this._parser.parseRelationshipClass(rawRel);\r\n await this.loadClass(rel, relationshipClassProps, rawRel);\r\n await this.loadRelationshipConstraint(rel.source, relationshipClassProps.source);\r\n await this.loadRelationshipConstraint(rel.target, relationshipClassProps.target);\r\n\r\n const [sourceCustomAttributes, targetCustomAttributes] = this._parser.getRelationshipConstraintCustomAttributeProviders(rawRel);\r\n await this.loadCustomAttributes(rel.source, sourceCustomAttributes);\r\n await this.loadCustomAttributes(rel.target, targetCustomAttributes);\r\n }\r\n\r\n /**\r\n * Load the relationship constraint, base class, and property type dependencies for a RelationshipClass object and load the RelationshipClass (and properties) from its serialized format.\r\n * @param rel The RelationshipClass that we are loading dependencies for and \"deserializing into\".\r\n * @param rawRel The serialized relationship class data.\r\n */\r\n private loadRelationshipClassSync(rel: RelationshipClass, rawRel: Readonly<unknown>): void {\r\n const relationshipClassProps = this._parser.parseRelationshipClass(rawRel);\r\n this.loadClassSync(rel, relationshipClassProps, rawRel);\r\n this.loadRelationshipConstraintSync(rel.source, relationshipClassProps.source);\r\n this.loadRelationshipConstraintSync(rel.target, relationshipClassProps.target);\r\n\r\n const [sourceCustomAttributes, targetCustomAttributes] = this._parser.getRelationshipConstraintCustomAttributeProviders(rawRel);\r\n this.loadCustomAttributesSync(rel.source, sourceCustomAttributes);\r\n this.loadCustomAttributesSync(rel.target, targetCustomAttributes);\r\n }\r\n\r\n /**\r\n * Load the abstract constraint and constraint class dependencies for a RelationshipConstraint object and load the RelationshipConstraint from its parsed props.\r\n * @param relConstraint The RelationshipConstraint that we are loading dependencies for and \"deserializing into\".\r\n * @param props The parsed relationship constraint props.\r\n */\r\n private async loadRelationshipConstraint(relConstraint: RelationshipConstraint, props: RelationshipConstraintProps): Promise<void> {\r\n if (undefined !== props.abstractConstraint) {\r\n await this.findSchemaItem(props.abstractConstraint);\r\n }\r\n if (undefined !== props.constraintClasses) { // TODO: this should be required\r\n for (const constraintClass of props.constraintClasses) {\r\n await this.findSchemaItem(constraintClass);\r\n }\r\n }\r\n await relConstraint.fromJSON(props);\r\n }\r\n\r\n /**\r\n * Load the abstract constraint and constraint class dependencies for a RelationshipConstraint object and load the RelationshipConstraint from its parsed props.\r\n * @param relConstraint The RelationshipConstraint that we are loading dependencies for and \"deserializing into\".\r\n * @param props The parsed relationship constraint props.\r\n */\r\n private loadRelationshipConstraintSync(relConstraint: RelationshipConstraint, props: RelationshipConstraintProps): void {\r\n if (undefined !== props.abstractConstraint) {\r\n this.findSchemaItemSync(props.abstractConstraint);\r\n }\r\n if (undefined !== props.constraintClasses) {\r\n for (const constraintClass of props.constraintClasses) {\r\n this.findSchemaItemSync(constraintClass);\r\n }\r\n }\r\n\r\n relConstraint.fromJSONSync(props);\r\n }\r\n\r\n /**\r\n * Load the type dependencies for a serialized property, then creates and deserialized the Property object in the given ECClass.\r\n * @param classObj The ECClass that the Property should be created in.\r\n * @param propName The name of the Property.\r\n * @param propType The (serialized string) kind of property to create.\r\n * @param rawProperty The serialized property data.\r\n */\r\n private async loadPropertyTypes(classObj: AnyClass, propName: string, propType: string, rawProperty: Readonly<unknown>): Promise<void> {\r\n\r\n const loadTypeName = async (typeName: string) => {\r\n if (undefined === parsePrimitiveType(typeName))\r\n await this.findSchemaItem(typeName);\r\n };\r\n\r\n const lowerCasePropType = propType.toLowerCase();\r\n\r\n switch (lowerCasePropType) {\r\n case \"primitiveproperty\":\r\n const primPropertyProps = this._parser.parsePrimitiveProperty(rawProperty);\r\n await loadTypeName(primPropertyProps.typeName);\r\n const primProp = await (classObj as MutableClass).createPrimitiveProperty(propName, primPropertyProps.typeName);\r\n return this.loadProperty(primProp, primPropertyProps, rawProperty);\r\n\r\n case \"structproperty\":\r\n const structPropertyProps = this._parser.parseStructProperty(rawProperty);\r\n await loadTypeName(structPropertyProps.typeName);\r\n const structProp = await (classObj as MutableClass).createStructProperty(propName, structPropertyProps.typeName);\r\n return this.loadProperty(structProp, structPropertyProps, rawProperty);\r\n\r\n case \"primitivearrayproperty\":\r\n const primArrPropertyProps = this._parser.parsePrimitiveArrayProperty(rawProperty);\r\n await loadTypeName(primArrPropertyProps.typeName);\r\n const primArrProp = await (classObj as MutableClass).createPrimitiveArrayProperty(propName, primArrPropertyProps.typeName);\r\n return this.loadProperty(primArrProp, primArrPropertyProps, rawProperty);\r\n\r\n case \"structarrayproperty\":\r\n const structArrPropertyProps = this._parser.parseStructArrayProperty(rawProperty);\r\n await loadTypeName(structArrPropertyProps.typeName);\r\n const structArrProp = await (classObj as MutableClass).createStructArrayProperty(propName, structArrPropertyProps.typeName);\r\n return this.loadProperty(structArrProp, structArrPropertyProps, rawProperty);\r\n\r\n case \"navigationproperty\":\r\n if (classObj.schemaItemType !== SchemaItemType.EntityClass && classObj.schemaItemType !== SchemaItemType.RelationshipClass && classObj.schemaItemType !== SchemaItemType.Mixin)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Navigation Property ${classObj.name}.${propName} is invalid, because only EntityClasses, Mixins, and RelationshipClasses can have NavigationProperties.`);\r\n\r\n const navPropertyProps = this._parser.parseNavigationProperty(rawProperty);\r\n await this.findSchemaItem(navPropertyProps.relationshipName);\r\n const navProp = await (classObj as MutableEntityClass).createNavigationProperty(propName, navPropertyProps.relationshipName, navPropertyProps.direction);\r\n return this.loadProperty(navProp, navPropertyProps, rawProperty);\r\n }\r\n }\r\n\r\n /**\r\n * Load the type dependencies for a serialized property, then creates and deserialized the Property object in the given ECClass.\r\n * @param classObj The ECClass that the Property should be created in.\r\n * @param propName The name of the Property.\r\n * @param propType The (serialized string) kind of property to create.\r\n * @param rawProperty The serialized property data.\r\n */\r\n private loadPropertyTypesSync(classObj: AnyClass, propName: string, propType: string, rawProperty: Readonly<unknown>): void {\r\n const loadTypeName = (typeName: string) => {\r\n if (undefined === parsePrimitiveType(typeName))\r\n this.findSchemaItemSync(typeName);\r\n };\r\n\r\n const lowerCasePropType = propType.toLowerCase();\r\n\r\n switch (lowerCasePropType) {\r\n case \"primitiveproperty\":\r\n const primPropertyProps = this._parser.parsePrimitiveProperty(rawProperty);\r\n loadTypeName(primPropertyProps.typeName);\r\n const primProp = (classObj as MutableClass).createPrimitivePropertySync(propName, primPropertyProps.typeName);\r\n return this.loadPropertySync(primProp, primPropertyProps, rawProperty);\r\n\r\n case \"structproperty\":\r\n const structPropertyProps = this._parser.parseStructProperty(rawProperty);\r\n loadTypeName(structPropertyProps.typeName);\r\n const structProp = (classObj as MutableClass).createStructPropertySync(propName, structPropertyProps.typeName);\r\n return this.loadPropertySync(structProp, structPropertyProps, rawProperty);\r\n\r\n case \"primitivearrayproperty\":\r\n const primArrPropertyProps = this._parser.parsePrimitiveArrayProperty(rawProperty);\r\n loadTypeName(primArrPropertyProps.typeName);\r\n const primArrProp = (classObj as MutableClass).createPrimitiveArrayPropertySync(propName, primArrPropertyProps.typeName);\r\n return this.loadPropertySync(primArrProp, primArrPropertyProps, rawProperty);\r\n\r\n case \"structarrayproperty\":\r\n const structArrPropertyProps = this._parser.parseStructArrayProperty(rawProperty);\r\n loadTypeName(structArrPropertyProps.typeName);\r\n const structArrProp = (classObj as MutableClass).createStructArrayPropertySync(propName, structArrPropertyProps.typeName);\r\n return this.loadPropertySync(structArrProp, structArrPropertyProps, rawProperty);\r\n\r\n case \"navigationproperty\":\r\n if (classObj.schemaItemType !== SchemaItemType.EntityClass && classObj.schemaItemType !== SchemaItemType.RelationshipClass && classObj.schemaItemType !== SchemaItemType.Mixin)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Navigation Property ${classObj.name}.${propName} is invalid, because only EntityClasses, Mixins, and RelationshipClasses can have NavigationProperties.`);\r\n\r\n const navPropertyProps = this._parser.parseNavigationProperty(rawProperty);\r\n this.findSchemaItemSync(navPropertyProps.relationshipName);\r\n const navProp = (classObj as MutableEntityClass).createNavigationPropertySync(propName, navPropertyProps.relationshipName, navPropertyProps.direction);\r\n return this.loadPropertySync(navProp, navPropertyProps, rawProperty);\r\n }\r\n }\r\n\r\n /**\r\n * Load the propertyCategory, kindOfQuantity, and customAttribute dependencies for a Property object and load the Property from its parsed props.\r\n * @param propertyObj The Property that we are loading dependencies for and \"deserializing into\".\r\n * @param props The parsed property props.\r\n * @param rawProperty The serialized property data.\r\n */\r\n private async loadProperty<U extends Property>(propertyObj: U, props: PropertyProps, rawProperty: Readonly<unknown>): Promise<void> {\r\n if (undefined !== props.category) {\r\n await this.findSchemaItem(props.category);\r\n }\r\n\r\n if (undefined !== props.kindOfQuantity) {\r\n await this.findSchemaItem(props.kindOfQuantity);\r\n }\r\n\r\n await propertyObj.fromJSON(props);\r\n await this.loadCustomAttributes(propertyObj, this._parser.getPropertyCustomAttributeProviders(rawProperty));\r\n }\r\n\r\n /**\r\n * Load the propertyCategory, kindOfQuantity, and customAttribute dependencies for a Property object and load the Property from its parsed props.\r\n * @param propertyObj The Property that we are loading dependencies for and \"deserializing into\".\r\n * @param props The parsed property props.\r\n * @param rawProperty The serialized property data.\r\n */\r\n private loadPropertySync<U extends Property>(propertyObj: U, props: PropertyProps, rawProperty: Readonly<unknown>): void {\r\n if (undefined !== props.category) {\r\n this.findSchemaItemSync(props.category);\r\n }\r\n\r\n if (undefined !== props.kindOfQuantity) {\r\n this.findSchemaItemSync(props.kindOfQuantity);\r\n }\r\n\r\n propertyObj.fromJSONSync(props);\r\n this.loadCustomAttributesSync(propertyObj, this._parser.getPropertyCustomAttributeProviders(rawProperty));\r\n }\r\n\r\n /**\r\n * Load the customAttribute class dependencies for a set of CustomAttribute objects and add\r\n * them to a given custom attribute container.\r\n * @param container The CustomAttributeContainer that each CustomAttribute will be added to.\r\n * @param customAttributes An iterable set of parsed CustomAttribute objects.\r\n */\r\n private async loadCustomAttributes(container: AnyCAContainer, caProviders: Iterable<CAProviderTuple>): Promise<void> {\r\n for (const providerTuple of caProviders) {\r\n // First tuple entry is the CA class name.\r\n const caClass = await this.findSchemaItem(providerTuple[0]) as CustomAttributeClass;\r\n\r\n // Second tuple entry ia a function that provides the CA instance.\r\n const provider = providerTuple[1];\r\n const customAttribute = provider(caClass);\r\n (container as AnyMutableCAContainer).addCustomAttribute(customAttribute);\r\n }\r\n }\r\n\r\n /**\r\n * Load the customAttribute class dependencies for a set of CustomAttribute objects and add them to a given custom attribute container.\r\n * @param container The CustomAttributeContainer that each CustomAttribute will be added to.\r\n * @param customAttributes An iterable set of parsed CustomAttribute objects.\r\n */\r\n private loadCustomAttributesSync(container: AnyCAContainer, caProviders: Iterable<CAProviderTuple>): void {\r\n for (const providerTuple of caProviders) {\r\n // First tuple entry is the CA class name.\r\n const caClass = this.findSchemaItemSync(providerTuple[0]) as CustomAttributeClass;\r\n\r\n // Second tuple entry ia a function that provides the CA instance.\r\n const provider = providerTuple[1];\r\n const customAttribute = provider(caClass);\r\n (container as AnyMutableCAContainer).addCustomAttribute(customAttribute);\r\n }\r\n }\r\n}\r\n"]}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JsonParser.d.ts","sourceRoot":"","sources":["../../../src/Deserialization/JsonParser.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EACL,aAAa,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,UAAU,EAC7I,uBAAuB,EAAE,eAAe,EAAE,2BAA2B,EAAoC,sBAAsB,EAC/H,qBAAqB,EAAiB,sBAAsB,EAAE,WAAW,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,gBAAgB,EAC3I,mBAAmB,EAAE,SAAS,EAAE,eAAe,EAChD,MAAM,aAAa,CAAC;AAErB,UAAU,aAAa;IAAG,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE;AAK5D,gBAAgB;AAChB,qBAAa,UAAW,SAAQ,cAAc,CAAC,aAAa,CAAC;IAC3D,OAAO,CAAC,UAAU,CAAgB;IAClC,OAAO,CAAC,WAAW,CAAC,CAAS;IAC7B,OAAO,CAAC,oBAAoB,CAAC,CAAS;gBAE1B,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC;IAUxC;;;;OAIG;IACI,WAAW,IAAI,WAAW;IAkCzB,aAAa,IAAI,QAAQ,CAAC,oBAAoB,CAAC;IAWvD,OAAO,CAAC,oBAAoB;IAcpB,QAAQ,IAAI,QAAQ,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,CAAC;IA0BtD,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,GAAG,SAAS;IA2B9E;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IAYpB,aAAa,CAAC,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oBAClC,MAAM,IAAI,0BAAc,CAAC,2BAAe,CAAC,aAAa,EAAE,wBAAwB,IAAI,kEAAkE,CAAC,CAAC;gBAC1J,IAAI,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,QAAQ;oBAC1C,MAAM,IAAI,0BAAc,CAAC,2BAAe,CAAC,aAAa,EAAE,wBAAwB,IAAI,wFAAwF,CAAC,CAAC;gBAEhL,MAAM,QAAQ,GAAG,CAAC,QAA8B,EAAE,EAAE;oBAClD,OAAO,QAA2B,CAAC;gBACrC,CAAC,CAAC;gBAEF,MAAM,OAAO,GAAoB,CAAC,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;gBAChE,MAAM,OAAO,CAAC;aACf;SACF;IACH,CAAC;CACF;AApyBD,gCAoyBC","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\nimport { ECObjectsError, ECObjectsStatus } from \"../Exception\";\r\nimport { CustomAttribute } from \"../Metadata/CustomAttribute\";\r\nimport { CustomAttributeClass } from \"../Metadata/CustomAttributeClass\";\r\nimport { ECName } from \"../ECName\";\r\nimport { AbstractParser, CAProviderTuple } from \"./AbstractParser\";\r\nimport {\r\n ConstantProps, CustomAttributeClassProps, EntityClassProps, EnumerationProps, FormatProps, InvertedUnitProps, KindOfQuantityProps, MixinProps,\r\n NavigationPropertyProps, PhenomenonProps, PrimitiveArrayPropertyProps, PrimitiveOrEnumPropertyBaseProps, PrimitivePropertyProps,\r\n PropertyCategoryProps, PropertyProps, RelationshipClassProps, SchemaProps, SchemaReferenceProps, StructArrayPropertyProps, StructClassProps,\r\n StructPropertyProps, UnitProps, UnitSystemProps,\r\n} from \"./JsonProps\";\r\n\r\ninterface UnknownObject { readonly [name: string]: unknown }\r\nfunction isObject(x: unknown): x is UnknownObject {\r\n return typeof (x) === \"object\";\r\n}\r\n\r\n/** @internal */\r\nexport class JsonParser extends AbstractParser<UnknownObject> {\r\n private _rawSchema: UnknownObject;\r\n private _schemaName?: string;\r\n private _currentItemFullName?: string;\r\n\r\n constructor(rawSchema: Readonly<unknown>) {\r\n super();\r\n\r\n if (!isObject(rawSchema))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `Invalid JSON object.`);\r\n\r\n this._rawSchema = rawSchema;\r\n this._schemaName = rawSchema.name as string | undefined;\r\n }\r\n\r\n /**\r\n * Type checks Schema and returns SchemaProps interface\r\n * @param this._rawSchema\r\n * @returns SchemaProps\r\n */\r\n public parseSchema(): SchemaProps {\r\n if (undefined === this._rawSchema.name)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `An ECSchema is missing the required 'name' attribute.`);\r\n if (typeof (this._rawSchema.name) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `An ECSchema has an invalid 'name' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined === this._rawSchema.$schema)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECSchema ${this._schemaName} is missing the required '$schema' attribute.`);\r\n if (typeof (this._rawSchema.$schema) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECSchema ${this._schemaName} has an invalid '$schema' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined === this._rawSchema.version)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECSchema ${this._schemaName} is missing the required 'version' attribute.`);\r\n if (typeof (this._rawSchema.version) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECSchema ${this._schemaName} has an invalid 'version' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined !== this._rawSchema.alias) {\r\n if (typeof (this._rawSchema.alias) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECSchema ${this._schemaName} has an invalid 'alias' attribute. It should be of type 'string'.`);\r\n }\r\n\r\n if (undefined !== this._rawSchema.label) {\r\n if (typeof (this._rawSchema.label) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECSchema ${this._schemaName} has an invalid 'label' attribute. It should be of type 'string'.`);\r\n }\r\n\r\n if (undefined !== this._rawSchema.description) {\r\n if (typeof (this._rawSchema.description) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECSchema ${this._schemaName} has an invalid 'description' attribute. It should be of type 'string'.`);\r\n }\r\n\r\n return (this._rawSchema as unknown) as SchemaProps;\r\n }\r\n\r\n public *getReferences(): Iterable<SchemaReferenceProps> {\r\n if (undefined !== this._rawSchema.references) {\r\n if (!Array.isArray(this._rawSchema.references))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The schema ${this._rawSchema.name} has an invalid 'references' attribute. It should be of type 'object[]'.`);\r\n\r\n for (const ref of this._rawSchema.references) {\r\n yield this.checkSchemaReference(ref);\r\n }\r\n }\r\n }\r\n\r\n private checkSchemaReference(jsonObj: Readonly<unknown>): SchemaReferenceProps {\r\n if (!isObject(jsonObj))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The schema ${this._schemaName} has an invalid 'references' attribute. It should be of type 'object[]'.`);\r\n if (undefined === jsonObj.name)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The schema ${this._schemaName} has an invalid 'references' attribute. One of the references is missing the required 'name' attribute.`);\r\n if (typeof (jsonObj.name) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The schema ${this._schemaName} has an invalid 'references' attribute. One of the references has an invalid 'name' attribute. It should be of type 'string'.`);\r\n if (undefined === jsonObj.version)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The schema ${this._schemaName} has an invalid 'references' attribute. One of the references is missing the required 'version' attribute.`);\r\n if (typeof (jsonObj.version) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The schema ${this._schemaName} has an invalid 'references' attribute. One of the references has an invalid 'version' attribute. It should be of type 'string'.`);\r\n return (jsonObj as unknown) as SchemaReferenceProps;\r\n }\r\n\r\n public *getItems(): Iterable<[string, string, UnknownObject]> {\r\n const items = this._rawSchema.items;\r\n if (undefined !== items) {\r\n if (!isObject(items) || Array.isArray(items))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The schema ${this._schemaName} has an invalid 'items' attribute. It should be of type 'object'.`);\r\n\r\n // eslint-disable-next-line guard-for-in\r\n for (const itemName in items) {\r\n const item = items[itemName];\r\n if (!isObject(item))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `A SchemaItem in ${this._schemaName} is an invalid JSON object.`);\r\n\r\n if (!ECName.validate(itemName))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECName, `A SchemaItem in ${this._schemaName} has an invalid 'name' attribute. '${itemName}' is not a valid ECName.`);\r\n\r\n if (undefined === item.schemaItemType)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The SchemaItem ${this._schemaName}.${itemName} is missing the required 'schemaItemType' attribute.`);\r\n if (typeof (item.schemaItemType) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The SchemaItem ${this._schemaName}.${itemName} has an invalid 'schemaItemType' attribute. It should be of type 'string'.`);\r\n\r\n this._currentItemFullName = `${this._schemaName}.${itemName}`;\r\n yield [itemName, item.schemaItemType, item];\r\n }\r\n }\r\n }\r\n\r\n public findItem(itemName: string): [string, string, UnknownObject] | undefined {\r\n const items = this._rawSchema.items;\r\n if (undefined !== items) {\r\n if (!isObject(items) || Array.isArray(items))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The schema ${this._schemaName} has an invalid 'items' attribute. It should be of type 'object'.`);\r\n\r\n const item = items[itemName];\r\n if (undefined !== item) {\r\n if (!isObject(item))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `A SchemaItem in ${this._schemaName} is an invalid JSON object.`);\r\n\r\n if (!ECName.validate(itemName))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECName, `A SchemaItem in ${this._schemaName} has an invalid 'name' attribute. '${itemName}' is not a valid ECName.`);\r\n\r\n if (undefined === item.schemaItemType)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The SchemaItem ${this._schemaName}.${itemName} is missing the required 'schemaItemType' attribute.`);\r\n if (typeof (item.schemaItemType) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The SchemaItem ${this._schemaName}.${itemName} has an invalid 'schemaItemType' attribute. It should be of type 'string'.`);\r\n\r\n this._currentItemFullName = `${this._schemaName}.${itemName}`;\r\n return [itemName, item.schemaItemType, item];\r\n }\r\n }\r\n\r\n return undefined;\r\n }\r\n\r\n /**\r\n * Type checks all Schema Item attributes.\r\n * @param jsonObj The JSON object to check if it represents a Schema Item.\r\n */\r\n private checkSchemaItemProps(jsonObj: UnknownObject): void {\r\n if (undefined !== jsonObj.description) {\r\n if (typeof (jsonObj.description) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The SchemaItem ${this._currentItemFullName} has an invalid 'description' attribute. It should be of type 'string'.`);\r\n }\r\n\r\n if (undefined !== jsonObj.label) {\r\n if (typeof (jsonObj.label) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The SchemaItem ${this._currentItemFullName} has an invalid 'label' attribute. It should be of type 'string'.`);\r\n }\r\n }\r\n\r\n public *getProperties(jsonObj: UnknownObject): Iterable<[string, string, UnknownObject]> {\r\n const properties = jsonObj.properties;\r\n if (undefined !== properties) {\r\n if (!Array.isArray(properties))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECClass ${this._currentItemFullName} has an invalid 'properties' attribute. It should be of type 'object[]'.`);\r\n\r\n for (const property of properties as unknown[]) {\r\n if (!isObject(property))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `An ECProperty in ${this._currentItemFullName} is an invalid JSON object.`);\r\n\r\n if (undefined === property.name)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `An ECProperty in ${this._currentItemFullName} is missing the required 'name' attribute.`);\r\n if (typeof (property.name) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `An ECProperty in ${this._currentItemFullName} has an invalid 'name' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined === property.type)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECProperty ${this._currentItemFullName}.${property.name} does not have the required 'type' attribute.`);\r\n if (typeof (property.type) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECProperty ${this._currentItemFullName}.${property.name} has an invalid 'type' attribute. It should be of type 'string'.`);\r\n if (!this.isValidPropertyType(property.type))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECProperty ${this._currentItemFullName}.${property.name} has an invalid 'type' attribute. '${property.type}' is not a valid type.`);\r\n\r\n yield [property.name, property.type, property];\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Type checks Class and returns ClassProps interface\r\n * @param jsonObj The JSON object to check if it represents a Class.\r\n */\r\n private checkClassProps(jsonObj: UnknownObject): void {\r\n this.checkSchemaItemProps(jsonObj);\r\n\r\n if (undefined !== jsonObj.modifier) {\r\n if (typeof (jsonObj.modifier) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECClass ${this._currentItemFullName} has an invalid 'modifier' attribute. It should be of type 'string'.`);\r\n }\r\n\r\n if (undefined !== jsonObj.baseClass) {\r\n if (typeof (jsonObj.baseClass) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECClass ${this._currentItemFullName} has an invalid 'baseClass' attribute. It should be of type 'string'.`);\r\n }\r\n if (undefined !== jsonObj.customAttributes) {\r\n if (!Array.isArray(jsonObj.customAttributes)) {\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECClass ${this._currentItemFullName} has an invalid 'customAttributes' attribute. It should be of type 'array'.`);\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Type checks entity class and returns EntityClassProps interface\r\n * @param jsonObj\r\n * @returns EntityClassProps\r\n */\r\n public parseEntityClass(jsonObj: UnknownObject): EntityClassProps {\r\n this.checkClassProps(jsonObj);\r\n\r\n if (undefined !== jsonObj.mixins) {\r\n if (!Array.isArray(jsonObj.mixins))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECEntityClass ${this._currentItemFullName} has an invalid 'mixins' attribute. It should be of type 'string[]'.`);\r\n for (const mixinName of jsonObj.mixins) {\r\n if (typeof (mixinName) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECEntityClass ${this._currentItemFullName} has an invalid 'mixins' attribute. It should be of type 'string[]'.`);\r\n }\r\n }\r\n return jsonObj as EntityClassProps;\r\n }\r\n\r\n /**\r\n * Type checks mixin and returns MixinProps interface\r\n * @param jsonObj\r\n * @returns MixinProps\r\n */\r\n public parseMixin(jsonObj: UnknownObject): MixinProps {\r\n this.checkClassProps(jsonObj);\r\n if (undefined === jsonObj.appliesTo)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Mixin ${this._currentItemFullName} is missing the required 'appliesTo' attribute.`);\r\n if (typeof (jsonObj.appliesTo) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Mixin ${this._currentItemFullName} has an invalid 'appliesTo' attribute. It should be of type 'string'.`);\r\n return (jsonObj as unknown) as MixinProps;\r\n }\r\n\r\n /**\r\n * Type checks custom attribute class and returns CustomAttributeClassProps interface\r\n * @param jsonObj\r\n * @returns CustomAttributeClassProps\r\n */\r\n public parseCustomAttributeClass(jsonObj: UnknownObject): CustomAttributeClassProps {\r\n this.checkClassProps(jsonObj);\r\n if (undefined === jsonObj.appliesTo)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The CustomAttributeClass ${this._currentItemFullName} is missing the required 'appliesTo' attribute.`);\r\n if (typeof (jsonObj.appliesTo) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The CustomAttributeClass ${this._currentItemFullName} has an invalid 'appliesTo' attribute. It should be of type 'string'.`);\r\n return (jsonObj as unknown) as CustomAttributeClassProps;\r\n }\r\n\r\n public parseStructClass(jsonObj: UnknownObject): StructClassProps {\r\n this.checkClassProps(jsonObj);\r\n return jsonObj as StructClassProps;\r\n }\r\n\r\n public parseUnitSystem(jsonObj: UnknownObject): UnitSystemProps {\r\n this.checkSchemaItemProps(jsonObj);\r\n return jsonObj as UnitSystemProps;\r\n }\r\n\r\n /**\r\n * Type checks Relationship Class and returns RelationshipClassProps interface\r\n * @param jsonObj\r\n * @returns RelationshipClassProps\r\n */\r\n public parseRelationshipClass(jsonObj: UnknownObject): RelationshipClassProps {\r\n this.checkClassProps(jsonObj);\r\n if (undefined === jsonObj.strength)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The RelationshipClass ${this._currentItemFullName} is missing the required 'strength' attribute.`);\r\n if (typeof (jsonObj.strength) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The RelationshipClass ${this._currentItemFullName} has an invalid 'strength' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined === jsonObj.strengthDirection)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The RelationshipClass ${this._currentItemFullName} is missing the required 'strengthDirection' attribute.`);\r\n if (typeof (jsonObj.strengthDirection) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The RelationshipClass ${this._currentItemFullName} has an invalid 'strengthDirection' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined === jsonObj.source)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The RelationshipClass ${this._currentItemFullName} is missing the required source constraint.`);\r\n if (!isObject(jsonObj.source))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The RelationshipClass ${this._currentItemFullName} has an invalid source constraint. It should be of type 'object'.`);\r\n this.checkRelationshipConstraintProps(jsonObj.source, true);\r\n\r\n if (undefined === jsonObj.target)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The RelationshipClass ${this._currentItemFullName} is missing the required target constraint.`);\r\n if (!isObject(jsonObj.target))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The RelationshipClass ${this._currentItemFullName} has an invalid target constraint. It should be of type 'object'.`);\r\n this.checkRelationshipConstraintProps(jsonObj.target, false);\r\n\r\n return (jsonObj as unknown) as RelationshipClassProps;\r\n }\r\n\r\n /**\r\n * Type checks Relationship Constraint and returns RelationshipConstraintProps interface.\r\n * @param jsonObj\r\n * @param isSource For sake of error message, is this relationship constraint a source or target\r\n * @returns RelationshipConstraintProps\r\n */\r\n private checkRelationshipConstraintProps(jsonObj: UnknownObject, isSource: boolean): void {\r\n const constraintName = `${(isSource) ? \"Source\" : \"Target\"} Constraint of ${this._currentItemFullName}`; // most specific name to call RelationshipConstraint\r\n\r\n if (undefined === jsonObj.multiplicity)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ${constraintName} is missing the required 'multiplicity' attribute.`);\r\n if (typeof (jsonObj.multiplicity) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ${constraintName} has an invalid 'multiplicity' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined === jsonObj.roleLabel)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ${constraintName} is missing the required 'roleLabel' attribute.`);\r\n if (typeof (jsonObj.roleLabel) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ${constraintName} has an invalid 'roleLabel' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined === jsonObj.polymorphic)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ${constraintName} is missing the required 'polymorphic' attribute.`);\r\n if (typeof (jsonObj.polymorphic) !== \"boolean\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ${constraintName} has an invalid 'polymorphic' attribute. It should be of type 'boolean'.`);\r\n\r\n if (undefined !== jsonObj.abstractConstraint && typeof (jsonObj.abstractConstraint) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ${constraintName} has an invalid 'abstractConstraint' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined === jsonObj.constraintClasses)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ${constraintName} is missing the required 'constraintClasses' attribute.`);\r\n if (!Array.isArray(jsonObj.constraintClasses))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ${constraintName} has an invalid 'constraintClasses' attribute. It should be of type 'string[]'.`);\r\n\r\n for (const constraintClassName of jsonObj.constraintClasses) {\r\n if (typeof (constraintClassName) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ${constraintName} has an invalid 'constraintClasses' attribute. It should be of type 'string[]'.`);\r\n }\r\n\r\n if (undefined !== jsonObj.customAttributes && !Array.isArray(jsonObj.customAttributes))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ${constraintName} has an invalid 'customAttributes' attribute. It should be of type 'array'.`);\r\n }\r\n\r\n /**\r\n * Type checks Enumeration and returns EnumerationProps interface\r\n * @param jsonObj\r\n * @returns EnumerationProps\r\n */\r\n public parseEnumeration(jsonObj: UnknownObject): EnumerationProps {\r\n this.checkSchemaItemProps(jsonObj);\r\n if (undefined === jsonObj.type)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Enumeration ${this._currentItemFullName} is missing the required 'type' attribute.`);\r\n if (typeof (jsonObj.type) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Enumeration ${this._currentItemFullName} has an invalid 'type' attribute. It should be of type 'string'.`);\r\n\r\n const isValidEnumerationType = (type: string): boolean => {\r\n type = type.toLowerCase();\r\n return (type === \"int\") ||\r\n (type === \"integer\") ||\r\n (type === \"string\");\r\n };\r\n if (!isValidEnumerationType(jsonObj.type))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Enumeration ${this._currentItemFullName} has an invalid 'type' attribute. It should be either \"int\" or \"string\".`);\r\n\r\n if (undefined !== jsonObj.isStrict) { // TODO: make required\r\n if (typeof (jsonObj.isStrict) !== \"boolean\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Enumeration ${this._currentItemFullName} has an invalid 'isStrict' attribute. It should be of type 'boolean'.`);\r\n }\r\n\r\n if (undefined === jsonObj.enumerators)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Enumeration ${this._currentItemFullName} is missing the required 'enumerators' attribute.`);\r\n if (!Array.isArray(jsonObj.enumerators))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Enumeration ${this._currentItemFullName} has an invalid 'enumerators' attribute. It should be of type 'object[]'.`);\r\n\r\n for (const enumerator of jsonObj.enumerators) {\r\n if (!isObject(enumerator))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Enumeration ${this._currentItemFullName} has an invalid 'enumerators' attribute. It should be of type 'object[]'.`);\r\n\r\n if (undefined === enumerator.value)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Enumeration ${this._currentItemFullName} has an enumerator that is missing the required attribute 'value'.`);\r\n\r\n // TODO: Should this really be handled here?\r\n const expectedType = jsonObj.type;\r\n const receivedType = (typeof (enumerator.value) === \"number\") ? \"int\" : typeof (enumerator.value);\r\n if (!expectedType.includes(receivedType)) // is receivedType a substring of expectedType? - easiest way to check \"int\" === \"int\" | \"integer\" && \"string\" === \"string\"\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Enumeration ${this._currentItemFullName} has an incompatible type. It must be \"${expectedType}\", not \"${receivedType}\".`);\r\n\r\n if (undefined === enumerator.name)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Enumeration ${this._currentItemFullName} has an enumerator that is missing the required attribute 'name'.`);\r\n if (typeof (enumerator.name) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Enumeration ${this._currentItemFullName} has an enumerator with an invalid 'name' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined !== enumerator.label) {\r\n if (typeof (enumerator.label) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Enumeration ${this._currentItemFullName} has an enumerator with an invalid 'label' attribute. It should be of type 'string'.`);\r\n }\r\n\r\n if (undefined !== enumerator.description) {\r\n if (typeof (enumerator.description) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Enumeration ${this._currentItemFullName} has an enumerator with an invalid 'description' attribute. It should be of type 'string'.`);\r\n }\r\n }\r\n\r\n return (jsonObj as unknown) as EnumerationProps;\r\n }\r\n\r\n /**\r\n * Type checks KindOfQuantity and returns KindOfQuantityProps interface\r\n * @param jsonObj\r\n * @returns KindOfQuantityProps\r\n */\r\n public parseKindOfQuantity(jsonObj: UnknownObject): KindOfQuantityProps {\r\n this.checkSchemaItemProps(jsonObj);\r\n if (undefined === jsonObj.relativeError)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The KindOfQuantity ${this._currentItemFullName} is missing the required 'relativeError' attribute.`);\r\n if (typeof (jsonObj.relativeError) !== \"number\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The KindOfQuantity ${this._currentItemFullName} has an invalid 'relativeError' attribute. It should be of type 'number'.`);\r\n\r\n if (undefined !== jsonObj.presentationUnits) {\r\n if (!Array.isArray(jsonObj.presentationUnits) && typeof (jsonObj.presentationUnits) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The KindOfQuantity ${this._currentItemFullName} has an invalid 'presentationUnits' attribute. It should be of type 'string' or 'string[]'.`);\r\n }\r\n\r\n if (undefined === jsonObj.persistenceUnit)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The KindOfQuantity ${this._currentItemFullName} is missing the required 'persistenceUnit' attribute.`);\r\n if (typeof (jsonObj.persistenceUnit) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The KindOfQuantity ${this._currentItemFullName} has an invalid 'persistenceUnit' attribute. It should be of type 'string'.`);\r\n\r\n return (jsonObj as unknown) as KindOfQuantityProps;\r\n }\r\n\r\n /**\r\n * Type checks Property Category and returns PropertyCategoryProps interface\r\n * @param jsonObj\r\n * @returns PropertyCategoryProps\r\n */\r\n public parsePropertyCategory(jsonObj: UnknownObject): PropertyCategoryProps {\r\n this.checkSchemaItemProps(jsonObj);\r\n if (undefined !== jsonObj.priority) { // TODO: make required\r\n if (typeof (jsonObj.priority) !== \"number\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The PropertyCategory ${this._currentItemFullName} has an invalid 'priority' attribute. It should be of type 'number'.`);\r\n }\r\n\r\n return (jsonObj as unknown) as PropertyCategoryProps;\r\n }\r\n\r\n /**\r\n * Type checks unit and returns UnitProps interface\r\n * @param jsonObj\r\n * @returns UnitProps\r\n */\r\n public parseUnit(jsonObj: UnknownObject): UnitProps {\r\n this.checkSchemaItemProps(jsonObj);\r\n if (undefined === jsonObj.phenomenon)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Unit ${this._currentItemFullName} does not have the required 'phenomenon' attribute.`);\r\n if (typeof (jsonObj.phenomenon) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Unit ${this._currentItemFullName} has an invalid 'phenomenon' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined === jsonObj.unitSystem)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Unit ${this._currentItemFullName} does not have the required 'unitSystem' attribute.`);\r\n if (typeof (jsonObj.unitSystem) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Unit ${this._currentItemFullName} has an invalid 'unitSystem' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined === jsonObj.definition)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Unit ${this._currentItemFullName} does not have the required 'definition' attribute.`);\r\n if (typeof (jsonObj.definition) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Unit ${this._currentItemFullName} has an invalid 'definition' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined !== jsonObj.numerator) {\r\n if (typeof (jsonObj.numerator) !== \"number\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Unit ${this._currentItemFullName} has an invalid 'numerator' attribute. It should be of type 'number'.`);\r\n }\r\n\r\n if (undefined !== jsonObj.denominator) {\r\n if (typeof (jsonObj.denominator) !== \"number\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Unit ${this._currentItemFullName} has an invalid 'denominator' attribute. It should be of type 'number'.`);\r\n }\r\n\r\n if (undefined !== jsonObj.offset) {\r\n if (typeof (jsonObj.offset) !== \"number\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Unit ${this._currentItemFullName} has an invalid 'offset' attribute. It should be of type 'number'.`);\r\n }\r\n return (jsonObj as unknown) as UnitProps;\r\n }\r\n\r\n /**\r\n * Type checks inverted unit and returns InvertedUnitProps interface\r\n * @param jsonObj\r\n * @returns InvertedUnitProps\r\n */\r\n public parseInvertedUnit(jsonObj: UnknownObject): InvertedUnitProps {\r\n this.checkSchemaItemProps(jsonObj);\r\n if (undefined === jsonObj.invertsUnit)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The InvertedUnit ${this._currentItemFullName} does not have the required 'invertsUnit' attribute.`);\r\n if (typeof (jsonObj.invertsUnit) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The InvertedUnit ${this._currentItemFullName} has an invalid 'invertsUnit' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined === jsonObj.unitSystem)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The InvertedUnit ${this._currentItemFullName} does not have the required 'unitSystem' attribute.`);\r\n if (typeof (jsonObj.unitSystem) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The InvertedUnit ${this._currentItemFullName} has an invalid 'unitSystem' attribute. It should be of type 'string'.`);\r\n\r\n return (jsonObj as unknown) as InvertedUnitProps;\r\n }\r\n\r\n /**\r\n * Type checks constant and returns ConstantProps interface\r\n * @param jsonObj\r\n * @returns ConstantProps\r\n */\r\n public parseConstant(jsonObj: UnknownObject): ConstantProps {\r\n this.checkSchemaItemProps(jsonObj);\r\n if (undefined === jsonObj.phenomenon)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Constant ${this._currentItemFullName} does not have the required 'phenomenon' attribute.`);\r\n if (typeof (jsonObj.phenomenon) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Constant ${this._currentItemFullName} has an invalid 'phenomenon' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined === jsonObj.definition)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Constant ${this._currentItemFullName} does not have the required 'definition' attribute.`);\r\n if (typeof (jsonObj.definition) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Constant ${this._currentItemFullName} has an invalid 'definition' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined !== jsonObj.numerator) {\r\n if (typeof (jsonObj.numerator) !== \"number\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Constant ${this._currentItemFullName} has an invalid 'numerator' attribute. It should be of type 'number'.`);\r\n }\r\n\r\n if (undefined !== jsonObj.denominator) {\r\n if (typeof (jsonObj.denominator) !== \"number\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Constant ${this._currentItemFullName} has an invalid 'denominator' attribute. It should be of type 'number'.`);\r\n }\r\n\r\n return (jsonObj as unknown) as ConstantProps;\r\n }\r\n\r\n /**\r\n * Type checks phenomenon and returns PhenomenonProps interface\r\n * @param jsonObj\r\n * @returns PhenomenonProps\r\n */\r\n public parsePhenomenon(jsonObj: UnknownObject): PhenomenonProps {\r\n this.checkSchemaItemProps(jsonObj);\r\n if (undefined === jsonObj.definition)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Phenomenon ${this._currentItemFullName} does not have the required 'definition' attribute.`);\r\n if (typeof (jsonObj.definition) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Phenomenon ${this._currentItemFullName} has an invalid 'definition' attribute. It should be of type 'string'.`);\r\n return (jsonObj as unknown) as PhenomenonProps;\r\n }\r\n\r\n /**\r\n * Type checks format and returns FormatProps interface\r\n * @param jsonObj\r\n * @returns FormatProps\r\n */\r\n public parseFormat(jsonObj: UnknownObject): FormatProps {\r\n this.checkSchemaItemProps(jsonObj);\r\n if (undefined === jsonObj.type)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Format ${this._currentItemFullName} does not have the required 'type' attribute.`);\r\n if (typeof (jsonObj.type) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Format ${this._currentItemFullName} has an invalid 'type' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined !== jsonObj.precision && typeof (jsonObj.precision) !== \"number\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Format ${this._currentItemFullName} has an invalid 'precision' attribute. It should be of type 'number'.`);\r\n\r\n if (undefined !== jsonObj.roundFactor && typeof (jsonObj.roundFactor) !== \"number\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Format ${this._currentItemFullName} has an invalid 'roundFactor' attribute. It should be of type 'number'.`);\r\n\r\n if (undefined !== jsonObj.minWidth && typeof (jsonObj.minWidth) !== \"number\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Format ${this._currentItemFullName} has an invalid 'minWidth' attribute. It should be of type 'number'.`);\r\n\r\n if (undefined !== jsonObj.showSignOption && typeof (jsonObj.showSignOption) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Format ${this._currentItemFullName} has an invalid 'showSignOption' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined !== jsonObj.formatTraits) {\r\n if (!Array.isArray(jsonObj.formatTraits) && typeof (jsonObj.formatTraits) !== \"string\") // must be either an array of strings or a string\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Format ${this._currentItemFullName} has an invalid 'formatTraits' attribute. It should be of type 'string' or 'string[]'.`);\r\n }\r\n\r\n if (undefined !== jsonObj.decimalSeparator && typeof (jsonObj.decimalSeparator) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Format ${this._currentItemFullName} has an invalid 'decimalSeparator' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined !== jsonObj.thousandSeparator && typeof (jsonObj.thousandSeparator) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Format ${this._currentItemFullName} has an invalid 'thousandSeparator' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined !== jsonObj.uomSeparator && typeof (jsonObj.uomSeparator) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Format ${this._currentItemFullName} has an invalid 'uomSeparator' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined !== jsonObj.scientificType && typeof (jsonObj.scientificType) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Format ${this._currentItemFullName} has an invalid 'scientificType' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined !== jsonObj.stationOffsetSize && typeof (jsonObj.stationOffsetSize) !== \"number\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Format ${this._currentItemFullName} has an invalid 'stationOffsetSize' attribute. It should be of type 'number'.`);\r\n\r\n if (undefined !== jsonObj.stationSeparator && typeof (jsonObj.stationSeparator) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Format ${this._currentItemFullName} has an invalid 'stationSeparator' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined !== jsonObj.composite) { // optional\r\n if (!isObject(jsonObj.composite))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Format ${this._currentItemFullName} has an invalid 'composite' object.`);\r\n if (undefined !== jsonObj.composite.includeZero && typeof (jsonObj.composite.includeZero) !== \"boolean\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Format ${this._currentItemFullName} has a Composite with an invalid 'includeZero' attribute. It should be of type 'boolean'.`);\r\n\r\n if (undefined !== jsonObj.composite.spacer && typeof (jsonObj.composite.spacer) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Format ${this._currentItemFullName} has a Composite with an invalid 'spacer' attribute. It should be of type 'string'.`);\r\n\r\n // if composite is defined\r\n if (undefined === jsonObj.composite.units)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Format ${this._currentItemFullName} has an invalid 'Composite' attribute. It should have 1-4 units.`);\r\n if (!Array.isArray(jsonObj.composite.units))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Format ${this._currentItemFullName} has a Composite with an invalid 'units' attribute. It should be of type 'object[]'.`);\r\n\r\n for (let i = 0; i < jsonObj.composite.units.length; i++) {\r\n if (!isObject(jsonObj.composite.units[i]))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Format ${this._currentItemFullName} has a Composite with an invalid 'units' attribute. It should be of type 'object[]'.`);\r\n\r\n if (undefined === jsonObj.composite.units[i].name) // required\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Format ${this._currentItemFullName} has a Composite with an invalid 'units' attribute. The object at position ${i} is missing the required 'name' attribute.`);\r\n if (typeof (jsonObj.composite.units[i].name) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Format ${this._currentItemFullName} has a Composite with an invalid 'units' attribute. The object at position ${i} has an invalid 'name' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined !== jsonObj.composite.units[i].label && typeof (jsonObj.composite.units[i].label) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Format ${this._currentItemFullName} has a Composite with an invalid 'units' attribute. The object at position ${i} has an invalid 'label' attribute. It should be of type 'string'.`);\r\n }\r\n }\r\n return (jsonObj as unknown) as FormatProps;\r\n }\r\n\r\n private isValidPropertyType(type: string): boolean {\r\n type = type.toLowerCase();\r\n return (type === \"primitiveproperty\") ||\r\n (type === \"structproperty\") ||\r\n (type === \"primitivearrayproperty\") ||\r\n (type === \"structarrayproperty\") ||\r\n (type === \"navigationproperty\");\r\n }\r\n\r\n /**\r\n * Type checks property and returns PropertyProps interface\r\n * @param jsonObj\r\n * @returns PropertyProps\r\n */\r\n private checkPropertyProps(jsonObj: UnknownObject): PropertyProps {\r\n const propName = jsonObj.name;\r\n\r\n if (undefined !== jsonObj.label && typeof (jsonObj.label) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECProperty ${this._currentItemFullName}.${propName} has an invalid 'label' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined !== jsonObj.description && typeof (jsonObj.description) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECProperty ${this._currentItemFullName}.${propName} has an invalid 'description' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined !== jsonObj.priority && typeof (jsonObj.priority) !== \"number\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECProperty ${this._currentItemFullName}.${propName} has an invalid 'priority' attribute. It should be of type 'number'.`);\r\n\r\n if (undefined !== jsonObj.isReadOnly && typeof (jsonObj.isReadOnly) !== \"boolean\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECProperty ${this._currentItemFullName}.${propName} has an invalid 'isReadOnly' attribute. It should be of type 'boolean'.`);\r\n\r\n if (undefined !== jsonObj.category && typeof (jsonObj.category) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECProperty ${this._currentItemFullName}.${propName} has an invalid 'category' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined !== jsonObj.kindOfQuantity && typeof (jsonObj.kindOfQuantity) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECProperty ${this._currentItemFullName}.${propName} has an invalid 'kindOfQuantity' attribute. It should be of type 'string'.`);\r\n\r\n if (undefined !== jsonObj.inherited && typeof (jsonObj.inherited) !== \"boolean\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECProperty ${this._currentItemFullName}.${propName} has an invalid 'inherited' attribute. It should be of type 'boolean'.`);\r\n\r\n if (undefined !== jsonObj.customAttributes && !Array.isArray(jsonObj.customAttributes))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECProperty ${this._currentItemFullName}.${propName} has an invalid 'customAttributes' attribute. It should be of type 'array'.`);\r\n return (jsonObj as unknown) as PropertyProps;\r\n }\r\n\r\n private checkPropertyTypename(jsonObj: UnknownObject): void {\r\n const propName = jsonObj.name;\r\n if (undefined === jsonObj.typeName)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECProperty ${this._currentItemFullName}.${propName} is missing the required 'typeName' attribute.`);\r\n if (typeof (jsonObj.typeName) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECProperty ${this._currentItemFullName}.${propName} has an invalid 'typeName' attribute. It should be of type 'string'.`);\r\n }\r\n\r\n private checkPropertyMinAndMaxOccurs(jsonObj: UnknownObject): void {\r\n const propName = jsonObj.name;\r\n if (undefined !== jsonObj.minOccurs && typeof (jsonObj.minOccurs) !== \"number\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECProperty ${this._currentItemFullName}.${propName} has an invalid 'minOccurs' attribute. It should be of type 'number'.`);\r\n if (undefined !== jsonObj.maxOccurs && typeof (jsonObj.maxOccurs) !== \"number\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECProperty ${this._currentItemFullName}.${propName} has an invalid 'maxOccurs' attribute. It should be of type 'number'.`);\r\n }\r\n\r\n /**\r\n * Type checks PrimitiveOrEnumProperty and returns PrimitiveOrEnumPropertyBaseProps interface\r\n * @param jsonObj\r\n * @returns PrimitiveOrEnumPropertyBaseProps\r\n */\r\n private checkPrimitiveOrEnumPropertyBaseProps(jsonObj: UnknownObject): PrimitiveOrEnumPropertyBaseProps {\r\n this.checkPropertyProps(jsonObj);\r\n this.checkPropertyTypename(jsonObj);\r\n const propName = jsonObj.name;\r\n\r\n if (undefined !== jsonObj.minLength && typeof (jsonObj.minLength) !== \"number\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECProperty ${this._currentItemFullName}.${propName} has an invalid 'minLength' attribute. It should be of type 'number'.`);\r\n\r\n if (undefined !== jsonObj.maxLength && typeof (jsonObj.maxLength) !== \"number\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECProperty ${this._currentItemFullName}.${propName} has an invalid 'maxLength' attribute. It should be of type 'number'.`);\r\n\r\n if (undefined !== jsonObj.minValue && typeof (jsonObj.minValue) !== \"number\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECProperty ${this._currentItemFullName}.${propName} has an invalid 'minValue' attribute. It should be of type 'number'.`);\r\n\r\n if (undefined !== jsonObj.maxValue && typeof (jsonObj.maxValue) !== \"number\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECProperty ${this._currentItemFullName}.${propName} has an invalid 'maxValue' attribute. It should be of type 'number'.`);\r\n\r\n if (undefined !== jsonObj.extendedTypeName && typeof (jsonObj.extendedTypeName) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ECProperty ${this._currentItemFullName}.${propName} has an invalid 'extendedTypeName' attribute. It should be of type 'string'.`);\r\n return (jsonObj as unknown) as PrimitiveOrEnumPropertyBaseProps;\r\n }\r\n\r\n /**\r\n * Type checks PrimitiveProperty and returns PrimitivePropertyProps interface\r\n * @param jsonObj\r\n * @returns PrimitivePropertyProps\r\n */\r\n public parsePrimitiveProperty(jsonObj: UnknownObject): PrimitivePropertyProps {\r\n this.checkPrimitiveOrEnumPropertyBaseProps(jsonObj);\r\n return (jsonObj as unknown) as PrimitivePropertyProps;\r\n }\r\n\r\n /**\r\n * Type checks StructProperty and returns StructPropertyProps interface\r\n * @param jsonObj\r\n * @returns StructPropertyProps\r\n */\r\n public parseStructProperty(jsonObj: UnknownObject): StructPropertyProps {\r\n this.checkPropertyProps(jsonObj);\r\n this.checkPropertyTypename(jsonObj);\r\n return (jsonObj as unknown) as StructPropertyProps;\r\n }\r\n\r\n /**\r\n * Type checks PrimitiveArrayProperty and returns PrimitiveArrayPropertyProps interface\r\n * @param jsonObj\r\n * @returns PrimitiveArrayPropertyProps\r\n */\r\n public parsePrimitiveArrayProperty(jsonObj: UnknownObject): PrimitiveArrayPropertyProps {\r\n this.checkPrimitiveOrEnumPropertyBaseProps(jsonObj);\r\n this.checkPropertyMinAndMaxOccurs(jsonObj);\r\n return (jsonObj as unknown) as PrimitiveArrayPropertyProps;\r\n }\r\n\r\n /**\r\n * Type checks StructArrayProperty and returns StructArrayPropertyProps interface\r\n * @param jsonObj\r\n * @returns StructArrayPropertyProps\r\n */\r\n public parseStructArrayProperty(jsonObj: UnknownObject): StructArrayPropertyProps {\r\n this.checkPropertyProps(jsonObj);\r\n this.checkPropertyTypename(jsonObj);\r\n this.checkPropertyMinAndMaxOccurs(jsonObj);\r\n return (jsonObj as unknown) as StructArrayPropertyProps;\r\n }\r\n\r\n /**\r\n * Type checks NavigationProperty and returns NavigationPropertyProps interface\r\n * @param jsonObj\r\n * @returns NavigationPropertyProps\r\n */\r\n public parseNavigationProperty(jsonObj: UnknownObject): NavigationPropertyProps {\r\n this.checkPropertyProps(jsonObj);\r\n const fullname = `${this._currentItemFullName}.${jsonObj.name}`;\r\n\r\n if (undefined === jsonObj.relationshipName)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Navigation Property ${fullname} is missing the required 'relationshipName' property.`);\r\n if (typeof (jsonObj.relationshipName) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Navigation Property ${fullname} has an invalid 'relationshipName' property. It should be of type 'string'.`);\r\n\r\n if (undefined === jsonObj.direction)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Navigation Property ${fullname} is missing the required 'direction' property.`);\r\n if (typeof (jsonObj.direction) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The Navigation Property ${fullname} has an invalid 'direction' property. It should be of type 'string'.`);\r\n\r\n return (jsonObj as unknown) as NavigationPropertyProps;\r\n }\r\n\r\n public getSchemaCustomAttributeProviders(): Iterable<CAProviderTuple> {\r\n return this.getCustomAttributeProviders(this._rawSchema, \"Schema\", this._schemaName);\r\n }\r\n\r\n public getClassCustomAttributeProviders(jsonObj: UnknownObject): Iterable<CAProviderTuple> {\r\n return this.getCustomAttributeProviders(jsonObj, \"ECClass\", this._currentItemFullName);\r\n }\r\n\r\n public getPropertyCustomAttributeProviders(jsonObj: UnknownObject): Iterable<CAProviderTuple> {\r\n return this.getCustomAttributeProviders(jsonObj, \"ECProperty\", `${this._currentItemFullName}.${jsonObj.name}`);\r\n }\r\n\r\n public getRelationshipConstraintCustomAttributeProviders(jsonObj: UnknownObject): [Iterable<CAProviderTuple> /* source */, Iterable<CAProviderTuple> /* target */] {\r\n const sourceCustomAttributes = this.getCustomAttributeProviders(jsonObj.source as UnknownObject, \"Source Constraint of\", this._currentItemFullName);\r\n const targetCustomAttributes = this.getCustomAttributeProviders(jsonObj.target as UnknownObject, \"Target Constraint of\", this._currentItemFullName);\r\n return [sourceCustomAttributes, targetCustomAttributes];\r\n }\r\n\r\n private *getCustomAttributeProviders(jsonObj: UnknownObject, type: string, name?: string): Iterable<CAProviderTuple> {\r\n if (undefined !== jsonObj.customAttributes) {\r\n if (!Array.isArray(jsonObj.customAttributes))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ${type} ${name} has an invalid 'customAttributes' attribute. It should be of type 'object[]'.`);\r\n\r\n for (const instance of jsonObj.customAttributes) {\r\n if (!isObject(instance) || Array.isArray(instance))\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `The ${type} ${name} has an invalid 'customAttributes' attribute. It should be of type 'object[]'.`);\r\n if (undefined === instance.className)\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `A CustomAttribute in ${name}.customAttributes is missing the required 'className' attribute.`);\r\n if (typeof (instance.className) !== \"string\")\r\n throw new ECObjectsError(ECObjectsStatus.InvalidECJson, `A CustomAttribute in ${name}.customAttributes has an invalid 'className' attribute. It should be of type 'string'.`);\r\n\r\n const provider = (_caClass: CustomAttributeClass) => {\r\n return instance as CustomAttribute;\r\n };\r\n\r\n const caTuple: CAProviderTuple = [instance.className, provider];\r\n yield caTuple;\r\n }\r\n }\r\n }\r\n}\r\n"]}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JsonProps.d.ts","sourceRoot":"","sources":["../../../src/Deserialization/JsonProps.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;GAEG;AACH,oBAAY,gBAAgB,GAAG,sBAAsB,GAAG,mBAAmB,GAAG,2BAA2B,GAAG,wBAAwB,GAAG,uBAAuB,CAAC;AAC/J;;GAEG;AACH,oBAAY,aAAa,GAAG,gBAAgB,GAAG,UAAU,GAAG,yBAAyB,GAAG,sBAAsB,CAAC;AAC/G;;GAEG;AACH,oBAAY,kBAAkB,GAAG,aAAa,GAAG,gBAAgB,GAAG,mBAAmB,GAAG,qBAAqB,GAAG,SAAS,GAAG,iBAAiB,GAAG,aAAa,GAAG,eAAe,GAAG,WAAW,CAAC;AAEhM;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EA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