@itwin/presentation-shared 2.0.0-alpha.1 → 2.0.0-alpha.11
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 +296 -1
- package/README.md +27 -9
- package/lib/cjs/presentation-shared.d.ts +18 -10
- package/lib/cjs/presentation-shared.d.ts.map +1 -1
- package/lib/cjs/presentation-shared.js +11 -6
- package/lib/cjs/presentation-shared.js.map +1 -1
- package/lib/cjs/shared/ConcatenatedValue.d.ts +1 -1
- package/lib/cjs/shared/ConcatenatedValue.d.ts.map +1 -1
- package/lib/cjs/shared/ECSqlCore.d.ts +7 -2
- package/lib/cjs/shared/ECSqlCore.d.ts.map +1 -1
- package/lib/cjs/shared/Event.d.ts +20 -2
- package/lib/cjs/shared/Event.d.ts.map +1 -1
- package/lib/cjs/shared/Formatting.d.ts +1 -1
- package/lib/cjs/shared/Formatting.d.ts.map +1 -1
- package/lib/cjs/shared/Formatting.js +10 -6
- package/lib/cjs/shared/Formatting.js.map +1 -1
- package/lib/cjs/shared/InstanceLabelSelectClauseFactory.d.ts +5 -65
- package/lib/cjs/shared/InstanceLabelSelectClauseFactory.d.ts.map +1 -1
- package/lib/cjs/shared/InstanceLabelSelectClauseFactory.js +0 -136
- package/lib/cjs/shared/InstanceLabelSelectClauseFactory.js.map +1 -1
- package/lib/cjs/shared/Logging.js +2 -1
- package/lib/cjs/shared/Logging.js.map +1 -1
- package/lib/cjs/shared/MappedTypes.d.ts +3 -13
- package/lib/cjs/shared/MappedTypes.d.ts.map +1 -1
- package/lib/cjs/shared/Metadata.d.ts +225 -11
- package/lib/cjs/shared/Metadata.d.ts.map +1 -1
- package/lib/cjs/shared/Metadata.js +4 -1
- package/lib/cjs/shared/Metadata.js.map +1 -1
- package/lib/cjs/shared/Utils.d.ts +12 -1
- package/lib/cjs/shared/Utils.d.ts.map +1 -1
- package/lib/cjs/shared/Utils.js +37 -11
- package/lib/cjs/shared/Utils.js.map +1 -1
- package/lib/cjs/shared/Values.d.ts +27 -13
- package/lib/cjs/shared/Values.d.ts.map +1 -1
- package/lib/cjs/shared/Values.js +13 -51
- package/lib/cjs/shared/Values.js.map +1 -1
- package/lib/cjs/shared/ecsql-snippets/ECSqlJoinSnippets.d.ts +20 -5
- package/lib/cjs/shared/ecsql-snippets/ECSqlJoinSnippets.d.ts.map +1 -1
- package/lib/cjs/shared/ecsql-snippets/ECSqlJoinSnippets.js +56 -25
- package/lib/cjs/shared/ecsql-snippets/ECSqlJoinSnippets.js.map +1 -1
- package/lib/cjs/shared/ecsql-snippets/ECSqlValueSelectorSnippets.d.ts +12 -3
- package/lib/cjs/shared/ecsql-snippets/ECSqlValueSelectorSnippets.d.ts.map +1 -1
- package/lib/cjs/shared/ecsql-snippets/ECSqlValueSelectorSnippets.js +21 -6
- package/lib/cjs/shared/ecsql-snippets/ECSqlValueSelectorSnippets.js.map +1 -1
- package/lib/cjs/shared/ecsql-snippets/index.d.ts +1 -1
- package/lib/cjs/shared/ecsql-snippets/index.d.ts.map +1 -1
- package/lib/cjs/shared/ecsql-snippets/index.js +2 -1
- package/lib/cjs/shared/ecsql-snippets/index.js.map +1 -1
- package/lib/cjs/shared/instance-label-factory-impls/BisInstanceLabelSelectClauseFactory.d.ts +17 -0
- package/lib/cjs/shared/instance-label-factory-impls/BisInstanceLabelSelectClauseFactory.d.ts.map +1 -0
- package/lib/cjs/shared/instance-label-factory-impls/BisInstanceLabelSelectClauseFactory.js +54 -0
- package/lib/cjs/shared/instance-label-factory-impls/BisInstanceLabelSelectClauseFactory.js.map +1 -0
- package/lib/cjs/shared/instance-label-factory-impls/ClassBasedInstanceLabelSelectClauseFactory.d.ts +39 -0
- package/lib/cjs/shared/instance-label-factory-impls/ClassBasedInstanceLabelSelectClauseFactory.d.ts.map +1 -0
- package/lib/cjs/shared/instance-label-factory-impls/ClassBasedInstanceLabelSelectClauseFactory.js +63 -0
- package/lib/cjs/shared/instance-label-factory-impls/ClassBasedInstanceLabelSelectClauseFactory.js.map +1 -0
- package/lib/cjs/shared/instance-label-factory-impls/DefaultInstanceLabelSelectClauseFactory.d.ts +12 -0
- package/lib/cjs/shared/instance-label-factory-impls/DefaultInstanceLabelSelectClauseFactory.d.ts.map +1 -0
- package/lib/cjs/shared/instance-label-factory-impls/DefaultInstanceLabelSelectClauseFactory.js +40 -0
- package/lib/cjs/shared/instance-label-factory-impls/DefaultInstanceLabelSelectClauseFactory.js.map +1 -0
- package/lib/cjs/shared/instance-label-factory-impls/IModelInstanceLabelSelectClauseFactory.Rules.d.ts +198 -0
- package/lib/cjs/shared/instance-label-factory-impls/IModelInstanceLabelSelectClauseFactory.Rules.d.ts.map +1 -0
- package/lib/cjs/shared/instance-label-factory-impls/IModelInstanceLabelSelectClauseFactory.Rules.js +10 -0
- package/lib/cjs/shared/instance-label-factory-impls/IModelInstanceLabelSelectClauseFactory.Rules.js.map +1 -0
- package/lib/cjs/shared/instance-label-factory-impls/IModelInstanceLabelSelectClauseFactory.d.ts +34 -0
- package/lib/cjs/shared/instance-label-factory-impls/IModelInstanceLabelSelectClauseFactory.d.ts.map +1 -0
- package/lib/cjs/shared/instance-label-factory-impls/IModelInstanceLabelSelectClauseFactory.js +336 -0
- package/lib/cjs/shared/instance-label-factory-impls/IModelInstanceLabelSelectClauseFactory.js.map +1 -0
- package/lib/cjs/shared/instance-label-factory-impls/Utils.d.ts +7 -0
- package/lib/cjs/shared/instance-label-factory-impls/Utils.d.ts.map +1 -0
- package/lib/cjs/shared/instance-label-factory-impls/Utils.js +26 -0
- package/lib/cjs/shared/instance-label-factory-impls/Utils.js.map +1 -0
- package/lib/esm/presentation-shared.d.ts +18 -10
- package/lib/esm/presentation-shared.d.ts.map +1 -1
- package/lib/esm/presentation-shared.js +7 -4
- package/lib/esm/presentation-shared.js.map +1 -1
- package/lib/esm/shared/ConcatenatedValue.d.ts +1 -1
- package/lib/esm/shared/ConcatenatedValue.d.ts.map +1 -1
- package/lib/esm/shared/ECSqlCore.d.ts +7 -2
- package/lib/esm/shared/ECSqlCore.d.ts.map +1 -1
- package/lib/esm/shared/Event.d.ts +20 -2
- package/lib/esm/shared/Event.d.ts.map +1 -1
- package/lib/esm/shared/Formatting.d.ts +1 -1
- package/lib/esm/shared/Formatting.d.ts.map +1 -1
- package/lib/esm/shared/Formatting.js +10 -6
- package/lib/esm/shared/Formatting.js.map +1 -1
- package/lib/esm/shared/InstanceLabelSelectClauseFactory.d.ts +5 -65
- package/lib/esm/shared/InstanceLabelSelectClauseFactory.d.ts.map +1 -1
- package/lib/esm/shared/InstanceLabelSelectClauseFactory.js +0 -133
- package/lib/esm/shared/InstanceLabelSelectClauseFactory.js.map +1 -1
- package/lib/esm/shared/Logging.js +2 -1
- package/lib/esm/shared/Logging.js.map +1 -1
- package/lib/esm/shared/MappedTypes.d.ts +3 -13
- package/lib/esm/shared/MappedTypes.d.ts.map +1 -1
- package/lib/esm/shared/Metadata.d.ts +225 -11
- package/lib/esm/shared/Metadata.d.ts.map +1 -1
- package/lib/esm/shared/Metadata.js +4 -1
- package/lib/esm/shared/Metadata.js.map +1 -1
- package/lib/esm/shared/Utils.d.ts +12 -1
- package/lib/esm/shared/Utils.d.ts.map +1 -1
- package/lib/esm/shared/Utils.js +36 -11
- package/lib/esm/shared/Utils.js.map +1 -1
- package/lib/esm/shared/Values.d.ts +27 -13
- package/lib/esm/shared/Values.d.ts.map +1 -1
- package/lib/esm/shared/Values.js +13 -51
- package/lib/esm/shared/Values.js.map +1 -1
- package/lib/esm/shared/ecsql-snippets/ECSqlJoinSnippets.d.ts +20 -5
- package/lib/esm/shared/ecsql-snippets/ECSqlJoinSnippets.d.ts.map +1 -1
- package/lib/esm/shared/ecsql-snippets/ECSqlJoinSnippets.js +56 -25
- package/lib/esm/shared/ecsql-snippets/ECSqlJoinSnippets.js.map +1 -1
- package/lib/esm/shared/ecsql-snippets/ECSqlValueSelectorSnippets.d.ts +12 -3
- package/lib/esm/shared/ecsql-snippets/ECSqlValueSelectorSnippets.d.ts.map +1 -1
- package/lib/esm/shared/ecsql-snippets/ECSqlValueSelectorSnippets.js +20 -6
- package/lib/esm/shared/ecsql-snippets/ECSqlValueSelectorSnippets.js.map +1 -1
- package/lib/esm/shared/ecsql-snippets/index.d.ts +1 -1
- package/lib/esm/shared/ecsql-snippets/index.d.ts.map +1 -1
- package/lib/esm/shared/ecsql-snippets/index.js +1 -1
- package/lib/esm/shared/ecsql-snippets/index.js.map +1 -1
- package/lib/esm/shared/instance-label-factory-impls/BisInstanceLabelSelectClauseFactory.d.ts +17 -0
- package/lib/esm/shared/instance-label-factory-impls/BisInstanceLabelSelectClauseFactory.d.ts.map +1 -0
- package/lib/esm/shared/instance-label-factory-impls/BisInstanceLabelSelectClauseFactory.js +51 -0
- package/lib/esm/shared/instance-label-factory-impls/BisInstanceLabelSelectClauseFactory.js.map +1 -0
- package/lib/esm/shared/instance-label-factory-impls/ClassBasedInstanceLabelSelectClauseFactory.d.ts +39 -0
- package/lib/esm/shared/instance-label-factory-impls/ClassBasedInstanceLabelSelectClauseFactory.d.ts.map +1 -0
- package/lib/esm/shared/instance-label-factory-impls/ClassBasedInstanceLabelSelectClauseFactory.js +60 -0
- package/lib/esm/shared/instance-label-factory-impls/ClassBasedInstanceLabelSelectClauseFactory.js.map +1 -0
- package/lib/esm/shared/instance-label-factory-impls/DefaultInstanceLabelSelectClauseFactory.d.ts +12 -0
- package/lib/esm/shared/instance-label-factory-impls/DefaultInstanceLabelSelectClauseFactory.d.ts.map +1 -0
- package/lib/esm/shared/instance-label-factory-impls/DefaultInstanceLabelSelectClauseFactory.js +37 -0
- package/lib/esm/shared/instance-label-factory-impls/DefaultInstanceLabelSelectClauseFactory.js.map +1 -0
- package/lib/esm/shared/instance-label-factory-impls/IModelInstanceLabelSelectClauseFactory.Rules.d.ts +198 -0
- package/lib/esm/shared/instance-label-factory-impls/IModelInstanceLabelSelectClauseFactory.Rules.d.ts.map +1 -0
- package/lib/esm/shared/instance-label-factory-impls/IModelInstanceLabelSelectClauseFactory.Rules.js +9 -0
- package/lib/esm/shared/instance-label-factory-impls/IModelInstanceLabelSelectClauseFactory.Rules.js.map +1 -0
- package/lib/esm/shared/instance-label-factory-impls/IModelInstanceLabelSelectClauseFactory.d.ts +34 -0
- package/lib/esm/shared/instance-label-factory-impls/IModelInstanceLabelSelectClauseFactory.d.ts.map +1 -0
- package/lib/esm/shared/instance-label-factory-impls/IModelInstanceLabelSelectClauseFactory.js +333 -0
- package/lib/esm/shared/instance-label-factory-impls/IModelInstanceLabelSelectClauseFactory.js.map +1 -0
- package/lib/esm/shared/instance-label-factory-impls/Utils.d.ts +7 -0
- package/lib/esm/shared/instance-label-factory-impls/Utils.d.ts.map +1 -0
- package/lib/esm/shared/instance-label-factory-impls/Utils.js +21 -0
- package/lib/esm/shared/instance-label-factory-impls/Utils.js.map +1 -0
- package/package.json +16 -24
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ECSqlBinding } from "./ECSqlCore.js";
|
|
1
2
|
/**
|
|
2
3
|
* An interface for an object that knows how to get an ECSchema from an iModel.
|
|
3
4
|
*
|
|
@@ -13,7 +14,7 @@ export interface ECSchemaProvider {
|
|
|
13
14
|
* @public
|
|
14
15
|
*/
|
|
15
16
|
export interface ECClassHierarchyInspector {
|
|
16
|
-
classDerivesFrom(derivedClassFullName:
|
|
17
|
+
classDerivesFrom(derivedClassFullName: EC.FullClassName, candidateBaseClassFullName: EC.FullClassName): Promise<boolean> | boolean;
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
20
|
* Creates a new `ECClassHierarchyInspector` that caches results of `derivesFrom` calls.
|
|
@@ -31,6 +32,22 @@ export declare function createCachingECClassHierarchyInspector(props: {
|
|
|
31
32
|
* @see `ECSchemaProvider`
|
|
32
33
|
*/
|
|
33
34
|
export declare namespace EC {
|
|
35
|
+
type FullClassNameDotNotation = `${string}.${string}`;
|
|
36
|
+
type FullClassNameColonNotation = `${string}:${string}`;
|
|
37
|
+
type FullClassName = FullClassNameColonNotation | FullClassNameDotNotation;
|
|
38
|
+
/**
|
|
39
|
+
* Schema version components.
|
|
40
|
+
* Note: comparison order is write > read > minor (not left-to-right).
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
interface SchemaVersion {
|
|
44
|
+
/** First component in "read.write.minor" string format. */
|
|
45
|
+
read: number;
|
|
46
|
+
/** Second component in "read.write.minor" string format (most significant for compatibility). */
|
|
47
|
+
write: number;
|
|
48
|
+
/** Third component in "read.write.minor" string format. */
|
|
49
|
+
minor: number;
|
|
50
|
+
}
|
|
34
51
|
/**
|
|
35
52
|
* Represents an ECSchema that contains classes, relationships, etc.
|
|
36
53
|
* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/schema/
|
|
@@ -38,6 +55,8 @@ export declare namespace EC {
|
|
|
38
55
|
*/
|
|
39
56
|
interface Schema {
|
|
40
57
|
name: string;
|
|
58
|
+
/** The schema version. Format: `"read.write.minor"`, comparison order: write > read > minor. */
|
|
59
|
+
version: SchemaVersion;
|
|
41
60
|
getClass(name: string): Promise<Class | undefined>;
|
|
42
61
|
getCustomAttributes(): Promise<CustomAttributeSet>;
|
|
43
62
|
}
|
|
@@ -48,9 +67,10 @@ export declare namespace EC {
|
|
|
48
67
|
*/
|
|
49
68
|
interface SchemaItem {
|
|
50
69
|
schema: Schema;
|
|
51
|
-
fullName:
|
|
70
|
+
fullName: FullClassName;
|
|
52
71
|
name: string;
|
|
53
72
|
label?: string;
|
|
73
|
+
description?: string;
|
|
54
74
|
}
|
|
55
75
|
/**
|
|
56
76
|
* Represents an ECClass.
|
|
@@ -63,6 +83,8 @@ export declare namespace EC {
|
|
|
63
83
|
is(other: Class): Promise<boolean>;
|
|
64
84
|
getProperty(name: string): Promise<Property | undefined>;
|
|
65
85
|
getProperties(): Promise<Array<Property>>;
|
|
86
|
+
/** Gets only the properties defined directly on this class, excluding those inherited from base classes. */
|
|
87
|
+
getOwnProperties(): Promise<Array<Property>>;
|
|
66
88
|
isEntityClass(): this is EntityClass;
|
|
67
89
|
isRelationshipClass(): this is RelationshipClass;
|
|
68
90
|
isStructClass(): this is StructClass;
|
|
@@ -94,6 +116,15 @@ export declare namespace EC {
|
|
|
94
116
|
* @public
|
|
95
117
|
*/
|
|
96
118
|
type KindOfQuantity = SchemaItem;
|
|
119
|
+
/**
|
|
120
|
+
* Represents a property category used to group related properties.
|
|
121
|
+
* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/propertycategory/
|
|
122
|
+
* @public
|
|
123
|
+
*/
|
|
124
|
+
interface PropertyCategory extends SchemaItem {
|
|
125
|
+
/** Determines the display order of the category relative to other categories. Higher priority categories are displayed first. */
|
|
126
|
+
priority: number;
|
|
127
|
+
}
|
|
97
128
|
/**
|
|
98
129
|
* Represents a relationship constraint multiplicity.
|
|
99
130
|
* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/relationshipmultiplicity/
|
|
@@ -109,7 +140,7 @@ export declare namespace EC {
|
|
|
109
140
|
* @public
|
|
110
141
|
*/
|
|
111
142
|
interface RelationshipConstraint {
|
|
112
|
-
multiplicity
|
|
143
|
+
multiplicity: RelationshipConstraintMultiplicity;
|
|
113
144
|
polymorphic: boolean;
|
|
114
145
|
abstractConstraint: Promise<EntityClass | Mixin | RelationshipClass | undefined>;
|
|
115
146
|
}
|
|
@@ -154,6 +185,7 @@ export declare namespace EC {
|
|
|
154
185
|
class: Class;
|
|
155
186
|
label?: string;
|
|
156
187
|
kindOfQuantity: Promise<KindOfQuantity | undefined>;
|
|
188
|
+
category: Promise<PropertyCategory | undefined>;
|
|
157
189
|
isArray(): this is ArrayProperty;
|
|
158
190
|
isStruct(): this is StructProperty;
|
|
159
191
|
isPrimitive(): this is PrimitiveProperty;
|
|
@@ -241,8 +273,8 @@ export declare namespace EC {
|
|
|
241
273
|
* @public
|
|
242
274
|
*/
|
|
243
275
|
interface CustomAttributeSet {
|
|
244
|
-
[Symbol.iterator]: () => IterableIterator<[
|
|
245
|
-
get(className:
|
|
276
|
+
[Symbol.iterator]: () => IterableIterator<[FullClassName, CustomAttribute]>;
|
|
277
|
+
get(className: FullClassName): CustomAttribute | undefined;
|
|
246
278
|
}
|
|
247
279
|
/**
|
|
248
280
|
* Defines a custom attribute that may be applied to a class or property.
|
|
@@ -250,32 +282,213 @@ export declare namespace EC {
|
|
|
250
282
|
* @public
|
|
251
283
|
*/
|
|
252
284
|
interface CustomAttribute {
|
|
253
|
-
className:
|
|
285
|
+
className: FullClassName;
|
|
254
286
|
[propName: string]: any;
|
|
255
287
|
}
|
|
256
288
|
}
|
|
257
289
|
/**
|
|
258
|
-
*
|
|
290
|
+
* A union of all primitive value types supported by the Presentation packages.
|
|
291
|
+
*
|
|
292
|
+
* Compared to `EC.PrimitiveType`:
|
|
293
|
+
* - Adds `"Id"` to support id properties such as `ECInstanceId` or `ECClassId`, which have no equivalent in `EC.PrimitiveType`.
|
|
294
|
+
* - Excludes `"Binary"` and `"IGeometry"`, as properties of those types are not supported by the Presentation packages.
|
|
295
|
+
*
|
|
259
296
|
* @public
|
|
260
297
|
*/
|
|
261
298
|
export type PrimitiveValueType = "Id" | Exclude<EC.PrimitiveType, "Binary" | "IGeometry">;
|
|
299
|
+
/**
|
|
300
|
+
* A type descriptor for a value's shape.
|
|
301
|
+
*
|
|
302
|
+
* - `PrimitiveValueDescriptor`: a scalar primitive.
|
|
303
|
+
* - `StructValueDescriptor`: a named struct with typed members.
|
|
304
|
+
* - `ArrayValueDescriptor`: an ordered collection of a single element type.
|
|
305
|
+
* - `NavigationValueDescriptor`: a reference to another EC instance, carrying the reference's target class name.
|
|
306
|
+
*
|
|
307
|
+
* @public
|
|
308
|
+
*/
|
|
309
|
+
export type ValueDescriptor = PrimitiveValueDescriptor | StructValueDescriptor | ArrayValueDescriptor | NavigationValueDescriptor;
|
|
310
|
+
/**
|
|
311
|
+
* Describes a scalar primitive value.
|
|
312
|
+
*
|
|
313
|
+
* When the value is backed by an enumeration (only possible for `String`-, `Integer`- and
|
|
314
|
+
* `Long`-typed values), `enumeration` carries the enumeration's metadata (its declared enumerators
|
|
315
|
+
* and their labels) so consumers can map raw values to display labels without re-reading schema. The
|
|
316
|
+
* `type` discriminates the enumerator value type (`String` → `string`, `Integer | Long` → `number`).
|
|
317
|
+
*
|
|
318
|
+
* @public
|
|
319
|
+
*/
|
|
320
|
+
export type PrimitiveValueDescriptor = {
|
|
321
|
+
kind: "primitive";
|
|
322
|
+
} & ({
|
|
323
|
+
/** The primitive value type. */
|
|
324
|
+
type: Extract<PrimitiveValueType, "String">;
|
|
325
|
+
kindOfQuantity?: undefined;
|
|
326
|
+
/** Metadata of the enumeration backing this value, when it is enumeration-backed. */
|
|
327
|
+
enumeration?: EnumerationInfo<string>;
|
|
328
|
+
} | {
|
|
329
|
+
/** The primitive value type. */
|
|
330
|
+
type: Extract<PrimitiveValueType, "Integer" | "Long">;
|
|
331
|
+
/**
|
|
332
|
+
* Full name of the KindOfQuantity associated with this property (e.g., `"Units.LENGTH"`).
|
|
333
|
+
* Determines how the value should be formatted and which units to display.
|
|
334
|
+
*/
|
|
335
|
+
kindOfQuantity?: string;
|
|
336
|
+
/** Metadata of the enumeration backing this value, when it is enumeration-backed. */
|
|
337
|
+
enumeration?: EnumerationInfo<number>;
|
|
338
|
+
} | {
|
|
339
|
+
/** The primitive value type. */
|
|
340
|
+
type: Extract<PrimitiveValueType, "Double">;
|
|
341
|
+
/**
|
|
342
|
+
* Full name of the KindOfQuantity associated with this property (e.g., `"Units.LENGTH"`).
|
|
343
|
+
* Determines how the value should be formatted and which units to display.
|
|
344
|
+
*/
|
|
345
|
+
kindOfQuantity?: string;
|
|
346
|
+
enumeration?: undefined;
|
|
347
|
+
} | {
|
|
348
|
+
/** The primitive value type. */
|
|
349
|
+
type: Exclude<PrimitiveValueType, "Integer" | "Long" | "Double" | "String">;
|
|
350
|
+
kindOfQuantity?: undefined;
|
|
351
|
+
enumeration?: undefined;
|
|
352
|
+
});
|
|
353
|
+
/**
|
|
354
|
+
* Metadata about the enumeration backing a primitive value. Preserved on a
|
|
355
|
+
* `PrimitiveValueDescriptor` so consumers can map raw enum values to their display labels
|
|
356
|
+
* without re-reading schema.
|
|
357
|
+
* @public
|
|
358
|
+
*/
|
|
359
|
+
interface EnumerationInfo<TValue extends string | number = string | number> {
|
|
360
|
+
/** Name of the enumeration type (e.g., `"MySchema.MyEnum"` for schema-backed enums). */
|
|
361
|
+
name: string;
|
|
362
|
+
/** When `true`, values are restricted to the declared enumerators. */
|
|
363
|
+
isStrict: boolean;
|
|
364
|
+
/** The declared enumerators. */
|
|
365
|
+
enumerators: EnumeratorInfo<TValue>[];
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* A single enumerator of an `EnumerationInfo`.
|
|
369
|
+
* @public
|
|
370
|
+
*/
|
|
371
|
+
interface EnumeratorInfo<TValue extends string | number = string | number> {
|
|
372
|
+
/** Display label for the enumerator. */
|
|
373
|
+
label: string;
|
|
374
|
+
/** The enumerator's raw value (string- or integer-backed, per the owning descriptor's `type`). */
|
|
375
|
+
value: TValue;
|
|
376
|
+
/** Optional description. */
|
|
377
|
+
description?: string;
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Describes a named struct value with typed members.
|
|
381
|
+
* @public
|
|
382
|
+
*/
|
|
383
|
+
export interface StructValueDescriptor {
|
|
384
|
+
kind: "struct";
|
|
385
|
+
/** The list of named, typed members that make up this struct. */
|
|
386
|
+
members: StructMember[];
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Describes a single member of a `StructValueDescriptor`.
|
|
390
|
+
* @public
|
|
391
|
+
*/
|
|
392
|
+
interface StructMember {
|
|
393
|
+
/** The member's property name. */
|
|
394
|
+
name: string;
|
|
395
|
+
/** A human-readable label for display purposes. */
|
|
396
|
+
label: string;
|
|
397
|
+
/** The type descriptor for this member's value. */
|
|
398
|
+
type: ValueDescriptor;
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* Describes an ordered collection of values of a single element type.
|
|
402
|
+
* @public
|
|
403
|
+
*/
|
|
404
|
+
export interface ArrayValueDescriptor {
|
|
405
|
+
kind: "array";
|
|
406
|
+
/** The type descriptor for each element in the array. */
|
|
407
|
+
elementType: ValueDescriptor;
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Describes a navigation property value — a reference to another EC instance.
|
|
411
|
+
* The runtime value is the referenced instance's id (`Id64String`); this descriptor
|
|
412
|
+
* additionally carries the reference's target class name as metadata, so consumers can
|
|
413
|
+
* build selects against the referenced instance (e.g. to resolve its label).
|
|
414
|
+
* @public
|
|
415
|
+
*/
|
|
416
|
+
export interface NavigationValueDescriptor {
|
|
417
|
+
kind: "navigation";
|
|
418
|
+
/**
|
|
419
|
+
* Full name of the relationship's target-constraint class the navigation points at
|
|
420
|
+
* (the referenced instance's class, or its base constraint class).
|
|
421
|
+
*/
|
|
422
|
+
targetClassName: EC.FullClassName;
|
|
423
|
+
}
|
|
262
424
|
/**
|
|
263
425
|
* Describes a single step through an ECRelationship from source ECClass to target ECClass.
|
|
264
426
|
* @public
|
|
265
427
|
*/
|
|
266
428
|
export interface RelationshipPathStep {
|
|
267
429
|
/** Full name of the source ECClass */
|
|
268
|
-
sourceClassName:
|
|
430
|
+
sourceClassName: EC.FullClassName;
|
|
269
431
|
/** Full name of the target ECClass */
|
|
270
|
-
targetClassName:
|
|
432
|
+
targetClassName: EC.FullClassName;
|
|
271
433
|
/** Full name of the ECRelationshipClass */
|
|
272
|
-
relationshipName:
|
|
434
|
+
relationshipName: EC.FullClassName;
|
|
273
435
|
/**
|
|
274
436
|
* Indicates that the relationship direction be reversed. This should be set to `true` when step direction
|
|
275
437
|
* doesn't match relationship direction, e.g. relationship is from source `A` to target `B` and the step
|
|
276
438
|
* describes a step from `B` to `A`.
|
|
277
439
|
*/
|
|
278
440
|
relationshipReverse?: boolean;
|
|
441
|
+
/**
|
|
442
|
+
* Optional filter applied to instances at this step.
|
|
443
|
+
* Only instances matching the filter will be included when traversing this relationship.
|
|
444
|
+
* The filter expression can reference target class properties and, for non-navigation-property
|
|
445
|
+
* relationships (link table relationships), also relationship class properties.
|
|
446
|
+
* Referencing relationship class properties via `relationshipAlias` is not supported for
|
|
447
|
+
* navigation-property steps because the relationship table is not part of the query in that case.
|
|
448
|
+
*/
|
|
449
|
+
instanceFilter?: {
|
|
450
|
+
/**
|
|
451
|
+
* ECSQL WHERE clause expression (without the WHERE keyword).
|
|
452
|
+
*
|
|
453
|
+
* Use `targetAlias` (defaults to `"this"`) followed by a dot to reference properties
|
|
454
|
+
* of the filtered class, and `relationshipAlias` (defaults to `"rel"`) to reference
|
|
455
|
+
* properties on the relationship class. At query generation time, the pipeline replaces
|
|
456
|
+
* all `{alias}.` occurrences (in both their bare `{alias}.` and bracket-quoted `[{alias}].`
|
|
457
|
+
* forms) with the actual query aliases.
|
|
458
|
+
*
|
|
459
|
+
* @example
|
|
460
|
+
* ```
|
|
461
|
+
* expression: "this.Area > :minArea AND rel.Priority > 0"
|
|
462
|
+
* ```
|
|
463
|
+
*/
|
|
464
|
+
expression: string;
|
|
465
|
+
/**
|
|
466
|
+
* The placeholder used in `expression` to reference the target class (`targetClassName`).
|
|
467
|
+
* Every occurrence of `{targetAlias}.` in the expression, whether bare (`{targetAlias}.`)
|
|
468
|
+
* or bracket-quoted (`[{targetAlias}].`), will be replaced with the actual query alias at
|
|
469
|
+
* query generation time.
|
|
470
|
+
*
|
|
471
|
+
* @default "this"
|
|
472
|
+
*/
|
|
473
|
+
targetAlias?: string;
|
|
474
|
+
/**
|
|
475
|
+
* The placeholder used in `expression` to reference the relationship class (`relationshipName`).
|
|
476
|
+
* Every occurrence of `{relationshipAlias}.` in the expression, whether bare (`{relationshipAlias}.`)
|
|
477
|
+
* or bracket-quoted (`[{relationshipAlias}].`), will be replaced with the actual relationship alias
|
|
478
|
+
* at query generation time.
|
|
479
|
+
*
|
|
480
|
+
* Only meaningful for non-navigation-property (link table) relationships. When the step uses a
|
|
481
|
+
* navigation property, the relationship table is not part of the query, so any reference via
|
|
482
|
+
* this alias will produce invalid ECSQL.
|
|
483
|
+
*
|
|
484
|
+
* @default "rel"
|
|
485
|
+
*/
|
|
486
|
+
relationshipAlias?: string;
|
|
487
|
+
/**
|
|
488
|
+
* Bind values for the expression, keyed by parameter name.
|
|
489
|
+
*/
|
|
490
|
+
bindings?: Record<string, ECSqlBinding>;
|
|
491
|
+
};
|
|
279
492
|
}
|
|
280
493
|
/**
|
|
281
494
|
* Describes a path from source ECClass to target ECClass through multiple ECRelationships.
|
|
@@ -287,5 +500,6 @@ export type RelationshipPath<TStep extends RelationshipPathStep = RelationshipPa
|
|
|
287
500
|
* @throws Error if the schema or class is not found.
|
|
288
501
|
* @public
|
|
289
502
|
*/
|
|
290
|
-
export declare function getClass(schemaProvider: ECSchemaProvider, fullClassName:
|
|
503
|
+
export declare function getClass(schemaProvider: ECSchemaProvider, fullClassName: EC.FullClassName): Promise<EC.Class>;
|
|
504
|
+
export {};
|
|
291
505
|
//# sourceMappingURL=Metadata.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Metadata.d.ts","sourceRoot":"","sources":["../../../src/shared/Metadata.ts"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC/D;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"Metadata.d.ts","sourceRoot":"","sources":["../../../src/shared/Metadata.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC/D;AAED;;;;GAIG;AACH,MAAM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AAC,aAAa,CAAC;IAClC,2CAA2C;IAC3C,gBAAgB,EAAE,EAAE,CAAC,aAAa,CAAC;IACnC;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE;QACf;;;;;;;;;;;;;WAaG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;;;;;;WAOG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;;;;;;;;;;WAWG;QACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAE3B;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;KACzC,CAAC;CACH;AAED;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAAC,KAAK,SAAS,oBAAoB,GAAG,oBAAoB,IAAI,KAAK,EAAE,CAAC;AAElG;;;;GAIG;AACH,wBAAsB,QAAQ,CAAC,cAAc,EAAE,gBAAgB,EAAE,aAAa,EAAE,EAAE,CAAC,aAAa,GAAG,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,CAWnH"}
|
|
@@ -22,7 +22,10 @@ function createCachingECClassHierarchyInspector(props) {
|
|
|
22
22
|
const cacheKey = createCacheKey(derivedClassFullName, candidateBaseClassFullName);
|
|
23
23
|
let result = map.get(cacheKey);
|
|
24
24
|
if (result === undefined) {
|
|
25
|
-
result = Promise.all([
|
|
25
|
+
result = Promise.all([
|
|
26
|
+
getClass(props.schemaProvider, derivedClassFullName),
|
|
27
|
+
getClass(props.schemaProvider, candidateBaseClassFullName),
|
|
28
|
+
]).then(async ([derivedClass, baseClass]) => {
|
|
26
29
|
const resolvedResult = await derivedClass.is(baseClass);
|
|
27
30
|
map.set(cacheKey, resolvedResult);
|
|
28
31
|
return resolvedResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Metadata.js","sourceRoot":"","sources":["../../../src/shared/Metadata.ts"],"names":[],"mappings":";AAAA;;;g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AIG;AACI,KAAK,UAAU,QAAQ,CAAC,cAAgC,EAAE,aAA+B;IAC9F,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,IAAA,6BAAkB,EAAC,aAAa,CAAC,CAAC;IACpE,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC1D,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,WAAW,UAAU,cAAc,CAAC,CAAC;IACvD,CAAC;IACD,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IACrD,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CAAC,UAAU,SAAS,0BAA0B,UAAU,IAAI,CAAC,CAAC;IAC/E,CAAC;IACD,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import type { EC } from "./Metadata.js";
|
|
1
2
|
/**
|
|
2
3
|
* An utility to parse schema and class names from full class name, where
|
|
3
4
|
* schema and class names are separated by either `:` or `.`.
|
|
5
|
+
*
|
|
6
|
+
* @throws Error if the provided full class name is not valid.
|
|
4
7
|
* @public
|
|
5
8
|
*/
|
|
6
9
|
export declare function parseFullClassName(fullClassName: string): {
|
|
@@ -10,9 +13,17 @@ export declare function parseFullClassName(fullClassName: string): {
|
|
|
10
13
|
/**
|
|
11
14
|
* An utility to normalize full class name from either `SchemaName:ClassName` or
|
|
12
15
|
* `SchemaName.ClassName` to always use the dot format.
|
|
16
|
+
*
|
|
17
|
+
* @throws Error if the provided full class name is not valid.
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export declare function normalizeFullClassName(fullClassName: string): EC.FullClassNameDotNotation;
|
|
21
|
+
/**
|
|
22
|
+
* An utility that compares two full class names in a case insensitive way, ignoring different
|
|
23
|
+
* supported schema-class name separators (`.` or `:`).
|
|
13
24
|
* @public
|
|
14
25
|
*/
|
|
15
|
-
export declare function
|
|
26
|
+
export declare function compareFullClassNames(lhs: EC.FullClassName, rhs: EC.FullClassName): number;
|
|
16
27
|
/**
|
|
17
28
|
* An utility to remove all extra whitespace from a given string.
|
|
18
29
|
* @public
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Utils.d.ts","sourceRoot":"","sources":["../../../src/shared/Utils.ts"],"names":[],"mappings":"AAOA
|
|
1
|
+
{"version":3,"file":"Utils.d.ts","sourceRoot":"","sources":["../../../src/shared/Utils.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAExC;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,MAAM;;;EAoBvD;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,MAAM,GAAG,EAAE,CAAC,wBAAwB,CAGzF;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,EAAE,CAAC,aAAa,EAAE,GAAG,EAAE,EAAE,CAAC,aAAa,GAAG,MAAM,CAS1F;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;AACpD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAc5E;;;;;GAKG;AACH,wBAAsB,iBAAiB,kBAEtC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,0CAA0C,CAAC,mBAAmB,SAAK,SAEtE,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS,CASrC;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAGzD"}
|
package/lib/cjs/shared/Utils.js
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.parseFullClassName = parseFullClassName;
|
|
8
8
|
exports.normalizeFullClassName = normalizeFullClassName;
|
|
9
|
+
exports.compareFullClassNames = compareFullClassNames;
|
|
9
10
|
exports.trimWhitespace = trimWhitespace;
|
|
10
11
|
exports.releaseMainThread = releaseMainThread;
|
|
11
12
|
exports.createMainThreadReleaseOnTimePassedHandler = createMainThreadReleaseOnTimePassedHandler;
|
|
@@ -14,31 +15,56 @@ const core_bentley_1 = require("@itwin/core-bentley");
|
|
|
14
15
|
/**
|
|
15
16
|
* An utility to parse schema and class names from full class name, where
|
|
16
17
|
* schema and class names are separated by either `:` or `.`.
|
|
18
|
+
*
|
|
19
|
+
* @throws Error if the provided full class name is not valid.
|
|
17
20
|
* @public
|
|
18
21
|
*/
|
|
19
22
|
function parseFullClassName(fullClassName) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
let idx = fullClassName.indexOf(".");
|
|
24
|
+
let includesDot = true;
|
|
25
|
+
if (idx <= 0) {
|
|
26
|
+
includesDot = false;
|
|
27
|
+
idx = fullClassName.indexOf(":");
|
|
28
|
+
if (idx <= 0) {
|
|
29
|
+
throw new Error(`Invalid full class name: ${fullClassName}`);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
(0, core_bentley_1.assert)(() => {
|
|
33
|
+
return (idx < fullClassName.length - 1 &&
|
|
34
|
+
(includesDot
|
|
35
|
+
? fullClassName.lastIndexOf(".") === idx && fullClassName.indexOf(":") === -1
|
|
36
|
+
: fullClassName.lastIndexOf(":") === idx));
|
|
37
|
+
}, `Invalid full class name: ${fullClassName}`);
|
|
38
|
+
return { schemaName: fullClassName.slice(0, idx), className: fullClassName.slice(idx + 1) };
|
|
23
39
|
}
|
|
24
40
|
/**
|
|
25
41
|
* An utility to normalize full class name from either `SchemaName:ClassName` or
|
|
26
42
|
* `SchemaName.ClassName` to always use the dot format.
|
|
43
|
+
*
|
|
44
|
+
* @throws Error if the provided full class name is not valid.
|
|
27
45
|
* @public
|
|
28
46
|
*/
|
|
29
47
|
function normalizeFullClassName(fullClassName) {
|
|
30
|
-
const
|
|
31
|
-
if (-1 === colonPos) {
|
|
32
|
-
(0, core_bentley_1.assert)(fullClassName.indexOf(".") !== -1, "Invalid full class name");
|
|
33
|
-
return fullClassName;
|
|
34
|
-
}
|
|
35
|
-
const schemaName = fullClassName.slice(0, colonPos);
|
|
36
|
-
const className = fullClassName.slice(colonPos + 1);
|
|
48
|
+
const { schemaName, className } = parseFullClassName(fullClassName);
|
|
37
49
|
return `${schemaName}.${className}`;
|
|
38
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* An utility that compares two full class names in a case insensitive way, ignoring different
|
|
53
|
+
* supported schema-class name separators (`.` or `:`).
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
function compareFullClassNames(lhs, rhs) {
|
|
57
|
+
const parsed = { lhs: parseFullClassName(lhs), rhs: parseFullClassName(rhs) };
|
|
58
|
+
const schemaCompare = parsed.lhs.schemaName
|
|
59
|
+
.toLocaleLowerCase()
|
|
60
|
+
.localeCompare(parsed.rhs.schemaName.toLocaleLowerCase());
|
|
61
|
+
if (schemaCompare !== 0) {
|
|
62
|
+
return schemaCompare;
|
|
63
|
+
}
|
|
64
|
+
return parsed.lhs.className.toLocaleLowerCase().localeCompare(parsed.rhs.className.toLocaleLowerCase());
|
|
65
|
+
}
|
|
39
66
|
/** @public */
|
|
40
67
|
function trimWhitespace(str) {
|
|
41
|
-
/* c8 ignore next 3 */
|
|
42
68
|
if (!str) {
|
|
43
69
|
return str;
|
|
44
70
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../src/shared/Utils.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;
|
|
1
|
+
{"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../src/shared/Utils.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAahG,gDAoBC;AASD,wDAGC;AAOD,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KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IACvB,OAAO,GAA8B,EAAE;QACrC,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC;QACnC,IAAI,OAAO,GAAG,mBAAmB,EAAE,CAAC;YAClC,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,OAAO,iBAAiB,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE;YACnC,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACrB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,UAAkB;IACjD,MAAM,MAAM,GAAG,CAAC,UAAU,GAAG,SAAS,CAAC,GAAG,QAAQ,CAAC;IACnD,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Id64String } from "@itwin/core-bentley";
|
|
2
|
-
import { PrimitiveValueType } from "./Metadata.js";
|
|
1
|
+
import type { Id64String } from "@itwin/core-bentley";
|
|
2
|
+
import type { EC, PrimitiveValueType } from "./Metadata.js";
|
|
3
3
|
/**
|
|
4
4
|
* A data structure uniquely identifying an ECInstance in an iModel.
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
7
|
export interface InstanceKey {
|
|
8
8
|
/** Full class name in format `SchemaName.ClassName` */
|
|
9
|
-
className:
|
|
9
|
+
className: EC.FullClassName;
|
|
10
10
|
/** ECInstance ID */
|
|
11
11
|
id: Id64String;
|
|
12
12
|
}
|
|
@@ -69,29 +69,26 @@ export declare namespace PrimitiveValue {
|
|
|
69
69
|
*/
|
|
70
70
|
export type TypedPrimitiveValue = ({
|
|
71
71
|
value: number;
|
|
72
|
-
type: "Integer" | "Long"
|
|
73
|
-
} | {
|
|
74
|
-
value: number;
|
|
75
|
-
type: "Double";
|
|
72
|
+
type: Extract<PrimitiveValueType, "Double" | "Integer" | "Long">;
|
|
76
73
|
koqName?: string;
|
|
77
74
|
} | {
|
|
78
75
|
value: boolean;
|
|
79
|
-
type: "Boolean"
|
|
76
|
+
type: Extract<PrimitiveValueType, "Boolean">;
|
|
80
77
|
} | {
|
|
81
78
|
value: Id64String;
|
|
82
|
-
type: "Id"
|
|
79
|
+
type: Extract<PrimitiveValueType, "Id">;
|
|
83
80
|
} | {
|
|
84
81
|
value: string;
|
|
85
|
-
type: "String"
|
|
82
|
+
type: Extract<PrimitiveValueType, "String">;
|
|
86
83
|
} | {
|
|
87
84
|
value: number | string | Date;
|
|
88
|
-
type: "DateTime"
|
|
85
|
+
type: Extract<PrimitiveValueType, "DateTime">;
|
|
89
86
|
} | {
|
|
90
87
|
value: Point2d;
|
|
91
|
-
type: "Point2d"
|
|
88
|
+
type: Extract<PrimitiveValueType, "Point2d">;
|
|
92
89
|
} | {
|
|
93
90
|
value: Point3d;
|
|
94
|
-
type: "Point3d"
|
|
91
|
+
type: Extract<PrimitiveValueType, "Point3d">;
|
|
95
92
|
}) & {
|
|
96
93
|
extendedType?: string;
|
|
97
94
|
};
|
|
@@ -104,4 +101,21 @@ export declare namespace TypedPrimitiveValue {
|
|
|
104
101
|
*/
|
|
105
102
|
function create(value: PrimitiveValue, type: PrimitiveValueType, koqName?: string, extendedType?: string): TypedPrimitiveValue;
|
|
106
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* A composite value representing a struct (named record with member values).
|
|
106
|
+
* @public
|
|
107
|
+
*/
|
|
108
|
+
export interface StructValue {
|
|
109
|
+
[memberName: string]: Value;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* A composite value representing an array of values.
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
export type ArrayValue = Value[];
|
|
116
|
+
/**
|
|
117
|
+
* Any value that can be assigned to an ECInstance — a primitive, struct, array, or undefined (null/empty).
|
|
118
|
+
* @public
|
|
119
|
+
*/
|
|
120
|
+
export type Value = PrimitiveValue | StructValue | ArrayValue | undefined;
|
|
107
121
|
//# sourceMappingURL=Values.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Values.d.ts","sourceRoot":"","sources":["../../../src/shared/Values.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Values.d.ts","sourceRoot":"","sources":["../../../src/shared/Values.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,EAAE,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAE5D;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,uDAAuD;IACvD,SAAS,EAAE,EAAE,CAAC,aAAa,CAAC;IAC5B,oBAAoB;IACpB,EAAE,EAAE,UAAU,CAAC;CAChB;AAED,cAAc;AACd,yBAAiB,WAAW,CAAC;IAC3B;;;OAGG;IACH,SAAgB,MAAM,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,WAAW,GAAG,OAAO,CAElE;IACD;;;;;;OAMG;IACH,SAAgB,OAAO,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,WAAW,GAAG,MAAM,CASlE;CACF;AAED;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,OAAO,GAAG,OAAO,CAAC;AAE/F,cAAc;AAEd,yBAAiB,cAAc,CAAC;IAC9B;;;;OAIG;IACH,SAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,GAAG,KAAK,IAAI,OAA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