@itwin/rpcinterface-full-stack-tests 3.3.0-dev.25 → 3.3.0-dev.28

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.
@@ -39883,6 +39883,1209 @@ module.exports = function(xml, userOptions) {
39883
39883
  };
39884
39884
 
39885
39885
 
39886
+ /***/ }),
39887
+
39888
+ /***/ "../../core/bentley/lib/cjs/BeSQLite.js":
39889
+ /*!******************************************************!*\
39890
+ !*** D:/vsts_a/1/s/core/bentley/lib/cjs/BeSQLite.js ***!
39891
+ \******************************************************/
39892
+ /*! no static exports found */
39893
+ /***/ (function(module, exports, __webpack_require__) {
39894
+
39895
+ "use strict";
39896
+
39897
+ /*---------------------------------------------------------------------------------------------
39898
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
39899
+ * See LICENSE.md in the project root for license terms and full copyright notice.
39900
+ *--------------------------------------------------------------------------------------------*/
39901
+ /** @packageDocumentation
39902
+ * @module BeSQLite
39903
+ */
39904
+ Object.defineProperty(exports, "__esModule", { value: true });
39905
+ exports.DbResult = exports.DbOpcode = exports.OpenMode = void 0;
39906
+ /** Whether to open a database readonly or writeable.
39907
+ * @public
39908
+ */
39909
+ var OpenMode;
39910
+ (function (OpenMode) {
39911
+ OpenMode[OpenMode["Readonly"] = 1] = "Readonly";
39912
+ OpenMode[OpenMode["ReadWrite"] = 2] = "ReadWrite";
39913
+ })(OpenMode = exports.OpenMode || (exports.OpenMode = {}));
39914
+ /** Values, stored in changesets, that indicate what operation was performed on the database.
39915
+ * @public
39916
+ */
39917
+ var DbOpcode;
39918
+ (function (DbOpcode) {
39919
+ /** A row was deleted. */
39920
+ DbOpcode[DbOpcode["Delete"] = 9] = "Delete";
39921
+ /** A new row was inserted. */
39922
+ DbOpcode[DbOpcode["Insert"] = 18] = "Insert";
39923
+ /** Some columns of an existing row were updated. */
39924
+ DbOpcode[DbOpcode["Update"] = 23] = "Update";
39925
+ })(DbOpcode = exports.DbOpcode || (exports.DbOpcode = {}));
39926
+ /** Values for return codes from BeSQLite functions. Consult SQLite documentation for further explanations.
39927
+ * @public
39928
+ */
39929
+ /* eslint-disable @typescript-eslint/naming-convention */
39930
+ // Disabling for the rest of the file since eslint does not correctly parse the entire enum, only parts of it
39931
+ var DbResult;
39932
+ (function (DbResult) {
39933
+ /** Success */
39934
+ DbResult[DbResult["BE_SQLITE_OK"] = 0] = "BE_SQLITE_OK";
39935
+ /** SQL error or missing database */
39936
+ DbResult[DbResult["BE_SQLITE_ERROR"] = 1] = "BE_SQLITE_ERROR";
39937
+ /** Internal logic error */
39938
+ DbResult[DbResult["BE_SQLITE_INTERNAL"] = 2] = "BE_SQLITE_INTERNAL";
39939
+ /** Access permission denied */
39940
+ DbResult[DbResult["BE_SQLITE_PERM"] = 3] = "BE_SQLITE_PERM";
39941
+ /** Callback routine requested an abort */
39942
+ DbResult[DbResult["BE_SQLITE_ABORT"] = 4] = "BE_SQLITE_ABORT";
39943
+ /** The database file is locked */
39944
+ DbResult[DbResult["BE_SQLITE_BUSY"] = 5] = "BE_SQLITE_BUSY";
39945
+ /** A table in the database is locked */
39946
+ DbResult[DbResult["BE_SQLITE_LOCKED"] = 6] = "BE_SQLITE_LOCKED";
39947
+ /** A malloc() failed */
39948
+ DbResult[DbResult["BE_SQLITE_NOMEM"] = 7] = "BE_SQLITE_NOMEM";
39949
+ /** Attempt to write a readonly database */
39950
+ DbResult[DbResult["BE_SQLITE_READONLY"] = 8] = "BE_SQLITE_READONLY";
39951
+ /** Operation terminated by interrupt */
39952
+ DbResult[DbResult["BE_SQLITE_INTERRUPT"] = 9] = "BE_SQLITE_INTERRUPT";
39953
+ /** Some kind of disk I/O error occurred */
39954
+ DbResult[DbResult["BE_SQLITE_IOERR"] = 10] = "BE_SQLITE_IOERR";
39955
+ /** The database disk image is malformed */
39956
+ DbResult[DbResult["BE_SQLITE_CORRUPT"] = 11] = "BE_SQLITE_CORRUPT";
39957
+ /** NOT USED. Table or record not found */
39958
+ DbResult[DbResult["BE_SQLITE_NOTFOUND"] = 12] = "BE_SQLITE_NOTFOUND";
39959
+ /** Insertion failed because database is full or write operation failed because disk is full */
39960
+ DbResult[DbResult["BE_SQLITE_FULL"] = 13] = "BE_SQLITE_FULL";
39961
+ /** Unable to open the database file */
39962
+ DbResult[DbResult["BE_SQLITE_CANTOPEN"] = 14] = "BE_SQLITE_CANTOPEN";
39963
+ /** Database lock protocol error */
39964
+ DbResult[DbResult["BE_SQLITE_PROTOCOL"] = 15] = "BE_SQLITE_PROTOCOL";
39965
+ /** Database is empty */
39966
+ DbResult[DbResult["BE_SQLITE_EMPTY"] = 16] = "BE_SQLITE_EMPTY";
39967
+ /** The database schema changed */
39968
+ DbResult[DbResult["BE_SQLITE_SCHEMA"] = 17] = "BE_SQLITE_SCHEMA";
39969
+ /** String or BLOB exceeds size limit */
39970
+ DbResult[DbResult["BE_SQLITE_TOOBIG"] = 18] = "BE_SQLITE_TOOBIG";
39971
+ /** Abort due to constraint violation. See extended error values. */
39972
+ DbResult[DbResult["BE_SQLITE_CONSTRAINT_BASE"] = 19] = "BE_SQLITE_CONSTRAINT_BASE";
39973
+ /** Data type mismatch */
39974
+ DbResult[DbResult["BE_SQLITE_MISMATCH"] = 20] = "BE_SQLITE_MISMATCH";
39975
+ /** Library used incorrectly */
39976
+ DbResult[DbResult["BE_SQLITE_MISUSE"] = 21] = "BE_SQLITE_MISUSE";
39977
+ /** Uses OS features not supported on host */
39978
+ DbResult[DbResult["BE_SQLITE_NOLFS"] = 22] = "BE_SQLITE_NOLFS";
39979
+ /** Authorization denied */
39980
+ DbResult[DbResult["BE_SQLITE_AUTH"] = 23] = "BE_SQLITE_AUTH";
39981
+ /** Auxiliary database format error */
39982
+ DbResult[DbResult["BE_SQLITE_FORMAT"] = 24] = "BE_SQLITE_FORMAT";
39983
+ /** 2nd parameter to Bind out of range */
39984
+ DbResult[DbResult["BE_SQLITE_RANGE"] = 25] = "BE_SQLITE_RANGE";
39985
+ /** File opened that is not a database file */
39986
+ DbResult[DbResult["BE_SQLITE_NOTADB"] = 26] = "BE_SQLITE_NOTADB";
39987
+ /** Step() has another row ready */
39988
+ DbResult[DbResult["BE_SQLITE_ROW"] = 100] = "BE_SQLITE_ROW";
39989
+ /** Step() has finished executing */
39990
+ DbResult[DbResult["BE_SQLITE_DONE"] = 101] = "BE_SQLITE_DONE";
39991
+ DbResult[DbResult["BE_SQLITE_IOERR_READ"] = 266] = "BE_SQLITE_IOERR_READ";
39992
+ DbResult[DbResult["BE_SQLITE_IOERR_SHORT_READ"] = 522] = "BE_SQLITE_IOERR_SHORT_READ";
39993
+ DbResult[DbResult["BE_SQLITE_IOERR_WRITE"] = 778] = "BE_SQLITE_IOERR_WRITE";
39994
+ DbResult[DbResult["BE_SQLITE_IOERR_FSYNC"] = 1034] = "BE_SQLITE_IOERR_FSYNC";
39995
+ DbResult[DbResult["BE_SQLITE_IOERR_DIR_FSYNC"] = 1290] = "BE_SQLITE_IOERR_DIR_FSYNC";
39996
+ DbResult[DbResult["BE_SQLITE_IOERR_TRUNCATE"] = 1546] = "BE_SQLITE_IOERR_TRUNCATE";
39997
+ DbResult[DbResult["BE_SQLITE_IOERR_FSTAT"] = 1802] = "BE_SQLITE_IOERR_FSTAT";
39998
+ DbResult[DbResult["BE_SQLITE_IOERR_UNLOCK"] = 2058] = "BE_SQLITE_IOERR_UNLOCK";
39999
+ DbResult[DbResult["BE_SQLITE_IOERR_RDLOCK"] = 2314] = "BE_SQLITE_IOERR_RDLOCK";
40000
+ DbResult[DbResult["BE_SQLITE_IOERR_DELETE"] = 2570] = "BE_SQLITE_IOERR_DELETE";
40001
+ DbResult[DbResult["BE_SQLITE_IOERR_BLOCKED"] = 2826] = "BE_SQLITE_IOERR_BLOCKED";
40002
+ DbResult[DbResult["BE_SQLITE_IOERR_NOMEM"] = 3082] = "BE_SQLITE_IOERR_NOMEM";
40003
+ DbResult[DbResult["BE_SQLITE_IOERR_ACCESS"] = 3338] = "BE_SQLITE_IOERR_ACCESS";
40004
+ DbResult[DbResult["BE_SQLITE_IOERR_CHECKRESERVEDLOCK"] = 3594] = "BE_SQLITE_IOERR_CHECKRESERVEDLOCK";
40005
+ DbResult[DbResult["BE_SQLITE_IOERR_LOCK"] = 3850] = "BE_SQLITE_IOERR_LOCK";
40006
+ DbResult[DbResult["BE_SQLITE_IOERR_CLOSE"] = 4106] = "BE_SQLITE_IOERR_CLOSE";
40007
+ DbResult[DbResult["BE_SQLITE_IOERR_DIR_CLOSE"] = 4362] = "BE_SQLITE_IOERR_DIR_CLOSE";
40008
+ DbResult[DbResult["BE_SQLITE_IOERR_SHMOPEN"] = 4618] = "BE_SQLITE_IOERR_SHMOPEN";
40009
+ DbResult[DbResult["BE_SQLITE_IOERR_SHMSIZE"] = 4874] = "BE_SQLITE_IOERR_SHMSIZE";
40010
+ DbResult[DbResult["BE_SQLITE_IOERR_SHMLOCK"] = 5130] = "BE_SQLITE_IOERR_SHMLOCK";
40011
+ DbResult[DbResult["BE_SQLITE_IOERR_SHMMAP"] = 5386] = "BE_SQLITE_IOERR_SHMMAP";
40012
+ DbResult[DbResult["BE_SQLITE_IOERR_SEEK"] = 5642] = "BE_SQLITE_IOERR_SEEK";
40013
+ DbResult[DbResult["BE_SQLITE_IOERR_DELETE_NOENT"] = 5898] = "BE_SQLITE_IOERR_DELETE_NOENT";
40014
+ /** attempt to create a new file when a file by that name already exists */
40015
+ DbResult[DbResult["BE_SQLITE_ERROR_FileExists"] = 16777226] = "BE_SQLITE_ERROR_FileExists";
40016
+ /** attempt to open a BeSQLite::Db that is already in use somewhere. */
40017
+ DbResult[DbResult["BE_SQLITE_ERROR_AlreadyOpen"] = 33554442] = "BE_SQLITE_ERROR_AlreadyOpen";
40018
+ /** attempt to open a BeSQLite::Db that doesn't have a property table. */
40019
+ DbResult[DbResult["BE_SQLITE_ERROR_NoPropertyTable"] = 50331658] = "BE_SQLITE_ERROR_NoPropertyTable";
40020
+ /** the database name is not a file. */
40021
+ DbResult[DbResult["BE_SQLITE_ERROR_FileNotFound"] = 67108874] = "BE_SQLITE_ERROR_FileNotFound";
40022
+ /** there is no transaction active and the database was opened with AllowImplicitTransactions=false */
40023
+ DbResult[DbResult["BE_SQLITE_ERROR_NoTxnActive"] = 83886090] = "BE_SQLITE_ERROR_NoTxnActive";
40024
+ /** wrong BeSQLite profile version */
40025
+ DbResult[DbResult["BE_SQLITE_ERROR_BadDbProfile"] = 100663306] = "BE_SQLITE_ERROR_BadDbProfile";
40026
+ /** Profile of file could not be determined. */
40027
+ DbResult[DbResult["BE_SQLITE_ERROR_InvalidProfileVersion"] = 117440522] = "BE_SQLITE_ERROR_InvalidProfileVersion";
40028
+ /** Upgrade of profile of file failed. */
40029
+ DbResult[DbResult["BE_SQLITE_ERROR_ProfileUpgradeFailed"] = 134217738] = "BE_SQLITE_ERROR_ProfileUpgradeFailed";
40030
+ /** Profile of file is too old. Therefore file can only be opened read-only. */
40031
+ DbResult[DbResult["BE_SQLITE_ERROR_ProfileTooOldForReadWrite"] = 150994954] = "BE_SQLITE_ERROR_ProfileTooOldForReadWrite";
40032
+ /** Profile of file is too old. Therefore file cannot be opened. */
40033
+ DbResult[DbResult["BE_SQLITE_ERROR_ProfileTooOld"] = 167772170] = "BE_SQLITE_ERROR_ProfileTooOld";
40034
+ /** Profile of file is too new for read-write access. Therefore file can only be opened read-only. */
40035
+ DbResult[DbResult["BE_SQLITE_ERROR_ProfileTooNewForReadWrite"] = 184549386] = "BE_SQLITE_ERROR_ProfileTooNewForReadWrite";
40036
+ /** Profile of file is too new. Therefore file cannot be opened. */
40037
+ DbResult[DbResult["BE_SQLITE_ERROR_ProfileTooNew"] = 201326602] = "BE_SQLITE_ERROR_ProfileTooNew";
40038
+ /** attempt to commit with active changetrack */
40039
+ DbResult[DbResult["BE_SQLITE_ERROR_ChangeTrackError"] = 218103818] = "BE_SQLITE_ERROR_ChangeTrackError";
40040
+ /** invalid version of the revision file is being imported */
40041
+ DbResult[DbResult["BE_SQLITE_ERROR_InvalidChangeSetVersion"] = 234881034] = "BE_SQLITE_ERROR_InvalidChangeSetVersion";
40042
+ /** The schemas found in the database need to be upgraded */
40043
+ DbResult[DbResult["BE_SQLITE_ERROR_SchemaUpgradeRequired"] = 251658250] = "BE_SQLITE_ERROR_SchemaUpgradeRequired";
40044
+ /** The schemas found in the database are too new, and the application needs to be upgraded. */
40045
+ DbResult[DbResult["BE_SQLITE_ERROR_SchemaTooNew"] = 268435466] = "BE_SQLITE_ERROR_SchemaTooNew";
40046
+ /** The schemas found in the database are too old, and the DgnDb needs to be upgraded. */
40047
+ DbResult[DbResult["BE_SQLITE_ERROR_SchemaTooOld"] = 285212682] = "BE_SQLITE_ERROR_SchemaTooOld";
40048
+ /** Error acquiring a lock on the schemas before upgrade. */
40049
+ DbResult[DbResult["BE_SQLITE_ERROR_SchemaLockFailed"] = 301989898] = "BE_SQLITE_ERROR_SchemaLockFailed";
40050
+ /** Error upgrading the schemas in the database. */
40051
+ DbResult[DbResult["BE_SQLITE_ERROR_SchemaUpgradeFailed"] = 318767114] = "BE_SQLITE_ERROR_SchemaUpgradeFailed";
40052
+ /** Error importing the schemas into the database. */
40053
+ DbResult[DbResult["BE_SQLITE_ERROR_SchemaImportFailed"] = 335544330] = "BE_SQLITE_ERROR_SchemaImportFailed";
40054
+ /** Error acquiring locks or codes */
40055
+ DbResult[DbResult["BE_SQLITE_ERROR_CouldNotAcquireLocksOrCodes"] = 352321546] = "BE_SQLITE_ERROR_CouldNotAcquireLocksOrCodes";
40056
+ /** Recommended that the schemas found in the database be upgraded */
40057
+ DbResult[DbResult["BE_SQLITE_ERROR_SchemaUpgradeRecommended"] = 369098762] = "BE_SQLITE_ERROR_SchemaUpgradeRecommended";
40058
+ DbResult[DbResult["BE_SQLITE_LOCKED_SHAREDCACHE"] = 262] = "BE_SQLITE_LOCKED_SHAREDCACHE";
40059
+ DbResult[DbResult["BE_SQLITE_BUSY_RECOVERY"] = 261] = "BE_SQLITE_BUSY_RECOVERY";
40060
+ DbResult[DbResult["BE_SQLITE_CANTOPEN_NOTEMPDIR"] = 270] = "BE_SQLITE_CANTOPEN_NOTEMPDIR";
40061
+ DbResult[DbResult["BE_SQLITE_CANTOPEN_ISDIR"] = 526] = "BE_SQLITE_CANTOPEN_ISDIR";
40062
+ DbResult[DbResult["BE_SQLITE_CANTOPEN_FULLPATH"] = 782] = "BE_SQLITE_CANTOPEN_FULLPATH";
40063
+ DbResult[DbResult["BE_SQLITE_CORRUPT_VTAB"] = 267] = "BE_SQLITE_CORRUPT_VTAB";
40064
+ DbResult[DbResult["BE_SQLITE_READONLY_RECOVERY"] = 264] = "BE_SQLITE_READONLY_RECOVERY";
40065
+ DbResult[DbResult["BE_SQLITE_READONLY_CANTLOCK"] = 520] = "BE_SQLITE_READONLY_CANTLOCK";
40066
+ DbResult[DbResult["BE_SQLITE_READONLY_ROLLBACK"] = 776] = "BE_SQLITE_READONLY_ROLLBACK";
40067
+ DbResult[DbResult["BE_SQLITE_ABORT_ROLLBACK"] = 516] = "BE_SQLITE_ABORT_ROLLBACK";
40068
+ DbResult[DbResult["BE_SQLITE_CONSTRAINT_CHECK"] = 275] = "BE_SQLITE_CONSTRAINT_CHECK";
40069
+ DbResult[DbResult["BE_SQLITE_CONSTRAINT_COMMITHOOK"] = 531] = "BE_SQLITE_CONSTRAINT_COMMITHOOK";
40070
+ DbResult[DbResult["BE_SQLITE_CONSTRAINT_FOREIGNKEY"] = 787] = "BE_SQLITE_CONSTRAINT_FOREIGNKEY";
40071
+ DbResult[DbResult["BE_SQLITE_CONSTRAINT_FUNCTION"] = 1043] = "BE_SQLITE_CONSTRAINT_FUNCTION";
40072
+ DbResult[DbResult["BE_SQLITE_CONSTRAINT_NOTNULL"] = 1299] = "BE_SQLITE_CONSTRAINT_NOTNULL";
40073
+ DbResult[DbResult["BE_SQLITE_CONSTRAINT_PRIMARYKEY"] = 1555] = "BE_SQLITE_CONSTRAINT_PRIMARYKEY";
40074
+ DbResult[DbResult["BE_SQLITE_CONSTRAINT_TRIGGER"] = 1811] = "BE_SQLITE_CONSTRAINT_TRIGGER";
40075
+ DbResult[DbResult["BE_SQLITE_CONSTRAINT_UNIQUE"] = 2067] = "BE_SQLITE_CONSTRAINT_UNIQUE";
40076
+ DbResult[DbResult["BE_SQLITE_CONSTRAINT_VTAB"] = 2323] = "BE_SQLITE_CONSTRAINT_VTAB";
40077
+ })(DbResult = exports.DbResult || (exports.DbResult = {}));
40078
+ /* eslint-enable @typescript-eslint/naming-convention */
40079
+
40080
+
40081
+ /***/ }),
40082
+
40083
+ /***/ "../../core/bentley/lib/cjs/BentleyError.js":
40084
+ /*!**********************************************************!*\
40085
+ !*** D:/vsts_a/1/s/core/bentley/lib/cjs/BentleyError.js ***!
40086
+ \**********************************************************/
40087
+ /*! no static exports found */
40088
+ /***/ (function(module, exports, __webpack_require__) {
40089
+
40090
+ "use strict";
40091
+
40092
+ /*---------------------------------------------------------------------------------------------
40093
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
40094
+ * See LICENSE.md in the project root for license terms and full copyright notice.
40095
+ *--------------------------------------------------------------------------------------------*/
40096
+ /** @packageDocumentation
40097
+ * @module Errors
40098
+ */
40099
+ Object.defineProperty(exports, "__esModule", { value: true });
40100
+ exports.BentleyError = exports.RealityDataStatus = exports.GeoServiceStatus = exports.IModelHubStatus = exports.HttpStatus = exports.RepositoryStatus = exports.ChangeSetStatus = exports.RpcInterfaceStatus = exports.BriefcaseStatus = exports.IModelStatus = exports.BentleyStatus = void 0;
40101
+ const BeSQLite_1 = __webpack_require__(/*! ./BeSQLite */ "../../core/bentley/lib/cjs/BeSQLite.js");
40102
+ /** Standard status code.
40103
+ * This status code should be rarely used.
40104
+ * Prefer to throw an exception to indicate an error, rather than returning a special status code.
40105
+ * If a status code is to be returned, prefer to return a more specific error status type such as IModelStatus or DbResult.
40106
+ * @public
40107
+ */
40108
+ var BentleyStatus;
40109
+ (function (BentleyStatus) {
40110
+ BentleyStatus[BentleyStatus["SUCCESS"] = 0] = "SUCCESS";
40111
+ BentleyStatus[BentleyStatus["ERROR"] = 32768] = "ERROR";
40112
+ })(BentleyStatus = exports.BentleyStatus || (exports.BentleyStatus = {}));
40113
+ /** Status codes that are used in conjunction with [[BentleyError]].
40114
+ * Error status codes are divided into separate ranges for different kinds of errors. All known ranges at least should be defined here, to avoid collisions.
40115
+ * @public
40116
+ */
40117
+ var IModelStatus;
40118
+ (function (IModelStatus) {
40119
+ IModelStatus[IModelStatus["IMODEL_ERROR_BASE"] = 65536] = "IMODEL_ERROR_BASE";
40120
+ IModelStatus[IModelStatus["Success"] = 0] = "Success";
40121
+ IModelStatus[IModelStatus["AlreadyLoaded"] = 65537] = "AlreadyLoaded";
40122
+ IModelStatus[IModelStatus["AlreadyOpen"] = 65538] = "AlreadyOpen";
40123
+ IModelStatus[IModelStatus["BadArg"] = 65539] = "BadArg";
40124
+ IModelStatus[IModelStatus["BadElement"] = 65540] = "BadElement";
40125
+ IModelStatus[IModelStatus["BadModel"] = 65541] = "BadModel";
40126
+ IModelStatus[IModelStatus["BadRequest"] = 65542] = "BadRequest";
40127
+ IModelStatus[IModelStatus["BadSchema"] = 65543] = "BadSchema";
40128
+ IModelStatus[IModelStatus["CannotUndo"] = 65544] = "CannotUndo";
40129
+ IModelStatus[IModelStatus["CodeNotReserved"] = 65545] = "CodeNotReserved";
40130
+ IModelStatus[IModelStatus["DeletionProhibited"] = 65546] = "DeletionProhibited";
40131
+ IModelStatus[IModelStatus["DuplicateCode"] = 65547] = "DuplicateCode";
40132
+ IModelStatus[IModelStatus["DuplicateName"] = 65548] = "DuplicateName";
40133
+ IModelStatus[IModelStatus["ElementBlockedChange"] = 65549] = "ElementBlockedChange";
40134
+ IModelStatus[IModelStatus["FileAlreadyExists"] = 65550] = "FileAlreadyExists";
40135
+ IModelStatus[IModelStatus["FileNotFound"] = 65551] = "FileNotFound";
40136
+ IModelStatus[IModelStatus["FileNotLoaded"] = 65552] = "FileNotLoaded";
40137
+ IModelStatus[IModelStatus["ForeignKeyConstraint"] = 65553] = "ForeignKeyConstraint";
40138
+ IModelStatus[IModelStatus["IdExists"] = 65554] = "IdExists";
40139
+ IModelStatus[IModelStatus["InDynamicTransaction"] = 65555] = "InDynamicTransaction";
40140
+ IModelStatus[IModelStatus["InvalidCategory"] = 65556] = "InvalidCategory";
40141
+ IModelStatus[IModelStatus["InvalidCode"] = 65557] = "InvalidCode";
40142
+ IModelStatus[IModelStatus["InvalidCodeSpec"] = 65558] = "InvalidCodeSpec";
40143
+ IModelStatus[IModelStatus["InvalidId"] = 65559] = "InvalidId";
40144
+ IModelStatus[IModelStatus["InvalidName"] = 65560] = "InvalidName";
40145
+ IModelStatus[IModelStatus["InvalidParent"] = 65561] = "InvalidParent";
40146
+ IModelStatus[IModelStatus["InvalidProfileVersion"] = 65562] = "InvalidProfileVersion";
40147
+ IModelStatus[IModelStatus["IsCreatingChangeSet"] = 65563] = "IsCreatingChangeSet";
40148
+ IModelStatus[IModelStatus["LockNotHeld"] = 65564] = "LockNotHeld";
40149
+ IModelStatus[IModelStatus["Mismatch2d3d"] = 65565] = "Mismatch2d3d";
40150
+ IModelStatus[IModelStatus["MismatchGcs"] = 65566] = "MismatchGcs";
40151
+ IModelStatus[IModelStatus["MissingDomain"] = 65567] = "MissingDomain";
40152
+ IModelStatus[IModelStatus["MissingHandler"] = 65568] = "MissingHandler";
40153
+ IModelStatus[IModelStatus["MissingId"] = 65569] = "MissingId";
40154
+ IModelStatus[IModelStatus["NoGeometry"] = 65570] = "NoGeometry";
40155
+ IModelStatus[IModelStatus["NoMultiTxnOperation"] = 65571] = "NoMultiTxnOperation";
40156
+ IModelStatus[IModelStatus["NotEnabled"] = 65573] = "NotEnabled";
40157
+ IModelStatus[IModelStatus["NotFound"] = 65574] = "NotFound";
40158
+ IModelStatus[IModelStatus["NotOpen"] = 65575] = "NotOpen";
40159
+ IModelStatus[IModelStatus["NotOpenForWrite"] = 65576] = "NotOpenForWrite";
40160
+ IModelStatus[IModelStatus["NotSameUnitBase"] = 65577] = "NotSameUnitBase";
40161
+ IModelStatus[IModelStatus["NothingToRedo"] = 65578] = "NothingToRedo";
40162
+ IModelStatus[IModelStatus["NothingToUndo"] = 65579] = "NothingToUndo";
40163
+ IModelStatus[IModelStatus["ParentBlockedChange"] = 65580] = "ParentBlockedChange";
40164
+ IModelStatus[IModelStatus["ReadError"] = 65581] = "ReadError";
40165
+ IModelStatus[IModelStatus["ReadOnly"] = 65582] = "ReadOnly";
40166
+ IModelStatus[IModelStatus["ReadOnlyDomain"] = 65583] = "ReadOnlyDomain";
40167
+ IModelStatus[IModelStatus["RepositoryManagerError"] = 65584] = "RepositoryManagerError";
40168
+ IModelStatus[IModelStatus["SQLiteError"] = 65585] = "SQLiteError";
40169
+ IModelStatus[IModelStatus["TransactionActive"] = 65586] = "TransactionActive";
40170
+ IModelStatus[IModelStatus["UnitsMissing"] = 65587] = "UnitsMissing";
40171
+ IModelStatus[IModelStatus["UnknownFormat"] = 65588] = "UnknownFormat";
40172
+ IModelStatus[IModelStatus["UpgradeFailed"] = 65589] = "UpgradeFailed";
40173
+ IModelStatus[IModelStatus["ValidationFailed"] = 65590] = "ValidationFailed";
40174
+ IModelStatus[IModelStatus["VersionTooNew"] = 65591] = "VersionTooNew";
40175
+ IModelStatus[IModelStatus["VersionTooOld"] = 65592] = "VersionTooOld";
40176
+ IModelStatus[IModelStatus["ViewNotFound"] = 65593] = "ViewNotFound";
40177
+ IModelStatus[IModelStatus["WriteError"] = 65594] = "WriteError";
40178
+ IModelStatus[IModelStatus["WrongClass"] = 65595] = "WrongClass";
40179
+ IModelStatus[IModelStatus["WrongIModel"] = 65596] = "WrongIModel";
40180
+ IModelStatus[IModelStatus["WrongDomain"] = 65597] = "WrongDomain";
40181
+ IModelStatus[IModelStatus["WrongElement"] = 65598] = "WrongElement";
40182
+ IModelStatus[IModelStatus["WrongHandler"] = 65599] = "WrongHandler";
40183
+ IModelStatus[IModelStatus["WrongModel"] = 65600] = "WrongModel";
40184
+ IModelStatus[IModelStatus["ConstraintNotUnique"] = 65601] = "ConstraintNotUnique";
40185
+ IModelStatus[IModelStatus["NoGeoLocation"] = 65602] = "NoGeoLocation";
40186
+ IModelStatus[IModelStatus["ServerTimeout"] = 65603] = "ServerTimeout";
40187
+ IModelStatus[IModelStatus["NoContent"] = 65604] = "NoContent";
40188
+ IModelStatus[IModelStatus["NotRegistered"] = 65605] = "NotRegistered";
40189
+ IModelStatus[IModelStatus["FunctionNotFound"] = 65606] = "FunctionNotFound";
40190
+ IModelStatus[IModelStatus["NoActiveCommand"] = 65607] = "NoActiveCommand";
40191
+ })(IModelStatus = exports.IModelStatus || (exports.IModelStatus = {}));
40192
+ /** Error status from various briefcase operations
40193
+ * @beta Should these be internal?
40194
+ */
40195
+ var BriefcaseStatus;
40196
+ (function (BriefcaseStatus) {
40197
+ BriefcaseStatus[BriefcaseStatus["BRIEFCASE_STATUS_BASE"] = 131072] = "BRIEFCASE_STATUS_BASE";
40198
+ BriefcaseStatus[BriefcaseStatus["CannotAcquire"] = 131072] = "CannotAcquire";
40199
+ BriefcaseStatus[BriefcaseStatus["CannotDownload"] = 131073] = "CannotDownload";
40200
+ BriefcaseStatus[BriefcaseStatus["CannotUpload"] = 131074] = "CannotUpload";
40201
+ BriefcaseStatus[BriefcaseStatus["CannotCopy"] = 131075] = "CannotCopy";
40202
+ BriefcaseStatus[BriefcaseStatus["CannotDelete"] = 131076] = "CannotDelete";
40203
+ BriefcaseStatus[BriefcaseStatus["VersionNotFound"] = 131077] = "VersionNotFound";
40204
+ BriefcaseStatus[BriefcaseStatus["CannotApplyChanges"] = 131078] = "CannotApplyChanges";
40205
+ BriefcaseStatus[BriefcaseStatus["DownloadCancelled"] = 131079] = "DownloadCancelled";
40206
+ BriefcaseStatus[BriefcaseStatus["ContainsDeletedChangeSets"] = 131080] = "ContainsDeletedChangeSets";
40207
+ })(BriefcaseStatus = exports.BriefcaseStatus || (exports.BriefcaseStatus = {}));
40208
+ /** RpcInterface status codes
40209
+ * @beta Should these be internal?
40210
+ */
40211
+ var RpcInterfaceStatus;
40212
+ (function (RpcInterfaceStatus) {
40213
+ RpcInterfaceStatus[RpcInterfaceStatus["Success"] = 0] = "Success";
40214
+ RpcInterfaceStatus[RpcInterfaceStatus["RPC_INTERFACE_ERROR_BASE"] = 135168] = "RPC_INTERFACE_ERROR_BASE";
40215
+ /** The RpcInterface implemented by the server is incompatible with the interface requested by the client. */
40216
+ RpcInterfaceStatus[RpcInterfaceStatus["IncompatibleVersion"] = 135168] = "IncompatibleVersion";
40217
+ })(RpcInterfaceStatus = exports.RpcInterfaceStatus || (exports.RpcInterfaceStatus = {}));
40218
+ /** Error status from various Changeset operations
40219
+ * @beta Should these be internal?
40220
+ */
40221
+ var ChangeSetStatus;
40222
+ (function (ChangeSetStatus) {
40223
+ ChangeSetStatus[ChangeSetStatus["Success"] = 0] = "Success";
40224
+ ChangeSetStatus[ChangeSetStatus["CHANGESET_ERROR_BASE"] = 90112] = "CHANGESET_ERROR_BASE";
40225
+ /** Error applying a change set when reversing or reinstating it */
40226
+ ChangeSetStatus[ChangeSetStatus["ApplyError"] = 90113] = "ApplyError";
40227
+ /** Change tracking has not been enabled. The ChangeSet API mandates this. */
40228
+ ChangeSetStatus[ChangeSetStatus["ChangeTrackingNotEnabled"] = 90114] = "ChangeTrackingNotEnabled";
40229
+ /** Contents of the change stream are corrupted and does not match the ChangeSet */
40230
+ ChangeSetStatus[ChangeSetStatus["CorruptedChangeStream"] = 90115] = "CorruptedChangeStream";
40231
+ /** File containing the changes to the change set is not found */
40232
+ ChangeSetStatus[ChangeSetStatus["FileNotFound"] = 90116] = "FileNotFound";
40233
+ /** Error writing the contents of the change set to the backing change stream file */
40234
+ ChangeSetStatus[ChangeSetStatus["FileWriteError"] = 90117] = "FileWriteError";
40235
+ /** Cannot perform the operation since the Db has local changes */
40236
+ ChangeSetStatus[ChangeSetStatus["HasLocalChanges"] = 90118] = "HasLocalChanges";
40237
+ /** Cannot perform the operation since current transaction has uncommitted changes */
40238
+ ChangeSetStatus[ChangeSetStatus["HasUncommittedChanges"] = 90119] = "HasUncommittedChanges";
40239
+ /** Invalid ChangeSet Id */
40240
+ ChangeSetStatus[ChangeSetStatus["InvalidId"] = 90120] = "InvalidId";
40241
+ /** Invalid version of the change set */
40242
+ ChangeSetStatus[ChangeSetStatus["InvalidVersion"] = 90121] = "InvalidVersion";
40243
+ /** Cannot perform the operation since system is in the middle of a dynamic transaction */
40244
+ ChangeSetStatus[ChangeSetStatus["InDynamicTransaction"] = 90122] = "InDynamicTransaction";
40245
+ /** Cannot perform operation since system is in the middle of a creating a change set */
40246
+ ChangeSetStatus[ChangeSetStatus["IsCreatingChangeSet"] = 90123] = "IsCreatingChangeSet";
40247
+ /** Cannot perform operation since the system is not creating a change set */
40248
+ ChangeSetStatus[ChangeSetStatus["IsNotCreatingChangeSet"] = 90124] = "IsNotCreatingChangeSet";
40249
+ /** Error propagating the changes after the merge */
40250
+ ChangeSetStatus[ChangeSetStatus["MergePropagationError"] = 90125] = "MergePropagationError";
40251
+ /** No change sets to merge */
40252
+ ChangeSetStatus[ChangeSetStatus["NothingToMerge"] = 90126] = "NothingToMerge";
40253
+ /** No transactions are available to create a change set */
40254
+ ChangeSetStatus[ChangeSetStatus["NoTransactions"] = 90127] = "NoTransactions";
40255
+ /** Parent change set of the Db does not match the parent id of the change set */
40256
+ ChangeSetStatus[ChangeSetStatus["ParentMismatch"] = 90128] = "ParentMismatch";
40257
+ /** Error performing a SQLite operation on the Db */
40258
+ ChangeSetStatus[ChangeSetStatus["SQLiteError"] = 90129] = "SQLiteError";
40259
+ /** ChangeSet originated in a different Db */
40260
+ ChangeSetStatus[ChangeSetStatus["WrongDgnDb"] = 90130] = "WrongDgnDb";
40261
+ /** Could not open the DgnDb to merge change set */
40262
+ ChangeSetStatus[ChangeSetStatus["CouldNotOpenDgnDb"] = 90131] = "CouldNotOpenDgnDb";
40263
+ /** Cannot merge changes in in an open DgnDb. Close the DgnDb, and process the operation when it is opened. */
40264
+ ChangeSetStatus[ChangeSetStatus["MergeSchemaChangesOnOpen"] = 90132] = "MergeSchemaChangesOnOpen";
40265
+ /** Cannot reverse or reinstate schema changes. */
40266
+ ChangeSetStatus[ChangeSetStatus["ReverseOrReinstateSchemaChanges"] = 90133] = "ReverseOrReinstateSchemaChanges";
40267
+ /** Cannot process changes schema changes in an open DgnDb. Close the DgnDb, and process the operation when it is opened. */
40268
+ ChangeSetStatus[ChangeSetStatus["ProcessSchemaChangesOnOpen"] = 90134] = "ProcessSchemaChangesOnOpen";
40269
+ /** Cannot merge changes into a Readonly DgnDb. */
40270
+ ChangeSetStatus[ChangeSetStatus["CannotMergeIntoReadonly"] = 90135] = "CannotMergeIntoReadonly";
40271
+ /** Cannot merge changes into a Master DgnDb. */
40272
+ ChangeSetStatus[ChangeSetStatus["CannotMergeIntoMaster"] = 90136] = "CannotMergeIntoMaster";
40273
+ /** Cannot merge changes into a DgnDb that has reversed change sets. */
40274
+ ChangeSetStatus[ChangeSetStatus["CannotMergeIntoReversed"] = 90137] = "CannotMergeIntoReversed";
40275
+ })(ChangeSetStatus = exports.ChangeSetStatus || (exports.ChangeSetStatus = {}));
40276
+ /** Return codes for methods which perform repository management operations
40277
+ * @beta Should these be internal?
40278
+ */
40279
+ var RepositoryStatus;
40280
+ (function (RepositoryStatus) {
40281
+ RepositoryStatus[RepositoryStatus["Success"] = 0] = "Success";
40282
+ /** The repository server did not respond to a request */
40283
+ RepositoryStatus[RepositoryStatus["ServerUnavailable"] = 86017] = "ServerUnavailable";
40284
+ /** A requested lock was already held by another briefcase */
40285
+ RepositoryStatus[RepositoryStatus["LockAlreadyHeld"] = 86018] = "LockAlreadyHeld";
40286
+ /** Failed to sync briefcase manager with server */
40287
+ RepositoryStatus[RepositoryStatus["SyncError"] = 86019] = "SyncError";
40288
+ /** Response from server not understood */
40289
+ RepositoryStatus[RepositoryStatus["InvalidResponse"] = 86020] = "InvalidResponse";
40290
+ /** An operation requires local changes to be committed or abandoned */
40291
+ RepositoryStatus[RepositoryStatus["PendingTransactions"] = 86021] = "PendingTransactions";
40292
+ /** A lock cannot be relinquished because the associated object has been modified */
40293
+ RepositoryStatus[RepositoryStatus["LockUsed"] = 86022] = "LockUsed";
40294
+ /** An operation required creation of a ChangeSet, which failed */
40295
+ RepositoryStatus[RepositoryStatus["CannotCreateChangeSet"] = 86023] = "CannotCreateChangeSet";
40296
+ /** Request to server not understood */
40297
+ RepositoryStatus[RepositoryStatus["InvalidRequest"] = 86024] = "InvalidRequest";
40298
+ /** A change set committed to the server must be integrated into the briefcase before the operation can be completed */
40299
+ RepositoryStatus[RepositoryStatus["ChangeSetRequired"] = 86025] = "ChangeSetRequired";
40300
+ /** A requested DgnCode is reserved by another briefcase or in use */
40301
+ RepositoryStatus[RepositoryStatus["CodeUnavailable"] = 86026] = "CodeUnavailable";
40302
+ /** A DgnCode cannot be released because it has not been reserved by the requesting briefcase */
40303
+ RepositoryStatus[RepositoryStatus["CodeNotReserved"] = 86027] = "CodeNotReserved";
40304
+ /** A DgnCode cannot be relinquished because it has been used locally */
40305
+ RepositoryStatus[RepositoryStatus["CodeUsed"] = 86028] = "CodeUsed";
40306
+ /** A required lock is not held by this briefcase */
40307
+ RepositoryStatus[RepositoryStatus["LockNotHeld"] = 86029] = "LockNotHeld";
40308
+ /** Repository is currently locked, no changes allowed */
40309
+ RepositoryStatus[RepositoryStatus["RepositoryIsLocked"] = 86030] = "RepositoryIsLocked";
40310
+ /** Channel write constraint violation, such as an attempt to write outside the designated channel. */
40311
+ RepositoryStatus[RepositoryStatus["ChannelConstraintViolation"] = 86031] = "ChannelConstraintViolation";
40312
+ })(RepositoryStatus = exports.RepositoryStatus || (exports.RepositoryStatus = {}));
40313
+ /** Status from returned HTTP status code
40314
+ * @beta Should these be internal?
40315
+ */
40316
+ var HttpStatus;
40317
+ (function (HttpStatus) {
40318
+ /** 2xx Success */
40319
+ HttpStatus[HttpStatus["Success"] = 0] = "Success";
40320
+ /** 1xx Informational responses */
40321
+ HttpStatus[HttpStatus["Info"] = 94209] = "Info";
40322
+ /** 3xx Redirection */
40323
+ HttpStatus[HttpStatus["Redirection"] = 94210] = "Redirection";
40324
+ /** 4xx Client errors */
40325
+ HttpStatus[HttpStatus["ClientError"] = 94211] = "ClientError";
40326
+ /** 5xx Server errors */
40327
+ HttpStatus[HttpStatus["ServerError"] = 94212] = "ServerError";
40328
+ })(HttpStatus = exports.HttpStatus || (exports.HttpStatus = {}));
40329
+ /** iModelHub Services Errors
40330
+ * @beta Right package?
40331
+ */
40332
+ var IModelHubStatus;
40333
+ (function (IModelHubStatus) {
40334
+ IModelHubStatus[IModelHubStatus["Success"] = 0] = "Success";
40335
+ IModelHubStatus[IModelHubStatus["IMODELHUBERROR_BASE"] = 102400] = "IMODELHUBERROR_BASE";
40336
+ IModelHubStatus[IModelHubStatus["IMODELHUBERROR_REQUESTERRORBASE"] = 102656] = "IMODELHUBERROR_REQUESTERRORBASE";
40337
+ IModelHubStatus[IModelHubStatus["Unknown"] = 102401] = "Unknown";
40338
+ IModelHubStatus[IModelHubStatus["MissingRequiredProperties"] = 102402] = "MissingRequiredProperties";
40339
+ IModelHubStatus[IModelHubStatus["InvalidPropertiesValues"] = 102403] = "InvalidPropertiesValues";
40340
+ IModelHubStatus[IModelHubStatus["UserDoesNotHavePermission"] = 102404] = "UserDoesNotHavePermission";
40341
+ IModelHubStatus[IModelHubStatus["UserDoesNotHaveAccess"] = 102405] = "UserDoesNotHaveAccess";
40342
+ IModelHubStatus[IModelHubStatus["InvalidBriefcase"] = 102406] = "InvalidBriefcase";
40343
+ IModelHubStatus[IModelHubStatus["BriefcaseDoesNotExist"] = 102407] = "BriefcaseDoesNotExist";
40344
+ IModelHubStatus[IModelHubStatus["BriefcaseDoesNotBelongToUser"] = 102408] = "BriefcaseDoesNotBelongToUser";
40345
+ IModelHubStatus[IModelHubStatus["AnotherUserPushing"] = 102409] = "AnotherUserPushing";
40346
+ IModelHubStatus[IModelHubStatus["ChangeSetAlreadyExists"] = 102410] = "ChangeSetAlreadyExists";
40347
+ IModelHubStatus[IModelHubStatus["ChangeSetDoesNotExist"] = 102411] = "ChangeSetDoesNotExist";
40348
+ IModelHubStatus[IModelHubStatus["FileIsNotUploaded"] = 102412] = "FileIsNotUploaded";
40349
+ IModelHubStatus[IModelHubStatus["iModelIsNotInitialized"] = 102413] = "iModelIsNotInitialized";
40350
+ IModelHubStatus[IModelHubStatus["ChangeSetPointsToBadSeed"] = 102414] = "ChangeSetPointsToBadSeed";
40351
+ IModelHubStatus[IModelHubStatus["OperationFailed"] = 102415] = "OperationFailed";
40352
+ IModelHubStatus[IModelHubStatus["PullIsRequired"] = 102416] = "PullIsRequired";
40353
+ IModelHubStatus[IModelHubStatus["MaximumNumberOfBriefcasesPerUser"] = 102417] = "MaximumNumberOfBriefcasesPerUser";
40354
+ IModelHubStatus[IModelHubStatus["MaximumNumberOfBriefcasesPerUserPerMinute"] = 102418] = "MaximumNumberOfBriefcasesPerUserPerMinute";
40355
+ IModelHubStatus[IModelHubStatus["DatabaseTemporarilyLocked"] = 102419] = "DatabaseTemporarilyLocked";
40356
+ IModelHubStatus[IModelHubStatus["iModelIsLocked"] = 102420] = "iModelIsLocked";
40357
+ IModelHubStatus[IModelHubStatus["CodesExist"] = 102421] = "CodesExist";
40358
+ IModelHubStatus[IModelHubStatus["LocksExist"] = 102422] = "LocksExist";
40359
+ IModelHubStatus[IModelHubStatus["iModelAlreadyExists"] = 102423] = "iModelAlreadyExists";
40360
+ IModelHubStatus[IModelHubStatus["iModelDoesNotExist"] = 102424] = "iModelDoesNotExist";
40361
+ IModelHubStatus[IModelHubStatus["FileDoesNotExist"] = 102425] = "FileDoesNotExist";
40362
+ IModelHubStatus[IModelHubStatus["FileAlreadyExists"] = 102426] = "FileAlreadyExists";
40363
+ IModelHubStatus[IModelHubStatus["LockDoesNotExist"] = 102427] = "LockDoesNotExist";
40364
+ IModelHubStatus[IModelHubStatus["LockOwnedByAnotherBriefcase"] = 102428] = "LockOwnedByAnotherBriefcase";
40365
+ IModelHubStatus[IModelHubStatus["CodeStateInvalid"] = 102429] = "CodeStateInvalid";
40366
+ IModelHubStatus[IModelHubStatus["CodeReservedByAnotherBriefcase"] = 102430] = "CodeReservedByAnotherBriefcase";
40367
+ IModelHubStatus[IModelHubStatus["CodeDoesNotExist"] = 102431] = "CodeDoesNotExist";
40368
+ IModelHubStatus[IModelHubStatus["EventTypeDoesNotExist"] = 102432] = "EventTypeDoesNotExist";
40369
+ IModelHubStatus[IModelHubStatus["EventSubscriptionDoesNotExist"] = 102433] = "EventSubscriptionDoesNotExist";
40370
+ IModelHubStatus[IModelHubStatus["EventSubscriptionAlreadyExists"] = 102434] = "EventSubscriptionAlreadyExists";
40371
+ IModelHubStatus[IModelHubStatus["ITwinIdIsNotSpecified"] = 102435] = "ITwinIdIsNotSpecified";
40372
+ IModelHubStatus[IModelHubStatus["FailedToGetITwinPermissions"] = 102436] = "FailedToGetITwinPermissions";
40373
+ IModelHubStatus[IModelHubStatus["FailedToGetITwinMembers"] = 102437] = "FailedToGetITwinMembers";
40374
+ IModelHubStatus[IModelHubStatus["ChangeSetAlreadyHasVersion"] = 102438] = "ChangeSetAlreadyHasVersion";
40375
+ IModelHubStatus[IModelHubStatus["VersionAlreadyExists"] = 102439] = "VersionAlreadyExists";
40376
+ IModelHubStatus[IModelHubStatus["JobSchedulingFailed"] = 102440] = "JobSchedulingFailed";
40377
+ IModelHubStatus[IModelHubStatus["ConflictsAggregate"] = 102441] = "ConflictsAggregate";
40378
+ IModelHubStatus[IModelHubStatus["FailedToGetITwinById"] = 102442] = "FailedToGetITwinById";
40379
+ IModelHubStatus[IModelHubStatus["DatabaseOperationFailed"] = 102443] = "DatabaseOperationFailed";
40380
+ IModelHubStatus[IModelHubStatus["SeedFileInitializationFailed"] = 102444] = "SeedFileInitializationFailed";
40381
+ IModelHubStatus[IModelHubStatus["FailedToGetAssetPermissions"] = 102445] = "FailedToGetAssetPermissions";
40382
+ IModelHubStatus[IModelHubStatus["FailedToGetAssetMembers"] = 102446] = "FailedToGetAssetMembers";
40383
+ IModelHubStatus[IModelHubStatus["ITwinDoesNotExist"] = 102447] = "ITwinDoesNotExist";
40384
+ IModelHubStatus[IModelHubStatus["LockChunkDoesNotExist"] = 102449] = "LockChunkDoesNotExist";
40385
+ IModelHubStatus[IModelHubStatus["CheckpointAlreadyExists"] = 102450] = "CheckpointAlreadyExists";
40386
+ IModelHubStatus[IModelHubStatus["CheckpointDoesNotExist"] = 102451] = "CheckpointDoesNotExist";
40387
+ // Errors that are returned for incorrect iModelHub request.
40388
+ IModelHubStatus[IModelHubStatus["UndefinedArgumentError"] = 102657] = "UndefinedArgumentError";
40389
+ IModelHubStatus[IModelHubStatus["InvalidArgumentError"] = 102658] = "InvalidArgumentError";
40390
+ IModelHubStatus[IModelHubStatus["MissingDownloadUrlError"] = 102659] = "MissingDownloadUrlError";
40391
+ IModelHubStatus[IModelHubStatus["NotSupportedInBrowser"] = 102660] = "NotSupportedInBrowser";
40392
+ IModelHubStatus[IModelHubStatus["FileHandlerNotSet"] = 102661] = "FileHandlerNotSet";
40393
+ IModelHubStatus[IModelHubStatus["FileNotFound"] = 102662] = "FileNotFound";
40394
+ IModelHubStatus[IModelHubStatus["InitializationTimeout"] = 102663] = "InitializationTimeout";
40395
+ })(IModelHubStatus = exports.IModelHubStatus || (exports.IModelHubStatus = {}));
40396
+ /** GeoServiceStatus errors
40397
+ * @public
40398
+ */
40399
+ var GeoServiceStatus;
40400
+ (function (GeoServiceStatus) {
40401
+ GeoServiceStatus[GeoServiceStatus["Success"] = 0] = "Success";
40402
+ GeoServiceStatus[GeoServiceStatus["GEOSERVICESTATUS_BASE"] = 147456] = "GEOSERVICESTATUS_BASE";
40403
+ // Error mapped from 'IModelStatus'
40404
+ GeoServiceStatus[GeoServiceStatus["NoGeoLocation"] = 65602] = "NoGeoLocation";
40405
+ // Following errors are mapped from 'GeoCoordStatus'
40406
+ GeoServiceStatus[GeoServiceStatus["OutOfUsefulRange"] = 147457] = "OutOfUsefulRange";
40407
+ GeoServiceStatus[GeoServiceStatus["OutOfMathematicalDomain"] = 147458] = "OutOfMathematicalDomain";
40408
+ GeoServiceStatus[GeoServiceStatus["NoDatumConverter"] = 147459] = "NoDatumConverter";
40409
+ GeoServiceStatus[GeoServiceStatus["VerticalDatumConvertError"] = 147460] = "VerticalDatumConvertError";
40410
+ GeoServiceStatus[GeoServiceStatus["CSMapError"] = 147461] = "CSMapError";
40411
+ GeoServiceStatus[GeoServiceStatus["Pending"] = 147462] = "Pending";
40412
+ })(GeoServiceStatus = exports.GeoServiceStatus || (exports.GeoServiceStatus = {}));
40413
+ /** Error status from various reality data operations
40414
+ * @alpha
40415
+ */
40416
+ var RealityDataStatus;
40417
+ (function (RealityDataStatus) {
40418
+ RealityDataStatus[RealityDataStatus["Success"] = 0] = "Success";
40419
+ RealityDataStatus[RealityDataStatus["REALITYDATA_ERROR_BASE"] = 151552] = "REALITYDATA_ERROR_BASE";
40420
+ RealityDataStatus[RealityDataStatus["InvalidData"] = 151553] = "InvalidData";
40421
+ })(RealityDataStatus = exports.RealityDataStatus || (exports.RealityDataStatus = {}));
40422
+ function isObject(obj) {
40423
+ return typeof obj === "object" && obj !== null;
40424
+ }
40425
+ /** Base exception class for iTwin.js exceptions.
40426
+ * @public
40427
+ */
40428
+ class BentleyError extends Error {
40429
+ /**
40430
+ * @param errorNumber The a number that identifies of the problem.
40431
+ * @param message message that describes the problem (should not be localized).
40432
+ * @param metaData metaData about the exception.
40433
+ */
40434
+ constructor(errorNumber, message, metaData) {
40435
+ super(message);
40436
+ this.errorNumber = errorNumber;
40437
+ this.errorNumber = errorNumber;
40438
+ this._metaData = metaData;
40439
+ this.name = this._initName();
40440
+ }
40441
+ /** Returns true if this BentleyError includes (optional) metadata. */
40442
+ get hasMetaData() { return undefined !== this._metaData; }
40443
+ /** get the meta data associated with this BentleyError, if any. */
40444
+ getMetaData() {
40445
+ return BentleyError.getMetaData(this._metaData);
40446
+ }
40447
+ /** get the metadata object associated with an ExceptionMetaData, if any. */
40448
+ static getMetaData(metaData) {
40449
+ return (typeof metaData === "function") ? metaData() : metaData;
40450
+ }
40451
+ /** This function returns the name of each error status. Override this method to handle more error status codes. */
40452
+ _initName() {
40453
+ switch (this.errorNumber) {
40454
+ case IModelStatus.AlreadyLoaded: return "Already Loaded";
40455
+ case IModelStatus.AlreadyOpen: return "Already Open";
40456
+ case IModelStatus.BadArg: return "Bad Arg";
40457
+ case IModelStatus.BadElement: return "Bad Element";
40458
+ case IModelStatus.BadModel: return "Bad Model";
40459
+ case IModelStatus.BadRequest: return "Bad Request";
40460
+ case IModelStatus.BadSchema: return "Bad Schema";
40461
+ case IModelStatus.CannotUndo: return "Can not Undo";
40462
+ case IModelStatus.CodeNotReserved: return "Code Not Reserved";
40463
+ case IModelStatus.DeletionProhibited: return "Deletion Prohibited";
40464
+ case IModelStatus.DuplicateCode: return "Duplicate Code";
40465
+ case IModelStatus.DuplicateName: return "Duplicate Name";
40466
+ case IModelStatus.ElementBlockedChange: return "Element Blocked Change";
40467
+ case IModelStatus.FileAlreadyExists: return "File Already Exists";
40468
+ case IModelStatus.FileNotFound: return "File Not Found";
40469
+ case IModelStatus.FileNotLoaded: return "File Not Loaded";
40470
+ case IModelStatus.ForeignKeyConstraint: return "ForeignKey Constraint";
40471
+ case IModelStatus.IdExists: return "Id Exists";
40472
+ case IModelStatus.InDynamicTransaction: return "InDynamicTransaction";
40473
+ case IModelStatus.InvalidCategory: return "Invalid Category";
40474
+ case IModelStatus.InvalidCode: return "Invalid Code";
40475
+ case IModelStatus.InvalidCodeSpec: return "Invalid CodeSpec";
40476
+ case IModelStatus.InvalidId: return "Invalid Id";
40477
+ case IModelStatus.InvalidName: return "Invalid Name";
40478
+ case IModelStatus.InvalidParent: return "Invalid Parent";
40479
+ case IModelStatus.InvalidProfileVersion: return "Invalid Profile Version";
40480
+ case IModelStatus.IsCreatingChangeSet: return "IsCreatingChangeSet";
40481
+ case IModelStatus.LockNotHeld: return "Lock Not Held";
40482
+ case IModelStatus.Mismatch2d3d: return "Mismatch 2d3d";
40483
+ case IModelStatus.MismatchGcs: return "Mismatch Gcs";
40484
+ case IModelStatus.MissingDomain: return "Missing Domain";
40485
+ case IModelStatus.MissingHandler: return "Missing Handler";
40486
+ case IModelStatus.MissingId: return "Missing Id";
40487
+ case IModelStatus.NoGeometry: return "No Geometry";
40488
+ case IModelStatus.NoMultiTxnOperation: return "NoMultiTxnOperation";
40489
+ case IModelStatus.NotEnabled: return "Not Enabled";
40490
+ case IModelStatus.NotFound: return "Not Found";
40491
+ case IModelStatus.NotOpen: return "Not Open";
40492
+ case IModelStatus.NotOpenForWrite: return "Not Open For Write";
40493
+ case IModelStatus.NotSameUnitBase: return "Not Same Unit Base";
40494
+ case IModelStatus.NothingToRedo: return "Nothing To Redo";
40495
+ case IModelStatus.NothingToUndo: return "Nothing To Undo";
40496
+ case IModelStatus.ParentBlockedChange: return "Parent Blocked Change";
40497
+ case IModelStatus.ReadError: return "Read Error";
40498
+ case IModelStatus.ReadOnly: return "ReadOnly";
40499
+ case IModelStatus.ReadOnlyDomain: return "ReadOnlyDomain";
40500
+ case IModelStatus.RepositoryManagerError: return "RepositoryManagerError";
40501
+ case IModelStatus.SQLiteError: return "SQLiteError";
40502
+ case IModelStatus.TransactionActive: return "Transaction Active";
40503
+ case IModelStatus.UnitsMissing: return "Units Missing";
40504
+ case IModelStatus.UnknownFormat: return "Unknown Format";
40505
+ case IModelStatus.UpgradeFailed: return "Upgrade Failed";
40506
+ case IModelStatus.ValidationFailed: return "Validation Failed";
40507
+ case IModelStatus.VersionTooNew: return "Version Too New";
40508
+ case IModelStatus.VersionTooOld: return "Version Too Old";
40509
+ case IModelStatus.ViewNotFound: return "View Not Found";
40510
+ case IModelStatus.WriteError: return "Write Error";
40511
+ case IModelStatus.WrongClass: return "Wrong Class";
40512
+ case IModelStatus.WrongIModel: return "Wrong IModel";
40513
+ case IModelStatus.WrongDomain: return "Wrong Domain";
40514
+ case IModelStatus.WrongElement: return "Wrong Element";
40515
+ case IModelStatus.WrongHandler: return "Wrong Handler";
40516
+ case IModelStatus.WrongModel: return "Wrong Model";
40517
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR: return "BE_SQLITE_ERROR";
40518
+ case BeSQLite_1.DbResult.BE_SQLITE_INTERNAL: return "BE_SQLITE_INTERNAL";
40519
+ case BeSQLite_1.DbResult.BE_SQLITE_PERM: return "BE_SQLITE_PERM";
40520
+ case BeSQLite_1.DbResult.BE_SQLITE_ABORT: return "BE_SQLITE_ABORT";
40521
+ case BeSQLite_1.DbResult.BE_SQLITE_BUSY: return "Db is busy";
40522
+ case BeSQLite_1.DbResult.BE_SQLITE_LOCKED: return "Db is Locked";
40523
+ case BeSQLite_1.DbResult.BE_SQLITE_NOMEM: return "BE_SQLITE_NOMEM";
40524
+ case BeSQLite_1.DbResult.BE_SQLITE_READONLY: return "Readonly";
40525
+ case BeSQLite_1.DbResult.BE_SQLITE_INTERRUPT: return "BE_SQLITE_INTERRUPT";
40526
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR: return "BE_SQLITE_IOERR";
40527
+ case BeSQLite_1.DbResult.BE_SQLITE_CORRUPT: return "BE_SQLITE_CORRUPT";
40528
+ case BeSQLite_1.DbResult.BE_SQLITE_NOTFOUND: return "Not Found";
40529
+ case BeSQLite_1.DbResult.BE_SQLITE_FULL: return "BE_SQLITE_FULL";
40530
+ case BeSQLite_1.DbResult.BE_SQLITE_CANTOPEN: return "Can't open";
40531
+ case BeSQLite_1.DbResult.BE_SQLITE_PROTOCOL: return "BE_SQLITE_PROTOCOL";
40532
+ case BeSQLite_1.DbResult.BE_SQLITE_EMPTY: return "BE_SQLITE_EMPTY";
40533
+ case BeSQLite_1.DbResult.BE_SQLITE_SCHEMA: return "BE_SQLITE_SCHEMA";
40534
+ case BeSQLite_1.DbResult.BE_SQLITE_TOOBIG: return "BE_SQLITE_TOOBIG";
40535
+ case BeSQLite_1.DbResult.BE_SQLITE_MISMATCH: return "BE_SQLITE_MISMATCH";
40536
+ case BeSQLite_1.DbResult.BE_SQLITE_MISUSE: return "BE_SQLITE_MISUSE";
40537
+ case BeSQLite_1.DbResult.BE_SQLITE_NOLFS: return "BE_SQLITE_NOLFS";
40538
+ case BeSQLite_1.DbResult.BE_SQLITE_AUTH: return "BE_SQLITE_AUTH";
40539
+ case BeSQLite_1.DbResult.BE_SQLITE_FORMAT: return "BE_SQLITE_FORMAT";
40540
+ case BeSQLite_1.DbResult.BE_SQLITE_RANGE: return "BE_SQLITE_RANGE";
40541
+ case BeSQLite_1.DbResult.BE_SQLITE_NOTADB: return "Not a Database";
40542
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_READ: return "BE_SQLITE_IOERR_READ";
40543
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_SHORT_READ: return "BE_SQLITE_IOERR_SHORT_READ";
40544
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_WRITE: return "BE_SQLITE_IOERR_WRITE";
40545
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_FSYNC: return "BE_SQLITE_IOERR_FSYNC";
40546
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_DIR_FSYNC: return "BE_SQLITE_IOERR_DIR_FSYNC";
40547
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_TRUNCATE: return "BE_SQLITE_IOERR_TRUNCATE";
40548
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_FSTAT: return "BE_SQLITE_IOERR_FSTAT";
40549
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_UNLOCK: return "BE_SQLITE_IOERR_UNLOCK";
40550
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_RDLOCK: return "BE_SQLITE_IOERR_RDLOCK";
40551
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_DELETE: return "BE_SQLITE_IOERR_DELETE";
40552
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_BLOCKED: return "BE_SQLITE_IOERR_BLOCKED";
40553
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_NOMEM: return "BE_SQLITE_IOERR_NOMEM";
40554
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_ACCESS: return "BE_SQLITE_IOERR_ACCESS";
40555
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_CHECKRESERVEDLOCK: return "BE_SQLITE_IOERR_CHECKRESERVEDLOCK";
40556
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_LOCK: return "BE_SQLITE_IOERR_LOCK";
40557
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_CLOSE: return "BE_SQLITE_IOERR_CLOSE";
40558
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_DIR_CLOSE: return "BE_SQLITE_IOERR_DIR_CLOSE";
40559
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_SHMOPEN: return "BE_SQLITE_IOERR_SHMOPEN";
40560
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_SHMSIZE: return "BE_SQLITE_IOERR_SHMSIZE";
40561
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_SHMLOCK: return "BE_SQLITE_IOERR_SHMLOCK";
40562
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_SHMMAP: return "BE_SQLITE_IOERR_SHMMAP";
40563
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_SEEK: return "BE_SQLITE_IOERR_SEEK";
40564
+ case BeSQLite_1.DbResult.BE_SQLITE_IOERR_DELETE_NOENT: return "BE_SQLITE_IOERR_DELETE_NOENT";
40565
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_FileExists: return "File Exists";
40566
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_AlreadyOpen: return "Already Open";
40567
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_NoPropertyTable: return "No Property Table";
40568
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_FileNotFound: return "File Not Found";
40569
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_NoTxnActive: return "No Txn Active";
40570
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_BadDbProfile: return "Bad Db Profile";
40571
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_InvalidProfileVersion: return "Invalid Profile Version";
40572
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_ProfileUpgradeFailed: return "Profile Upgrade Failed";
40573
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_ProfileTooOldForReadWrite: return "Profile Too Old For ReadWrite";
40574
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_ProfileTooOld: return "Profile Too Old";
40575
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_ProfileTooNewForReadWrite: return "Profile Too New For ReadWrite";
40576
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_ProfileTooNew: return "Profile Too New";
40577
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_ChangeTrackError: return "ChangeTrack Error";
40578
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_InvalidChangeSetVersion: return "Invalid ChangeSet Version";
40579
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_SchemaUpgradeRequired: return "Schema Upgrade Required";
40580
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_SchemaTooNew: return "Schema Too New";
40581
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_SchemaTooOld: return "Schema Too Old";
40582
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_SchemaLockFailed: return "Schema Lock Failed";
40583
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_SchemaUpgradeFailed: return "Schema Upgrade Failed";
40584
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_SchemaImportFailed: return "Schema Import Failed";
40585
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_CouldNotAcquireLocksOrCodes: return "Could Not Acquire Locks Or Codes";
40586
+ case BeSQLite_1.DbResult.BE_SQLITE_ERROR_SchemaUpgradeRecommended: return "Recommended that the schemas found in the database be upgraded";
40587
+ case BeSQLite_1.DbResult.BE_SQLITE_LOCKED_SHAREDCACHE: return "BE_SQLITE_LOCKED_SHAREDCACHE";
40588
+ case BeSQLite_1.DbResult.BE_SQLITE_BUSY_RECOVERY: return "BE_SQLITE_BUSY_RECOVERY";
40589
+ case BeSQLite_1.DbResult.BE_SQLITE_CANTOPEN_NOTEMPDIR: return "SQLite No Temp Dir";
40590
+ case BeSQLite_1.DbResult.BE_SQLITE_CANTOPEN_ISDIR: return "BE_SQLITE_CANTOPEN_ISDIR";
40591
+ case BeSQLite_1.DbResult.BE_SQLITE_CANTOPEN_FULLPATH: return "BE_SQLITE_CANTOPEN_FULLPATH";
40592
+ case BeSQLite_1.DbResult.BE_SQLITE_CORRUPT_VTAB: return "BE_SQLITE_CORRUPT_VTAB";
40593
+ case BeSQLite_1.DbResult.BE_SQLITE_READONLY_RECOVERY: return "BE_SQLITE_READONLY_RECOVERY";
40594
+ case BeSQLite_1.DbResult.BE_SQLITE_READONLY_CANTLOCK: return "BE_SQLITE_READONLY_CANTLOCK";
40595
+ case BeSQLite_1.DbResult.BE_SQLITE_READONLY_ROLLBACK: return "BE_SQLITE_READONLY_ROLLBACK";
40596
+ case BeSQLite_1.DbResult.BE_SQLITE_ABORT_ROLLBACK: return "BE_SQLITE_ABORT_ROLLBACK";
40597
+ case BeSQLite_1.DbResult.BE_SQLITE_CONSTRAINT_CHECK: return "BE_SQLITE_CONSTRAINT_CHECK";
40598
+ case BeSQLite_1.DbResult.BE_SQLITE_CONSTRAINT_COMMITHOOK: return "CommitHook Constraint Error";
40599
+ case BeSQLite_1.DbResult.BE_SQLITE_CONSTRAINT_FOREIGNKEY: return "Foreign Key Constraint Error";
40600
+ case BeSQLite_1.DbResult.BE_SQLITE_CONSTRAINT_FUNCTION: return "Function Constraint Error";
40601
+ case BeSQLite_1.DbResult.BE_SQLITE_CONSTRAINT_NOTNULL: return "NotNull Constraint Error";
40602
+ case BeSQLite_1.DbResult.BE_SQLITE_CONSTRAINT_PRIMARYKEY: return "Primary Key Constraint Error";
40603
+ case BeSQLite_1.DbResult.BE_SQLITE_CONSTRAINT_TRIGGER: return "Trigger Constraint Error";
40604
+ case BeSQLite_1.DbResult.BE_SQLITE_CONSTRAINT_UNIQUE: return "Unique Constraint Error";
40605
+ case BeSQLite_1.DbResult.BE_SQLITE_CONSTRAINT_VTAB: return "VTable Constraint Error";
40606
+ case BentleyStatus.ERROR: return "Error";
40607
+ case BriefcaseStatus.CannotAcquire: return "CannotAcquire";
40608
+ case BriefcaseStatus.CannotDownload: return "CannotDownload";
40609
+ case BriefcaseStatus.CannotCopy: return "CannotCopy";
40610
+ case BriefcaseStatus.CannotDelete: return "CannotDelete";
40611
+ case BriefcaseStatus.VersionNotFound: return "VersionNotFound";
40612
+ case BriefcaseStatus.DownloadCancelled: return "DownloadCancelled";
40613
+ case BriefcaseStatus.ContainsDeletedChangeSets: return "ContainsDeletedChangeSets";
40614
+ case RpcInterfaceStatus.IncompatibleVersion: return "RpcInterfaceStatus.IncompatibleVersion";
40615
+ case ChangeSetStatus.ApplyError: return "Error applying a change set";
40616
+ case ChangeSetStatus.ChangeTrackingNotEnabled: return "Change tracking has not been enabled. The ChangeSet API mandates this";
40617
+ case ChangeSetStatus.CorruptedChangeStream: return "Contents of the change stream are corrupted and does not match the ChangeSet";
40618
+ case ChangeSetStatus.FileNotFound: return "File containing the changes was not found";
40619
+ case ChangeSetStatus.FileWriteError: return "Error writing the contents of the change set to the backing change stream file";
40620
+ case ChangeSetStatus.HasLocalChanges: return "Cannot perform the operation since the Db has local changes";
40621
+ case ChangeSetStatus.HasUncommittedChanges: return "Cannot perform the operation since current transaction has uncommitted changes";
40622
+ case ChangeSetStatus.InvalidId: return "Invalid ChangeSet Id";
40623
+ case ChangeSetStatus.InvalidVersion: return "Invalid version of the change set";
40624
+ case ChangeSetStatus.InDynamicTransaction: return "Cannot perform the operation since system is in the middle of a dynamic transaction";
40625
+ case ChangeSetStatus.IsCreatingChangeSet: return "Cannot perform operation since system is in the middle of a creating a change set";
40626
+ case ChangeSetStatus.IsNotCreatingChangeSet: return "Cannot perform operation since the system is not creating a change set";
40627
+ case ChangeSetStatus.MergePropagationError: return "Error propagating the changes after the merge";
40628
+ case ChangeSetStatus.NothingToMerge: return "No change sets to merge";
40629
+ case ChangeSetStatus.NoTransactions: return "No transactions are available to create a change set";
40630
+ case ChangeSetStatus.ParentMismatch: return "Parent change set of the Db does not match the parent id of the change set";
40631
+ case ChangeSetStatus.SQLiteError: return "Error performing a SQLite operation on the Db";
40632
+ case ChangeSetStatus.WrongDgnDb: return "ChangeSet originated in a different Db";
40633
+ case ChangeSetStatus.CouldNotOpenDgnDb: return "Could not open the DgnDb to merge change set";
40634
+ case ChangeSetStatus.MergeSchemaChangesOnOpen: return "Cannot merge changes in in an open DgnDb. Close the DgnDb, and process the operation when it is opened";
40635
+ case ChangeSetStatus.ReverseOrReinstateSchemaChanges: return "Cannot reverse or reinstate schema changes.";
40636
+ case ChangeSetStatus.ProcessSchemaChangesOnOpen: return "Cannot process changes schema changes in an open DgnDb. Close the DgnDb, and process the operation when it is opened";
40637
+ case ChangeSetStatus.CannotMergeIntoReadonly: return "Cannot merge changes into a Readonly DgnDb";
40638
+ case ChangeSetStatus.CannotMergeIntoMaster: return "Cannot merge changes into a Master DgnDb";
40639
+ case ChangeSetStatus.CannotMergeIntoReversed: return "Cannot merge changes into a DgnDb that has reversed change sets";
40640
+ case RepositoryStatus.ServerUnavailable: return "ServerUnavailable";
40641
+ case RepositoryStatus.LockAlreadyHeld: return "LockAlreadyHeld";
40642
+ case RepositoryStatus.SyncError: return "SyncError";
40643
+ case RepositoryStatus.InvalidResponse: return "InvalidResponse";
40644
+ case RepositoryStatus.PendingTransactions: return "PendingTransactions";
40645
+ case RepositoryStatus.LockUsed: return "LockUsed";
40646
+ case RepositoryStatus.CannotCreateChangeSet: return "CannotCreateChangeSet";
40647
+ case RepositoryStatus.InvalidRequest: return "InvalidRequest";
40648
+ case RepositoryStatus.ChangeSetRequired: return "ChangeSetRequired";
40649
+ case RepositoryStatus.CodeUnavailable: return "CodeUnavailable";
40650
+ case RepositoryStatus.CodeNotReserved: return "CodeNotReserved";
40651
+ case RepositoryStatus.CodeUsed: return "CodeUsed";
40652
+ case RepositoryStatus.LockNotHeld: return "LockNotHeld";
40653
+ case RepositoryStatus.RepositoryIsLocked: return "RepositoryIsLocked";
40654
+ case RepositoryStatus.ChannelConstraintViolation: return "ChannelConstraintViolation";
40655
+ case HttpStatus.Info: return "HTTP Info";
40656
+ case HttpStatus.Redirection: return "HTTP Redirection";
40657
+ case HttpStatus.ClientError: return "HTTP Client error";
40658
+ case HttpStatus.ServerError: return "HTTP Server error";
40659
+ case IModelHubStatus.Unknown: return "Unknown error";
40660
+ case IModelHubStatus.MissingRequiredProperties: return "Missing required properties";
40661
+ case IModelHubStatus.InvalidPropertiesValues: return "Invalid properties values";
40662
+ case IModelHubStatus.UserDoesNotHavePermission: return "User does not have permission";
40663
+ case IModelHubStatus.UserDoesNotHaveAccess: return "User does not have access";
40664
+ case IModelHubStatus.InvalidBriefcase: return "Invalid briefcase";
40665
+ case IModelHubStatus.BriefcaseDoesNotExist: return "Briefcase does not exist";
40666
+ case IModelHubStatus.BriefcaseDoesNotBelongToUser: return "Briefcase does not belong to user";
40667
+ case IModelHubStatus.AnotherUserPushing: return "Another user pushing";
40668
+ case IModelHubStatus.ChangeSetAlreadyExists: return "ChangeSet already exists";
40669
+ case IModelHubStatus.ChangeSetDoesNotExist: return "ChangeSet does not exist";
40670
+ case IModelHubStatus.FileIsNotUploaded: return "File is not uploaded";
40671
+ case IModelHubStatus.iModelIsNotInitialized: return "iModel is not initialized";
40672
+ case IModelHubStatus.ChangeSetPointsToBadSeed: return "ChangeSet points to a bad seed file";
40673
+ case IModelHubStatus.OperationFailed: return "iModelHub operation has failed";
40674
+ case IModelHubStatus.PullIsRequired: return "Pull is required";
40675
+ case IModelHubStatus.MaximumNumberOfBriefcasesPerUser: return "Limit of briefcases per user was reached";
40676
+ case IModelHubStatus.MaximumNumberOfBriefcasesPerUserPerMinute: return "Limit of briefcases per user per minute was reached";
40677
+ case IModelHubStatus.DatabaseTemporarilyLocked: return "Database is temporarily locked";
40678
+ case IModelHubStatus.iModelIsLocked: return "iModel is locked";
40679
+ case IModelHubStatus.CodesExist: return "Code already exists";
40680
+ case IModelHubStatus.LocksExist: return "Lock already exists";
40681
+ case IModelHubStatus.iModelAlreadyExists: return "iModel already exists";
40682
+ case IModelHubStatus.iModelDoesNotExist: return "iModel does not exist";
40683
+ case IModelHubStatus.LockDoesNotExist: return "Lock does not exist";
40684
+ case IModelHubStatus.LockChunkDoesNotExist: return "Lock chunk does not exist";
40685
+ case IModelHubStatus.LockOwnedByAnotherBriefcase: return "Lock is owned by another briefcase";
40686
+ case IModelHubStatus.CodeStateInvalid: return "Code state is invalid";
40687
+ case IModelHubStatus.CodeReservedByAnotherBriefcase: return "Code is reserved by another briefcase";
40688
+ case IModelHubStatus.CodeDoesNotExist: return "Code does not exist";
40689
+ case IModelHubStatus.FileDoesNotExist: return "File does not exist";
40690
+ case IModelHubStatus.FileAlreadyExists: return "File already exists";
40691
+ case IModelHubStatus.EventTypeDoesNotExist: return "Event type does not exist";
40692
+ case IModelHubStatus.EventSubscriptionDoesNotExist: return "Event subscription does not exist";
40693
+ case IModelHubStatus.EventSubscriptionAlreadyExists: return "Event subscription already exists";
40694
+ case IModelHubStatus.ITwinIdIsNotSpecified: return "ITwin Id is not specified";
40695
+ case IModelHubStatus.FailedToGetITwinPermissions: return "Failed to get iTwin permissions";
40696
+ case IModelHubStatus.FailedToGetITwinMembers: return "Failed to get iTwin members";
40697
+ case IModelHubStatus.FailedToGetAssetPermissions: return "Failed to get asset permissions";
40698
+ case IModelHubStatus.FailedToGetAssetMembers: return "Failed to get asset members";
40699
+ case IModelHubStatus.ChangeSetAlreadyHasVersion: return "ChangeSet already has version";
40700
+ case IModelHubStatus.VersionAlreadyExists: return "Version already exists";
40701
+ case IModelHubStatus.JobSchedulingFailed: return "Failed to schedule a background job";
40702
+ case IModelHubStatus.ConflictsAggregate: return "Codes or locks are owned by another briefcase";
40703
+ case IModelHubStatus.FailedToGetITwinById: return "Failed to query iTwin by its id";
40704
+ case IModelHubStatus.DatabaseOperationFailed: return "Database operation has failed";
40705
+ case IModelHubStatus.ITwinDoesNotExist: return "ITwin does not exist";
40706
+ case IModelHubStatus.UndefinedArgumentError: return "Undefined argument";
40707
+ case IModelHubStatus.InvalidArgumentError: return "Invalid argument";
40708
+ case IModelHubStatus.MissingDownloadUrlError: return "Missing download url";
40709
+ case IModelHubStatus.NotSupportedInBrowser: return "Not supported in browser";
40710
+ case IModelHubStatus.FileHandlerNotSet: return "File handler is not set";
40711
+ case IModelHubStatus.FileNotFound: return "File not found";
40712
+ case GeoServiceStatus.NoGeoLocation: return "No GeoLocation";
40713
+ case GeoServiceStatus.OutOfUsefulRange: return "Out of useful range";
40714
+ case GeoServiceStatus.OutOfMathematicalDomain: return "Out of mathematical domain";
40715
+ case GeoServiceStatus.NoDatumConverter: return "No datum converter";
40716
+ case GeoServiceStatus.VerticalDatumConvertError: return "Vertical datum convert error";
40717
+ case GeoServiceStatus.CSMapError: return "CSMap error";
40718
+ case GeoServiceStatus.Pending: return "Pending";
40719
+ case RealityDataStatus.InvalidData: return "Invalid or unknown data";
40720
+ case IModelStatus.Success:
40721
+ case BeSQLite_1.DbResult.BE_SQLITE_OK:
40722
+ case BeSQLite_1.DbResult.BE_SQLITE_ROW:
40723
+ case BeSQLite_1.DbResult.BE_SQLITE_DONE:
40724
+ case BentleyStatus.SUCCESS:
40725
+ return "Success";
40726
+ default:
40727
+ return `Error (${this.errorNumber})`;
40728
+ }
40729
+ }
40730
+ /** Use run-time type checking to safely get a useful string summary of an unknown error value, or `""` if none exists.
40731
+ * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof Error`
40732
+ * @public
40733
+ */
40734
+ static getErrorMessage(error) {
40735
+ if (typeof error === "string")
40736
+ return error;
40737
+ if (error instanceof Error)
40738
+ return error.toString();
40739
+ if (isObject(error)) {
40740
+ if (typeof error.message === "string")
40741
+ return error.message;
40742
+ if (typeof error.msg === "string")
40743
+ return error.msg;
40744
+ if (error.toString() !== "[object Object]")
40745
+ return error.toString();
40746
+ }
40747
+ return "";
40748
+ }
40749
+ /** Use run-time type checking to safely get the call stack of an unknown error value, if possible.
40750
+ * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof Error`
40751
+ * @public
40752
+ */
40753
+ static getErrorStack(error) {
40754
+ if (isObject(error) && typeof error.stack === "string")
40755
+ return error.stack;
40756
+ return undefined;
40757
+ }
40758
+ /** Use run-time type checking to safely get the metadata with an unknown error value, if possible.
40759
+ * @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof BentleyError`
40760
+ * @see [[BentleyError.getMetaData]]
40761
+ * @public
40762
+ */
40763
+ static getErrorMetadata(error) {
40764
+ if (isObject(error) && typeof error.getMetaData === "function") {
40765
+ const metadata = error.getMetaData();
40766
+ if (typeof metadata === "object" && metadata !== null)
40767
+ return metadata;
40768
+ }
40769
+ return undefined;
40770
+ }
40771
+ /** Returns a new `ErrorProps` object representing an unknown error value. Useful for logging or wrapping/re-throwing caught errors.
40772
+ * @note Unlike `Error` objects (which lose messages and call stacks when serialized to JSON), objects
40773
+ * returned by this are plain old JavaScript objects, and can be easily logged/serialized to JSON.
40774
+ * @public
40775
+ */
40776
+ static getErrorProps(error) {
40777
+ const serialized = {
40778
+ message: BentleyError.getErrorMessage(error),
40779
+ };
40780
+ const stack = BentleyError.getErrorStack(error);
40781
+ if (stack)
40782
+ serialized.stack = stack;
40783
+ const metadata = BentleyError.getErrorMetadata(error);
40784
+ if (metadata)
40785
+ serialized.metadata = metadata;
40786
+ return serialized;
40787
+ }
40788
+ }
40789
+ exports.BentleyError = BentleyError;
40790
+
40791
+
40792
+ /***/ }),
40793
+
40794
+ /***/ "../../core/bentley/lib/cjs/BentleyLoggerCategory.js":
40795
+ /*!*******************************************************************!*\
40796
+ !*** D:/vsts_a/1/s/core/bentley/lib/cjs/BentleyLoggerCategory.js ***!
40797
+ \*******************************************************************/
40798
+ /*! no static exports found */
40799
+ /***/ (function(module, exports, __webpack_require__) {
40800
+
40801
+ "use strict";
40802
+
40803
+ /*---------------------------------------------------------------------------------------------
40804
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
40805
+ * See LICENSE.md in the project root for license terms and full copyright notice.
40806
+ *--------------------------------------------------------------------------------------------*/
40807
+ /** @packageDocumentation
40808
+ * @module Logging
40809
+ */
40810
+ Object.defineProperty(exports, "__esModule", { value: true });
40811
+ exports.BentleyLoggerCategory = void 0;
40812
+ /** Logger categories used by this package
40813
+ * @see [Logger]($bentley)
40814
+ * @public
40815
+ */
40816
+ var BentleyLoggerCategory;
40817
+ (function (BentleyLoggerCategory) {
40818
+ /** The logger category used by common classes relating to ElementProps. */
40819
+ BentleyLoggerCategory["Performance"] = "Performance";
40820
+ })(BentleyLoggerCategory = exports.BentleyLoggerCategory || (exports.BentleyLoggerCategory = {}));
40821
+
40822
+
40823
+ /***/ }),
40824
+
40825
+ /***/ "../../core/bentley/lib/cjs/Logger.js":
40826
+ /*!****************************************************!*\
40827
+ !*** D:/vsts_a/1/s/core/bentley/lib/cjs/Logger.js ***!
40828
+ \****************************************************/
40829
+ /*! no static exports found */
40830
+ /***/ (function(module, exports, __webpack_require__) {
40831
+
40832
+ "use strict";
40833
+
40834
+ /*---------------------------------------------------------------------------------------------
40835
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
40836
+ * See LICENSE.md in the project root for license terms and full copyright notice.
40837
+ *--------------------------------------------------------------------------------------------*/
40838
+ /** @packageDocumentation
40839
+ * @module Logging
40840
+ */
40841
+ Object.defineProperty(exports, "__esModule", { value: true });
40842
+ exports.PerfLogger = exports.Logger = exports.LogLevel = void 0;
40843
+ const BentleyError_1 = __webpack_require__(/*! ./BentleyError */ "../../core/bentley/lib/cjs/BentleyError.js");
40844
+ const BentleyLoggerCategory_1 = __webpack_require__(/*! ./BentleyLoggerCategory */ "../../core/bentley/lib/cjs/BentleyLoggerCategory.js");
40845
+ /** Use to categorize logging messages by severity.
40846
+ * @public
40847
+ */
40848
+ var LogLevel;
40849
+ (function (LogLevel) {
40850
+ /** Tracing and debugging - low level */
40851
+ LogLevel[LogLevel["Trace"] = 0] = "Trace";
40852
+ /** Information - mid level */
40853
+ LogLevel[LogLevel["Info"] = 1] = "Info";
40854
+ /** Warnings - high level */
40855
+ LogLevel[LogLevel["Warning"] = 2] = "Warning";
40856
+ /** Errors - highest level */
40857
+ LogLevel[LogLevel["Error"] = 3] = "Error";
40858
+ /** Higher than any real logging level. This is used to turn a category off. */
40859
+ LogLevel[LogLevel["None"] = 4] = "None";
40860
+ })(LogLevel = exports.LogLevel || (exports.LogLevel = {}));
40861
+ /** Logger allows libraries and apps to report potentially useful information about operations, and it allows apps and users to control
40862
+ * how or if the logged information is displayed or collected. See [Learning about Logging]($docs/learning/common/Logging.md).
40863
+ * @public
40864
+ */
40865
+ class Logger {
40866
+ /** Initialize the logger streams. Should be called at application initialization time. */
40867
+ static initialize(logError, logWarning, logInfo, logTrace) {
40868
+ Logger._logError = logError;
40869
+ Logger._logWarning = logWarning;
40870
+ Logger._logInfo = logInfo;
40871
+ Logger._logTrace = logTrace;
40872
+ Logger.turnOffLevelDefault();
40873
+ Logger.turnOffCategories();
40874
+ }
40875
+ /** Initialize the logger to output to the console. */
40876
+ static initializeToConsole() {
40877
+ const logConsole = (level) => (category, message, metaData) => console.log(`${level} | ${category} | ${message} ${Logger.stringifyMetaData(metaData)}`); // eslint-disable-line no-console
40878
+ Logger.initialize(logConsole("Error"), logConsole("Warning"), logConsole("Info"), logConsole("Trace"));
40879
+ }
40880
+ /** merge the supplied metadata with all static metadata into one object */
40881
+ static getMetaData(metaData) {
40882
+ const metaObj = {};
40883
+ for (const meta of Logger.staticMetaData) {
40884
+ const val = BentleyError_1.BentleyError.getMetaData(meta[1]);
40885
+ if (val)
40886
+ Object.assign(metaObj, val);
40887
+ }
40888
+ Object.assign(metaObj, BentleyError_1.BentleyError.getMetaData(metaData)); // do this last so user supplied values take precedence
40889
+ return metaObj;
40890
+ }
40891
+ /** 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. */
40892
+ static stringifyMetaData(metaData) {
40893
+ const metaObj = this.getMetaData(metaData);
40894
+ return Object.keys(metaObj).length > 0 ? JSON.stringify(metaObj) : "";
40895
+ }
40896
+ /** Set the least severe level at which messages should be displayed by default. Call setLevel to override this default setting for specific categories. */
40897
+ static setLevelDefault(minLevel) {
40898
+ Logger._minLevel = minLevel;
40899
+ }
40900
+ /** Set the minimum logging level for the specified category. The minimum level is least severe level at which messages in the
40901
+ * specified category should be displayed.
40902
+ */
40903
+ static setLevel(category, minLevel) {
40904
+ Logger._categoryFilter.set(category, minLevel);
40905
+ }
40906
+ /** Interpret a string as the name of a LogLevel */
40907
+ static parseLogLevel(str) {
40908
+ switch (str.toUpperCase()) {
40909
+ case "EXCEPTION": return LogLevel.Error;
40910
+ case "FATAL": return LogLevel.Error;
40911
+ case "ERROR": return LogLevel.Error;
40912
+ case "WARNING": return LogLevel.Warning;
40913
+ case "INFO": return LogLevel.Info;
40914
+ case "TRACE": return LogLevel.Trace;
40915
+ case "DEBUG": return LogLevel.Trace;
40916
+ }
40917
+ return LogLevel.None;
40918
+ }
40919
+ /** Set the log level for multiple categories at once. Also see [[validateProps]] */
40920
+ static configureLevels(cfg) {
40921
+ Logger.validateProps(cfg);
40922
+ if (cfg.defaultLevel !== undefined) {
40923
+ this.setLevelDefault(Logger.parseLogLevel(cfg.defaultLevel));
40924
+ }
40925
+ if (cfg.categoryLevels !== undefined) {
40926
+ for (const cl of cfg.categoryLevels) {
40927
+ this.setLevel(cl.category, Logger.parseLogLevel(cl.logLevel));
40928
+ }
40929
+ }
40930
+ }
40931
+ static isLogLevel(v) {
40932
+ return LogLevel.hasOwnProperty(v);
40933
+ }
40934
+ /** Check that the specified object is a valid LoggerLevelsConfig. This is useful when reading a config from a .json file. */
40935
+ static validateProps(config) {
40936
+ const validProps = ["defaultLevel", "categoryLevels"];
40937
+ for (const prop of Object.keys(config)) {
40938
+ if (!validProps.includes(prop))
40939
+ throw new BentleyError_1.BentleyError(BentleyError_1.IModelStatus.BadArg, `LoggerLevelsConfig - unrecognized property: ${prop}`);
40940
+ if (prop === "defaultLevel") {
40941
+ if (!Logger.isLogLevel(config.defaultLevel))
40942
+ throw new BentleyError_1.BentleyError(BentleyError_1.IModelStatus.BadArg, `LoggerLevelsConfig.defaultLevel must be a LogLevel. Invalid value: ${JSON.stringify(config.defaultLevel)}`);
40943
+ }
40944
+ else if (prop === "categoryLevels") {
40945
+ const value = config[prop];
40946
+ if (!Array.isArray(value))
40947
+ throw new BentleyError_1.BentleyError(BentleyError_1.IModelStatus.BadArg, `LoggerLevelsConfig.categoryLevels must be an array. Invalid value: ${JSON.stringify(value)}`);
40948
+ for (const item of config[prop]) {
40949
+ if (!item.hasOwnProperty("category") || !item.hasOwnProperty("logLevel"))
40950
+ throw new BentleyError_1.BentleyError(BentleyError_1.IModelStatus.BadArg, `LoggerLevelsConfig.categoryLevels - each item must be a LoggerCategoryAndLevel {category: logLevel:}. Invalid value: ${JSON.stringify(item)}`);
40951
+ if (!Logger.isLogLevel(item.logLevel))
40952
+ throw new BentleyError_1.BentleyError(BentleyError_1.IModelStatus.BadArg, `LoggerLevelsConfig.categoryLevels - each item's logLevel property must be a LogLevel. Invalid value: ${JSON.stringify(item.logLevel)}`);
40953
+ }
40954
+ }
40955
+ }
40956
+ }
40957
+ /** Get the minimum logging level for the specified category. */
40958
+ static getLevel(category) {
40959
+ // Prefer the level set for this category specifically
40960
+ const minLevelForThisCategory = Logger._categoryFilter.get(category);
40961
+ if (minLevelForThisCategory !== undefined)
40962
+ return minLevelForThisCategory;
40963
+ // Fall back on the level set for the parent of this category.
40964
+ const parent = category.lastIndexOf(".");
40965
+ if (parent !== -1)
40966
+ return Logger.getLevel(category.slice(0, parent));
40967
+ // Fall back on the default level.
40968
+ return Logger._minLevel;
40969
+ }
40970
+ /** Turns off the least severe level at which messages should be displayed by default.
40971
+ * This turns off logging for all messages for which no category minimum level is defined.
40972
+ */
40973
+ static turnOffLevelDefault() {
40974
+ Logger._minLevel = undefined;
40975
+ }
40976
+ /** Turns off all category level filters previously defined with [[Logger.setLevel]].
40977
+ */
40978
+ static turnOffCategories() {
40979
+ Logger._categoryFilter.clear();
40980
+ }
40981
+ /** Check if messages in the specified category should be displayed at this level of severity. */
40982
+ static isEnabled(category, level) {
40983
+ const minLevel = Logger.getLevel(category);
40984
+ return (minLevel !== undefined) && (level >= minLevel);
40985
+ }
40986
+ /** Log the specified message to the **error** stream.
40987
+ * @param category The category of the message.
40988
+ * @param message The message.
40989
+ * @param metaData Optional data for the message
40990
+ */
40991
+ static logError(category, message, metaData) {
40992
+ if (Logger._logError && Logger.isEnabled(category, LogLevel.Error))
40993
+ Logger._logError(category, message, metaData);
40994
+ }
40995
+ static getExceptionMessage(err) {
40996
+ const stack = Logger.logExceptionCallstacks ? `\n${BentleyError_1.BentleyError.getErrorStack(err)}` : "";
40997
+ return BentleyError_1.BentleyError.getErrorMessage(err) + stack;
40998
+ }
40999
+ /** Log the specified exception. The special "ExceptionType" property will be added as metadata,
41000
+ * in addition to any other metadata that may be supplied by the caller, unless the
41001
+ * metadata supplied by the caller already includes this property.
41002
+ * @param category The category of the message.
41003
+ * @param err The exception object.
41004
+ * @param log The logger output function to use - defaults to Logger.logError
41005
+ * @param metaData Optional data for the message
41006
+ */
41007
+ static logException(category, err, log = Logger.logError) {
41008
+ log(category, Logger.getExceptionMessage(err), () => {
41009
+ return { ...BentleyError_1.BentleyError.getErrorMetadata(err), exceptionType: err.constructor.name };
41010
+ });
41011
+ }
41012
+ /** Log the specified message to the **warning** stream.
41013
+ * @param category The category of the message.
41014
+ * @param message The message.
41015
+ * @param metaData Optional data for the message
41016
+ */
41017
+ static logWarning(category, message, metaData) {
41018
+ if (Logger._logWarning && Logger.isEnabled(category, LogLevel.Warning))
41019
+ Logger._logWarning(category, message, metaData);
41020
+ }
41021
+ /** Log the specified message to the **info** stream.
41022
+ * @param category The category of the message.
41023
+ * @param message The message.
41024
+ * @param metaData Optional data for the message
41025
+ */
41026
+ static logInfo(category, message, metaData) {
41027
+ if (Logger._logInfo && Logger.isEnabled(category, LogLevel.Info))
41028
+ Logger._logInfo(category, message, metaData);
41029
+ }
41030
+ /** Log the specified message to the **trace** stream.
41031
+ * @param category The category of the message.
41032
+ * @param message The message.
41033
+ * @param metaData Optional data for the message
41034
+ */
41035
+ static logTrace(category, message, metaData) {
41036
+ if (Logger._logTrace && Logger.isEnabled(category, LogLevel.Trace))
41037
+ Logger._logTrace(category, message, metaData);
41038
+ }
41039
+ }
41040
+ exports.Logger = Logger;
41041
+ Logger._categoryFilter = new Map();
41042
+ Logger._minLevel = undefined;
41043
+ /** Should the call stack be included when an exception is logged? */
41044
+ Logger.logExceptionCallstacks = false;
41045
+ /** All static metadata is combined with per-call metadata and stringified in every log message.
41046
+ * Static metadata can either be an object or a function that returns an object.
41047
+ * Use a key to identify entries in the map so the can be removed individually.
41048
+ * @internal */
41049
+ Logger.staticMetaData = new Map();
41050
+ /** Simple performance diagnostics utility.
41051
+ * It measures the time from construction to disposal. On disposal it logs the routine name along with
41052
+ * the duration in milliseconds.
41053
+ * It also logs the routine name at construction time so that nested calls can be disambiguated.
41054
+ *
41055
+ * The timings are logged using the log category **Performance** and log severity [[LogLevel.INFO]].
41056
+ * Enable those, if you want to capture timings.
41057
+ * @public
41058
+ */
41059
+ class PerfLogger {
41060
+ constructor(operation, metaData) {
41061
+ this._operation = operation;
41062
+ this._metaData = metaData;
41063
+ if (!Logger.isEnabled(BentleyLoggerCategory_1.BentleyLoggerCategory.Performance, PerfLogger._severity)) {
41064
+ this._startTimeStamp = 0;
41065
+ return;
41066
+ }
41067
+ Logger.logInfo(BentleyLoggerCategory_1.BentleyLoggerCategory.Performance, `${this._operation},START`, this._metaData);
41068
+ this._startTimeStamp = new Date().getTime(); // take timestamp
41069
+ }
41070
+ logMessage() {
41071
+ const endTimeStamp = new Date().getTime();
41072
+ if (!Logger.isEnabled(BentleyLoggerCategory_1.BentleyLoggerCategory.Performance, PerfLogger._severity))
41073
+ return;
41074
+ Logger.logInfo(BentleyLoggerCategory_1.BentleyLoggerCategory.Performance, `${this._operation},END`, () => {
41075
+ const mdata = this._metaData ? BentleyError_1.BentleyError.getMetaData(this._metaData) : {};
41076
+ return {
41077
+ ...mdata, TimeElapsed: endTimeStamp - this._startTimeStamp, // eslint-disable-line @typescript-eslint/naming-convention
41078
+ };
41079
+ });
41080
+ }
41081
+ dispose() {
41082
+ this.logMessage();
41083
+ }
41084
+ }
41085
+ exports.PerfLogger = PerfLogger;
41086
+ PerfLogger._severity = LogLevel.Info;
41087
+
41088
+
39886
41089
  /***/ }),
39887
41090
 
39888
41091
  /***/ "../../core/bentley/lib/esm/AccessToken.js":
@@ -40381,7 +41584,7 @@ var DbResult;
40381
41584
  /*!**********************************************************!*\
40382
41585
  !*** D:/vsts_a/1/s/core/bentley/lib/esm/BentleyError.js ***!
40383
41586
  \**********************************************************/
40384
- /*! exports provided: BentleyStatus, IModelStatus, BriefcaseStatus, RpcInterfaceStatus, ChangeSetStatus, RepositoryStatus, HttpStatus, IModelHubStatus, AuthStatus, GeoServiceStatus, RealityDataStatus, BentleyError */
41587
+ /*! exports provided: BentleyStatus, IModelStatus, BriefcaseStatus, RpcInterfaceStatus, ChangeSetStatus, RepositoryStatus, HttpStatus, IModelHubStatus, GeoServiceStatus, RealityDataStatus, BentleyError */
40385
41588
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
40386
41589
 
40387
41590
  "use strict";
@@ -40394,7 +41597,6 @@ __webpack_require__.r(__webpack_exports__);
40394
41597
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RepositoryStatus", function() { return RepositoryStatus; });
40395
41598
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpStatus", function() { return HttpStatus; });
40396
41599
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IModelHubStatus", function() { return IModelHubStatus; });
40397
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthStatus", function() { return AuthStatus; });
40398
41600
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeoServiceStatus", function() { return GeoServiceStatus; });
40399
41601
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RealityDataStatus", function() { return RealityDataStatus; });
40400
41602
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BentleyError", function() { return BentleyError; });
@@ -40701,15 +41903,6 @@ var IModelHubStatus;
40701
41903
  IModelHubStatus[IModelHubStatus["FileNotFound"] = 102662] = "FileNotFound";
40702
41904
  IModelHubStatus[IModelHubStatus["InitializationTimeout"] = 102663] = "InitializationTimeout";
40703
41905
  })(IModelHubStatus || (IModelHubStatus = {}));
40704
- /** Authentication Errors
40705
- * @beta Internal? Right package?
40706
- */
40707
- var AuthStatus;
40708
- (function (AuthStatus) {
40709
- AuthStatus[AuthStatus["Success"] = 0] = "Success";
40710
- AuthStatus[AuthStatus["AUTHSTATUS_BASE"] = 139264] = "AUTHSTATUS_BASE";
40711
- AuthStatus[AuthStatus["Error"] = 139264] = "Error";
40712
- })(AuthStatus || (AuthStatus = {}));
40713
41906
  /** GeoServiceStatus errors
40714
41907
  * @public
40715
41908
  */
@@ -41026,7 +42219,6 @@ class BentleyError extends Error {
41026
42219
  case IModelHubStatus.NotSupportedInBrowser: return "Not supported in browser";
41027
42220
  case IModelHubStatus.FileHandlerNotSet: return "File handler is not set";
41028
42221
  case IModelHubStatus.FileNotFound: return "File not found";
41029
- case AuthStatus.Error: return "Authorization error";
41030
42222
  case GeoServiceStatus.NoGeoLocation: return "No GeoLocation";
41031
42223
  case GeoServiceStatus.OutOfUsefulRange: return "Out of useful range";
41032
42224
  case GeoServiceStatus.OutOfMathematicalDomain: return "Out of mathematical domain";
@@ -45159,8 +46351,6 @@ function lookupCategory(error) {
45159
46351
  case _BentleyError__WEBPACK_IMPORTED_MODULE_0__["IModelHubStatus"].FileHandlerNotSet: return new NotImplemented();
45160
46352
  case _BentleyError__WEBPACK_IMPORTED_MODULE_0__["IModelHubStatus"].FileNotFound: return new NotFound();
45161
46353
  case _BentleyError__WEBPACK_IMPORTED_MODULE_0__["IModelHubStatus"].InitializationTimeout: return new Timeout();
45162
- case _BentleyError__WEBPACK_IMPORTED_MODULE_0__["AuthStatus"].Success: return new Success();
45163
- case _BentleyError__WEBPACK_IMPORTED_MODULE_0__["AuthStatus"].Error: return new UnknownError();
45164
46354
  case _BentleyError__WEBPACK_IMPORTED_MODULE_0__["GeoServiceStatus"].Success: return new Success();
45165
46355
  case _BentleyError__WEBPACK_IMPORTED_MODULE_0__["GeoServiceStatus"].NoGeoLocation: return new ValidationError();
45166
46356
  case _BentleyError__WEBPACK_IMPORTED_MODULE_0__["GeoServiceStatus"].OutOfUsefulRange: return new ValidationError();
@@ -45789,7 +46979,7 @@ class YieldManager {
45789
46979
  /*!**********************************************************!*\
45790
46980
  !*** D:/vsts_a/1/s/core/bentley/lib/esm/core-bentley.js ***!
45791
46981
  \**********************************************************/
45792
- /*! exports provided: assert, AsyncMutex, BeEvent, BeUiEvent, BeEventList, BentleyStatus, IModelStatus, BriefcaseStatus, RpcInterfaceStatus, ChangeSetStatus, RepositoryStatus, HttpStatus, IModelHubStatus, AuthStatus, GeoServiceStatus, RealityDataStatus, BentleyError, BentleyLoggerCategory, StatusCategory, SuccessCategory, ErrorCategory, OpenMode, DbOpcode, DbResult, ByteStream, isProperSubclassOf, isSubclassOf, compareWithTolerance, compareNumbers, compareBooleans, compareStrings, comparePossiblyUndefined, compareStringsOrUndefined, compareNumbersOrUndefined, compareBooleansOrUndefined, areEqualPossiblyUndefined, CompressedId64Set, OrderedId64Array, MutableCompressedId64Set, Dictionary, isIDisposable, dispose, disposeArray, using, DisposableList, Id64, TransientIdSequence, Guid, IndexedValue, IndexMap, JsonUtils, LogLevel, Logger, PerfLogger, Entry, LRUCache, LRUMap, LRUDictionary, ObservableSet, AbandonedError, OneAtATimeAction, OrderedId64Iterable, ReadonlyOrderedSet, OrderedSet, partitionArray, PriorityQueue, ProcessDetector, shallowClone, lowerBound, DuplicatePolicy, ReadonlySortedArray, SortedArray, utf8ToStringPolyfill, utf8ToString, base64StringToUint8Array, BeDuration, BeTimePoint, StopWatch, SpanKind, Tracing, UnexpectedErrors, isInstanceOf, asInstanceOf, YieldManager */
46982
+ /*! exports provided: assert, AsyncMutex, BeEvent, BeUiEvent, BeEventList, BentleyStatus, IModelStatus, BriefcaseStatus, RpcInterfaceStatus, ChangeSetStatus, RepositoryStatus, HttpStatus, IModelHubStatus, GeoServiceStatus, RealityDataStatus, BentleyError, BentleyLoggerCategory, StatusCategory, SuccessCategory, ErrorCategory, OpenMode, DbOpcode, DbResult, ByteStream, isProperSubclassOf, isSubclassOf, compareWithTolerance, compareNumbers, compareBooleans, compareStrings, comparePossiblyUndefined, compareStringsOrUndefined, compareNumbersOrUndefined, compareBooleansOrUndefined, areEqualPossiblyUndefined, CompressedId64Set, OrderedId64Array, MutableCompressedId64Set, Dictionary, isIDisposable, dispose, disposeArray, using, DisposableList, Id64, TransientIdSequence, Guid, IndexedValue, IndexMap, JsonUtils, LogLevel, Logger, PerfLogger, Entry, LRUCache, LRUMap, LRUDictionary, ObservableSet, AbandonedError, OneAtATimeAction, OrderedId64Iterable, ReadonlyOrderedSet, OrderedSet, partitionArray, PriorityQueue, ProcessDetector, shallowClone, lowerBound, DuplicatePolicy, ReadonlySortedArray, SortedArray, utf8ToStringPolyfill, utf8ToString, base64StringToUint8Array, BeDuration, BeTimePoint, StopWatch, SpanKind, Tracing, UnexpectedErrors, isInstanceOf, asInstanceOf, YieldManager */
45793
46983
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
45794
46984
 
45795
46985
  "use strict";
@@ -45825,8 +47015,6 @@ __webpack_require__.r(__webpack_exports__);
45825
47015
 
45826
47016
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IModelHubStatus", function() { return _BentleyError__WEBPACK_IMPORTED_MODULE_4__["IModelHubStatus"]; });
45827
47017
 
45828
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthStatus", function() { return _BentleyError__WEBPACK_IMPORTED_MODULE_4__["AuthStatus"]; });
45829
-
45830
47018
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GeoServiceStatus", function() { return _BentleyError__WEBPACK_IMPORTED_MODULE_4__["GeoServiceStatus"]; });
45831
47019
 
45832
47020
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RealityDataStatus", function() { return _BentleyError__WEBPACK_IMPORTED_MODULE_4__["RealityDataStatus"]; });
@@ -53972,7 +55160,7 @@ IModel.dictionaryId = "0x10";
53972
55160
  /*!********************************************************!*\
53973
55161
  !*** D:/vsts_a/1/s/core/common/lib/esm/IModelError.js ***!
53974
55162
  \********************************************************/
53975
- /*! exports provided: BentleyStatus, BentleyError, IModelStatus, BriefcaseStatus, DbResult, AuthStatus, RepositoryStatus, ChangeSetStatus, RpcInterfaceStatus, IModelError, ServerError, ServerTimeoutError, BackendError, ChannelConstraintError, NoContentError */
55163
+ /*! exports provided: BentleyStatus, BentleyError, IModelStatus, BriefcaseStatus, DbResult, RepositoryStatus, ChangeSetStatus, RpcInterfaceStatus, IModelError, ServerError, ServerTimeoutError, BackendError, ChannelConstraintError, NoContentError */
53976
55164
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
53977
55165
 
53978
55166
  "use strict";
@@ -53994,8 +55182,6 @@ __webpack_require__.r(__webpack_exports__);
53994
55182
 
53995
55183
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DbResult", function() { return _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["DbResult"]; });
53996
55184
 
53997
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthStatus", function() { return _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["AuthStatus"]; });
53998
-
53999
55185
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RepositoryStatus", function() { return _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["RepositoryStatus"]; });
54000
55186
 
54001
55187
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChangeSetStatus", function() { return _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["ChangeSetStatus"]; });
@@ -61055,7 +62241,7 @@ WhiteOnWhiteReversalSettings._ignore = new WhiteOnWhiteReversalSettings(false);
61055
62241
  /*!********************************************************!*\
61056
62242
  !*** D:/vsts_a/1/s/core/common/lib/esm/core-common.js ***!
61057
62243
  \********************************************************/
61058
- /*! exports provided: AmbientOcclusion, AnalysisStyleDisplacement, AnalysisStyleThematic, AnalysisStyle, BackgroundMapType, BackgroundMapProvider, GlobeMode, BackgroundMapSettings, Base64EncodedString, BriefcaseIdValue, SyncMode, DomainOptions, ProfileOptions, SchemaState, Camera, TypeOfChange, ChangesetType, CutStyle, ClipStyle, CloudStorageProvider, CloudStorageContainerUrl, CloudStorageCache, CloudStorageTileCache, Code, BisCodeSpec, CodeScopeSpec, CodeSpec, ColorByName, ColorDef, CommonLoggerCategory, RealityDataProvider, RealityDataFormat, RealityDataSourceKey, ContextRealityModelProps, ContextRealityModel, ContextRealityModels, MonochromeMode, DisplayStyleSettings, DisplayStyle3dSettings, ECSqlValueType, ChangeOpCode, ChangedValueState, ECSqlSystemProperty, ECJsNames, RelatedElement, TypeDefinition, isPlacement2dProps, isPlacement3dProps, SectionType, ExternalSourceAttachmentRole, Rank, FeatureOverrideType, PrimitiveTypeCode, PropertyMetaData, EntityMetaData, Environment, FeatureGates, NonUniformColor, ColorIndex, FeatureIndexType, FeatureIndex, FeatureAppearance, FeatureOverrides, FeatureAppearanceProvider, Feature, BatchType, FeatureTable, PackedFeatureTable, FontType, FontMap, Npc, NpcCorners, NpcCenter, Frustum, GeoCoordStatus, mapToGeoServiceStatus, Helmert2DWithZOffset, AdditionalTransform, AreaPattern, BoundingSphere, Cartographic, CartographicRange, HorizontalCRSExtent, HorizontalCRS, VerticalCRS, GeographicCRS, ElementGeometryOpcode, BRepGeometryOperation, ElementGeometry, FrustumPlanes, XyzRotation, GeocentricTransform, PositionalVectorTransform, GridFileDefinition, GridFileTransform, GeodeticTransform, GeodeticTransformPath, GeodeticDatum, GeodeticEllipsoid, BRepEntity, GeometryStreamFlags, GeometryStreamBuilder, GeometryStreamIterator, ImageGraphicCorners, ImageGraphic, LineStyle, Placement3d, Placement2d, AffineTransform, Projection, Carto2DDegrees, TextString, FillDisplay, BackgroundFill, GeometryClass, GeometryParams, GeometrySummaryVerbosity, Gradient, FillFlags, GraphicParams, GroundPlane, HiddenLine, Hilite, HSLColor, HSVConstants, HSVColor, ImageBufferFormat, ImageBuffer, isPowerOfTwo, nextHighestPowerOfTwo, ImageSourceFormat, isValidImageSourceFormat, ImageSource, EcefLocation, IModel, BentleyStatus, BentleyError, IModelStatus, BriefcaseStatus, DbResult, AuthStatus, RepositoryStatus, ChangeSetStatus, RpcInterfaceStatus, IModelError, ServerError, ServerTimeoutError, BackendError, ChannelConstraintError, NoContentError, IModelVersion, iTwinChannel, IpcWebSocketMessageType, IpcWebSocketMessage, IpcWebSocket, IpcWebSocketFrontend, IpcWebSocketBackend, IpcWebSocketTransport, IpcAppChannel, SolarLight, AmbientLight, HemisphereLights, FresnelSettings, LightSettings, LinePixels, EmptyLocalization, BaseLayerSettings, MapImagerySettings, MapSubLayerSettings, MapLayerSettings, ImageMapLayerSettings, ModelMapLayerSettings, BaseMapLayerSettings, MassPropertiesOperation, TextureMapUnits, ModelClipGroup, ModelClipGroups, nativeAppChannel, nativeAppNotify, InternetConnectivityStatus, OverriddenBy, OctEncodedNormal, OctEncodedNormalPair, QueryRowFormat, QueryOptionsBuilder, BlobOptionsBuilder, QueryBinder, DbRequestKind, DbResponseKind, DbResponseStatus, DbValueFormat, DbQueryError, PropertyMetaDataMap, ECSqlReader, PlanarClipMaskMode, PlanarClipMaskPriority, PlanarClipMaskSettings, ElementGeometryChange, ModelGeometryChanges, PlanProjectionSettings, Quantization, QParams2d, QPoint2d, QPoint2dList, QParams3d, QPoint3d, QPoint3dList, DefaultSupportedTypes, PolylineTypeFlags, PolylineFlags, PolylineData, MeshPolyline, MeshPolylineList, MeshEdge, MeshEdges, EdgeArgs, SilhouetteEdgeArgs, PolylineEdgeArgs, RenderMaterial, RenderSchedule, RenderTexture, RgbColor, RpcRoutingMap, RpcConfiguration, RpcDefaultConfiguration, RpcDirectProtocol, RpcDirectRequest, DevToolsStatsOptions, DevToolsRpcInterface, IModelNotFoundResponse, IModelReadRpcInterface, IModelTileRpcInterface, SnapshotIModelRpcInterface, TestRpcManager, WipRpcInterface, RpcInterface, RpcManager, SkyBoxImageType, SkyGradient, SkyBox, SkySphere, SkyCube, calculateSolarAngles, calculateSolarDirection, calculateSolarDirectionFromAngles, calculateSunriseOrSunset, SolarShadowSettings, SpatialClassifierInsideDisplay, SpatialClassifierOutsideDisplay, SpatialClassifierFlags, SpatialClassifier, SpatialClassifiers, SubCategoryAppearance, SubCategoryOverride, TerrainHeightOriginMode, TerrainSettings, TextureMapping, TextureTransparency, ThematicGradientMode, ThematicGradientColorScheme, ThematicGradientSettings, ThematicDisplaySensor, ThematicDisplaySensorSettings, ThematicDisplayMode, ThematicDisplay, TileContentSource, Tweens, Tween, Easing, Interpolation, TxnAction, GridOrientationType, ViewDetails, ViewDetails3d, RenderMode, ViewFlags, RpcResponseCacheControl, RpcProtocolEvent, RpcRequestStatus, RpcRequestEvent, RpcContentType, RpcEndpoint, WEB_RPC_CONSTANTS, RpcControlResponse, RpcPendingResponse, RpcNotFoundResponse, RpcControlChannel, RpcInvocation, MarshalingBinaryMarker, RpcSerializedValue, RpcMarshaling, RpcOperationPolicy, RpcOperation, RpcPendingQueue, RpcRequestFulfillment, RpcProtocolVersion, RpcProtocol, REGISTRY, OPERATION, POLICY, INSTANCE, CURRENT_REQUEST, CURRENT_INVOCATION, RpcRegistry, ResponseLike, RpcRequest, initializeRpcRequest, RpcRoutingToken, RpcPushTransport, RpcPushService, RpcPushChannel, RpcPushSubscription, RpcPushConnection, BentleyCloudRpcConfiguration, BentleyCloudRpcManager, BentleyCloudRpcProtocol, RpcOpenAPIDescription, RpcMultipart, WebAppRpcProtocol, WebAppRpcRequest, B3dmHeader, CompositeTileHeader, GltfVersions, GltfV2ChunkTypes, GlbHeader, I3dmHeader, ImdlFlags, CurrentImdlVersion, ImdlHeader, FeatureTableHeader, PntsHeader, TileFormat, isKnownTileFormat, tileFormatFromNumber, TileReadStatus, TileReadError, TileHeader, nextPoint3d64FromByteStream, TileOptions, parseTileTreeIdAndContentId, defaultTileOptions, getMaximumMajorTileFormatVersion, TreeFlags, iModelTileTreeIdToString, compareIModelTileTreeIds, ContentFlags, ContentIdProvider, bisectTileRange3d, bisectTileRange2d, computeChildTileRanges, computeChildTileProps, readTileContentDescription, computeTileChordTolerance, TileMetadataReader, WhiteOnWhiteReversalSettings */
62244
+ /*! exports provided: AmbientOcclusion, AnalysisStyleDisplacement, AnalysisStyleThematic, AnalysisStyle, BackgroundMapType, BackgroundMapProvider, GlobeMode, BackgroundMapSettings, Base64EncodedString, BriefcaseIdValue, SyncMode, DomainOptions, ProfileOptions, SchemaState, Camera, TypeOfChange, ChangesetType, CutStyle, ClipStyle, CloudStorageProvider, CloudStorageContainerUrl, CloudStorageCache, CloudStorageTileCache, Code, BisCodeSpec, CodeScopeSpec, CodeSpec, ColorByName, ColorDef, CommonLoggerCategory, RealityDataProvider, RealityDataFormat, RealityDataSourceKey, ContextRealityModelProps, ContextRealityModel, ContextRealityModels, MonochromeMode, DisplayStyleSettings, DisplayStyle3dSettings, ECSqlValueType, ChangeOpCode, ChangedValueState, ECSqlSystemProperty, ECJsNames, RelatedElement, TypeDefinition, isPlacement2dProps, isPlacement3dProps, SectionType, ExternalSourceAttachmentRole, Rank, FeatureOverrideType, PrimitiveTypeCode, PropertyMetaData, EntityMetaData, Environment, FeatureGates, NonUniformColor, ColorIndex, FeatureIndexType, FeatureIndex, FeatureAppearance, FeatureOverrides, FeatureAppearanceProvider, Feature, BatchType, FeatureTable, PackedFeatureTable, FontType, FontMap, Npc, NpcCorners, NpcCenter, Frustum, GeoCoordStatus, mapToGeoServiceStatus, Helmert2DWithZOffset, AdditionalTransform, AreaPattern, BoundingSphere, Cartographic, CartographicRange, HorizontalCRSExtent, HorizontalCRS, VerticalCRS, GeographicCRS, ElementGeometryOpcode, BRepGeometryOperation, ElementGeometry, FrustumPlanes, XyzRotation, GeocentricTransform, PositionalVectorTransform, GridFileDefinition, GridFileTransform, GeodeticTransform, GeodeticTransformPath, GeodeticDatum, GeodeticEllipsoid, BRepEntity, GeometryStreamFlags, GeometryStreamBuilder, GeometryStreamIterator, ImageGraphicCorners, ImageGraphic, LineStyle, Placement3d, Placement2d, AffineTransform, Projection, Carto2DDegrees, TextString, FillDisplay, BackgroundFill, GeometryClass, GeometryParams, GeometrySummaryVerbosity, Gradient, FillFlags, GraphicParams, GroundPlane, HiddenLine, Hilite, HSLColor, HSVConstants, HSVColor, ImageBufferFormat, ImageBuffer, isPowerOfTwo, nextHighestPowerOfTwo, ImageSourceFormat, isValidImageSourceFormat, ImageSource, EcefLocation, IModel, BentleyStatus, BentleyError, IModelStatus, BriefcaseStatus, DbResult, RepositoryStatus, ChangeSetStatus, RpcInterfaceStatus, IModelError, ServerError, ServerTimeoutError, BackendError, ChannelConstraintError, NoContentError, IModelVersion, iTwinChannel, IpcWebSocketMessageType, IpcWebSocketMessage, IpcWebSocket, IpcWebSocketFrontend, IpcWebSocketBackend, IpcWebSocketTransport, IpcAppChannel, SolarLight, AmbientLight, HemisphereLights, FresnelSettings, LightSettings, LinePixels, EmptyLocalization, BaseLayerSettings, MapImagerySettings, MapSubLayerSettings, MapLayerSettings, ImageMapLayerSettings, ModelMapLayerSettings, BaseMapLayerSettings, MassPropertiesOperation, TextureMapUnits, ModelClipGroup, ModelClipGroups, nativeAppChannel, nativeAppNotify, InternetConnectivityStatus, OverriddenBy, OctEncodedNormal, OctEncodedNormalPair, QueryRowFormat, QueryOptionsBuilder, BlobOptionsBuilder, QueryBinder, DbRequestKind, DbResponseKind, DbResponseStatus, DbValueFormat, DbQueryError, PropertyMetaDataMap, ECSqlReader, PlanarClipMaskMode, PlanarClipMaskPriority, PlanarClipMaskSettings, ElementGeometryChange, ModelGeometryChanges, PlanProjectionSettings, Quantization, QParams2d, QPoint2d, QPoint2dList, QParams3d, QPoint3d, QPoint3dList, DefaultSupportedTypes, PolylineTypeFlags, PolylineFlags, PolylineData, MeshPolyline, MeshPolylineList, MeshEdge, MeshEdges, EdgeArgs, SilhouetteEdgeArgs, PolylineEdgeArgs, RenderMaterial, RenderSchedule, RenderTexture, RgbColor, RpcRoutingMap, RpcConfiguration, RpcDefaultConfiguration, RpcDirectProtocol, RpcDirectRequest, DevToolsStatsOptions, DevToolsRpcInterface, IModelNotFoundResponse, IModelReadRpcInterface, IModelTileRpcInterface, SnapshotIModelRpcInterface, TestRpcManager, WipRpcInterface, RpcInterface, RpcManager, SkyBoxImageType, SkyGradient, SkyBox, SkySphere, SkyCube, calculateSolarAngles, calculateSolarDirection, calculateSolarDirectionFromAngles, calculateSunriseOrSunset, SolarShadowSettings, SpatialClassifierInsideDisplay, SpatialClassifierOutsideDisplay, SpatialClassifierFlags, SpatialClassifier, SpatialClassifiers, SubCategoryAppearance, SubCategoryOverride, TerrainHeightOriginMode, TerrainSettings, TextureMapping, TextureTransparency, ThematicGradientMode, ThematicGradientColorScheme, ThematicGradientSettings, ThematicDisplaySensor, ThematicDisplaySensorSettings, ThematicDisplayMode, ThematicDisplay, TileContentSource, Tweens, Tween, Easing, Interpolation, TxnAction, GridOrientationType, ViewDetails, ViewDetails3d, RenderMode, ViewFlags, RpcResponseCacheControl, RpcProtocolEvent, RpcRequestStatus, RpcRequestEvent, RpcContentType, RpcEndpoint, WEB_RPC_CONSTANTS, RpcControlResponse, RpcPendingResponse, RpcNotFoundResponse, RpcControlChannel, RpcInvocation, MarshalingBinaryMarker, RpcSerializedValue, RpcMarshaling, RpcOperationPolicy, RpcOperation, RpcPendingQueue, RpcRequestFulfillment, RpcProtocolVersion, RpcProtocol, REGISTRY, OPERATION, POLICY, INSTANCE, CURRENT_REQUEST, CURRENT_INVOCATION, RpcRegistry, ResponseLike, RpcRequest, initializeRpcRequest, RpcRoutingToken, RpcPushTransport, RpcPushService, RpcPushChannel, RpcPushSubscription, RpcPushConnection, BentleyCloudRpcConfiguration, BentleyCloudRpcManager, BentleyCloudRpcProtocol, RpcOpenAPIDescription, RpcMultipart, WebAppRpcProtocol, WebAppRpcRequest, B3dmHeader, CompositeTileHeader, GltfVersions, GltfV2ChunkTypes, GlbHeader, I3dmHeader, ImdlFlags, CurrentImdlVersion, ImdlHeader, FeatureTableHeader, PntsHeader, TileFormat, isKnownTileFormat, tileFormatFromNumber, TileReadStatus, TileReadError, TileHeader, nextPoint3d64FromByteStream, TileOptions, parseTileTreeIdAndContentId, defaultTileOptions, getMaximumMajorTileFormatVersion, TreeFlags, iModelTileTreeIdToString, compareIModelTileTreeIds, ContentFlags, ContentIdProvider, bisectTileRange3d, bisectTileRange2d, computeChildTileRanges, computeChildTileProps, readTileContentDescription, computeTileChordTolerance, TileMetadataReader, WhiteOnWhiteReversalSettings */
61059
62245
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
61060
62246
 
61061
62247
  "use strict";
@@ -61402,8 +62588,6 @@ __webpack_require__.r(__webpack_exports__);
61402
62588
 
61403
62589
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DbResult", function() { return _IModelError__WEBPACK_IMPORTED_MODULE_61__["DbResult"]; });
61404
62590
 
61405
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthStatus", function() { return _IModelError__WEBPACK_IMPORTED_MODULE_61__["AuthStatus"]; });
61406
-
61407
62591
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RepositoryStatus", function() { return _IModelError__WEBPACK_IMPORTED_MODULE_61__["RepositoryStatus"]; });
61408
62592
 
61409
62593
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChangeSetStatus", function() { return _IModelError__WEBPACK_IMPORTED_MODULE_61__["ChangeSetStatus"]; });
@@ -124868,7 +126052,7 @@ class Uniform {
124868
126052
  compile(prog) {
124869
126053
  Object(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["assert"])(!this.isValid);
124870
126054
  if (undefined !== prog.glProgram) {
124871
- this._handle = _UniformHandle__WEBPACK_IMPORTED_MODULE_4__["UniformHandle"].create(prog.glProgram, this._name);
126055
+ this._handle = _UniformHandle__WEBPACK_IMPORTED_MODULE_4__["UniformHandle"].create(prog, this._name);
124872
126056
  }
124873
126057
  return this.isValid;
124874
126058
  }
@@ -130827,7 +132011,10 @@ function _getGradientDimension() {
130827
132011
  __webpack_require__.r(__webpack_exports__);
130828
132012
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UniformHandle", function() { return UniformHandle; });
130829
132013
  /* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
130830
- /* harmony import */ var _System__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./System */ "../../core/frontend/lib/esm/render/webgl/System.js");
132014
+ /* harmony import */ var _itwin_core_bentley_lib_cjs_Logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @itwin/core-bentley/lib/cjs/Logger */ "../../core/bentley/lib/cjs/Logger.js");
132015
+ /* harmony import */ var _itwin_core_bentley_lib_cjs_Logger__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_itwin_core_bentley_lib_cjs_Logger__WEBPACK_IMPORTED_MODULE_1__);
132016
+ /* harmony import */ var _FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../FrontendLoggerCategory */ "../../core/frontend/lib/esm/FrontendLoggerCategory.js");
132017
+ /* harmony import */ var _System__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./System */ "../../core/frontend/lib/esm/render/webgl/System.js");
130831
132018
  /*---------------------------------------------------------------------------------------------
130832
132019
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
130833
132020
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -130837,6 +132024,8 @@ __webpack_require__.r(__webpack_exports__);
130837
132024
  */
130838
132025
 
130839
132026
 
132027
+
132028
+
130840
132029
  /** A handle to the location of a uniform within a shader program
130841
132030
  * @internal
130842
132031
  */
@@ -130847,9 +132036,19 @@ class UniformHandle {
130847
132036
  this._location = location;
130848
132037
  }
130849
132038
  static create(program, name) {
130850
- const location = _System__WEBPACK_IMPORTED_MODULE_1__["System"].instance.context.getUniformLocation(program, name);
130851
- if (null === location)
130852
- throw new Error(`uniform ${name} not found.`);
132039
+ let location = null;
132040
+ if (undefined !== program.glProgram) {
132041
+ location = _System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.context.getUniformLocation(program.glProgram, name);
132042
+ }
132043
+ if (null === location) {
132044
+ const errMsg = `uniform ${name} not found in ${program.description}.`;
132045
+ if (_System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.options.errorOnMissingUniform) {
132046
+ throw new Error(errMsg);
132047
+ }
132048
+ else {
132049
+ _itwin_core_bentley_lib_cjs_Logger__WEBPACK_IMPORTED_MODULE_1__["Logger"].logError(_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_2__["FrontendLoggerCategory"].Render, errMsg);
132050
+ }
132051
+ }
130853
132052
  return new UniformHandle(location);
130854
132053
  }
130855
132054
  updateData(type, data) {
@@ -130879,46 +132078,46 @@ class UniformHandle {
130879
132078
  }
130880
132079
  setMatrix3(mat) {
130881
132080
  if (this.updateData(1 /* Mat3 */, mat.data))
130882
- _System__WEBPACK_IMPORTED_MODULE_1__["System"].instance.context.uniformMatrix3fv(this._location, false, mat.data);
132081
+ _System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.context.uniformMatrix3fv(this._location, false, mat.data);
130883
132082
  }
130884
132083
  setMatrix4(mat) {
130885
132084
  if (this.updateData(2 /* Mat4 */, mat.data))
130886
- _System__WEBPACK_IMPORTED_MODULE_1__["System"].instance.context.uniformMatrix4fv(this._location, false, mat.data);
132085
+ _System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.context.uniformMatrix4fv(this._location, false, mat.data);
130887
132086
  }
130888
132087
  setUniform1iv(data) {
130889
132088
  if (this.updateData(9 /* IntArray */, data))
130890
- _System__WEBPACK_IMPORTED_MODULE_1__["System"].instance.context.uniform1iv(this._location, data);
132089
+ _System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.context.uniform1iv(this._location, data);
130891
132090
  }
130892
132091
  setUniform1fv(data) {
130893
132092
  if (this.updateData(4 /* FloatArray */, data))
130894
- _System__WEBPACK_IMPORTED_MODULE_1__["System"].instance.context.uniform1fv(this._location, data);
132093
+ _System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.context.uniform1fv(this._location, data);
130895
132094
  }
130896
132095
  setUniform2fv(data) {
130897
132096
  if (this.updateData(5 /* Vec2 */, data))
130898
- _System__WEBPACK_IMPORTED_MODULE_1__["System"].instance.context.uniform2fv(this._location, data);
132097
+ _System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.context.uniform2fv(this._location, data);
130899
132098
  }
130900
132099
  setUniform3fv(data) {
130901
132100
  if (this.updateData(6 /* Vec3 */, data))
130902
- _System__WEBPACK_IMPORTED_MODULE_1__["System"].instance.context.uniform3fv(this._location, data);
132101
+ _System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.context.uniform3fv(this._location, data);
130903
132102
  }
130904
132103
  setUniform4fv(data) {
130905
132104
  if (this.updateData(7 /* Vec4 */, data))
130906
- _System__WEBPACK_IMPORTED_MODULE_1__["System"].instance.context.uniform4fv(this._location, data);
132105
+ _System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.context.uniform4fv(this._location, data);
130907
132106
  }
130908
132107
  setUniform1i(data) {
130909
132108
  if (this.updateDatum(8 /* Int */, data))
130910
- _System__WEBPACK_IMPORTED_MODULE_1__["System"].instance.context.uniform1i(this._location, data);
132109
+ _System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.context.uniform1i(this._location, data);
130911
132110
  }
130912
132111
  setUniform1f(data) {
130913
132112
  if (this.updateDatum(3 /* Float */, data))
130914
- _System__WEBPACK_IMPORTED_MODULE_1__["System"].instance.context.uniform1f(this._location, data);
132113
+ _System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.context.uniform1f(this._location, data);
130915
132114
  }
130916
132115
  setUniform1ui(data) {
130917
132116
  if (this.updateDatum(10 /* Uint */, data))
130918
- _System__WEBPACK_IMPORTED_MODULE_1__["System"].instance.context.uniform1ui(this._location, data);
132117
+ _System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.context.uniform1ui(this._location, data);
130919
132118
  }
130920
132119
  setUniformBitflags(data) {
130921
- if (_System__WEBPACK_IMPORTED_MODULE_1__["System"].instance.capabilities.isWebGL2)
132120
+ if (_System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.capabilities.isWebGL2)
130922
132121
  this.setUniform1ui(data);
130923
132122
  else
130924
132123
  this.setUniform1f(data);
@@ -169968,7 +171167,7 @@ SetupWalkCameraTool.iconSpec = "icon-camera-location";
169968
171167
  /*! exports provided: name, version, description, main, module, typings, license, scripts, repository, keywords, author, peerDependencies, //devDependencies, devDependencies, //dependencies, dependencies, nyc, eslintConfig, default */
169969
171168
  /***/ (function(module) {
169970
171169
 
169971
- module.exports = JSON.parse("{\"name\":\"@itwin/core-frontend\",\"version\":\"3.3.0-dev.25\",\"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\",\"build:ci\":\"npm run -s build && npm run -s build:esm\",\"build:cjs\":\"tsc 1>&2 --outDir lib/cjs\",\"build:esm\":\"tsc 1>&2 --module ES2020 --outDir lib/esm\",\"clean\":\"rimraf lib .rush/temp/package-deps*.json\",\"copy:public\":\"cpx \\\"./src/public/**/*\\\" ./lib/public\",\"docs\":\"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/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-eslintrc -c \\\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\\" \\\"./src/**/*.ts\\\" 1>&2\",\"lint\":\"eslint -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\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend\"},\"keywords\":[\"Bentley\",\"BIM\",\"iModel\",\"digital-twin\",\"iTwin\"],\"author\":{\"name\":\"Bentley Systems, Inc.\",\"url\":\"http://www.bentley.com\"},\"peerDependencies\":{\"@itwin/appui-abstract\":\"workspace:^3.3.0-dev.25\",\"@itwin/core-bentley\":\"workspace:^3.3.0-dev.25\",\"@itwin/core-common\":\"workspace:^3.3.0-dev.25\",\"@itwin/core-geometry\":\"workspace:^3.3.0-dev.25\",\"@itwin/core-orbitgt\":\"workspace:^3.3.0-dev.25\",\"@itwin/core-quantity\":\"workspace:^3.3.0-dev.25\",\"@itwin/webgl-compatibility\":\"workspace:^3.3.0-dev.25\"},\"//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\":\"workspace:*\",\"@itwin/webgl-compatibility\":\"workspace:*\",\"@types/chai\":\"^4.1.4\",\"@types/chai-as-promised\":\"^7\",\"@types/deep-assign\":\"^0.1.0\",\"@types/lodash\":\"^4.14.0\",\"@types/mocha\":\"^8.2.2\",\"@types/node\":\"16.11.7\",\"@types/qs\":\"^6.5.0\",\"@types/semver\":\"^5.5.0\",\"@types/superagent\":\"^4.1.14\",\"@types/sinon\":\"^9.0.0\",\"chai\":\"^4.1.2\",\"chai-as-promised\":\"^7\",\"cpx2\":\"^3.0.0\",\"eslint\":\"^7.11.0\",\"glob\":\"^7.1.2\",\"mocha\":\"^10.0.0\",\"nyc\":\"^15.1.0\",\"rimraf\":\"^3.0.2\",\"sinon\":\"^9.0.2\",\"source-map-loader\":\"^1.0.0\",\"typescript\":\"~4.4.0\",\"webpack\":\"4.42.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/core-i18n\":\"workspace:*\",\"@itwin/core-telemetry\":\"workspace:*\",\"@loaders.gl/core\":\"^3.1.6\",\"@loaders.gl/draco\":\"^3.1.6\",\"deep-assign\":\"^2.0.0\",\"fuse.js\":\"^3.3.0\",\"lodash\":\"^4.17.10\",\"qs\":\"^6.5.1\",\"semver\":\"^5.5.0\",\"superagent\":\"^7.0.1\",\"wms-capabilities\":\"0.4.0\",\"xml-js\":\"~1.6.11\"},\"nyc\":{\"extends\":\"./node_modules/@itwin/build-tools/.nycrc\"},\"eslintConfig\":{\"plugins\":[\"@itwin\"],\"extends\":\"plugin:@itwin/itwinjs-recommended\",\"rules\":{\"@itwin/no-internal-barrel-imports\":[\"error\",{\"required-barrel-modules\":[\"./src/tile/internal.ts\"]}],\"@itwin/public-extension-exports\":[\"error\",{\"releaseTags\":[\"public\",\"preview\"],\"outputApiFile\":false}]},\"overrides\":[{\"files\":[\"*.test.ts\",\"*.test.tsx\",\"**/test/**/*.ts\"],\"rules\":{\"@itwin/no-internal-barrel-imports\":\"off\"}}]}}");
171170
+ module.exports = JSON.parse("{\"name\":\"@itwin/core-frontend\",\"version\":\"3.3.0-dev.28\",\"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\",\"build:ci\":\"npm run -s build && npm run -s build:esm\",\"build:cjs\":\"tsc 1>&2 --outDir lib/cjs\",\"build:esm\":\"tsc 1>&2 --module ES2020 --outDir lib/esm\",\"clean\":\"rimraf lib .rush/temp/package-deps*.json\",\"copy:public\":\"cpx \\\"./src/public/**/*\\\" ./lib/public\",\"docs\":\"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/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-eslintrc -c \\\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\\" \\\"./src/**/*.ts\\\" 1>&2\",\"lint\":\"eslint -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\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend\"},\"keywords\":[\"Bentley\",\"BIM\",\"iModel\",\"digital-twin\",\"iTwin\"],\"author\":{\"name\":\"Bentley Systems, Inc.\",\"url\":\"http://www.bentley.com\"},\"peerDependencies\":{\"@itwin/appui-abstract\":\"workspace:^3.3.0-dev.28\",\"@itwin/core-bentley\":\"workspace:^3.3.0-dev.28\",\"@itwin/core-common\":\"workspace:^3.3.0-dev.28\",\"@itwin/core-geometry\":\"workspace:^3.3.0-dev.28\",\"@itwin/core-orbitgt\":\"workspace:^3.3.0-dev.28\",\"@itwin/core-quantity\":\"workspace:^3.3.0-dev.28\",\"@itwin/webgl-compatibility\":\"workspace:^3.3.0-dev.28\"},\"//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\":\"workspace:*\",\"@itwin/webgl-compatibility\":\"workspace:*\",\"@types/chai\":\"^4.1.4\",\"@types/chai-as-promised\":\"^7\",\"@types/deep-assign\":\"^0.1.0\",\"@types/lodash\":\"^4.14.0\",\"@types/mocha\":\"^8.2.2\",\"@types/node\":\"16.11.7\",\"@types/qs\":\"^6.5.0\",\"@types/semver\":\"^5.5.0\",\"@types/superagent\":\"^4.1.14\",\"@types/sinon\":\"^9.0.0\",\"chai\":\"^4.1.2\",\"chai-as-promised\":\"^7\",\"cpx2\":\"^3.0.0\",\"eslint\":\"^7.11.0\",\"glob\":\"^7.1.2\",\"mocha\":\"^10.0.0\",\"nyc\":\"^15.1.0\",\"rimraf\":\"^3.0.2\",\"sinon\":\"^9.0.2\",\"source-map-loader\":\"^1.0.0\",\"typescript\":\"~4.4.0\",\"webpack\":\"4.42.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/core-i18n\":\"workspace:*\",\"@itwin/core-telemetry\":\"workspace:*\",\"@loaders.gl/core\":\"^3.1.6\",\"@loaders.gl/draco\":\"^3.1.6\",\"deep-assign\":\"^2.0.0\",\"fuse.js\":\"^3.3.0\",\"lodash\":\"^4.17.10\",\"qs\":\"^6.5.1\",\"semver\":\"^5.5.0\",\"superagent\":\"^7.0.1\",\"wms-capabilities\":\"0.4.0\",\"xml-js\":\"~1.6.11\"},\"nyc\":{\"extends\":\"./node_modules/@itwin/build-tools/.nycrc\"},\"eslintConfig\":{\"plugins\":[\"@itwin\"],\"extends\":\"plugin:@itwin/itwinjs-recommended\",\"rules\":{\"@itwin/no-internal-barrel-imports\":[\"error\",{\"required-barrel-modules\":[\"./src/tile/internal.ts\"]}],\"@itwin/public-extension-exports\":[\"error\",{\"releaseTags\":[\"public\",\"preview\"],\"outputApiFile\":false}]},\"overrides\":[{\"files\":[\"*.test.ts\",\"*.test.tsx\",\"**/test/**/*.ts\"],\"rules\":{\"@itwin/no-internal-barrel-imports\":\"off\"}}]}}");
169972
171171
 
169973
171172
  /***/ }),
169974
171173
 
@@ -268632,7 +269831,7 @@ __webpack_require__.r(__webpack_exports__);
268632
269831
  /*!************************************************************************!*\
268633
269832
  !*** D:/vsts_a/1/s/presentation/common/lib/esm/presentation-common.js ***!
268634
269833
  \************************************************************************/
268635
- /*! exports provided: AsyncTasksTracker, DiagnosticsLogEntry, InstanceKey, ClassInfo, NavigationPropertyInfo, PropertyInfo, RelatedClassInfo, RelatedClassInfoWithOptionalRelationship, RelationshipPath, PresentationStatus, PresentationError, Key, KeySet, LabelCompositeValue, LabelDefinition, isSingleElementPropertiesRequestOptions, RegisteredRuleset, VariableValueTypes, RulesetVariable, RulesetsFactory, UPDATE_FULL, UpdateInfo, ExpandedNodeUpdateRecord, HierarchyUpdateRecord, HierarchyUpdateInfo, PartialHierarchyModification, HierarchyCompareInfo, getInstancesCount, DEFAULT_KEYS_BATCH_SIZE, PRESENTATION_COMMON_ROOT, PRESENTATION_IPC_CHANNEL_NAME, PresentationRpcInterface, PresentationIpcEvents, RpcRequestsHandler, CategoryDescription, Content, SelectClassInfo, ContentFlags, SortDirection, Descriptor, DefaultContentDisplayTypes, Field, PropertiesField, NestedContentField, getFieldByName, FieldDescriptorType, FieldDescriptor, Item, Property, PropertyValueFormat, Value, DisplayValue, NestedContentValue, DisplayValueGroup, traverseFieldHierarchy, traverseContent, traverseContentItem, createFieldHierarchies, addFieldHierarchy, FIELD_NAMES_SEPARATOR, applyOptionalPrefix, StandardNodeTypes, NodeKey, Node, NodePathElement, NodePathFilteringData, ChildNodeSpecificationTypes, QuerySpecificationTypes, GroupingSpecificationTypes, SameLabelInstanceGroupApplicationStage, PropertyGroupingValue, InstanceLabelOverrideValueSpecificationType, ContentSpecificationTypes, PropertyEditorParameterTypes, RelationshipMeaning, RelatedPropertiesSpecialValues, RelationshipDirection, RuleTypes, VariableValueType */
269834
+ /*! exports provided: AsyncTasksTracker, DiagnosticsLogEntry, InstanceKey, ClassInfo, NavigationPropertyInfo, PropertyInfo, RelatedClassInfo, RelatedClassInfoWithOptionalRelationship, RelationshipPath, PresentationStatus, PresentationError, Key, KeySet, LabelCompositeValue, LabelDefinition, isComputeSelectionRequestOptions, isSingleElementPropertiesRequestOptions, RegisteredRuleset, VariableValueTypes, RulesetVariable, RulesetsFactory, UPDATE_FULL, UpdateInfo, ExpandedNodeUpdateRecord, HierarchyUpdateRecord, HierarchyUpdateInfo, PartialHierarchyModification, HierarchyCompareInfo, getInstancesCount, DEFAULT_KEYS_BATCH_SIZE, PRESENTATION_COMMON_ROOT, PRESENTATION_IPC_CHANNEL_NAME, PresentationRpcInterface, PresentationIpcEvents, RpcRequestsHandler, CategoryDescription, Content, SelectClassInfo, ContentFlags, SortDirection, Descriptor, DefaultContentDisplayTypes, Field, PropertiesField, NestedContentField, getFieldByName, FieldDescriptorType, FieldDescriptor, Item, Property, PropertyValueFormat, Value, DisplayValue, NestedContentValue, DisplayValueGroup, traverseFieldHierarchy, traverseContent, traverseContentItem, createFieldHierarchies, addFieldHierarchy, FIELD_NAMES_SEPARATOR, applyOptionalPrefix, StandardNodeTypes, NodeKey, Node, NodePathElement, NodePathFilteringData, ChildNodeSpecificationTypes, QuerySpecificationTypes, GroupingSpecificationTypes, SameLabelInstanceGroupApplicationStage, PropertyGroupingValue, InstanceLabelOverrideValueSpecificationType, ContentSpecificationTypes, PropertyEditorParameterTypes, RelationshipMeaning, RelatedPropertiesSpecialValues, RelationshipDirection, RuleTypes, VariableValueType */
268636
269835
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
268637
269836
 
268638
269837
  "use strict";
@@ -268674,6 +269873,8 @@ __webpack_require__.r(__webpack_exports__);
268674
269873
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LabelDefinition", function() { return _presentation_common_LabelDefinition__WEBPACK_IMPORTED_MODULE_5__["LabelDefinition"]; });
268675
269874
 
268676
269875
  /* harmony import */ var _presentation_common_PresentationManagerOptions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./presentation-common/PresentationManagerOptions */ "../../presentation/common/lib/esm/presentation-common/PresentationManagerOptions.js");
269876
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isComputeSelectionRequestOptions", function() { return _presentation_common_PresentationManagerOptions__WEBPACK_IMPORTED_MODULE_6__["isComputeSelectionRequestOptions"]; });
269877
+
268677
269878
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isSingleElementPropertiesRequestOptions", function() { return _presentation_common_PresentationManagerOptions__WEBPACK_IMPORTED_MODULE_6__["isSingleElementPropertiesRequestOptions"]; });
268678
269879
 
268679
269880
  /* harmony import */ var _presentation_common_RegisteredRuleset__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./presentation-common/RegisteredRuleset */ "../../presentation/common/lib/esm/presentation-common/RegisteredRuleset.js");
@@ -270015,11 +271216,12 @@ const PRESENTATION_IPC_CHANNEL_NAME = "presentation-ipc-interface";
270015
271216
  /*!***************************************************************************************************!*\
270016
271217
  !*** D:/vsts_a/1/s/presentation/common/lib/esm/presentation-common/PresentationManagerOptions.js ***!
270017
271218
  \***************************************************************************************************/
270018
- /*! exports provided: isSingleElementPropertiesRequestOptions */
271219
+ /*! exports provided: isComputeSelectionRequestOptions, isSingleElementPropertiesRequestOptions */
270019
271220
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
270020
271221
 
270021
271222
  "use strict";
270022
271223
  __webpack_require__.r(__webpack_exports__);
271224
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isComputeSelectionRequestOptions", function() { return isComputeSelectionRequestOptions; });
270023
271225
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSingleElementPropertiesRequestOptions", function() { return isSingleElementPropertiesRequestOptions; });
270024
271226
  /*---------------------------------------------------------------------------------------------
270025
271227
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
@@ -270028,6 +271230,10 @@ __webpack_require__.r(__webpack_exports__);
270028
271230
  /** @packageDocumentation
270029
271231
  * @module Core
270030
271232
  */
271233
+ /** @internal */
271234
+ function isComputeSelectionRequestOptions(options) {
271235
+ return !!options.elementIds;
271236
+ }
270031
271237
  /**
270032
271238
  * Checks if supplied request options are for single or multiple element properties.
270033
271239
  * @beta
@@ -270088,13 +271294,12 @@ class PresentationRpcInterface extends _itwin_core_common__WEBPACK_IMPORTED_MODU
270088
271294
  async getDisplayLabelDefinition(_token, _options) { return this.forward(arguments); }
270089
271295
  async getPagedDisplayLabelDefinitions(_token, _options) { return this.forward(arguments); }
270090
271296
  async getSelectionScopes(_token, _options) { return this.forward(arguments); }
270091
- // TODO: need to enforce paging on this
270092
271297
  async computeSelection(_token, _options, _ids, _scopeId) { return this.forward(arguments); }
270093
271298
  }
270094
271299
  /** The immutable name of the interface. */
270095
271300
  PresentationRpcInterface.interfaceName = "PresentationRpcInterface"; // eslint-disable-line @typescript-eslint/naming-convention
270096
271301
  /** The semantic version of the interface. */
270097
- PresentationRpcInterface.interfaceVersion = "3.0.0";
271302
+ PresentationRpcInterface.interfaceVersion = "3.1.0";
270098
271303
  /** @alpha */
270099
271304
  var PresentationIpcEvents;
270100
271305
  (function (PresentationIpcEvents) {
@@ -270290,8 +271495,8 @@ class RpcRequestsHandler {
270290
271495
  async getSelectionScopes(options) {
270291
271496
  return this.request(this.rpcClient.getSelectionScopes.bind(this.rpcClient), options);
270292
271497
  }
270293
- async computeSelection(options, ids, scopeId) {
270294
- return this.request(this.rpcClient.computeSelection.bind(this.rpcClient), options, ids, scopeId);
271498
+ async computeSelection(options) {
271499
+ return this.request(this.rpcClient.computeSelection.bind(this.rpcClient), options);
270295
271500
  }
270296
271501
  }
270297
271502
  function isOptionsWithRuleset(options) {
@@ -273965,7 +275170,7 @@ __webpack_require__.r(__webpack_exports__);
273965
275170
  /*!****************************************************************************!*\
273966
275171
  !*** D:/vsts_a/1/s/presentation/frontend/lib/esm/presentation-frontend.js ***!
273967
275172
  \****************************************************************************/
273968
- /*! exports provided: Presentation, PresentationManager, buildPagedArrayResponse, RulesetManagerImpl, RulesetVariablesManagerImpl, FavoritePropertiesScope, FavoritePropertiesManager, getFieldInfos, createFieldOrderInfos, IMODELJS_PRESENTATION_SETTING_NAMESPACE, DEPRECATED_PROPERTIES_SETTING_NAMESPACE, FAVORITE_PROPERTIES_SETTING_NAME, FAVORITE_PROPERTIES_ORDER_INFO_SETTING_NAME, DefaultFavoritePropertiesStorageTypes, createFavoritePropertiesStorage, IModelAppFavoritePropertiesStorage, OfflineCachingFavoritePropertiesStorage, NoopFavoritePropertiesStorage, BrowserLocalFavoritePropertiesStorage, StateTracker, consoleDiagnosticsHandler, createCombinedDiagnosticsHandler, PresentationFrontendLoggerCategory, SelectionChangeEvent, SelectionChangeType, SelectionManager, TRANSIENT_ELEMENT_CLASSNAME, ToolSelectionSyncHandler, SelectionScopesManager, getScopeId, SelectionHandler, HILITE_RULESET, HiliteSetProvider, SelectionHelper */
275173
+ /*! exports provided: Presentation, PresentationManager, buildPagedArrayResponse, RulesetManagerImpl, RulesetVariablesManagerImpl, FavoritePropertiesScope, FavoritePropertiesManager, getFieldInfos, createFieldOrderInfos, IMODELJS_PRESENTATION_SETTING_NAMESPACE, DEPRECATED_PROPERTIES_SETTING_NAMESPACE, FAVORITE_PROPERTIES_SETTING_NAME, FAVORITE_PROPERTIES_ORDER_INFO_SETTING_NAME, DefaultFavoritePropertiesStorageTypes, createFavoritePropertiesStorage, IModelAppFavoritePropertiesStorage, OfflineCachingFavoritePropertiesStorage, NoopFavoritePropertiesStorage, BrowserLocalFavoritePropertiesStorage, StateTracker, consoleDiagnosticsHandler, createCombinedDiagnosticsHandler, PresentationFrontendLoggerCategory, SelectionChangeEvent, SelectionChangeType, SelectionManager, TRANSIENT_ELEMENT_CLASSNAME, ToolSelectionSyncHandler, SelectionScopesManager, createSelectionScopeProps, getScopeId, SelectionHandler, HILITE_RULESET, HiliteSetProvider, SelectionHelper */
273969
275174
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
273970
275175
 
273971
275176
  "use strict";
@@ -274041,6 +275246,8 @@ __webpack_require__.r(__webpack_exports__);
274041
275246
  /* harmony import */ var _presentation_frontend_selection_SelectionScopesManager__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./presentation-frontend/selection/SelectionScopesManager */ "../../presentation/frontend/lib/esm/presentation-frontend/selection/SelectionScopesManager.js");
274042
275247
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectionScopesManager", function() { return _presentation_frontend_selection_SelectionScopesManager__WEBPACK_IMPORTED_MODULE_12__["SelectionScopesManager"]; });
274043
275248
 
275249
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createSelectionScopeProps", function() { return _presentation_frontend_selection_SelectionScopesManager__WEBPACK_IMPORTED_MODULE_12__["createSelectionScopeProps"]; });
275250
+
274044
275251
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getScopeId", function() { return _presentation_frontend_selection_SelectionScopesManager__WEBPACK_IMPORTED_MODULE_12__["getScopeId"]; });
274045
275252
 
274046
275253
  /* harmony import */ var _presentation_frontend_selection_SelectionHandler__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./presentation-frontend/selection/SelectionHandler */ "../../presentation/frontend/lib/esm/presentation-frontend/selection/SelectionHandler.js");
@@ -276915,12 +278122,11 @@ class ToolSelectionSyncHandler {
276915
278122
  ids = ev.removed;
276916
278123
  break;
276917
278124
  }
276918
- const scopeId = Object(_SelectionScopesManager__WEBPACK_IMPORTED_MODULE_5__["getScopeId"])(this._logicalSelection.scopes.activeScope);
276919
278125
  // we're always using scoped selection changer even if the scope is set to "element" - that
276920
278126
  // makes sure we're adding to selection keys with concrete classes and not "BisCore:Element", which
276921
278127
  // we can't because otherwise our keys compare fails (presentation components load data with
276922
278128
  // concrete classes)
276923
- const changer = new ScopedSelectionChanger(this._selectionSourceName, this._imodel, this._logicalSelection, scopeId);
278129
+ const changer = new ScopedSelectionChanger(this._selectionSourceName, this._imodel, this._logicalSelection, Object(_SelectionScopesManager__WEBPACK_IMPORTED_MODULE_5__["createSelectionScopeProps"])(this._logicalSelection.scopes.activeScope));
276924
278130
  // we know what to do immediately on `clear` events
276925
278131
  if (_itwin_core_frontend__WEBPACK_IMPORTED_MODULE_1__["SelectionSetEventType"].Clear === ev.type) {
276926
278132
  await changer.clear(selectionLevel);
@@ -277020,12 +278226,13 @@ class ScopedSelectionChanger {
277020
278226
  /*!*************************************************************************************************************!*\
277021
278227
  !*** D:/vsts_a/1/s/presentation/frontend/lib/esm/presentation-frontend/selection/SelectionScopesManager.js ***!
277022
278228
  \*************************************************************************************************************/
277023
- /*! exports provided: SelectionScopesManager, getScopeId */
278229
+ /*! exports provided: SelectionScopesManager, createSelectionScopeProps, getScopeId */
277024
278230
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
277025
278231
 
277026
278232
  "use strict";
277027
278233
  __webpack_require__.r(__webpack_exports__);
277028
278234
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectionScopesManager", function() { return SelectionScopesManager; });
278235
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createSelectionScopeProps", function() { return createSelectionScopeProps; });
277029
278236
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getScopeId", function() { return getScopeId; });
277030
278237
  /* harmony import */ var _itwin_presentation_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/presentation-common */ "../../presentation/common/lib/esm/presentation-common.js");
277031
278238
  /*---------------------------------------------------------------------------------------------
@@ -277068,7 +278275,7 @@ class SelectionScopesManager {
277068
278275
  * @param scope Selection scope to apply
277069
278276
  */
277070
278277
  async computeSelection(imodel, ids, scope) {
277071
- const scopeId = getScopeId(scope);
278278
+ const scopeProps = createSelectionScopeProps(scope);
277072
278279
  // convert ids input to array
277073
278280
  if (typeof ids === "string")
277074
278281
  ids = [ids];
@@ -277083,24 +278290,35 @@ class SelectionScopesManager {
277083
278290
  const batchStart = batchSize * batchIndex;
277084
278291
  const batchEnd = (batchStart + batchSize > ids.length) ? ids.length : (batchStart + batchSize);
277085
278292
  const batchIds = (0 === batchIndex && ids.length <= batchEnd) ? ids : ids.slice(batchStart, batchEnd);
277086
- batchKeyPromises.push(this._rpcRequestsHandler.computeSelection({ imodel: imodel.getRpcProps() }, batchIds, scopeId));
278293
+ batchKeyPromises.push(this._rpcRequestsHandler.computeSelection({ imodel: imodel.getRpcProps(), elementIds: batchIds, scope: scopeProps }));
277087
278294
  }
277088
278295
  const batchKeys = (await Promise.all(batchKeyPromises)).map(_itwin_presentation_common__WEBPACK_IMPORTED_MODULE_0__["KeySet"].fromJSON);
277089
278296
  batchKeys.forEach((bk) => keys.add(bk));
277090
278297
  return keys;
277091
278298
  }
277092
278299
  }
278300
+ /**
278301
+ * Normalizes given scope options and returns [[ComputeSelectionScopeProps]] that can be used for
278302
+ * calculating selection with scope.
278303
+ *
278304
+ * @internal
278305
+ */
278306
+ function createSelectionScopeProps(scope) {
278307
+ if (!scope)
278308
+ return { id: "element" };
278309
+ if (typeof scope === "string")
278310
+ return { id: scope };
278311
+ return scope;
278312
+ }
277093
278313
  /**
277094
278314
  * Determines the scope id
277095
278315
  * @param scope Selection scope
277096
278316
  * @public
278317
+ * @deprecated This is an internal utility that should've never become public.
277097
278318
  */
278319
+ // istanbul ignore next
277098
278320
  function getScopeId(scope) {
277099
- if (!scope)
277100
- return "element";
277101
- if (typeof scope === "string")
277102
- return scope;
277103
- return scope.id;
278321
+ return createSelectionScopeProps(scope).id;
277104
278322
  }
277105
278323
 
277106
278324
 
@@ -283420,7 +284638,7 @@ class TestContext {
283420
284638
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
283421
284639
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${(_a = process.env.IMJS_URL_PREFIX) !== null && _a !== void 0 ? _a : ""}api.bentley.com/imodels` } });
283422
284640
  await core_frontend_1.NoRenderApp.startup({
283423
- applicationVersion: "3.3.0-dev.25",
284641
+ applicationVersion: "3.3.0-dev.28",
283424
284642
  applicationId: this.settings.gprid,
283425
284643
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
283426
284644
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),