@itwin/rpcinterface-full-stack-tests 5.0.0-dev.89 → 5.0.0-dev.90

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.
@@ -1 +1 @@
1
- {"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|C:\\agent\\_work\\1\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.1.6\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|C:\\agent\\_work\\2\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.1.6\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
@@ -47689,6 +47689,7 @@ var PrimitiveTypeCode;
47689
47689
  })(PrimitiveTypeCode || (PrimitiveTypeCode = {}));
47690
47690
  /** Metadata for a property.
47691
47691
  * @beta
47692
+ * @deprecated in 5.0. Use the `Property` class from @itwin/ecschema-metadata` instead.
47692
47693
  */
47693
47694
  class PropertyMetaData {
47694
47695
  primitiveType;
@@ -47708,7 +47709,9 @@ class PropertyMetaData {
47708
47709
  maxOccurs;
47709
47710
  direction;
47710
47711
  relationshipClass;
47712
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
47711
47713
  customAttributes;
47714
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
47712
47715
  constructor(jsonObj) {
47713
47716
  this.primitiveType = jsonObj.primitiveType;
47714
47717
  if (jsonObj.structName)
@@ -47771,6 +47774,7 @@ class PropertyMetaData {
47771
47774
  }
47772
47775
  /** Metadata for an Entity.
47773
47776
  * @beta
47777
+ * @deprecated in 5.0. Use `EntityClass` class from `@itwin/ecschema-metadata` instead.
47774
47778
  */
47775
47779
  class EntityMetaData {
47776
47780
  /** The Id of the class in the [[IModelDb]] from which the metadata was obtained. */
@@ -47783,9 +47787,12 @@ class EntityMetaData {
47783
47787
  /** The base class that this class is derives from. If more than one, the first is the actual base class and the others are mixins. */
47784
47788
  baseClasses;
47785
47789
  /** The Custom Attributes for this class */
47790
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
47786
47791
  customAttributes;
47787
47792
  /** An object whose properties correspond by name to the properties of this class. */
47793
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
47788
47794
  properties;
47795
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
47789
47796
  constructor(jsonObj) {
47790
47797
  this.classId = jsonObj.classId;
47791
47798
  this.ecclass = jsonObj.ecclass;
@@ -47796,6 +47803,7 @@ class EntityMetaData {
47796
47803
  this.customAttributes = jsonObj.customAttributes;
47797
47804
  this.properties = {};
47798
47805
  for (const propName in jsonObj.properties) { // eslint-disable-line guard-for-in
47806
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
47799
47807
  this.properties[propName] = new PropertyMetaData(jsonObj.properties[propName]);
47800
47808
  }
47801
47809
  }
@@ -77078,12 +77086,16 @@ __webpack_require__.r(__webpack_exports__);
77078
77086
  /* harmony export */ });
77079
77087
  /* harmony import */ var _ECObjects__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ECObjects */ "../../core/ecschema-metadata/lib/esm/ECObjects.js");
77080
77088
  /* harmony import */ var _Exception__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Exception */ "../../core/ecschema-metadata/lib/esm/Exception.js");
77089
+ /* harmony import */ var _Metadata_SchemaItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Metadata/SchemaItem */ "../../core/ecschema-metadata/lib/esm/Metadata/SchemaItem.js");
77090
+ /* harmony import */ var _SchemaKey__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SchemaKey */ "../../core/ecschema-metadata/lib/esm/SchemaKey.js");
77081
77091
  /*---------------------------------------------------------------------------------------------
77082
77092
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
77083
77093
  * See LICENSE.md in the project root for license terms and full copyright notice.
77084
77094
  *--------------------------------------------------------------------------------------------*/
77085
77095
 
77086
77096
 
77097
+
77098
+
77087
77099
  /**
77088
77100
  * @internal
77089
77101
  */
@@ -77386,21 +77398,45 @@ class SchemaContext {
77386
77398
  getCachedSchemaSync(schemaKey, matchType = _ECObjects__WEBPACK_IMPORTED_MODULE_0__.SchemaMatchType.Latest) {
77387
77399
  return this._knownSchemas.getSchemaSync(schemaKey, matchType);
77388
77400
  }
77389
- async getSchemaItem(schemaItemKey, itemConstructor) {
77390
- const schema = await this.getSchema(schemaItemKey.schemaKey, _ECObjects__WEBPACK_IMPORTED_MODULE_0__.SchemaMatchType.Latest);
77391
- if (undefined === schema)
77401
+ async getSchemaItem(schemaNameOrKey, itemNameOrCtor, itemConstructor) {
77402
+ let schemaKey;
77403
+ if (typeof schemaNameOrKey === "string") {
77404
+ const [schemaName, itemName] = _Metadata_SchemaItem__WEBPACK_IMPORTED_MODULE_2__.SchemaItem.parseFullName(schemaNameOrKey);
77405
+ schemaKey = (!schemaName) ? new _SchemaKey__WEBPACK_IMPORTED_MODULE_3__.SchemaKey(itemName) : new _SchemaKey__WEBPACK_IMPORTED_MODULE_3__.SchemaKey(schemaName);
77406
+ }
77407
+ else {
77408
+ schemaKey = schemaNameOrKey.schemaKey;
77409
+ }
77410
+ const schema = await this.getSchema(schemaKey, _ECObjects__WEBPACK_IMPORTED_MODULE_0__.SchemaMatchType.Latest);
77411
+ if (!schema)
77392
77412
  return undefined;
77393
- if (undefined === itemConstructor)
77394
- return schema.getItem(schemaItemKey.name);
77395
- return schema.getItem(schemaItemKey.name, itemConstructor);
77396
- }
77397
- getSchemaItemSync(schemaItemKey, itemConstructor) {
77398
- const schema = this.getSchemaSync(schemaItemKey.schemaKey, _ECObjects__WEBPACK_IMPORTED_MODULE_0__.SchemaMatchType.Latest);
77399
- if (undefined === schema)
77413
+ if (typeof itemNameOrCtor === "string") // Separate schema and item name arguments with/without an itemConstructor
77414
+ return itemConstructor ? schema.getItem(itemNameOrCtor, itemConstructor) : schema.getItem(itemNameOrCtor);
77415
+ if (typeof schemaNameOrKey === "string") // Single schema item full name argument with/without an itemConstructor
77416
+ return itemNameOrCtor ? schema.lookupItem(schemaNameOrKey, itemNameOrCtor) : schema.lookupItem(schemaNameOrKey);
77417
+ // Schema Item Key with/without an itemConstructor
77418
+ return itemNameOrCtor ? schema.getItem(schemaNameOrKey.name, itemNameOrCtor) : schema.getItem(schemaNameOrKey.name);
77419
+ }
77420
+ getSchemaItemSync(schemaNameOrKey, itemNameOrCtor, itemConstructor) {
77421
+ let schemaKey;
77422
+ if (typeof schemaNameOrKey === "string") {
77423
+ const [schemaName, itemName] = _Metadata_SchemaItem__WEBPACK_IMPORTED_MODULE_2__.SchemaItem.parseFullName(schemaNameOrKey);
77424
+ schemaKey = (!schemaName) ? new _SchemaKey__WEBPACK_IMPORTED_MODULE_3__.SchemaKey(itemName) : new _SchemaKey__WEBPACK_IMPORTED_MODULE_3__.SchemaKey(schemaName);
77425
+ }
77426
+ else {
77427
+ schemaKey = schemaNameOrKey.schemaKey;
77428
+ }
77429
+ const schema = this.getSchemaSync(schemaKey, _ECObjects__WEBPACK_IMPORTED_MODULE_0__.SchemaMatchType.Latest);
77430
+ if (!schema)
77400
77431
  return undefined;
77401
- if (undefined === itemConstructor)
77402
- return schema.getItemSync(schemaItemKey.name);
77403
- return schema.getItemSync(schemaItemKey.name, itemConstructor);
77432
+ // Separate schema and item name arguments with/without an itemConstructor
77433
+ if (typeof itemNameOrCtor === "string") {
77434
+ return itemConstructor ? schema.getItemSync(itemNameOrCtor, itemConstructor) : schema.getItemSync(itemNameOrCtor);
77435
+ }
77436
+ if (typeof schemaNameOrKey === "string") // Single schema item full name argument with/without an itemConstructor
77437
+ return itemNameOrCtor ? schema.lookupItemSync(schemaNameOrKey, itemNameOrCtor) : schema.lookupItemSync(schemaNameOrKey);
77438
+ // Schema Item Key with/without an itemConstructor
77439
+ return itemNameOrCtor ? schema.getItemSync(schemaNameOrKey.name, itemNameOrCtor) : schema.getItemSync(schemaNameOrKey.name);
77404
77440
  }
77405
77441
  /**
77406
77442
  * Iterates through the items of each schema known to the context. This includes schemas added to the
@@ -80139,8 +80175,6 @@ class XmlParser extends _AbstractParser__WEBPACK_IMPORTED_MODULE_5__.AbstractPar
80139
80175
  }
80140
80176
  addCAPropertyValues(caClass, propertyElements) {
80141
80177
  const instance = { className: caClass.fullName };
80142
- if (!caClass.properties)
80143
- return instance;
80144
80178
  for (const propertyElement of propertyElements) {
80145
80179
  const value = this.readPropertyValue(propertyElement, caClass);
80146
80180
  if (value !== undefined)
@@ -80387,9 +80421,7 @@ var XmlSerializationUtils;
80387
80421
  const caElement = schemaDoc.createElement(nameAndNamespace[0]);
80388
80422
  if (nameAndNamespace[1])
80389
80423
  caElement.setAttribute("xmlns", nameAndNamespace[1]);
80390
- if (!caClass.properties)
80391
- return caElement;
80392
- for (const property of caClass.properties)
80424
+ for (const property of await caClass.getProperties())
80393
80425
  await writeInstanceProperty(property, customAttribute, caElement, schemaDoc);
80394
80426
  return caElement;
80395
80427
  }
@@ -80455,9 +80487,7 @@ var XmlSerializationUtils;
80455
80487
  */
80456
80488
  async function writeStructProperty(propertyClass, propertyValue, structElement, schemaDoc) {
80457
80489
  const structClass = propertyClass.structClass;
80458
- if (!structClass.properties)
80459
- return;
80460
- for (const propertyMetadata of structClass.properties)
80490
+ for (const propertyMetadata of structClass.getPropertiesSync(true))
80461
80491
  await writeInstanceProperty(propertyMetadata, propertyValue, structElement, schemaDoc);
80462
80492
  }
80463
80493
  XmlSerializationUtils.writeStructProperty = writeStructProperty;
@@ -81120,7 +81150,6 @@ function isSupportedSchemaItemType(value, supported) {
81120
81150
  value === SchemaItemType.CustomAttributeClass ||
81121
81151
  value === SchemaItemType.RelationshipClass)) {
81122
81152
  return true;
81123
- ;
81124
81153
  }
81125
81154
  if (supported === AbstractSchemaItemType.SchemaItem) {
81126
81155
  return true;
@@ -81307,7 +81336,6 @@ class ECClass extends _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem {
81307
81336
  _customAttributes;
81308
81337
  _mergedPropertyCache;
81309
81338
  get modifier() { return this._modifier; }
81310
- get properties() { return this._properties?.values(); }
81311
81339
  get customAttributes() { return this._customAttributes; }
81312
81340
  constructor(schema, name, modifier) {
81313
81341
  super(schema, name);
@@ -81351,6 +81379,7 @@ class ECClass extends _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem {
81351
81379
  if (!this._properties)
81352
81380
  this._properties = new Map();
81353
81381
  this._properties.set(prop.name.toUpperCase(), prop);
81382
+ this.cleanCache();
81354
81383
  return prop;
81355
81384
  }
81356
81385
  /**
@@ -81361,8 +81390,10 @@ class ECClass extends _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem {
81361
81390
  async deleteProperty(name) {
81362
81391
  if (this._properties) {
81363
81392
  const property = await this.getProperty(name);
81364
- if (property)
81393
+ if (property) {
81365
81394
  this._properties.delete(name.toUpperCase());
81395
+ this.cleanCache();
81396
+ }
81366
81397
  }
81367
81398
  }
81368
81399
  /**
@@ -81373,8 +81404,10 @@ class ECClass extends _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem {
81373
81404
  deletePropertySync(name) {
81374
81405
  if (this._properties) {
81375
81406
  const property = this.getPropertySync(name);
81376
- if (property)
81407
+ if (property) {
81377
81408
  this._properties.delete(name.toUpperCase());
81409
+ this.cleanCache();
81410
+ }
81378
81411
  }
81379
81412
  }
81380
81413
  getBaseClassSync() {
@@ -81575,7 +81608,7 @@ class ECClass extends _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem {
81575
81608
  if (this.baseClass !== undefined)
81576
81609
  schemaJson.baseClass = this.baseClass.fullName;
81577
81610
  if (this._properties !== undefined && this._properties.size > 0)
81578
- schemaJson.properties = [...this.properties].map((prop) => prop.toJSON());
81611
+ schemaJson.properties = [...this._properties.values()].map((prop) => prop.toJSON());
81579
81612
  const customAttributes = (0,_CustomAttribute__WEBPACK_IMPORTED_MODULE_6__.serializeCustomAttributes)(this.customAttributes);
81580
81613
  if (customAttributes !== undefined)
81581
81614
  schemaJson.customAttributes = customAttributes;
@@ -81593,8 +81626,8 @@ class ECClass extends _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem {
81593
81626
  baseClassElement.textContent = baseClassName;
81594
81627
  itemElement.appendChild(baseClassElement);
81595
81628
  }
81596
- if (undefined !== this.properties) {
81597
- for (const prop of this.properties) {
81629
+ if (undefined !== this._properties) {
81630
+ for (const prop of this._properties.values()) {
81598
81631
  const propXml = await prop.toXml(schemaXml);
81599
81632
  itemElement.appendChild(propXml);
81600
81633
  }
@@ -81712,52 +81745,71 @@ class ECClass extends _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem {
81712
81745
  }
81713
81746
  }
81714
81747
  }
81715
- async buildPropertyCache(result, existingValues, resetBaseCaches = false) {
81748
+ async buildPropertyCache(result, existingValues) {
81716
81749
  if (!existingValues) {
81717
81750
  existingValues = new Map();
81718
81751
  }
81719
81752
  if (this.baseClass) {
81720
- ECClass.mergeProperties(result, existingValues, await (await this.baseClass).getProperties(resetBaseCaches), false);
81753
+ const baseClass = await this.baseClass;
81754
+ if (baseClass) {
81755
+ ECClass.mergeProperties(result, existingValues, await baseClass.getProperties(), false);
81756
+ }
81721
81757
  }
81722
- if (!this.properties)
81758
+ if (!this._properties)
81723
81759
  return;
81724
- ECClass.mergeProperties(result, existingValues, [...this.properties], true);
81760
+ ECClass.mergeProperties(result, existingValues, [...this._properties.values()], true);
81725
81761
  }
81726
- buildPropertyCacheSync(result, existingValues, resetBaseCaches = false) {
81762
+ buildPropertyCacheSync(result, existingValues) {
81727
81763
  if (!existingValues) {
81728
81764
  existingValues = new Map();
81729
81765
  }
81730
81766
  const baseClass = this.getBaseClassSync();
81731
81767
  if (baseClass) {
81732
- ECClass.mergeProperties(result, existingValues, baseClass.getPropertiesSync(resetBaseCaches), false);
81768
+ ECClass.mergeProperties(result, existingValues, baseClass.getPropertiesSync(), false);
81733
81769
  }
81734
- if (!this.properties)
81770
+ if (!this._properties)
81735
81771
  return;
81736
- ECClass.mergeProperties(result, existingValues, [...this.properties], true);
81772
+ ECClass.mergeProperties(result, existingValues, [...this._properties.values()], true);
81737
81773
  }
81738
81774
  /**
81739
- * Iterates all properties, including the ones merged from base classes and mixins. To obtain only local properties, use the 'properties' field.
81775
+ * Clears all caches on this object. This is called implicitly for this class,
81776
+ * but needs to be called if derived classes have changed.
81777
+ * @internal
81778
+ */
81779
+ cleanCache() {
81780
+ this._mergedPropertyCache = undefined;
81781
+ }
81782
+ /**
81783
+ * Returns the properties on this class and its base classes.
81740
81784
  * Since this is an expensive operation, results will be cached after first call.
81741
- * @param resetCache if true, any previously cached results will be dropped and cache will be rebuilt
81785
+ * @param excludeInherited If true, only properties defined directly on this class will be returned. Defaults to false.
81786
+ * @returns An array of properties, empty array if none exist.
81742
81787
  */
81743
- getPropertiesSync(resetCache = false) {
81744
- if (!this._mergedPropertyCache || resetCache) {
81788
+ getPropertiesSync(excludeInherited) {
81789
+ if (excludeInherited) {
81790
+ return this._properties && this._properties.size > 0 ? this._properties.values() : [];
81791
+ }
81792
+ if (!this._mergedPropertyCache) {
81745
81793
  this._mergedPropertyCache = [];
81746
- this.buildPropertyCacheSync(this._mergedPropertyCache, undefined, resetCache);
81794
+ this.buildPropertyCacheSync(this._mergedPropertyCache, undefined);
81747
81795
  }
81748
81796
  return this._mergedPropertyCache;
81749
81797
  }
81750
81798
  /**
81751
- * Iterates all properties, including the ones merged from base classes and mixins. To obtain only local properties, use the 'properties' field.
81799
+ * Quick way to check whether this class has any local properties without having to use the iterable
81800
+ */
81801
+ get hasLocalProperties() {
81802
+ return this._properties !== undefined && this._properties.size > 0;
81803
+ }
81804
+ /**
81805
+ * Returns the properties on this class and its base classes.
81752
81806
  * Since this is an expensive operation, results will be cached after first call.
81753
- * @param resetCache if true, any previously cached results will be dropped and cache will be rebuilt
81807
+ * @param excludeInherited If true, only properties defined directly on this class will be returned.
81808
+ * @returns An array of properties, empty array if none exist.
81754
81809
  */
81755
- async getProperties(resetCache = false) {
81756
- if (!this._mergedPropertyCache || resetCache) {
81757
- this._mergedPropertyCache = [];
81758
- await this.buildPropertyCache(this._mergedPropertyCache, undefined, resetCache);
81759
- }
81760
- return this._mergedPropertyCache;
81810
+ async getProperties(excludeInherited) {
81811
+ // At the moment we do not lazy load properties, so this is the same as getPropertiesSync
81812
+ return this.getPropertiesSync(excludeInherited);
81761
81813
  }
81762
81814
  /**
81763
81815
  * Retrieve all custom attributes in the current class and its bases
@@ -82353,34 +82405,34 @@ class EntityClass extends _Class__WEBPACK_IMPORTED_MODULE_4__.ECClass {
82353
82405
  }
82354
82406
  return undefined;
82355
82407
  }
82356
- async buildPropertyCache(result, existingValues, resetBaseCaches = false) {
82408
+ async buildPropertyCache(result, existingValues) {
82357
82409
  if (!existingValues) {
82358
82410
  existingValues = new Map();
82359
82411
  }
82360
- if (this.baseClass) {
82361
- _Class__WEBPACK_IMPORTED_MODULE_4__.ECClass.mergeProperties(result, existingValues, await (await this.baseClass).getProperties(resetBaseCaches), false);
82412
+ const baseClass = await this.baseClass;
82413
+ if (baseClass) {
82414
+ _Class__WEBPACK_IMPORTED_MODULE_4__.ECClass.mergeProperties(result, existingValues, await baseClass.getProperties(), false);
82362
82415
  }
82363
82416
  for (const mixin of this.mixins) {
82364
- _Class__WEBPACK_IMPORTED_MODULE_4__.ECClass.mergeProperties(result, existingValues, await (await mixin).getProperties(resetBaseCaches), false);
82417
+ const resolvedMixin = await mixin;
82418
+ _Class__WEBPACK_IMPORTED_MODULE_4__.ECClass.mergeProperties(result, existingValues, await resolvedMixin.getProperties(), false);
82365
82419
  }
82366
- if (!this.properties)
82367
- return;
82368
- _Class__WEBPACK_IMPORTED_MODULE_4__.ECClass.mergeProperties(result, existingValues, [...this.properties], true);
82420
+ const localProps = await this.getProperties(true);
82421
+ _Class__WEBPACK_IMPORTED_MODULE_4__.ECClass.mergeProperties(result, existingValues, localProps, true);
82369
82422
  }
82370
- buildPropertyCacheSync(result, existingValues, resetBaseCaches = false) {
82423
+ buildPropertyCacheSync(result, existingValues) {
82371
82424
  if (!existingValues) {
82372
82425
  existingValues = new Map();
82373
82426
  }
82374
82427
  const baseClass = this.getBaseClassSync();
82375
82428
  if (baseClass) {
82376
- _Class__WEBPACK_IMPORTED_MODULE_4__.ECClass.mergeProperties(result, existingValues, baseClass.getPropertiesSync(resetBaseCaches), false);
82429
+ _Class__WEBPACK_IMPORTED_MODULE_4__.ECClass.mergeProperties(result, existingValues, baseClass.getPropertiesSync(), false);
82377
82430
  }
82378
82431
  for (const mixin of this.getMixinsSync()) {
82379
- _Class__WEBPACK_IMPORTED_MODULE_4__.ECClass.mergeProperties(result, existingValues, mixin.getPropertiesSync(resetBaseCaches), false);
82432
+ _Class__WEBPACK_IMPORTED_MODULE_4__.ECClass.mergeProperties(result, existingValues, mixin.getPropertiesSync(), false);
82380
82433
  }
82381
- if (!this.properties)
82382
- return;
82383
- _Class__WEBPACK_IMPORTED_MODULE_4__.ECClass.mergeProperties(result, existingValues, [...this.properties], true);
82434
+ const localProps = this.getPropertiesSync(true);
82435
+ _Class__WEBPACK_IMPORTED_MODULE_4__.ECClass.mergeProperties(result, existingValues, localProps, true);
82384
82436
  }
82385
82437
  /**
82386
82438
  *
@@ -87667,8 +87719,7 @@ class SchemaUnitProvider {
87667
87719
  // Find units' full name that match given phenomenon param.
87668
87720
  const filteredUnits = [];
87669
87721
  const schemaItems = this._context.getSchemaItems();
87670
- let { value, done } = schemaItems.next();
87671
- while (!done) {
87722
+ for (const value of schemaItems) {
87672
87723
  if (_Metadata_Unit__WEBPACK_IMPORTED_MODULE_5__.Unit.isUnit(value)) {
87673
87724
  const foundPhenomenon = await value.phenomenon;
87674
87725
  if (foundPhenomenon && foundPhenomenon.key.matchesFullName(phenomenon)) {
@@ -87686,7 +87737,6 @@ class SchemaUnitProvider {
87686
87737
  }
87687
87738
  }
87688
87739
  }
87689
- ({ value, done } = schemaItems.next());
87690
87740
  }
87691
87741
  return filteredUnits;
87692
87742
  }
@@ -87800,8 +87850,7 @@ class SchemaUnitProvider {
87800
87850
  async findUnitByDisplayLabel(displayLabel, schemaName, phenomenon, unitSystem) {
87801
87851
  // TODO: Known bug: This only looks through loaded schemas. If schema name is provided, we can attempt to load that schema
87802
87852
  const schemaItems = this._context.getSchemaItems();
87803
- let { value, done } = schemaItems.next();
87804
- while (!done) {
87853
+ for (const value of schemaItems) {
87805
87854
  if (_Metadata_Unit__WEBPACK_IMPORTED_MODULE_5__.Unit.isUnit(value) && value.label?.toLowerCase() === displayLabel) {
87806
87855
  // TODO: this can be optimized. We don't have to await these if we don't want to check for them
87807
87856
  const currPhenomenon = await value.phenomenon;
@@ -87822,7 +87871,6 @@ class SchemaUnitProvider {
87822
87871
  return this.getUnitsProps(value);
87823
87872
  }
87824
87873
  }
87825
- ({ value, done } = schemaItems.next());
87826
87874
  }
87827
87875
  return new _itwin_core_quantity__WEBPACK_IMPORTED_MODULE_1__.BadUnit();
87828
87876
  }
@@ -87912,10 +87960,8 @@ class SchemaWalker {
87912
87960
  await this.traverseClass(schemaItem);
87913
87961
  }
87914
87962
  async traverseClass(ecClass) {
87915
- if (ecClass.properties) {
87916
- for (const property of ecClass.properties) {
87917
- await this._visitorHelper.visitSchemaPart(property);
87918
- }
87963
+ for (const property of await ecClass.getProperties(true)) {
87964
+ await this._visitorHelper.visitSchemaPart(property);
87919
87965
  }
87920
87966
  if (ecClass.schemaItemType === _ECObjects__WEBPACK_IMPORTED_MODULE_0__.SchemaItemType.RelationshipClass) {
87921
87967
  await this._visitorHelper.visitSchemaPart(ecClass.source);
@@ -314584,7 +314630,7 @@ class TestContext {
314584
314630
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
314585
314631
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
314586
314632
  await core_frontend_1.NoRenderApp.startup({
314587
- applicationVersion: "5.0.0-dev.89",
314633
+ applicationVersion: "5.0.0-dev.90",
314588
314634
  applicationId: this.settings.gprid,
314589
314635
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.serviceAuthToken),
314590
314636
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
@@ -340660,7 +340706,7 @@ function __rewriteRelativeImportExtension(path, preserveJsx) {
340660
340706
  /***/ ((module) => {
340661
340707
 
340662
340708
  "use strict";
340663
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.0.0-dev.89","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2022 --outDir lib/esm","clean":"rimraf -g lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run webpackTestWorker && vitest --run","cover":"npm run webpackTestWorker && vitest --run","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/eslint-plugin":"5.0.0-dev.1","@types/chai-as-promised":"^7","@vitest/browser":"^3.0.6","@vitest/coverage-v8":"^3.0.6","cpx2":"^8.0.0","eslint":"^9.13.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^6.0.1","source-map-loader":"^5.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^3.0.6","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"2.2.0","webpack":"^5.97.1"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/cloud-agnostic-core":"^2.2.4","@itwin/object-storage-core":"^2.3.0","@itwin/core-i18n":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
340709
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.0.0-dev.90","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2022 --outDir lib/esm","clean":"rimraf -g lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run webpackTestWorker && vitest --run","cover":"npm run webpackTestWorker && vitest --run","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/eslint-plugin":"5.0.0-dev.1","@types/chai-as-promised":"^7","@vitest/browser":"^3.0.6","@vitest/coverage-v8":"^3.0.6","cpx2":"^8.0.0","eslint":"^9.13.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^6.0.1","source-map-loader":"^5.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^3.0.6","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"2.2.0","webpack":"^5.97.1"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/cloud-agnostic-core":"^2.2.4","@itwin/object-storage-core":"^2.3.0","@itwin/core-i18n":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
340664
340710
 
340665
340711
  /***/ }),
340666
340712