@itwin/ecschema-metadata 4.0.0-dev.7 → 4.0.0-dev.70
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/CHANGELOG.md +13 -3
- package/lib/cjs/Constants.d.ts +23 -23
- package/lib/cjs/Constants.js +33 -33
- package/lib/cjs/Constants.js.map +1 -1
- package/lib/cjs/Context.d.ts +139 -139
- package/lib/cjs/Context.js +204 -204
- package/lib/cjs/DelayedPromise.d.ts +88 -88
- package/lib/cjs/DelayedPromise.d.ts.map +1 -1
- package/lib/cjs/DelayedPromise.js +91 -91
- package/lib/cjs/DelayedPromise.js.map +1 -1
- package/lib/cjs/Deserialization/AbstractParser.d.ts +45 -45
- package/lib/cjs/Deserialization/AbstractParser.d.ts.map +1 -1
- package/lib/cjs/Deserialization/AbstractParser.js +11 -11
- package/lib/cjs/Deserialization/Helper.d.ts +251 -251
- package/lib/cjs/Deserialization/Helper.js +843 -843
- package/lib/cjs/Deserialization/JsonParser.d.ts +165 -165
- package/lib/cjs/Deserialization/JsonParser.js +680 -680
- package/lib/cjs/Deserialization/JsonProps.d.ts +282 -282
- package/lib/cjs/Deserialization/JsonProps.d.ts.map +1 -1
- package/lib/cjs/Deserialization/JsonProps.js +9 -9
- package/lib/cjs/Deserialization/SchemaGraphUtil.d.ts +34 -34
- package/lib/cjs/Deserialization/SchemaGraphUtil.js +77 -77
- package/lib/cjs/Deserialization/XmlParser.d.ts +85 -85
- package/lib/cjs/Deserialization/XmlParser.js +973 -973
- package/lib/cjs/Deserialization/XmlSerializationUtils.d.ts +54 -54
- package/lib/cjs/Deserialization/XmlSerializationUtils.js +174 -174
- package/lib/cjs/ECName.d.ts +30 -30
- package/lib/cjs/ECName.js +85 -85
- package/lib/cjs/ECObjects.d.ts +162 -162
- package/lib/cjs/ECObjects.js +453 -453
- package/lib/cjs/Exception.d.ts +43 -43
- package/lib/cjs/Exception.js +84 -84
- package/lib/cjs/Interfaces.d.ts +66 -66
- package/lib/cjs/Interfaces.d.ts.map +1 -1
- package/lib/cjs/Interfaces.js +9 -9
- package/lib/cjs/Metadata/Class.d.ts +243 -243
- package/lib/cjs/Metadata/Class.js +558 -558
- package/lib/cjs/Metadata/Class.js.map +1 -1
- package/lib/cjs/Metadata/Constant.d.ts +64 -64
- package/lib/cjs/Metadata/Constant.js +123 -123
- package/lib/cjs/Metadata/Constant.js.map +1 -1
- package/lib/cjs/Metadata/CustomAttribute.d.ts +23 -23
- package/lib/cjs/Metadata/CustomAttribute.js +27 -27
- package/lib/cjs/Metadata/CustomAttributeClass.d.ts +39 -39
- package/lib/cjs/Metadata/CustomAttributeClass.js +68 -68
- package/lib/cjs/Metadata/CustomAttributeClass.js.map +1 -1
- package/lib/cjs/Metadata/EntityClass.d.ts +77 -77
- package/lib/cjs/Metadata/EntityClass.js +230 -230
- package/lib/cjs/Metadata/Enumeration.d.ts +86 -86
- package/lib/cjs/Metadata/Enumeration.d.ts.map +1 -1
- package/lib/cjs/Metadata/Enumeration.js +159 -159
- package/lib/cjs/Metadata/Enumeration.js.map +1 -1
- package/lib/cjs/Metadata/Format.d.ts +98 -98
- package/lib/cjs/Metadata/Format.js +242 -242
- package/lib/cjs/Metadata/InvertedUnit.d.ts +49 -49
- package/lib/cjs/Metadata/InvertedUnit.js +97 -97
- package/lib/cjs/Metadata/KindOfQuantity.d.ts +65 -65
- package/lib/cjs/Metadata/KindOfQuantity.js +225 -225
- package/lib/cjs/Metadata/KindOfQuantity.js.map +1 -1
- package/lib/cjs/Metadata/Mixin.d.ts +54 -54
- package/lib/cjs/Metadata/Mixin.js +113 -113
- package/lib/cjs/Metadata/Mixin.js.map +1 -1
- package/lib/cjs/Metadata/OverrideFormat.d.ts +55 -55
- package/lib/cjs/Metadata/OverrideFormat.js +88 -88
- package/lib/cjs/Metadata/Phenomenon.d.ts +33 -33
- package/lib/cjs/Metadata/Phenomenon.js +59 -59
- package/lib/cjs/Metadata/Property.d.ts +197 -197
- package/lib/cjs/Metadata/Property.d.ts.map +1 -1
- package/lib/cjs/Metadata/Property.js +491 -491
- package/lib/cjs/Metadata/Property.js.map +1 -1
- package/lib/cjs/Metadata/PropertyCategory.d.ts +39 -39
- package/lib/cjs/Metadata/PropertyCategory.js +61 -61
- package/lib/cjs/Metadata/PropertyCategory.js.map +1 -1
- package/lib/cjs/Metadata/RelationshipClass.d.ts +152 -152
- package/lib/cjs/Metadata/RelationshipClass.js +349 -349
- package/lib/cjs/Metadata/RelationshipClass.js.map +1 -1
- package/lib/cjs/Metadata/Schema.d.ts +291 -291
- package/lib/cjs/Metadata/Schema.d.ts.map +1 -1
- package/lib/cjs/Metadata/Schema.js +520 -520
- package/lib/cjs/Metadata/Schema.js.map +1 -1
- package/lib/cjs/Metadata/SchemaItem.d.ts +61 -61
- package/lib/cjs/Metadata/SchemaItem.js +136 -136
- package/lib/cjs/Metadata/Unit.d.ts +76 -76
- package/lib/cjs/Metadata/Unit.js +162 -162
- package/lib/cjs/Metadata/Unit.js.map +1 -1
- package/lib/cjs/Metadata/UnitSystem.d.ts +20 -20
- package/lib/cjs/Metadata/UnitSystem.js +29 -29
- package/lib/cjs/PropertyTypes.d.ts +49 -49
- package/lib/cjs/PropertyTypes.js +91 -91
- package/lib/cjs/PropertyTypes.js.map +1 -1
- package/lib/cjs/SchemaJsonLocater.d.ts +34 -34
- package/lib/cjs/SchemaJsonLocater.d.ts.map +1 -1
- package/lib/cjs/SchemaJsonLocater.js +42 -42
- package/lib/cjs/SchemaKey.d.ts +110 -110
- package/lib/cjs/SchemaKey.js +219 -219
- package/lib/cjs/SchemaLoader.d.ts +23 -23
- package/lib/cjs/SchemaLoader.js +47 -47
- package/lib/cjs/SchemaPartVisitorDelegate.d.ts +274 -274
- package/lib/cjs/SchemaPartVisitorDelegate.js +212 -212
- package/lib/cjs/UnitConversion/Graph.d.ts +34 -34
- package/lib/cjs/UnitConversion/Graph.js +83 -83
- package/lib/cjs/UnitConversion/Parser.d.ts +8 -8
- package/lib/cjs/UnitConversion/Parser.js +42 -42
- package/lib/cjs/UnitConversion/UnitConversion.d.ts +45 -45
- package/lib/cjs/UnitConversion/UnitConversion.js +77 -77
- package/lib/cjs/UnitConversion/UnitConversion.js.map +1 -1
- package/lib/cjs/UnitConversion/UnitConverter.d.ts +39 -39
- package/lib/cjs/UnitConversion/UnitConverter.js +116 -116
- package/lib/cjs/UnitConversion/UnitTree.d.ts +43 -43
- package/lib/cjs/UnitConversion/UnitTree.js +169 -169
- package/lib/cjs/UnitProvider/SchemaUnitProvider.d.ts +77 -77
- package/lib/cjs/UnitProvider/SchemaUnitProvider.js +234 -236
- package/lib/cjs/UnitProvider/SchemaUnitProvider.js.map +1 -1
- package/lib/cjs/Validation/SchemaWalker.d.ts +23 -23
- package/lib/cjs/Validation/SchemaWalker.js +53 -53
- package/lib/cjs/ecschema-metadata.d.ts +51 -51
- package/lib/cjs/ecschema-metadata.js +100 -96
- package/lib/cjs/ecschema-metadata.js.map +1 -1
- package/lib/cjs/utils/SchemaGraph.d.ts +25 -25
- package/lib/cjs/utils/SchemaGraph.js +65 -65
- package/package.json +11 -11
|
@@ -1,166 +1,166 @@
|
|
|
1
|
-
import { AbstractParser, CAProviderTuple } from "./AbstractParser";
|
|
2
|
-
import { ConstantProps, CustomAttributeClassProps, EntityClassProps, EnumerationProps, FormatProps, InvertedUnitProps, KindOfQuantityProps, MixinProps, NavigationPropertyProps, PhenomenonProps, PrimitiveArrayPropertyProps, PrimitivePropertyProps, PropertyCategoryProps, RelationshipClassProps, SchemaProps, SchemaReferenceProps, StructArrayPropertyProps, StructClassProps, StructPropertyProps, UnitProps, UnitSystemProps } from "./JsonProps";
|
|
3
|
-
interface UnknownObject {
|
|
4
|
-
readonly [name: string]: unknown;
|
|
5
|
-
}
|
|
6
|
-
/** @internal */
|
|
7
|
-
export declare class JsonParser extends AbstractParser<UnknownObject> {
|
|
8
|
-
private _rawSchema;
|
|
9
|
-
private _schemaName?;
|
|
10
|
-
private _currentItemFullName?;
|
|
11
|
-
constructor(rawSchema: Readonly<unknown>);
|
|
12
|
-
/**
|
|
13
|
-
* Type checks Schema and returns SchemaProps interface
|
|
14
|
-
* @param this._rawSchema
|
|
15
|
-
* @returns SchemaProps
|
|
16
|
-
*/
|
|
17
|
-
parseSchema(): SchemaProps;
|
|
18
|
-
getReferences(): Iterable<SchemaReferenceProps>;
|
|
19
|
-
private checkSchemaReference;
|
|
20
|
-
getItems(): Iterable<[string, string, UnknownObject]>;
|
|
21
|
-
findItem(itemName: string): [string, string, UnknownObject] | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* Type checks all Schema Item attributes.
|
|
24
|
-
* @param jsonObj The JSON object to check if it represents a Schema Item.
|
|
25
|
-
*/
|
|
26
|
-
private checkSchemaItemProps;
|
|
27
|
-
getProperties(jsonObj: UnknownObject, itemName: string): Iterable<[string, string, UnknownObject]>;
|
|
28
|
-
/**
|
|
29
|
-
* Type checks Class and returns ClassProps interface
|
|
30
|
-
* @param jsonObj The JSON object to check if it represents a Class.
|
|
31
|
-
*/
|
|
32
|
-
private checkClassProps;
|
|
33
|
-
/**
|
|
34
|
-
* Type checks entity class and returns EntityClassProps interface
|
|
35
|
-
* @param jsonObj
|
|
36
|
-
* @returns EntityClassProps
|
|
37
|
-
*/
|
|
38
|
-
parseEntityClass(jsonObj: UnknownObject): EntityClassProps;
|
|
39
|
-
/**
|
|
40
|
-
* Type checks mixin and returns MixinProps interface
|
|
41
|
-
* @param jsonObj
|
|
42
|
-
* @returns MixinProps
|
|
43
|
-
*/
|
|
44
|
-
parseMixin(jsonObj: UnknownObject): MixinProps;
|
|
45
|
-
/**
|
|
46
|
-
* Type checks custom attribute class and returns CustomAttributeClassProps interface
|
|
47
|
-
* @param jsonObj
|
|
48
|
-
* @returns CustomAttributeClassProps
|
|
49
|
-
*/
|
|
50
|
-
parseCustomAttributeClass(jsonObj: UnknownObject): CustomAttributeClassProps;
|
|
51
|
-
parseStructClass(jsonObj: UnknownObject): StructClassProps;
|
|
52
|
-
parseUnitSystem(jsonObj: UnknownObject): UnitSystemProps;
|
|
53
|
-
/**
|
|
54
|
-
* Type checks Relationship Class and returns RelationshipClassProps interface
|
|
55
|
-
* @param jsonObj
|
|
56
|
-
* @returns RelationshipClassProps
|
|
57
|
-
*/
|
|
58
|
-
parseRelationshipClass(jsonObj: UnknownObject): RelationshipClassProps;
|
|
59
|
-
/**
|
|
60
|
-
* Type checks Relationship Constraint and returns RelationshipConstraintProps interface.
|
|
61
|
-
* @param jsonObj
|
|
62
|
-
* @param isSource For sake of error message, is this relationship constraint a source or target
|
|
63
|
-
* @returns RelationshipConstraintProps
|
|
64
|
-
*/
|
|
65
|
-
private checkRelationshipConstraintProps;
|
|
66
|
-
/**
|
|
67
|
-
* Type checks Enumeration and returns EnumerationProps interface
|
|
68
|
-
* @param jsonObj
|
|
69
|
-
* @returns EnumerationProps
|
|
70
|
-
*/
|
|
71
|
-
parseEnumeration(jsonObj: UnknownObject): EnumerationProps;
|
|
72
|
-
/**
|
|
73
|
-
* Type checks KindOfQuantity and returns KindOfQuantityProps interface
|
|
74
|
-
* @param jsonObj
|
|
75
|
-
* @returns KindOfQuantityProps
|
|
76
|
-
*/
|
|
77
|
-
parseKindOfQuantity(jsonObj: UnknownObject): KindOfQuantityProps;
|
|
78
|
-
/**
|
|
79
|
-
* Type checks Property Category and returns PropertyCategoryProps interface
|
|
80
|
-
* @param jsonObj
|
|
81
|
-
* @returns PropertyCategoryProps
|
|
82
|
-
*/
|
|
83
|
-
parsePropertyCategory(jsonObj: UnknownObject): PropertyCategoryProps;
|
|
84
|
-
/**
|
|
85
|
-
* Type checks unit and returns UnitProps interface
|
|
86
|
-
* @param jsonObj
|
|
87
|
-
* @returns UnitProps
|
|
88
|
-
*/
|
|
89
|
-
parseUnit(jsonObj: UnknownObject): UnitProps;
|
|
90
|
-
/**
|
|
91
|
-
* Type checks inverted unit and returns InvertedUnitProps interface
|
|
92
|
-
* @param jsonObj
|
|
93
|
-
* @returns InvertedUnitProps
|
|
94
|
-
*/
|
|
95
|
-
parseInvertedUnit(jsonObj: UnknownObject): InvertedUnitProps;
|
|
96
|
-
/**
|
|
97
|
-
* Type checks constant and returns ConstantProps interface
|
|
98
|
-
* @param jsonObj
|
|
99
|
-
* @returns ConstantProps
|
|
100
|
-
*/
|
|
101
|
-
parseConstant(jsonObj: UnknownObject): ConstantProps;
|
|
102
|
-
/**
|
|
103
|
-
* Type checks phenomenon and returns PhenomenonProps interface
|
|
104
|
-
* @param jsonObj
|
|
105
|
-
* @returns PhenomenonProps
|
|
106
|
-
*/
|
|
107
|
-
parsePhenomenon(jsonObj: UnknownObject): PhenomenonProps;
|
|
108
|
-
/**
|
|
109
|
-
* Type checks format and returns FormatProps interface
|
|
110
|
-
* @param jsonObj
|
|
111
|
-
* @returns FormatProps
|
|
112
|
-
*/
|
|
113
|
-
parseFormat(jsonObj: UnknownObject): FormatProps;
|
|
114
|
-
private isValidPropertyType;
|
|
115
|
-
/**
|
|
116
|
-
* Type checks property and returns PropertyProps interface
|
|
117
|
-
* @param jsonObj
|
|
118
|
-
* @returns PropertyProps
|
|
119
|
-
*/
|
|
120
|
-
private checkPropertyProps;
|
|
121
|
-
private checkPropertyTypename;
|
|
122
|
-
private checkPropertyMinAndMaxOccurs;
|
|
123
|
-
/**
|
|
124
|
-
* Type checks PrimitiveOrEnumProperty and returns PrimitiveOrEnumPropertyBaseProps interface
|
|
125
|
-
* @param jsonObj
|
|
126
|
-
* @returns PrimitiveOrEnumPropertyBaseProps
|
|
127
|
-
*/
|
|
128
|
-
private checkPrimitiveOrEnumPropertyBaseProps;
|
|
129
|
-
/**
|
|
130
|
-
* Type checks PrimitiveProperty and returns PrimitivePropertyProps interface
|
|
131
|
-
* @param jsonObj
|
|
132
|
-
* @returns PrimitivePropertyProps
|
|
133
|
-
*/
|
|
134
|
-
parsePrimitiveProperty(jsonObj: UnknownObject): PrimitivePropertyProps;
|
|
135
|
-
/**
|
|
136
|
-
* Type checks StructProperty and returns StructPropertyProps interface
|
|
137
|
-
* @param jsonObj
|
|
138
|
-
* @returns StructPropertyProps
|
|
139
|
-
*/
|
|
140
|
-
parseStructProperty(jsonObj: UnknownObject): StructPropertyProps;
|
|
141
|
-
/**
|
|
142
|
-
* Type checks PrimitiveArrayProperty and returns PrimitiveArrayPropertyProps interface
|
|
143
|
-
* @param jsonObj
|
|
144
|
-
* @returns PrimitiveArrayPropertyProps
|
|
145
|
-
*/
|
|
146
|
-
parsePrimitiveArrayProperty(jsonObj: UnknownObject): PrimitiveArrayPropertyProps;
|
|
147
|
-
/**
|
|
148
|
-
* Type checks StructArrayProperty and returns StructArrayPropertyProps interface
|
|
149
|
-
* @param jsonObj
|
|
150
|
-
* @returns StructArrayPropertyProps
|
|
151
|
-
*/
|
|
152
|
-
parseStructArrayProperty(jsonObj: UnknownObject): StructArrayPropertyProps;
|
|
153
|
-
/**
|
|
154
|
-
* Type checks NavigationProperty and returns NavigationPropertyProps interface
|
|
155
|
-
* @param jsonObj
|
|
156
|
-
* @returns NavigationPropertyProps
|
|
157
|
-
*/
|
|
158
|
-
parseNavigationProperty(jsonObj: UnknownObject): NavigationPropertyProps;
|
|
159
|
-
getSchemaCustomAttributeProviders(): Iterable<CAProviderTuple>;
|
|
160
|
-
getClassCustomAttributeProviders(jsonObj: UnknownObject): Iterable<CAProviderTuple>;
|
|
161
|
-
getPropertyCustomAttributeProviders(jsonObj: UnknownObject): Iterable<CAProviderTuple>;
|
|
162
|
-
getRelationshipConstraintCustomAttributeProviders(jsonObj: UnknownObject): [Iterable<CAProviderTuple>, Iterable<CAProviderTuple>];
|
|
163
|
-
private getCustomAttributeProviders;
|
|
164
|
-
}
|
|
165
|
-
export {};
|
|
1
|
+
import { AbstractParser, CAProviderTuple } from "./AbstractParser";
|
|
2
|
+
import { ConstantProps, CustomAttributeClassProps, EntityClassProps, EnumerationProps, FormatProps, InvertedUnitProps, KindOfQuantityProps, MixinProps, NavigationPropertyProps, PhenomenonProps, PrimitiveArrayPropertyProps, PrimitivePropertyProps, PropertyCategoryProps, RelationshipClassProps, SchemaProps, SchemaReferenceProps, StructArrayPropertyProps, StructClassProps, StructPropertyProps, UnitProps, UnitSystemProps } from "./JsonProps";
|
|
3
|
+
interface UnknownObject {
|
|
4
|
+
readonly [name: string]: unknown;
|
|
5
|
+
}
|
|
6
|
+
/** @internal */
|
|
7
|
+
export declare class JsonParser extends AbstractParser<UnknownObject> {
|
|
8
|
+
private _rawSchema;
|
|
9
|
+
private _schemaName?;
|
|
10
|
+
private _currentItemFullName?;
|
|
11
|
+
constructor(rawSchema: Readonly<unknown>);
|
|
12
|
+
/**
|
|
13
|
+
* Type checks Schema and returns SchemaProps interface
|
|
14
|
+
* @param this._rawSchema
|
|
15
|
+
* @returns SchemaProps
|
|
16
|
+
*/
|
|
17
|
+
parseSchema(): SchemaProps;
|
|
18
|
+
getReferences(): Iterable<SchemaReferenceProps>;
|
|
19
|
+
private checkSchemaReference;
|
|
20
|
+
getItems(): Iterable<[string, string, UnknownObject]>;
|
|
21
|
+
findItem(itemName: string): [string, string, UnknownObject] | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Type checks all Schema Item attributes.
|
|
24
|
+
* @param jsonObj The JSON object to check if it represents a Schema Item.
|
|
25
|
+
*/
|
|
26
|
+
private checkSchemaItemProps;
|
|
27
|
+
getProperties(jsonObj: UnknownObject, itemName: string): Iterable<[string, string, UnknownObject]>;
|
|
28
|
+
/**
|
|
29
|
+
* Type checks Class and returns ClassProps interface
|
|
30
|
+
* @param jsonObj The JSON object to check if it represents a Class.
|
|
31
|
+
*/
|
|
32
|
+
private checkClassProps;
|
|
33
|
+
/**
|
|
34
|
+
* Type checks entity class and returns EntityClassProps interface
|
|
35
|
+
* @param jsonObj
|
|
36
|
+
* @returns EntityClassProps
|
|
37
|
+
*/
|
|
38
|
+
parseEntityClass(jsonObj: UnknownObject): EntityClassProps;
|
|
39
|
+
/**
|
|
40
|
+
* Type checks mixin and returns MixinProps interface
|
|
41
|
+
* @param jsonObj
|
|
42
|
+
* @returns MixinProps
|
|
43
|
+
*/
|
|
44
|
+
parseMixin(jsonObj: UnknownObject): MixinProps;
|
|
45
|
+
/**
|
|
46
|
+
* Type checks custom attribute class and returns CustomAttributeClassProps interface
|
|
47
|
+
* @param jsonObj
|
|
48
|
+
* @returns CustomAttributeClassProps
|
|
49
|
+
*/
|
|
50
|
+
parseCustomAttributeClass(jsonObj: UnknownObject): CustomAttributeClassProps;
|
|
51
|
+
parseStructClass(jsonObj: UnknownObject): StructClassProps;
|
|
52
|
+
parseUnitSystem(jsonObj: UnknownObject): UnitSystemProps;
|
|
53
|
+
/**
|
|
54
|
+
* Type checks Relationship Class and returns RelationshipClassProps interface
|
|
55
|
+
* @param jsonObj
|
|
56
|
+
* @returns RelationshipClassProps
|
|
57
|
+
*/
|
|
58
|
+
parseRelationshipClass(jsonObj: UnknownObject): RelationshipClassProps;
|
|
59
|
+
/**
|
|
60
|
+
* Type checks Relationship Constraint and returns RelationshipConstraintProps interface.
|
|
61
|
+
* @param jsonObj
|
|
62
|
+
* @param isSource For sake of error message, is this relationship constraint a source or target
|
|
63
|
+
* @returns RelationshipConstraintProps
|
|
64
|
+
*/
|
|
65
|
+
private checkRelationshipConstraintProps;
|
|
66
|
+
/**
|
|
67
|
+
* Type checks Enumeration and returns EnumerationProps interface
|
|
68
|
+
* @param jsonObj
|
|
69
|
+
* @returns EnumerationProps
|
|
70
|
+
*/
|
|
71
|
+
parseEnumeration(jsonObj: UnknownObject): EnumerationProps;
|
|
72
|
+
/**
|
|
73
|
+
* Type checks KindOfQuantity and returns KindOfQuantityProps interface
|
|
74
|
+
* @param jsonObj
|
|
75
|
+
* @returns KindOfQuantityProps
|
|
76
|
+
*/
|
|
77
|
+
parseKindOfQuantity(jsonObj: UnknownObject): KindOfQuantityProps;
|
|
78
|
+
/**
|
|
79
|
+
* Type checks Property Category and returns PropertyCategoryProps interface
|
|
80
|
+
* @param jsonObj
|
|
81
|
+
* @returns PropertyCategoryProps
|
|
82
|
+
*/
|
|
83
|
+
parsePropertyCategory(jsonObj: UnknownObject): PropertyCategoryProps;
|
|
84
|
+
/**
|
|
85
|
+
* Type checks unit and returns UnitProps interface
|
|
86
|
+
* @param jsonObj
|
|
87
|
+
* @returns UnitProps
|
|
88
|
+
*/
|
|
89
|
+
parseUnit(jsonObj: UnknownObject): UnitProps;
|
|
90
|
+
/**
|
|
91
|
+
* Type checks inverted unit and returns InvertedUnitProps interface
|
|
92
|
+
* @param jsonObj
|
|
93
|
+
* @returns InvertedUnitProps
|
|
94
|
+
*/
|
|
95
|
+
parseInvertedUnit(jsonObj: UnknownObject): InvertedUnitProps;
|
|
96
|
+
/**
|
|
97
|
+
* Type checks constant and returns ConstantProps interface
|
|
98
|
+
* @param jsonObj
|
|
99
|
+
* @returns ConstantProps
|
|
100
|
+
*/
|
|
101
|
+
parseConstant(jsonObj: UnknownObject): ConstantProps;
|
|
102
|
+
/**
|
|
103
|
+
* Type checks phenomenon and returns PhenomenonProps interface
|
|
104
|
+
* @param jsonObj
|
|
105
|
+
* @returns PhenomenonProps
|
|
106
|
+
*/
|
|
107
|
+
parsePhenomenon(jsonObj: UnknownObject): PhenomenonProps;
|
|
108
|
+
/**
|
|
109
|
+
* Type checks format and returns FormatProps interface
|
|
110
|
+
* @param jsonObj
|
|
111
|
+
* @returns FormatProps
|
|
112
|
+
*/
|
|
113
|
+
parseFormat(jsonObj: UnknownObject): FormatProps;
|
|
114
|
+
private isValidPropertyType;
|
|
115
|
+
/**
|
|
116
|
+
* Type checks property and returns PropertyProps interface
|
|
117
|
+
* @param jsonObj
|
|
118
|
+
* @returns PropertyProps
|
|
119
|
+
*/
|
|
120
|
+
private checkPropertyProps;
|
|
121
|
+
private checkPropertyTypename;
|
|
122
|
+
private checkPropertyMinAndMaxOccurs;
|
|
123
|
+
/**
|
|
124
|
+
* Type checks PrimitiveOrEnumProperty and returns PrimitiveOrEnumPropertyBaseProps interface
|
|
125
|
+
* @param jsonObj
|
|
126
|
+
* @returns PrimitiveOrEnumPropertyBaseProps
|
|
127
|
+
*/
|
|
128
|
+
private checkPrimitiveOrEnumPropertyBaseProps;
|
|
129
|
+
/**
|
|
130
|
+
* Type checks PrimitiveProperty and returns PrimitivePropertyProps interface
|
|
131
|
+
* @param jsonObj
|
|
132
|
+
* @returns PrimitivePropertyProps
|
|
133
|
+
*/
|
|
134
|
+
parsePrimitiveProperty(jsonObj: UnknownObject): PrimitivePropertyProps;
|
|
135
|
+
/**
|
|
136
|
+
* Type checks StructProperty and returns StructPropertyProps interface
|
|
137
|
+
* @param jsonObj
|
|
138
|
+
* @returns StructPropertyProps
|
|
139
|
+
*/
|
|
140
|
+
parseStructProperty(jsonObj: UnknownObject): StructPropertyProps;
|
|
141
|
+
/**
|
|
142
|
+
* Type checks PrimitiveArrayProperty and returns PrimitiveArrayPropertyProps interface
|
|
143
|
+
* @param jsonObj
|
|
144
|
+
* @returns PrimitiveArrayPropertyProps
|
|
145
|
+
*/
|
|
146
|
+
parsePrimitiveArrayProperty(jsonObj: UnknownObject): PrimitiveArrayPropertyProps;
|
|
147
|
+
/**
|
|
148
|
+
* Type checks StructArrayProperty and returns StructArrayPropertyProps interface
|
|
149
|
+
* @param jsonObj
|
|
150
|
+
* @returns StructArrayPropertyProps
|
|
151
|
+
*/
|
|
152
|
+
parseStructArrayProperty(jsonObj: UnknownObject): StructArrayPropertyProps;
|
|
153
|
+
/**
|
|
154
|
+
* Type checks NavigationProperty and returns NavigationPropertyProps interface
|
|
155
|
+
* @param jsonObj
|
|
156
|
+
* @returns NavigationPropertyProps
|
|
157
|
+
*/
|
|
158
|
+
parseNavigationProperty(jsonObj: UnknownObject): NavigationPropertyProps;
|
|
159
|
+
getSchemaCustomAttributeProviders(): Iterable<CAProviderTuple>;
|
|
160
|
+
getClassCustomAttributeProviders(jsonObj: UnknownObject): Iterable<CAProviderTuple>;
|
|
161
|
+
getPropertyCustomAttributeProviders(jsonObj: UnknownObject): Iterable<CAProviderTuple>;
|
|
162
|
+
getRelationshipConstraintCustomAttributeProviders(jsonObj: UnknownObject): [Iterable<CAProviderTuple>, Iterable<CAProviderTuple>];
|
|
163
|
+
private getCustomAttributeProviders;
|
|
164
|
+
}
|
|
165
|
+
export {};
|
|
166
166
|
//# sourceMappingURL=JsonParser.d.ts.map
|