@itwin/ecschema-rpcinterface-tests 4.8.0-dev.16 → 4.8.0-dev.17

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.
@@ -20973,12 +20973,8 @@ class BeEventList {
20973
20973
  "use strict";
20974
20974
  __webpack_require__.r(__webpack_exports__);
20975
20975
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20976
- /* harmony export */ "DbChangeStage": () => (/* binding */ DbChangeStage),
20977
- /* harmony export */ "DbConflictCause": () => (/* binding */ DbConflictCause),
20978
- /* harmony export */ "DbConflictResolution": () => (/* binding */ DbConflictResolution),
20979
20976
  /* harmony export */ "DbOpcode": () => (/* binding */ DbOpcode),
20980
20977
  /* harmony export */ "DbResult": () => (/* binding */ DbResult),
20981
- /* harmony export */ "DbValueType": () => (/* binding */ DbValueType),
20982
20978
  /* harmony export */ "OpenMode": () => (/* binding */ OpenMode)
20983
20979
  /* harmony export */ });
20984
20980
  /*---------------------------------------------------------------------------------------------
@@ -21008,48 +21004,6 @@ var DbOpcode;
21008
21004
  /** Some columns of an existing row were updated. */
21009
21005
  DbOpcode[DbOpcode["Update"] = 23] = "Update";
21010
21006
  })(DbOpcode || (DbOpcode = {}));
21011
- /** Change value stage.
21012
- * @internal
21013
- */
21014
- var DbChangeStage;
21015
- (function (DbChangeStage) {
21016
- DbChangeStage[DbChangeStage["Old"] = 0] = "Old";
21017
- DbChangeStage[DbChangeStage["New"] = 1] = "New";
21018
- })(DbChangeStage || (DbChangeStage = {}));
21019
- /** Change value type.
21020
- * @internal
21021
- */
21022
- var DbValueType;
21023
- (function (DbValueType) {
21024
- DbValueType[DbValueType["IntegerVal"] = 1] = "IntegerVal";
21025
- DbValueType[DbValueType["FloatVal"] = 2] = "FloatVal";
21026
- DbValueType[DbValueType["TextVal"] = 3] = "TextVal";
21027
- DbValueType[DbValueType["BlobVal"] = 4] = "BlobVal";
21028
- DbValueType[DbValueType["NullVal"] = 5] = "NullVal";
21029
- })(DbValueType || (DbValueType = {}));
21030
- /** Cause of conflict when applying a changeset
21031
- * @internal
21032
- */
21033
- var DbConflictCause;
21034
- (function (DbConflictCause) {
21035
- DbConflictCause[DbConflictCause["Data"] = 1] = "Data";
21036
- DbConflictCause[DbConflictCause["NotFound"] = 2] = "NotFound";
21037
- DbConflictCause[DbConflictCause["Conflict"] = 3] = "Conflict";
21038
- DbConflictCause[DbConflictCause["Constraint"] = 4] = "Constraint";
21039
- DbConflictCause[DbConflictCause["ForeignKey"] = 5] = "ForeignKey";
21040
- })(DbConflictCause || (DbConflictCause = {}));
21041
- /** Conflict resolution strategy
21042
- * @internal
21043
- */
21044
- var DbConflictResolution;
21045
- (function (DbConflictResolution) {
21046
- /** Skip incoming change */
21047
- DbConflictResolution[DbConflictResolution["Skip"] = 0] = "Skip";
21048
- /** Replace local row with incoming changed row */
21049
- DbConflictResolution[DbConflictResolution["Replace"] = 1] = "Replace";
21050
- /** Abort apply changeset */
21051
- DbConflictResolution[DbConflictResolution["Abort"] = 2] = "Abort";
21052
- })(DbConflictResolution || (DbConflictResolution = {}));
21053
21007
  /** Values for return codes from BeSQLite functions. Consult SQLite documentation for further explanations.
21054
21008
  * @public
21055
21009
  */
@@ -21227,10 +21181,10 @@ __webpack_require__.r(__webpack_exports__);
21227
21181
  /* harmony export */ "IModelHubStatus": () => (/* binding */ IModelHubStatus),
21228
21182
  /* harmony export */ "IModelStatus": () => (/* binding */ IModelStatus),
21229
21183
  /* harmony export */ "RealityDataStatus": () => (/* binding */ RealityDataStatus),
21230
- /* harmony export */ "RepositoryStatus": () => (/* binding */ RepositoryStatus),
21231
21184
  /* harmony export */ "RpcInterfaceStatus": () => (/* binding */ RpcInterfaceStatus)
21232
21185
  /* harmony export */ });
21233
21186
  /* harmony import */ var _BeSQLite__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BeSQLite */ "../../core/bentley/lib/esm/BeSQLite.js");
21187
+ /* harmony import */ var _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./internal/RepositoryStatus */ "../../core/bentley/lib/esm/internal/RepositoryStatus.js");
21234
21188
  /*---------------------------------------------------------------------------------------------
21235
21189
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
21236
21190
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -21239,6 +21193,7 @@ __webpack_require__.r(__webpack_exports__);
21239
21193
  * @module Errors
21240
21194
  */
21241
21195
 
21196
+
21242
21197
  /** Standard status code.
21243
21198
  * This status code should be rarely used.
21244
21199
  * Prefer to throw an exception to indicate an error, rather than returning a special status code.
@@ -21416,43 +21371,6 @@ var ChangeSetStatus;
21416
21371
  /** ChangeSet(s) download was cancelled. */
21417
21372
  ChangeSetStatus[ChangeSetStatus["DownloadCancelled"] = 90138] = "DownloadCancelled";
21418
21373
  })(ChangeSetStatus || (ChangeSetStatus = {}));
21419
- /** Return codes for methods which perform repository management operations
21420
- * @internal
21421
- */
21422
- var RepositoryStatus;
21423
- (function (RepositoryStatus) {
21424
- RepositoryStatus[RepositoryStatus["Success"] = 0] = "Success";
21425
- /** The repository server did not respond to a request */
21426
- RepositoryStatus[RepositoryStatus["ServerUnavailable"] = 86017] = "ServerUnavailable";
21427
- /** A requested lock was already held by another briefcase */
21428
- RepositoryStatus[RepositoryStatus["LockAlreadyHeld"] = 86018] = "LockAlreadyHeld";
21429
- /** Failed to sync briefcase manager with server */
21430
- RepositoryStatus[RepositoryStatus["SyncError"] = 86019] = "SyncError";
21431
- /** Response from server not understood */
21432
- RepositoryStatus[RepositoryStatus["InvalidResponse"] = 86020] = "InvalidResponse";
21433
- /** An operation requires local changes to be committed or abandoned */
21434
- RepositoryStatus[RepositoryStatus["PendingTransactions"] = 86021] = "PendingTransactions";
21435
- /** A lock cannot be relinquished because the associated object has been modified */
21436
- RepositoryStatus[RepositoryStatus["LockUsed"] = 86022] = "LockUsed";
21437
- /** An operation required creation of a ChangeSet, which failed */
21438
- RepositoryStatus[RepositoryStatus["CannotCreateChangeSet"] = 86023] = "CannotCreateChangeSet";
21439
- /** Request to server not understood */
21440
- RepositoryStatus[RepositoryStatus["InvalidRequest"] = 86024] = "InvalidRequest";
21441
- /** A change set committed to the server must be integrated into the briefcase before the operation can be completed */
21442
- RepositoryStatus[RepositoryStatus["ChangeSetRequired"] = 86025] = "ChangeSetRequired";
21443
- /** A requested DgnCode is reserved by another briefcase or in use */
21444
- RepositoryStatus[RepositoryStatus["CodeUnavailable"] = 86026] = "CodeUnavailable";
21445
- /** A DgnCode cannot be released because it has not been reserved by the requesting briefcase */
21446
- RepositoryStatus[RepositoryStatus["CodeNotReserved"] = 86027] = "CodeNotReserved";
21447
- /** A DgnCode cannot be relinquished because it has been used locally */
21448
- RepositoryStatus[RepositoryStatus["CodeUsed"] = 86028] = "CodeUsed";
21449
- /** A required lock is not held by this briefcase */
21450
- RepositoryStatus[RepositoryStatus["LockNotHeld"] = 86029] = "LockNotHeld";
21451
- /** Repository is currently locked, no changes allowed */
21452
- RepositoryStatus[RepositoryStatus["RepositoryIsLocked"] = 86030] = "RepositoryIsLocked";
21453
- /** Channel write constraint violation, such as an attempt to write outside the designated channel. */
21454
- RepositoryStatus[RepositoryStatus["ChannelConstraintViolation"] = 86031] = "ChannelConstraintViolation";
21455
- })(RepositoryStatus || (RepositoryStatus = {}));
21456
21374
  /** Status from returned HTTP status code
21457
21375
  * @beta
21458
21376
  */
@@ -21782,21 +21700,21 @@ class BentleyError extends Error {
21782
21700
  case ChangeSetStatus.CannotMergeIntoMaster: return "Cannot merge changes into a Master DgnDb";
21783
21701
  case ChangeSetStatus.CannotMergeIntoReversed: return "Cannot merge changes into a DgnDb that has reversed change sets";
21784
21702
  case ChangeSetStatus.DownloadCancelled: return "ChangeSet(s) download was cancelled.";
21785
- case RepositoryStatus.ServerUnavailable: return "ServerUnavailable";
21786
- case RepositoryStatus.LockAlreadyHeld: return "LockAlreadyHeld";
21787
- case RepositoryStatus.SyncError: return "SyncError";
21788
- case RepositoryStatus.InvalidResponse: return "InvalidResponse";
21789
- case RepositoryStatus.PendingTransactions: return "PendingTransactions";
21790
- case RepositoryStatus.LockUsed: return "LockUsed";
21791
- case RepositoryStatus.CannotCreateChangeSet: return "CannotCreateChangeSet";
21792
- case RepositoryStatus.InvalidRequest: return "InvalidRequest";
21793
- case RepositoryStatus.ChangeSetRequired: return "ChangeSetRequired";
21794
- case RepositoryStatus.CodeUnavailable: return "CodeUnavailable";
21795
- case RepositoryStatus.CodeNotReserved: return "CodeNotReserved";
21796
- case RepositoryStatus.CodeUsed: return "CodeUsed";
21797
- case RepositoryStatus.LockNotHeld: return "LockNotHeld";
21798
- case RepositoryStatus.RepositoryIsLocked: return "RepositoryIsLocked";
21799
- case RepositoryStatus.ChannelConstraintViolation: return "ChannelConstraintViolation";
21703
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.ServerUnavailable: return "ServerUnavailable";
21704
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.LockAlreadyHeld: return "LockAlreadyHeld";
21705
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.SyncError: return "SyncError";
21706
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.InvalidResponse: return "InvalidResponse";
21707
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.PendingTransactions: return "PendingTransactions";
21708
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.LockUsed: return "LockUsed";
21709
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.CannotCreateChangeSet: return "CannotCreateChangeSet";
21710
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.InvalidRequest: return "InvalidRequest";
21711
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.ChangeSetRequired: return "ChangeSetRequired";
21712
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.CodeUnavailable: return "CodeUnavailable";
21713
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.CodeNotReserved: return "CodeNotReserved";
21714
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.CodeUsed: return "CodeUsed";
21715
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.LockNotHeld: return "LockNotHeld";
21716
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.RepositoryIsLocked: return "RepositoryIsLocked";
21717
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.ChannelConstraintViolation: return "ChannelConstraintViolation";
21800
21718
  case HttpStatus.Info: return "HTTP Info";
21801
21719
  case HttpStatus.Redirection: return "HTTP Redirection";
21802
21720
  case HttpStatus.ClientError: return "HTTP Client error";
@@ -24357,8 +24275,10 @@ __webpack_require__.r(__webpack_exports__);
24357
24275
  /* harmony export */ "Logger": () => (/* binding */ Logger),
24358
24276
  /* harmony export */ "PerfLogger": () => (/* binding */ PerfLogger)
24359
24277
  /* harmony export */ });
24360
- /* harmony import */ var _BentleyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BentleyError */ "../../core/bentley/lib/esm/BentleyError.js");
24361
- /* harmony import */ var _BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BentleyLoggerCategory */ "../../core/bentley/lib/esm/BentleyLoggerCategory.js");
24278
+ /* harmony import */ var _BeEvent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BeEvent */ "../../core/bentley/lib/esm/BeEvent.js");
24279
+ /* harmony import */ var _BentleyError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BentleyError */ "../../core/bentley/lib/esm/BentleyError.js");
24280
+ /* harmony import */ var _BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BentleyLoggerCategory */ "../../core/bentley/lib/esm/BentleyLoggerCategory.js");
24281
+ /* harmony import */ var _internal_staticLoggerMetadata__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./internal/staticLoggerMetadata */ "../../core/bentley/lib/esm/internal/staticLoggerMetadata.js");
24362
24282
  /*---------------------------------------------------------------------------------------------
24363
24283
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
24364
24284
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -24368,6 +24288,8 @@ __webpack_require__.r(__webpack_exports__);
24368
24288
  */
24369
24289
 
24370
24290
 
24291
+
24292
+
24371
24293
  /** Use to categorize logging messages by severity.
24372
24294
  * @public
24373
24295
  */
@@ -24389,13 +24311,29 @@ var LogLevel;
24389
24311
  * @public
24390
24312
  */
24391
24313
  class Logger {
24392
- /** @internal */
24314
+ /** An event raised whenever [[setLevel]] or [[setLevelDefault]] is called. */
24315
+ static get onLogLevelChanged() {
24316
+ // We have to lazily initialize because it's static and BeEvent imports UnexpectedErrors which imports Logger which wants to instantiate BeEvent.
24317
+ if (undefined === Logger._onLogLevelChanged) {
24318
+ Logger._onLogLevelChanged = new _BeEvent__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
24319
+ }
24320
+ return Logger._onLogLevelChanged;
24321
+ }
24322
+ /** Maps category names to the least severe level at which messages in that category should be displayed,
24323
+ * or `undefined` if a minimum has not been defined.
24324
+ * @see [[setLevel]] to change the minimum logging level for a category.
24325
+ */
24393
24326
  static get categoryFilter() {
24394
- return { ...Logger._categoryFilter };
24327
+ // NOTE: this property is accessed by native code.
24328
+ return this._categoryFilter;
24395
24329
  }
24396
- /** @internal */
24330
+ /** The least severe level at which messages should be displayed by default.
24331
+ * @see [[setLevelDefault]] to change this default.
24332
+ * @see [[setLevel]] to override this default for specific categories.
24333
+ */
24397
24334
  static get minLevel() {
24398
- return Logger._minLevel;
24335
+ // NOTE: this property is accessed by native code. */
24336
+ return this._minLevel;
24399
24337
  }
24400
24338
  /** Initialize the logger streams. Should be called at application initialization time. */
24401
24339
  static initialize(logError, logWarning, logInfo, logTrace) {
@@ -24414,12 +24352,12 @@ class Logger {
24414
24352
  /** merge the supplied metadata with all static metadata into one object */
24415
24353
  static getMetaData(metaData) {
24416
24354
  const metaObj = {};
24417
- for (const meta of Logger.staticMetaData) {
24418
- const val = _BentleyError__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getMetaData(meta[1]);
24355
+ for (const meta of _internal_staticLoggerMetadata__WEBPACK_IMPORTED_MODULE_3__.staticLoggerMetadata) {
24356
+ const val = _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError.getMetaData(meta[1]);
24419
24357
  if (val)
24420
24358
  Object.assign(metaObj, val);
24421
24359
  }
24422
- Object.assign(metaObj, _BentleyError__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getMetaData(metaData)); // do this last so user supplied values take precedence
24360
+ Object.assign(metaObj, _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError.getMetaData(metaData)); // do this last so user supplied values take precedence
24423
24361
  return metaObj;
24424
24362
  }
24425
24363
  /** stringify the metadata for a log message by merging the supplied metadata with all static metadata into one object that is then `JSON.stringify`ed. */
@@ -24430,14 +24368,14 @@ class Logger {
24430
24368
  /** Set the least severe level at which messages should be displayed by default. Call setLevel to override this default setting for specific categories. */
24431
24369
  static setLevelDefault(minLevel) {
24432
24370
  this._minLevel = minLevel;
24433
- this.logLevelChangedFn?.();
24371
+ this.onLogLevelChanged.raiseEvent();
24434
24372
  }
24435
24373
  /** Set the minimum logging level for the specified category. The minimum level is least severe level at which messages in the
24436
24374
  * specified category should be displayed.
24437
24375
  */
24438
24376
  static setLevel(category, minLevel) {
24439
24377
  Logger._categoryFilter[category] = minLevel;
24440
- this.logLevelChangedFn?.();
24378
+ this.onLogLevelChanged.raiseEvent();
24441
24379
  }
24442
24380
  /** Interpret a string as the name of a LogLevel */
24443
24381
  static parseLogLevel(str) {
@@ -24472,20 +24410,20 @@ class Logger {
24472
24410
  const validProps = ["defaultLevel", "categoryLevels"];
24473
24411
  for (const prop of Object.keys(config)) {
24474
24412
  if (!validProps.includes(prop))
24475
- throw new _BentleyError__WEBPACK_IMPORTED_MODULE_0__.BentleyError(_BentleyError__WEBPACK_IMPORTED_MODULE_0__.IModelStatus.BadArg, `LoggerLevelsConfig - unrecognized property: ${prop}`);
24413
+ throw new _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError(_BentleyError__WEBPACK_IMPORTED_MODULE_1__.IModelStatus.BadArg, `LoggerLevelsConfig - unrecognized property: ${prop}`);
24476
24414
  if (prop === "defaultLevel") {
24477
24415
  if (!Logger.isLogLevel(config.defaultLevel))
24478
- throw new _BentleyError__WEBPACK_IMPORTED_MODULE_0__.BentleyError(_BentleyError__WEBPACK_IMPORTED_MODULE_0__.IModelStatus.BadArg, `LoggerLevelsConfig.defaultLevel must be a LogLevel. Invalid value: ${JSON.stringify(config.defaultLevel)}`);
24416
+ throw new _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError(_BentleyError__WEBPACK_IMPORTED_MODULE_1__.IModelStatus.BadArg, `LoggerLevelsConfig.defaultLevel must be a LogLevel. Invalid value: ${JSON.stringify(config.defaultLevel)}`);
24479
24417
  }
24480
24418
  else if (prop === "categoryLevels") {
24481
24419
  const value = config[prop];
24482
24420
  if (!Array.isArray(value))
24483
- throw new _BentleyError__WEBPACK_IMPORTED_MODULE_0__.BentleyError(_BentleyError__WEBPACK_IMPORTED_MODULE_0__.IModelStatus.BadArg, `LoggerLevelsConfig.categoryLevels must be an array. Invalid value: ${JSON.stringify(value)}`);
24421
+ throw new _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError(_BentleyError__WEBPACK_IMPORTED_MODULE_1__.IModelStatus.BadArg, `LoggerLevelsConfig.categoryLevels must be an array. Invalid value: ${JSON.stringify(value)}`);
24484
24422
  for (const item of config[prop]) {
24485
24423
  if (!item.hasOwnProperty("category") || !item.hasOwnProperty("logLevel"))
24486
- throw new _BentleyError__WEBPACK_IMPORTED_MODULE_0__.BentleyError(_BentleyError__WEBPACK_IMPORTED_MODULE_0__.IModelStatus.BadArg, `LoggerLevelsConfig.categoryLevels - each item must be a LoggerCategoryAndLevel {category: logLevel:}. Invalid value: ${JSON.stringify(item)}`);
24424
+ throw new _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError(_BentleyError__WEBPACK_IMPORTED_MODULE_1__.IModelStatus.BadArg, `LoggerLevelsConfig.categoryLevels - each item must be a LoggerCategoryAndLevel {category: logLevel:}. Invalid value: ${JSON.stringify(item)}`);
24487
24425
  if (!Logger.isLogLevel(item.logLevel))
24488
- throw new _BentleyError__WEBPACK_IMPORTED_MODULE_0__.BentleyError(_BentleyError__WEBPACK_IMPORTED_MODULE_0__.IModelStatus.BadArg, `LoggerLevelsConfig.categoryLevels - each item's logLevel property must be a LogLevel. Invalid value: ${JSON.stringify(item.logLevel)}`);
24426
+ throw new _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError(_BentleyError__WEBPACK_IMPORTED_MODULE_1__.IModelStatus.BadArg, `LoggerLevelsConfig.categoryLevels - each item's logLevel property must be a LogLevel. Invalid value: ${JSON.stringify(item.logLevel)}`);
24489
24427
  }
24490
24428
  }
24491
24429
  }
@@ -24493,7 +24431,7 @@ class Logger {
24493
24431
  /** Get the minimum logging level for the specified category. */
24494
24432
  static getLevel(category) {
24495
24433
  // Prefer the level set for this category specifically
24496
- const minLevelForThisCategory = Logger._categoryFilter[category];
24434
+ const minLevelForThisCategory = Logger.categoryFilter[category];
24497
24435
  if (minLevelForThisCategory !== undefined)
24498
24436
  return minLevelForThisCategory;
24499
24437
  // Fall back on the level set for the parent of this category.
@@ -24501,7 +24439,7 @@ class Logger {
24501
24439
  if (parent !== -1)
24502
24440
  return Logger.getLevel(category.slice(0, parent));
24503
24441
  // Fall back on the default level.
24504
- return Logger._minLevel;
24442
+ return Logger.minLevel;
24505
24443
  }
24506
24444
  /** Turns off the least severe level at which messages should be displayed by default.
24507
24445
  * This turns off logging for all messages for which no category minimum level is defined.
@@ -24529,8 +24467,8 @@ class Logger {
24529
24467
  Logger._logError(category, message, metaData);
24530
24468
  }
24531
24469
  static getExceptionMessage(err) {
24532
- const stack = Logger.logExceptionCallstacks ? `\n${_BentleyError__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getErrorStack(err)}` : "";
24533
- return _BentleyError__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getErrorMessage(err) + stack;
24470
+ const stack = Logger.logExceptionCallstacks ? `\n${_BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError.getErrorStack(err)}` : "";
24471
+ return _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError.getErrorMessage(err) + stack;
24534
24472
  }
24535
24473
  /** Log the specified exception. The special "ExceptionType" property will be added as metadata.
24536
24474
  * @param category The category of the message.
@@ -24539,7 +24477,7 @@ class Logger {
24539
24477
  */
24540
24478
  static logException(category, err, log = (_category, message, metaData) => Logger.logError(_category, message, metaData)) {
24541
24479
  log(category, Logger.getExceptionMessage(err), () => {
24542
- return { ..._BentleyError__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getErrorMetadata(err), exceptionType: err.constructor.name };
24480
+ return { ..._BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError.getErrorMetadata(err), exceptionType: err.constructor.name };
24543
24481
  });
24544
24482
  }
24545
24483
  /** Log the specified message to the **warning** stream.
@@ -24573,11 +24511,6 @@ class Logger {
24573
24511
  Logger._categoryFilter = {};
24574
24512
  /** Should the call stack be included when an exception is logged? */
24575
24513
  Logger.logExceptionCallstacks = false;
24576
- /** All static metadata is combined with per-call metadata and stringified in every log message.
24577
- * Static metadata can either be an object or a function that returns an object.
24578
- * Use a key to identify entries in the map so the can be removed individually.
24579
- * @internal */
24580
- Logger.staticMetaData = new Map();
24581
24514
  /** Simple performance diagnostics utility.
24582
24515
  * It measures the time from construction to disposal. On disposal it logs the routine name along with
24583
24516
  * the duration in milliseconds.
@@ -24591,19 +24524,19 @@ class PerfLogger {
24591
24524
  constructor(operation, metaData) {
24592
24525
  this._operation = operation;
24593
24526
  this._metaData = metaData;
24594
- if (!Logger.isEnabled(_BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_1__.BentleyLoggerCategory.Performance, PerfLogger._severity)) {
24527
+ if (!Logger.isEnabled(_BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_2__.BentleyLoggerCategory.Performance, PerfLogger._severity)) {
24595
24528
  this._startTimeStamp = 0;
24596
24529
  return;
24597
24530
  }
24598
- Logger.logInfo(_BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_1__.BentleyLoggerCategory.Performance, `${this._operation},START`, this._metaData);
24531
+ Logger.logInfo(_BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_2__.BentleyLoggerCategory.Performance, `${this._operation},START`, this._metaData);
24599
24532
  this._startTimeStamp = new Date().getTime(); // take timestamp
24600
24533
  }
24601
24534
  logMessage() {
24602
24535
  const endTimeStamp = new Date().getTime();
24603
- if (!Logger.isEnabled(_BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_1__.BentleyLoggerCategory.Performance, PerfLogger._severity))
24536
+ if (!Logger.isEnabled(_BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_2__.BentleyLoggerCategory.Performance, PerfLogger._severity))
24604
24537
  return;
24605
- Logger.logInfo(_BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_1__.BentleyLoggerCategory.Performance, `${this._operation},END`, () => {
24606
- const mdata = this._metaData ? _BentleyError__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getMetaData(this._metaData) : {};
24538
+ Logger.logInfo(_BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_2__.BentleyLoggerCategory.Performance, `${this._operation},END`, () => {
24539
+ const mdata = this._metaData ? _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError.getMetaData(this._metaData) : {};
24607
24540
  return {
24608
24541
  ...mdata, TimeElapsed: endTimeStamp - this._startTimeStamp, // eslint-disable-line @typescript-eslint/naming-convention
24609
24542
  };
@@ -24662,14 +24595,18 @@ class ObservableSet extends Set {
24662
24595
  return ret;
24663
24596
  };
24664
24597
  }
24665
- /** @internal */
24598
+ /** Invokes [Set.delete](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/delete), raising
24599
+ * the [[onDeleted]] event if the item was removed from the set.
24600
+ */
24666
24601
  delete(item) {
24667
24602
  const ret = super.delete(item);
24668
24603
  if (ret)
24669
24604
  this.onDeleted.raiseEvent(item);
24670
24605
  return ret;
24671
24606
  }
24672
- /** @internal */
24607
+ /** If this set is not already empty, invokes [Set.clear](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/clear)
24608
+ * and raises the [[onCleared]] event.
24609
+ */
24673
24610
  clear() {
24674
24611
  if (0 !== this.size) {
24675
24612
  super.clear();
@@ -25686,6 +25623,7 @@ __webpack_require__.r(__webpack_exports__);
25686
25623
  /* harmony export */ "SuccessCategory": () => (/* binding */ SuccessCategory)
25687
25624
  /* harmony export */ });
25688
25625
  /* harmony import */ var _BentleyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BentleyError */ "../../core/bentley/lib/esm/BentleyError.js");
25626
+ /* harmony import */ var _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./internal/RepositoryStatus */ "../../core/bentley/lib/esm/internal/RepositoryStatus.js");
25689
25627
  /*---------------------------------------------------------------------------------------------
25690
25628
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
25691
25629
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -25694,6 +25632,7 @@ __webpack_require__.r(__webpack_exports__);
25694
25632
  * @module Errors
25695
25633
  */
25696
25634
 
25635
+
25697
25636
  /** A group of related statuses for aggregate reporting purposes.
25698
25637
  * @alpha
25699
25638
  */
@@ -26058,22 +25997,22 @@ function lookupHttpStatusCategory(statusCode) {
26058
25997
  case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.ChangeSetStatus.CannotMergeIntoReadonly: return new ValidationError();
26059
25998
  case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.ChangeSetStatus.CannotMergeIntoMaster: return new ValidationError();
26060
25999
  case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.ChangeSetStatus.CannotMergeIntoReversed: return new ValidationError();
26061
- case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.RepositoryStatus.Success: return new Success();
26062
- case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.RepositoryStatus.ServerUnavailable: return new NetworkError();
26063
- case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.RepositoryStatus.LockAlreadyHeld: return new Conflict();
26064
- case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.RepositoryStatus.SyncError: return new NetworkError();
26065
- case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.RepositoryStatus.InvalidResponse: return new NetworkError();
26066
- case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.RepositoryStatus.PendingTransactions: return new StateViolation();
26067
- case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.RepositoryStatus.LockUsed: return new StateViolation();
26068
- case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.RepositoryStatus.CannotCreateChangeSet: return new InternalError();
26069
- case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.RepositoryStatus.InvalidRequest: return new NetworkError();
26070
- case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.RepositoryStatus.ChangeSetRequired: return new StateViolation();
26071
- case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.RepositoryStatus.CodeUnavailable: return new Conflict();
26072
- case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.RepositoryStatus.CodeNotReserved: return new StateViolation();
26073
- case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.RepositoryStatus.CodeUsed: return new StateViolation();
26074
- case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.RepositoryStatus.LockNotHeld: return new Forbidden();
26075
- case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.RepositoryStatus.RepositoryIsLocked: return new Locked();
26076
- case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.RepositoryStatus.ChannelConstraintViolation: return new ConstraintViolation();
26000
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.Success: return new Success();
26001
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.ServerUnavailable: return new NetworkError();
26002
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.LockAlreadyHeld: return new Conflict();
26003
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.SyncError: return new NetworkError();
26004
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.InvalidResponse: return new NetworkError();
26005
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.PendingTransactions: return new StateViolation();
26006
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.LockUsed: return new StateViolation();
26007
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.CannotCreateChangeSet: return new InternalError();
26008
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.InvalidRequest: return new NetworkError();
26009
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.ChangeSetRequired: return new StateViolation();
26010
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.CodeUnavailable: return new Conflict();
26011
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.CodeNotReserved: return new StateViolation();
26012
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.CodeUsed: return new StateViolation();
26013
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.LockNotHeld: return new Forbidden();
26014
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.RepositoryIsLocked: return new Locked();
26015
+ case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.ChannelConstraintViolation: return new ConstraintViolation();
26077
26016
  case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.HttpStatus.Success: return new Success();
26078
26017
  case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.IModelHubStatus.Success: return new Success();
26079
26018
  case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.IModelHubStatus.Unknown: return new UnknownError();
@@ -26160,8 +26099,7 @@ function lookupHttpStatusCategory(statusCode) {
26160
26099
  __webpack_require__.r(__webpack_exports__);
26161
26100
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
26162
26101
  /* harmony export */ "base64StringToUint8Array": () => (/* binding */ base64StringToUint8Array),
26163
- /* harmony export */ "utf8ToString": () => (/* binding */ utf8ToString),
26164
- /* harmony export */ "utf8ToStringPolyfill": () => (/* binding */ utf8ToStringPolyfill)
26102
+ /* harmony export */ "utf8ToString": () => (/* binding */ utf8ToString)
26165
26103
  /* harmony export */ });
26166
26104
  /*---------------------------------------------------------------------------------------------
26167
26105
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
@@ -26170,110 +26108,6 @@ __webpack_require__.r(__webpack_exports__);
26170
26108
  /** @packageDocumentation
26171
26109
  * @module Utils
26172
26110
  */
26173
- // TextDecoder is not supported on all platforms - this is an alternative for utf-8.
26174
- // From https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Core/getStringFromTypedArray.js
26175
- // which is itself inspired by https://github.com/inexorabletash/text-encoding
26176
- /** @internal */
26177
- var Utf8ToString;
26178
- (function (Utf8ToString) {
26179
- function inRange(a, min, max) {
26180
- return min <= a && a <= max;
26181
- }
26182
- function utf8Handler(bytes) {
26183
- let codePoint = 0;
26184
- let bytesSeen = 0;
26185
- let bytesNeeded = 0;
26186
- let lowerBoundary = 0x80;
26187
- let upperBoundary = 0xbf;
26188
- const codePoints = [];
26189
- const length = bytes.length;
26190
- for (let i = 0; i < length; i++) {
26191
- const currentByte = bytes[i];
26192
- // If bytesNeeded = 0, then we are starting a new character
26193
- if (0 === bytesNeeded) {
26194
- // 1 byte ascii character
26195
- if (inRange(currentByte, 0x00, 0x7f)) {
26196
- // return a code point whose value is byte.
26197
- codePoints.push(currentByte);
26198
- continue;
26199
- }
26200
- // 2 byte character
26201
- if (inRange(currentByte, 0xc2, 0xdf)) {
26202
- bytesNeeded = 1;
26203
- codePoint = currentByte & 0x1f;
26204
- continue;
26205
- }
26206
- // 3 byte character
26207
- if (inRange(currentByte, 0xe0, 0xef)) {
26208
- if (0xe0 === currentByte)
26209
- lowerBoundary = 0xa0;
26210
- else if (0xed === currentByte)
26211
- upperBoundary = 0x9f;
26212
- bytesNeeded = 2;
26213
- codePoint = currentByte & 0xf;
26214
- continue;
26215
- }
26216
- // 4 byte character
26217
- if (inRange(currentByte, 0xf0, 0xf4)) {
26218
- if (0xf0 === currentByte)
26219
- lowerBoundary = 0x90;
26220
- else if (0xf4 === currentByte)
26221
- upperBoundary = 0x8f;
26222
- bytesNeeded = 3;
26223
- codePoint = currentByte & 0x7;
26224
- continue;
26225
- }
26226
- // invalid utf-8
26227
- return undefined;
26228
- }
26229
- // out of range so ignore the first part(s) of the character and continue with this byte on its own
26230
- if (!inRange(currentByte, lowerBoundary, upperBoundary)) {
26231
- codePoint = bytesNeeded = bytesSeen = 0;
26232
- lowerBoundary = 0x80;
26233
- upperBoundary = 0xbf;
26234
- --i;
26235
- continue;
26236
- }
26237
- // set appropriate boundaries since we've now checked byte 2 of a potential longer character
26238
- lowerBoundary = 0x80;
26239
- upperBoundary = 0xbf;
26240
- // add byte to code point
26241
- codePoint = (codePoint << 6) | (currentByte & 0x3f);
26242
- // We have the correct number of bytes, so push and reset for next character
26243
- ++bytesSeen;
26244
- if (bytesSeen === bytesNeeded) {
26245
- codePoints.push(codePoint);
26246
- codePoint = bytesNeeded = bytesSeen = 0;
26247
- }
26248
- }
26249
- return codePoints;
26250
- }
26251
- function decodeWithFromCharCode(view) {
26252
- let result = "";
26253
- const codePoints = utf8Handler(view);
26254
- if (undefined === codePoints)
26255
- return undefined;
26256
- for (let cp of codePoints) {
26257
- if (cp <= 0xffff) {
26258
- result += String.fromCharCode(cp);
26259
- }
26260
- else {
26261
- cp -= 0x10000;
26262
- result += String.fromCharCode((cp >> 10) + 0xd800, (cp & 0x3ff) + 0xdc00);
26263
- }
26264
- }
26265
- return result;
26266
- }
26267
- Utf8ToString.decodeWithFromCharCode = decodeWithFromCharCode;
26268
- })(Utf8ToString || (Utf8ToString = {}));
26269
- /** Exposed only for testing the fall-back used when TextDecoder is unsupported.
26270
- * @internal
26271
- */
26272
- function utf8ToStringPolyfill(utf8) {
26273
- return Utf8ToString.decodeWithFromCharCode(utf8);
26274
- }
26275
- // TextDecoder unsupported in Edge at time of writing.
26276
- let textDecoderSupported = true;
26277
26111
  /** Given an array of bytes containing a utf-8 string, convert to a string.
26278
26112
  * @param utf8: An array of utf-8 characters as a byte array
26279
26113
  * @returns An equivalent string, or undefined if the array does not contain a valid utf-8 string.
@@ -26282,19 +26116,8 @@ let textDecoderSupported = true;
26282
26116
  * @public
26283
26117
  */
26284
26118
  function utf8ToString(utf8) {
26285
- let decoder;
26286
- if (textDecoderSupported) {
26287
- try {
26288
- decoder = new TextDecoder("utf-8");
26289
- }
26290
- catch (_ex) {
26291
- textDecoderSupported = false;
26292
- }
26293
- }
26294
- if (undefined !== decoder)
26295
- return decoder.decode(utf8);
26296
- else
26297
- return utf8ToStringPolyfill(utf8);
26119
+ const decoder = new TextDecoder("utf-8");
26120
+ return decoder.decode(utf8);
26298
26121
  }
26299
26122
  /** Given a base-64-encoded string, decode it into an array of bytes.
26300
26123
  * @param base64 The base-64-encoded string.
@@ -26592,7 +26415,6 @@ class Tracing {
26592
26415
  /**
26593
26416
  * Adds a span event describing a runtime exception, as advised in OpenTelemetry documentation
26594
26417
  * @param e error (exception) object
26595
- * @internal
26596
26418
  */
26597
26419
  static recordException(e) {
26598
26420
  Tracing._openTelemetry?.trace.getSpan(Tracing._openTelemetry.context.active())?.recordException(e);
@@ -27157,7 +26979,6 @@ class YieldManager {
27157
26979
  await this.actualYield();
27158
26980
  }
27159
26981
  }
27160
- /** @internal */
27161
26982
  async actualYield() {
27162
26983
  await new Promise((r) => setTimeout(r, 0));
27163
26984
  }
@@ -27188,12 +27009,12 @@ __webpack_require__.r(__webpack_exports__);
27188
27009
  /* harmony export */ "ByteStream": () => (/* reexport safe */ _ByteStream__WEBPACK_IMPORTED_MODULE_7__.ByteStream),
27189
27010
  /* harmony export */ "ChangeSetStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.ChangeSetStatus),
27190
27011
  /* harmony export */ "CompressedId64Set": () => (/* reexport safe */ _CompressedId64Set__WEBPACK_IMPORTED_MODULE_10__.CompressedId64Set),
27191
- /* harmony export */ "DbChangeStage": () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbChangeStage),
27192
- /* harmony export */ "DbConflictCause": () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbConflictCause),
27193
- /* harmony export */ "DbConflictResolution": () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbConflictResolution),
27012
+ /* harmony export */ "DbChangeStage": () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_35__.DbChangeStage),
27013
+ /* harmony export */ "DbConflictCause": () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_35__.DbConflictCause),
27014
+ /* harmony export */ "DbConflictResolution": () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_35__.DbConflictResolution),
27194
27015
  /* harmony export */ "DbOpcode": () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbOpcode),
27195
27016
  /* harmony export */ "DbResult": () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbResult),
27196
- /* harmony export */ "DbValueType": () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbValueType),
27017
+ /* harmony export */ "DbValueType": () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_35__.DbValueType),
27197
27018
  /* harmony export */ "Dictionary": () => (/* reexport safe */ _Dictionary__WEBPACK_IMPORTED_MODULE_11__.Dictionary),
27198
27019
  /* harmony export */ "DisposableList": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.DisposableList),
27199
27020
  /* harmony export */ "DuplicatePolicy": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.DuplicatePolicy),
@@ -27226,7 +27047,7 @@ __webpack_require__.r(__webpack_exports__);
27226
27047
  /* harmony export */ "ReadonlyOrderedSet": () => (/* reexport safe */ _OrderedSet__WEBPACK_IMPORTED_MODULE_22__.ReadonlyOrderedSet),
27227
27048
  /* harmony export */ "ReadonlySortedArray": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.ReadonlySortedArray),
27228
27049
  /* harmony export */ "RealityDataStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.RealityDataStatus),
27229
- /* harmony export */ "RepositoryStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.RepositoryStatus),
27050
+ /* harmony export */ "RepositoryStatus": () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_35__.RepositoryStatus),
27230
27051
  /* harmony export */ "RpcInterfaceStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.RpcInterfaceStatus),
27231
27052
  /* harmony export */ "SortedArray": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.SortedArray),
27232
27053
  /* harmony export */ "SpanKind": () => (/* reexport safe */ _Tracing__WEBPACK_IMPORTED_MODULE_29__.SpanKind),
@@ -27265,9 +27086,9 @@ __webpack_require__.r(__webpack_exports__);
27265
27086
  /* harmony export */ "omit": () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__.omit),
27266
27087
  /* harmony export */ "partitionArray": () => (/* reexport safe */ _partitionArray__WEBPACK_IMPORTED_MODULE_23__.partitionArray),
27267
27088
  /* harmony export */ "shallowClone": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.shallowClone),
27089
+ /* harmony export */ "staticLoggerMetadata": () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_35__.staticLoggerMetadata),
27268
27090
  /* harmony export */ "using": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.using),
27269
- /* harmony export */ "utf8ToString": () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_27__.utf8ToString),
27270
- /* harmony export */ "utf8ToStringPolyfill": () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_27__.utf8ToStringPolyfill)
27091
+ /* harmony export */ "utf8ToString": () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_27__.utf8ToString)
27271
27092
  /* harmony export */ });
27272
27093
  /* harmony import */ var _AccessToken__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AccessToken */ "../../core/bentley/lib/esm/AccessToken.js");
27273
27094
  /* harmony import */ var _Assert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Assert */ "../../core/bentley/lib/esm/Assert.js");
@@ -27304,6 +27125,7 @@ __webpack_require__.r(__webpack_exports__);
27304
27125
  /* harmony import */ var _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./UnexpectedErrors */ "../../core/bentley/lib/esm/UnexpectedErrors.js");
27305
27126
  /* harmony import */ var _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./UtilityTypes */ "../../core/bentley/lib/esm/UtilityTypes.js");
27306
27127
  /* harmony import */ var _YieldManager__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./YieldManager */ "../../core/bentley/lib/esm/YieldManager.js");
27128
+ /* harmony import */ var _internal_cross_package__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./internal/cross-package */ "../../core/bentley/lib/esm/internal/cross-package.js");
27307
27129
  /*---------------------------------------------------------------------------------------------
27308
27130
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
27309
27131
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -27342,6 +27164,8 @@ __webpack_require__.r(__webpack_exports__);
27342
27164
 
27343
27165
 
27344
27166
 
27167
+
27168
+ // Temporarily (until 5.0) export top-level internal APIs to avoid breaking callers.
27345
27169
 
27346
27170
  /** @docs-package-description
27347
27171
  * The core-bentley package contains classes to solve problems that are common for both client and server use cases.
@@ -27384,6 +27208,184 @@ __webpack_require__.r(__webpack_exports__);
27384
27208
  */
27385
27209
 
27386
27210
 
27211
+ /***/ }),
27212
+
27213
+ /***/ "../../core/bentley/lib/esm/internal/BeSQLiteInternal.js":
27214
+ /*!***************************************************************!*\
27215
+ !*** ../../core/bentley/lib/esm/internal/BeSQLiteInternal.js ***!
27216
+ \***************************************************************/
27217
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
27218
+
27219
+ "use strict";
27220
+ __webpack_require__.r(__webpack_exports__);
27221
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
27222
+ /* harmony export */ "DbChangeStage": () => (/* binding */ DbChangeStage),
27223
+ /* harmony export */ "DbConflictCause": () => (/* binding */ DbConflictCause),
27224
+ /* harmony export */ "DbConflictResolution": () => (/* binding */ DbConflictResolution),
27225
+ /* harmony export */ "DbValueType": () => (/* binding */ DbValueType)
27226
+ /* harmony export */ });
27227
+ /*---------------------------------------------------------------------------------------------
27228
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
27229
+ * See LICENSE.md in the project root for license terms and full copyright notice.
27230
+ *--------------------------------------------------------------------------------------------*/
27231
+ /** @packageDocumentation
27232
+ * @module BeSQLite
27233
+ */
27234
+ /** @internal */
27235
+ var DbChangeStage;
27236
+ (function (DbChangeStage) {
27237
+ DbChangeStage[DbChangeStage["Old"] = 0] = "Old";
27238
+ DbChangeStage[DbChangeStage["New"] = 1] = "New";
27239
+ })(DbChangeStage || (DbChangeStage = {}));
27240
+ /** @internal */
27241
+ var DbValueType;
27242
+ (function (DbValueType) {
27243
+ DbValueType[DbValueType["IntegerVal"] = 1] = "IntegerVal";
27244
+ DbValueType[DbValueType["FloatVal"] = 2] = "FloatVal";
27245
+ DbValueType[DbValueType["TextVal"] = 3] = "TextVal";
27246
+ DbValueType[DbValueType["BlobVal"] = 4] = "BlobVal";
27247
+ DbValueType[DbValueType["NullVal"] = 5] = "NullVal";
27248
+ })(DbValueType || (DbValueType = {}));
27249
+ /** Cause of conflict when applying a changeset.
27250
+ * @internal
27251
+ */
27252
+ var DbConflictCause;
27253
+ (function (DbConflictCause) {
27254
+ DbConflictCause[DbConflictCause["Data"] = 1] = "Data";
27255
+ DbConflictCause[DbConflictCause["NotFound"] = 2] = "NotFound";
27256
+ DbConflictCause[DbConflictCause["Conflict"] = 3] = "Conflict";
27257
+ DbConflictCause[DbConflictCause["Constraint"] = 4] = "Constraint";
27258
+ DbConflictCause[DbConflictCause["ForeignKey"] = 5] = "ForeignKey";
27259
+ })(DbConflictCause || (DbConflictCause = {}));
27260
+ /** @internal */
27261
+ var DbConflictResolution;
27262
+ (function (DbConflictResolution) {
27263
+ /** Skip incoming change */
27264
+ DbConflictResolution[DbConflictResolution["Skip"] = 0] = "Skip";
27265
+ /** Replace local row with incoming changed row */
27266
+ DbConflictResolution[DbConflictResolution["Replace"] = 1] = "Replace";
27267
+ /** Abort apply changeset */
27268
+ DbConflictResolution[DbConflictResolution["Abort"] = 2] = "Abort";
27269
+ })(DbConflictResolution || (DbConflictResolution = {}));
27270
+
27271
+
27272
+ /***/ }),
27273
+
27274
+ /***/ "../../core/bentley/lib/esm/internal/RepositoryStatus.js":
27275
+ /*!***************************************************************!*\
27276
+ !*** ../../core/bentley/lib/esm/internal/RepositoryStatus.js ***!
27277
+ \***************************************************************/
27278
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
27279
+
27280
+ "use strict";
27281
+ __webpack_require__.r(__webpack_exports__);
27282
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
27283
+ /* harmony export */ "RepositoryStatus": () => (/* binding */ RepositoryStatus)
27284
+ /* harmony export */ });
27285
+ /*---------------------------------------------------------------------------------------------
27286
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
27287
+ * See LICENSE.md in the project root for license terms and full copyright notice.
27288
+ *--------------------------------------------------------------------------------------------*/
27289
+ /** @packageDocumentation
27290
+ * @module Errors
27291
+ */
27292
+ /** Return codes for methods which perform repository management operations.
27293
+ * @internal
27294
+ */
27295
+ var RepositoryStatus;
27296
+ (function (RepositoryStatus) {
27297
+ RepositoryStatus[RepositoryStatus["Success"] = 0] = "Success";
27298
+ /** The repository server did not respond to a request */
27299
+ RepositoryStatus[RepositoryStatus["ServerUnavailable"] = 86017] = "ServerUnavailable";
27300
+ /** A requested lock was already held by another briefcase */
27301
+ RepositoryStatus[RepositoryStatus["LockAlreadyHeld"] = 86018] = "LockAlreadyHeld";
27302
+ /** Failed to sync briefcase manager with server */
27303
+ RepositoryStatus[RepositoryStatus["SyncError"] = 86019] = "SyncError";
27304
+ /** Response from server not understood */
27305
+ RepositoryStatus[RepositoryStatus["InvalidResponse"] = 86020] = "InvalidResponse";
27306
+ /** An operation requires local changes to be committed or abandoned */
27307
+ RepositoryStatus[RepositoryStatus["PendingTransactions"] = 86021] = "PendingTransactions";
27308
+ /** A lock cannot be relinquished because the associated object has been modified */
27309
+ RepositoryStatus[RepositoryStatus["LockUsed"] = 86022] = "LockUsed";
27310
+ /** An operation required creation of a ChangeSet, which failed */
27311
+ RepositoryStatus[RepositoryStatus["CannotCreateChangeSet"] = 86023] = "CannotCreateChangeSet";
27312
+ /** Request to server not understood */
27313
+ RepositoryStatus[RepositoryStatus["InvalidRequest"] = 86024] = "InvalidRequest";
27314
+ /** A change set committed to the server must be integrated into the briefcase before the operation can be completed */
27315
+ RepositoryStatus[RepositoryStatus["ChangeSetRequired"] = 86025] = "ChangeSetRequired";
27316
+ /** A requested DgnCode is reserved by another briefcase or in use */
27317
+ RepositoryStatus[RepositoryStatus["CodeUnavailable"] = 86026] = "CodeUnavailable";
27318
+ /** A DgnCode cannot be released because it has not been reserved by the requesting briefcase */
27319
+ RepositoryStatus[RepositoryStatus["CodeNotReserved"] = 86027] = "CodeNotReserved";
27320
+ /** A DgnCode cannot be relinquished because it has been used locally */
27321
+ RepositoryStatus[RepositoryStatus["CodeUsed"] = 86028] = "CodeUsed";
27322
+ /** A required lock is not held by this briefcase */
27323
+ RepositoryStatus[RepositoryStatus["LockNotHeld"] = 86029] = "LockNotHeld";
27324
+ /** Repository is currently locked, no changes allowed */
27325
+ RepositoryStatus[RepositoryStatus["RepositoryIsLocked"] = 86030] = "RepositoryIsLocked";
27326
+ /** Channel write constraint violation, such as an attempt to write outside the designated channel. */
27327
+ RepositoryStatus[RepositoryStatus["ChannelConstraintViolation"] = 86031] = "ChannelConstraintViolation";
27328
+ })(RepositoryStatus || (RepositoryStatus = {}));
27329
+
27330
+
27331
+ /***/ }),
27332
+
27333
+ /***/ "../../core/bentley/lib/esm/internal/cross-package.js":
27334
+ /*!************************************************************!*\
27335
+ !*** ../../core/bentley/lib/esm/internal/cross-package.js ***!
27336
+ \************************************************************/
27337
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
27338
+
27339
+ "use strict";
27340
+ __webpack_require__.r(__webpack_exports__);
27341
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
27342
+ /* harmony export */ "DbChangeStage": () => (/* reexport safe */ _BeSQLiteInternal__WEBPACK_IMPORTED_MODULE_2__.DbChangeStage),
27343
+ /* harmony export */ "DbConflictCause": () => (/* reexport safe */ _BeSQLiteInternal__WEBPACK_IMPORTED_MODULE_2__.DbConflictCause),
27344
+ /* harmony export */ "DbConflictResolution": () => (/* reexport safe */ _BeSQLiteInternal__WEBPACK_IMPORTED_MODULE_2__.DbConflictResolution),
27345
+ /* harmony export */ "DbValueType": () => (/* reexport safe */ _BeSQLiteInternal__WEBPACK_IMPORTED_MODULE_2__.DbValueType),
27346
+ /* harmony export */ "RepositoryStatus": () => (/* reexport safe */ _RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus),
27347
+ /* harmony export */ "staticLoggerMetadata": () => (/* reexport safe */ _staticLoggerMetadata__WEBPACK_IMPORTED_MODULE_0__.staticLoggerMetadata)
27348
+ /* harmony export */ });
27349
+ /* harmony import */ var _staticLoggerMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./staticLoggerMetadata */ "../../core/bentley/lib/esm/internal/staticLoggerMetadata.js");
27350
+ /* harmony import */ var _RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./RepositoryStatus */ "../../core/bentley/lib/esm/internal/RepositoryStatus.js");
27351
+ /* harmony import */ var _BeSQLiteInternal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BeSQLiteInternal */ "../../core/bentley/lib/esm/internal/BeSQLiteInternal.js");
27352
+ /*---------------------------------------------------------------------------------------------
27353
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
27354
+ * See LICENSE.md in the project root for license terms and full copyright notice.
27355
+ *--------------------------------------------------------------------------------------------*/
27356
+
27357
+
27358
+
27359
+
27360
+
27361
+ /***/ }),
27362
+
27363
+ /***/ "../../core/bentley/lib/esm/internal/staticLoggerMetadata.js":
27364
+ /*!*******************************************************************!*\
27365
+ !*** ../../core/bentley/lib/esm/internal/staticLoggerMetadata.js ***!
27366
+ \*******************************************************************/
27367
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
27368
+
27369
+ "use strict";
27370
+ __webpack_require__.r(__webpack_exports__);
27371
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
27372
+ /* harmony export */ "staticLoggerMetadata": () => (/* binding */ staticLoggerMetadata)
27373
+ /* harmony export */ });
27374
+ /*---------------------------------------------------------------------------------------------
27375
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
27376
+ * See LICENSE.md in the project root for license terms and full copyright notice.
27377
+ *--------------------------------------------------------------------------------------------*/
27378
+ /** @packageDocumentation
27379
+ * @module Logging
27380
+ */
27381
+ /** All static metadata is combined with per-call metadata and stringified in every log message.
27382
+ * Static metadata can either be an object or a function that returns an object.
27383
+ * Use a key to identify entries in the map so the can be removed individually.
27384
+ * @internal
27385
+ */
27386
+ const staticLoggerMetadata = new Map();
27387
+
27388
+
27387
27389
  /***/ }),
27388
27390
 
27389
27391
  /***/ "../../core/bentley/lib/esm/partitionArray.js":
@@ -36274,6 +36276,17 @@ class IModel {
36274
36276
  get iTwinId() { return this._iTwinId; }
36275
36277
  /** The Guid that identifies this iModel. */
36276
36278
  get iModelId() { return this._iModelId; }
36279
+ /** @public */
36280
+ get changeset() {
36281
+ return { ...this._changeset };
36282
+ }
36283
+ set changeset(changeset) {
36284
+ const prev = this._changeset;
36285
+ if (prev.id !== changeset.id || prev.index !== changeset.index) {
36286
+ this._changeset = { id: changeset.id, index: changeset.index };
36287
+ this.onChangesetChanged.raiseEvent(prev);
36288
+ }
36289
+ }
36277
36290
  /** The [[OpenMode]] used for this IModel. */
36278
36291
  get openMode() { return this._openMode; }
36279
36292
  /** Return a token for RPC operations.
@@ -36310,15 +36323,15 @@ class IModel {
36310
36323
  this.onEcefLocationChanged = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
36311
36324
  /** Event raised after [[geographicCoordinateSystem]] changes. */
36312
36325
  this.onGeographicCoordinateSystemChanged = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
36326
+ /** Event raised after [[changeset]] changes. */
36327
+ this.onChangesetChanged = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
36313
36328
  this._openMode = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.OpenMode.Readonly;
36314
- this.changeset = { id: "", index: 0 };
36329
+ this._changeset = tokenProps?.changeset ?? { id: "", index: 0 };
36315
36330
  this._fileKey = "";
36316
36331
  if (tokenProps) {
36317
36332
  this._fileKey = tokenProps.key;
36318
36333
  this._iTwinId = tokenProps.iTwinId;
36319
36334
  this._iModelId = tokenProps.iModelId;
36320
- if (tokenProps.changeset)
36321
- this.changeset = tokenProps.changeset;
36322
36335
  }
36323
36336
  }
36324
36337
  /** @internal */
@@ -36400,7 +36413,6 @@ __webpack_require__.r(__webpack_exports__);
36400
36413
  /* harmony export */ "BentleyStatus": () => (/* reexport safe */ _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus),
36401
36414
  /* harmony export */ "BriefcaseStatus": () => (/* reexport safe */ _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BriefcaseStatus),
36402
36415
  /* harmony export */ "ChangeSetStatus": () => (/* reexport safe */ _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.ChangeSetStatus),
36403
- /* harmony export */ "ChannelConstraintError": () => (/* binding */ ChannelConstraintError),
36404
36416
  /* harmony export */ "ConflictingLocksError": () => (/* binding */ ConflictingLocksError),
36405
36417
  /* harmony export */ "DbResult": () => (/* reexport safe */ _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.DbResult),
36406
36418
  /* harmony export */ "IModelError": () => (/* binding */ IModelError),
@@ -36475,15 +36487,6 @@ class BackendError extends IModelError {
36475
36487
  this.name = name;
36476
36488
  }
36477
36489
  }
36478
- /**
36479
- * Channel constraint error
36480
- * @alpha
36481
- */
36482
- class ChannelConstraintError extends IModelError {
36483
- constructor(message, getMetaData) {
36484
- super(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.RepositoryStatus.ChannelConstraintViolation, message, getMetaData);
36485
- }
36486
- }
36487
36490
  /** Intended for API "no content" semantics where the error case should not trigger application failure monitoring systems.
36488
36491
  * @public
36489
36492
  */
@@ -45052,7 +45055,6 @@ __webpack_require__.r(__webpack_exports__);
45052
45055
  /* harmony export */ "ChangeSetStatus": () => (/* reexport safe */ _IModelError__WEBPACK_IMPORTED_MODULE_68__.ChangeSetStatus),
45053
45056
  /* harmony export */ "ChangedValueState": () => (/* reexport safe */ _ECSqlTypes__WEBPACK_IMPORTED_MODULE_26__.ChangedValueState),
45054
45057
  /* harmony export */ "ChangesetType": () => (/* reexport safe */ _ChangesetProps__WEBPACK_IMPORTED_MODULE_16__.ChangesetType),
45055
- /* harmony export */ "ChannelConstraintError": () => (/* reexport safe */ _IModelError__WEBPACK_IMPORTED_MODULE_68__.ChannelConstraintError),
45056
45058
  /* harmony export */ "ClipIntersectionStyle": () => (/* reexport safe */ _ClipStyle__WEBPACK_IMPORTED_MODULE_17__.ClipIntersectionStyle),
45057
45059
  /* harmony export */ "ClipStyle": () => (/* reexport safe */ _ClipStyle__WEBPACK_IMPORTED_MODULE_17__.ClipStyle),
45058
45060
  /* harmony export */ "Code": () => (/* reexport safe */ _Code__WEBPACK_IMPORTED_MODULE_18__.Code),
@@ -54971,6 +54973,7 @@ class IModelReadRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_0__.
54971
54973
  async getConnectionProps(_iModelToken) { return this.forward(arguments); }
54972
54974
  async queryRows(_iModelToken, _request) { return this.forward(arguments); }
54973
54975
  async querySubCategories(_iModelToken, _categoryIds) { return this.forward(arguments); }
54976
+ async queryAllUsedSpatialSubCategories(_iModelToken) { return this.forward(arguments); }
54974
54977
  async queryBlob(_iModelToken, _request) { return this.forward(arguments); }
54975
54978
  async getModelProps(_iModelToken, _modelIds) { return this.forward(arguments); }
54976
54979
  async queryModelRanges(_iModelToken, _modelIds) { return this.forward(arguments); }
@@ -55010,13 +55013,16 @@ class IModelReadRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_0__.
55010
55013
  /** The immutable name of the interface. */
55011
55014
  IModelReadRpcInterface.interfaceName = "IModelReadRpcInterface";
55012
55015
  /** The semantic version of the interface. */
55013
- IModelReadRpcInterface.interfaceVersion = "3.6.0";
55016
+ IModelReadRpcInterface.interfaceVersion = "3.7.0";
55014
55017
  __decorate([
55015
55018
  _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
55016
55019
  ], IModelReadRpcInterface.prototype, "getConnectionProps", null);
55017
55020
  __decorate([
55018
55021
  _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
55019
55022
  ], IModelReadRpcInterface.prototype, "querySubCategories", null);
55023
+ __decorate([
55024
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
55025
+ ], IModelReadRpcInterface.prototype, "queryAllUsedSpatialSubCategories", null);
55020
55026
  __decorate([
55021
55027
  _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
55022
55028
  ], IModelReadRpcInterface.prototype, "getModelProps", null);
@@ -82182,6 +82188,14 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
82182
82188
  async querySubCategories(compressedCategoryIds) {
82183
82189
  return _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(this.routingContext.token).querySubCategories(this.getRpcProps(), compressedCategoryIds);
82184
82190
  }
82191
+ /**
82192
+ * queries the BisCore.SubCategory table for entries that are children of used spatial categories and 3D elements.
82193
+ * @returns array of SubCategoryResultRow
82194
+ * @internal
82195
+ */
82196
+ async queryAllUsedSpatialSubCategories() {
82197
+ return _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(this.routingContext.token).queryAllUsedSpatialSubCategories(this.getRpcProps());
82198
+ }
82185
82199
  /** Execute a query and stream its results
82186
82200
  * The result of the query is async iterator over the rows. The iterator will get next page automatically once rows in current page has been read.
82187
82201
  * [ECSQL row]($docs/learning/ECSQLRowFormat).
@@ -88071,6 +88085,18 @@ class SubCategoriesCache {
88071
88085
  cancel: () => request.cancel(),
88072
88086
  };
88073
88087
  }
88088
+ /** Load all subcategories that come from used spatial categories of the iModel into the cache. */
88089
+ async loadAllUsedSpatialSubCategories() {
88090
+ try {
88091
+ const results = await this._imodel.queryAllUsedSpatialSubCategories();
88092
+ if (undefined !== results) {
88093
+ this.processResults(results, new Set(), false);
88094
+ }
88095
+ }
88096
+ catch (e) {
88097
+ // In case of a truncated response, gracefully handle the error and exit.
88098
+ }
88099
+ }
88074
88100
  /** Given categoryIds, return which of these are not cached. */
88075
88101
  getMissing(categoryIds) {
88076
88102
  let missing;
@@ -88096,9 +88122,10 @@ class SubCategoriesCache {
88096
88122
  props = JSON.parse(json);
88097
88123
  return new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.SubCategoryAppearance(props);
88098
88124
  }
88099
- processResults(result, missing) {
88100
- for (const row of result)
88101
- this.add(row.parentId, row.id, SubCategoriesCache.createSubCategoryAppearance(row.appearance));
88125
+ processResults(result, missing, override = true) {
88126
+ for (const row of result) {
88127
+ this.add(row.parentId, row.id, SubCategoriesCache.createSubCategoryAppearance(row.appearance), override);
88128
+ }
88102
88129
  // Ensure that any category Ids which returned no results (e.g., non-existent category, invalid Id, etc) are still recorded so they are not repeatedly re-requested
88103
88130
  for (const id of missing)
88104
88131
  if (undefined === this._byCategoryId.get(id))
@@ -88107,12 +88134,13 @@ class SubCategoriesCache {
88107
88134
  /** Exposed strictly for tests.
88108
88135
  * @internal
88109
88136
  */
88110
- add(categoryId, subCategoryId, appearance) {
88137
+ add(categoryId, subCategoryId, appearance, override) {
88111
88138
  let set = this._byCategoryId.get(categoryId);
88112
88139
  if (undefined === set)
88113
88140
  this._byCategoryId.set(categoryId, set = new Set());
88114
88141
  set.add(subCategoryId);
88115
- this._appearances.set(subCategoryId, appearance);
88142
+ if (override)
88143
+ this._appearances.set(subCategoryId, appearance);
88116
88144
  }
88117
88145
  async getCategoryInfo(inputCategoryIds) {
88118
88146
  // Eliminate duplicates...
@@ -89677,6 +89705,7 @@ class ViewCreator3d {
89677
89705
  const props = await this._createViewStateProps(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.CompressedId64Set.decompressArray(serializedProps.modelIds), _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.CompressedId64Set.decompressArray(serializedProps.categoryIds), baseExtents, options);
89678
89706
  const viewState = _SpatialViewState__WEBPACK_IMPORTED_MODULE_3__.SpatialViewState.createFromProps(props, this._imodel);
89679
89707
  try {
89708
+ await viewState.iModel.subcategories.loadAllUsedSpatialSubCategories();
89680
89709
  await viewState.load();
89681
89710
  }
89682
89711
  catch {
@@ -298167,7 +298196,7 @@ var loadLanguages = instance.loadLanguages;
298167
298196
  /***/ ((module) => {
298168
298197
 
298169
298198
  "use strict";
298170
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.8.0-dev.16","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 ES2020 --outDir lib/esm","clean":"rimraf 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 --includes=../../generated-docs/extract --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 -f visualstudio \\"./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 -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","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:^4.8.0-dev.16","@itwin/core-bentley":"workspace:^4.8.0-dev.16","@itwin/core-common":"workspace:^4.8.0-dev.16","@itwin/core-geometry":"workspace:^4.8.0-dev.16","@itwin/core-orbitgt":"workspace:^4.8.0-dev.16","@itwin/core-quantity":"workspace:^4.8.0-dev.16"},"//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/certa":"workspace:*","@itwin/eslint-plugin":"^4.0.2","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^10.0.6","@types/sinon":"^17.0.2","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7.1.1","cpx2":"^3.0.0","eslint":"^8.56.0","glob":"^10.3.12","mocha":"^10.2.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^17.0.1","source-map-loader":"^4.0.0","typescript":"~5.3.3","typemoq":"^2.1.0","webpack":"^5.76.0"},"//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.1.0","@itwin/object-storage-core":"^2.2.2","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","meshoptimizer":"~0.20.0","wms-capabilities":"0.4.0"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"}}');
298199
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.8.0-dev.17","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 ES2020 --outDir lib/esm","clean":"rimraf 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 --includes=../../generated-docs/extract --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 -f visualstudio \\"./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 -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","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:^4.8.0-dev.17","@itwin/core-bentley":"workspace:^4.8.0-dev.17","@itwin/core-common":"workspace:^4.8.0-dev.17","@itwin/core-geometry":"workspace:^4.8.0-dev.17","@itwin/core-orbitgt":"workspace:^4.8.0-dev.17","@itwin/core-quantity":"workspace:^4.8.0-dev.17"},"//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/certa":"workspace:*","@itwin/eslint-plugin":"^4.0.2","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^10.0.6","@types/sinon":"^17.0.2","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7.1.1","cpx2":"^3.0.0","eslint":"^8.56.0","glob":"^10.3.12","mocha":"^10.2.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^17.0.1","source-map-loader":"^4.0.0","typescript":"~5.3.3","typemoq":"^2.1.0","webpack":"^5.76.0"},"//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.1.0","@itwin/object-storage-core":"^2.2.2","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","meshoptimizer":"~0.20.0","wms-capabilities":"0.4.0"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"}}');
298171
298200
 
298172
298201
  /***/ })
298173
298202