@itwin/ecschema-rpcinterface-tests 3.3.0-dev.24 → 3.3.0-dev.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/dist/bundled-tests.js +1255 -40
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +16 -16
|
@@ -39546,6 +39546,1209 @@ module.exports = function(xml, userOptions) {
|
|
|
39546
39546
|
};
|
|
39547
39547
|
|
|
39548
39548
|
|
|
39549
|
+
/***/ }),
|
|
39550
|
+
|
|
39551
|
+
/***/ "../../core/bentley/lib/cjs/BeSQLite.js":
|
|
39552
|
+
/*!******************************************************!*\
|
|
39553
|
+
!*** D:/vsts_a/1/s/core/bentley/lib/cjs/BeSQLite.js ***!
|
|
39554
|
+
\******************************************************/
|
|
39555
|
+
/*! no static exports found */
|
|
39556
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
39557
|
+
|
|
39558
|
+
"use strict";
|
|
39559
|
+
|
|
39560
|
+
/*---------------------------------------------------------------------------------------------
|
|
39561
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
39562
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
39563
|
+
*--------------------------------------------------------------------------------------------*/
|
|
39564
|
+
/** @packageDocumentation
|
|
39565
|
+
* @module BeSQLite
|
|
39566
|
+
*/
|
|
39567
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39568
|
+
exports.DbResult = exports.DbOpcode = exports.OpenMode = void 0;
|
|
39569
|
+
/** Whether to open a database readonly or writeable.
|
|
39570
|
+
* @public
|
|
39571
|
+
*/
|
|
39572
|
+
var OpenMode;
|
|
39573
|
+
(function (OpenMode) {
|
|
39574
|
+
OpenMode[OpenMode["Readonly"] = 1] = "Readonly";
|
|
39575
|
+
OpenMode[OpenMode["ReadWrite"] = 2] = "ReadWrite";
|
|
39576
|
+
})(OpenMode = exports.OpenMode || (exports.OpenMode = {}));
|
|
39577
|
+
/** Values, stored in changesets, that indicate what operation was performed on the database.
|
|
39578
|
+
* @public
|
|
39579
|
+
*/
|
|
39580
|
+
var DbOpcode;
|
|
39581
|
+
(function (DbOpcode) {
|
|
39582
|
+
/** A row was deleted. */
|
|
39583
|
+
DbOpcode[DbOpcode["Delete"] = 9] = "Delete";
|
|
39584
|
+
/** A new row was inserted. */
|
|
39585
|
+
DbOpcode[DbOpcode["Insert"] = 18] = "Insert";
|
|
39586
|
+
/** Some columns of an existing row were updated. */
|
|
39587
|
+
DbOpcode[DbOpcode["Update"] = 23] = "Update";
|
|
39588
|
+
})(DbOpcode = exports.DbOpcode || (exports.DbOpcode = {}));
|
|
39589
|
+
/** Values for return codes from BeSQLite functions. Consult SQLite documentation for further explanations.
|
|
39590
|
+
* @public
|
|
39591
|
+
*/
|
|
39592
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
39593
|
+
// Disabling for the rest of the file since eslint does not correctly parse the entire enum, only parts of it
|
|
39594
|
+
var DbResult;
|
|
39595
|
+
(function (DbResult) {
|
|
39596
|
+
/** Success */
|
|
39597
|
+
DbResult[DbResult["BE_SQLITE_OK"] = 0] = "BE_SQLITE_OK";
|
|
39598
|
+
/** SQL error or missing database */
|
|
39599
|
+
DbResult[DbResult["BE_SQLITE_ERROR"] = 1] = "BE_SQLITE_ERROR";
|
|
39600
|
+
/** Internal logic error */
|
|
39601
|
+
DbResult[DbResult["BE_SQLITE_INTERNAL"] = 2] = "BE_SQLITE_INTERNAL";
|
|
39602
|
+
/** Access permission denied */
|
|
39603
|
+
DbResult[DbResult["BE_SQLITE_PERM"] = 3] = "BE_SQLITE_PERM";
|
|
39604
|
+
/** Callback routine requested an abort */
|
|
39605
|
+
DbResult[DbResult["BE_SQLITE_ABORT"] = 4] = "BE_SQLITE_ABORT";
|
|
39606
|
+
/** The database file is locked */
|
|
39607
|
+
DbResult[DbResult["BE_SQLITE_BUSY"] = 5] = "BE_SQLITE_BUSY";
|
|
39608
|
+
/** A table in the database is locked */
|
|
39609
|
+
DbResult[DbResult["BE_SQLITE_LOCKED"] = 6] = "BE_SQLITE_LOCKED";
|
|
39610
|
+
/** A malloc() failed */
|
|
39611
|
+
DbResult[DbResult["BE_SQLITE_NOMEM"] = 7] = "BE_SQLITE_NOMEM";
|
|
39612
|
+
/** Attempt to write a readonly database */
|
|
39613
|
+
DbResult[DbResult["BE_SQLITE_READONLY"] = 8] = "BE_SQLITE_READONLY";
|
|
39614
|
+
/** Operation terminated by interrupt */
|
|
39615
|
+
DbResult[DbResult["BE_SQLITE_INTERRUPT"] = 9] = "BE_SQLITE_INTERRUPT";
|
|
39616
|
+
/** Some kind of disk I/O error occurred */
|
|
39617
|
+
DbResult[DbResult["BE_SQLITE_IOERR"] = 10] = "BE_SQLITE_IOERR";
|
|
39618
|
+
/** The database disk image is malformed */
|
|
39619
|
+
DbResult[DbResult["BE_SQLITE_CORRUPT"] = 11] = "BE_SQLITE_CORRUPT";
|
|
39620
|
+
/** NOT USED. Table or record not found */
|
|
39621
|
+
DbResult[DbResult["BE_SQLITE_NOTFOUND"] = 12] = "BE_SQLITE_NOTFOUND";
|
|
39622
|
+
/** Insertion failed because database is full or write operation failed because disk is full */
|
|
39623
|
+
DbResult[DbResult["BE_SQLITE_FULL"] = 13] = "BE_SQLITE_FULL";
|
|
39624
|
+
/** Unable to open the database file */
|
|
39625
|
+
DbResult[DbResult["BE_SQLITE_CANTOPEN"] = 14] = "BE_SQLITE_CANTOPEN";
|
|
39626
|
+
/** Database lock protocol error */
|
|
39627
|
+
DbResult[DbResult["BE_SQLITE_PROTOCOL"] = 15] = "BE_SQLITE_PROTOCOL";
|
|
39628
|
+
/** Database is empty */
|
|
39629
|
+
DbResult[DbResult["BE_SQLITE_EMPTY"] = 16] = "BE_SQLITE_EMPTY";
|
|
39630
|
+
/** The database schema changed */
|
|
39631
|
+
DbResult[DbResult["BE_SQLITE_SCHEMA"] = 17] = "BE_SQLITE_SCHEMA";
|
|
39632
|
+
/** String or BLOB exceeds size limit */
|
|
39633
|
+
DbResult[DbResult["BE_SQLITE_TOOBIG"] = 18] = "BE_SQLITE_TOOBIG";
|
|
39634
|
+
/** Abort due to constraint violation. See extended error values. */
|
|
39635
|
+
DbResult[DbResult["BE_SQLITE_CONSTRAINT_BASE"] = 19] = "BE_SQLITE_CONSTRAINT_BASE";
|
|
39636
|
+
/** Data type mismatch */
|
|
39637
|
+
DbResult[DbResult["BE_SQLITE_MISMATCH"] = 20] = "BE_SQLITE_MISMATCH";
|
|
39638
|
+
/** Library used incorrectly */
|
|
39639
|
+
DbResult[DbResult["BE_SQLITE_MISUSE"] = 21] = "BE_SQLITE_MISUSE";
|
|
39640
|
+
/** Uses OS features not supported on host */
|
|
39641
|
+
DbResult[DbResult["BE_SQLITE_NOLFS"] = 22] = "BE_SQLITE_NOLFS";
|
|
39642
|
+
/** Authorization denied */
|
|
39643
|
+
DbResult[DbResult["BE_SQLITE_AUTH"] = 23] = "BE_SQLITE_AUTH";
|
|
39644
|
+
/** Auxiliary database format error */
|
|
39645
|
+
DbResult[DbResult["BE_SQLITE_FORMAT"] = 24] = "BE_SQLITE_FORMAT";
|
|
39646
|
+
/** 2nd parameter to Bind out of range */
|
|
39647
|
+
DbResult[DbResult["BE_SQLITE_RANGE"] = 25] = "BE_SQLITE_RANGE";
|
|
39648
|
+
/** File opened that is not a database file */
|
|
39649
|
+
DbResult[DbResult["BE_SQLITE_NOTADB"] = 26] = "BE_SQLITE_NOTADB";
|
|
39650
|
+
/** Step() has another row ready */
|
|
39651
|
+
DbResult[DbResult["BE_SQLITE_ROW"] = 100] = "BE_SQLITE_ROW";
|
|
39652
|
+
/** Step() has finished executing */
|
|
39653
|
+
DbResult[DbResult["BE_SQLITE_DONE"] = 101] = "BE_SQLITE_DONE";
|
|
39654
|
+
DbResult[DbResult["BE_SQLITE_IOERR_READ"] = 266] = "BE_SQLITE_IOERR_READ";
|
|
39655
|
+
DbResult[DbResult["BE_SQLITE_IOERR_SHORT_READ"] = 522] = "BE_SQLITE_IOERR_SHORT_READ";
|
|
39656
|
+
DbResult[DbResult["BE_SQLITE_IOERR_WRITE"] = 778] = "BE_SQLITE_IOERR_WRITE";
|
|
39657
|
+
DbResult[DbResult["BE_SQLITE_IOERR_FSYNC"] = 1034] = "BE_SQLITE_IOERR_FSYNC";
|
|
39658
|
+
DbResult[DbResult["BE_SQLITE_IOERR_DIR_FSYNC"] = 1290] = "BE_SQLITE_IOERR_DIR_FSYNC";
|
|
39659
|
+
DbResult[DbResult["BE_SQLITE_IOERR_TRUNCATE"] = 1546] = "BE_SQLITE_IOERR_TRUNCATE";
|
|
39660
|
+
DbResult[DbResult["BE_SQLITE_IOERR_FSTAT"] = 1802] = "BE_SQLITE_IOERR_FSTAT";
|
|
39661
|
+
DbResult[DbResult["BE_SQLITE_IOERR_UNLOCK"] = 2058] = "BE_SQLITE_IOERR_UNLOCK";
|
|
39662
|
+
DbResult[DbResult["BE_SQLITE_IOERR_RDLOCK"] = 2314] = "BE_SQLITE_IOERR_RDLOCK";
|
|
39663
|
+
DbResult[DbResult["BE_SQLITE_IOERR_DELETE"] = 2570] = "BE_SQLITE_IOERR_DELETE";
|
|
39664
|
+
DbResult[DbResult["BE_SQLITE_IOERR_BLOCKED"] = 2826] = "BE_SQLITE_IOERR_BLOCKED";
|
|
39665
|
+
DbResult[DbResult["BE_SQLITE_IOERR_NOMEM"] = 3082] = "BE_SQLITE_IOERR_NOMEM";
|
|
39666
|
+
DbResult[DbResult["BE_SQLITE_IOERR_ACCESS"] = 3338] = "BE_SQLITE_IOERR_ACCESS";
|
|
39667
|
+
DbResult[DbResult["BE_SQLITE_IOERR_CHECKRESERVEDLOCK"] = 3594] = "BE_SQLITE_IOERR_CHECKRESERVEDLOCK";
|
|
39668
|
+
DbResult[DbResult["BE_SQLITE_IOERR_LOCK"] = 3850] = "BE_SQLITE_IOERR_LOCK";
|
|
39669
|
+
DbResult[DbResult["BE_SQLITE_IOERR_CLOSE"] = 4106] = "BE_SQLITE_IOERR_CLOSE";
|
|
39670
|
+
DbResult[DbResult["BE_SQLITE_IOERR_DIR_CLOSE"] = 4362] = "BE_SQLITE_IOERR_DIR_CLOSE";
|
|
39671
|
+
DbResult[DbResult["BE_SQLITE_IOERR_SHMOPEN"] = 4618] = "BE_SQLITE_IOERR_SHMOPEN";
|
|
39672
|
+
DbResult[DbResult["BE_SQLITE_IOERR_SHMSIZE"] = 4874] = "BE_SQLITE_IOERR_SHMSIZE";
|
|
39673
|
+
DbResult[DbResult["BE_SQLITE_IOERR_SHMLOCK"] = 5130] = "BE_SQLITE_IOERR_SHMLOCK";
|
|
39674
|
+
DbResult[DbResult["BE_SQLITE_IOERR_SHMMAP"] = 5386] = "BE_SQLITE_IOERR_SHMMAP";
|
|
39675
|
+
DbResult[DbResult["BE_SQLITE_IOERR_SEEK"] = 5642] = "BE_SQLITE_IOERR_SEEK";
|
|
39676
|
+
DbResult[DbResult["BE_SQLITE_IOERR_DELETE_NOENT"] = 5898] = "BE_SQLITE_IOERR_DELETE_NOENT";
|
|
39677
|
+
/** attempt to create a new file when a file by that name already exists */
|
|
39678
|
+
DbResult[DbResult["BE_SQLITE_ERROR_FileExists"] = 16777226] = "BE_SQLITE_ERROR_FileExists";
|
|
39679
|
+
/** attempt to open a BeSQLite::Db that is already in use somewhere. */
|
|
39680
|
+
DbResult[DbResult["BE_SQLITE_ERROR_AlreadyOpen"] = 33554442] = "BE_SQLITE_ERROR_AlreadyOpen";
|
|
39681
|
+
/** attempt to open a BeSQLite::Db that doesn't have a property table. */
|
|
39682
|
+
DbResult[DbResult["BE_SQLITE_ERROR_NoPropertyTable"] = 50331658] = "BE_SQLITE_ERROR_NoPropertyTable";
|
|
39683
|
+
/** the database name is not a file. */
|
|
39684
|
+
DbResult[DbResult["BE_SQLITE_ERROR_FileNotFound"] = 67108874] = "BE_SQLITE_ERROR_FileNotFound";
|
|
39685
|
+
/** there is no transaction active and the database was opened with AllowImplicitTransactions=false */
|
|
39686
|
+
DbResult[DbResult["BE_SQLITE_ERROR_NoTxnActive"] = 83886090] = "BE_SQLITE_ERROR_NoTxnActive";
|
|
39687
|
+
/** wrong BeSQLite profile version */
|
|
39688
|
+
DbResult[DbResult["BE_SQLITE_ERROR_BadDbProfile"] = 100663306] = "BE_SQLITE_ERROR_BadDbProfile";
|
|
39689
|
+
/** Profile of file could not be determined. */
|
|
39690
|
+
DbResult[DbResult["BE_SQLITE_ERROR_InvalidProfileVersion"] = 117440522] = "BE_SQLITE_ERROR_InvalidProfileVersion";
|
|
39691
|
+
/** Upgrade of profile of file failed. */
|
|
39692
|
+
DbResult[DbResult["BE_SQLITE_ERROR_ProfileUpgradeFailed"] = 134217738] = "BE_SQLITE_ERROR_ProfileUpgradeFailed";
|
|
39693
|
+
/** Profile of file is too old. Therefore file can only be opened read-only. */
|
|
39694
|
+
DbResult[DbResult["BE_SQLITE_ERROR_ProfileTooOldForReadWrite"] = 150994954] = "BE_SQLITE_ERROR_ProfileTooOldForReadWrite";
|
|
39695
|
+
/** Profile of file is too old. Therefore file cannot be opened. */
|
|
39696
|
+
DbResult[DbResult["BE_SQLITE_ERROR_ProfileTooOld"] = 167772170] = "BE_SQLITE_ERROR_ProfileTooOld";
|
|
39697
|
+
/** Profile of file is too new for read-write access. Therefore file can only be opened read-only. */
|
|
39698
|
+
DbResult[DbResult["BE_SQLITE_ERROR_ProfileTooNewForReadWrite"] = 184549386] = "BE_SQLITE_ERROR_ProfileTooNewForReadWrite";
|
|
39699
|
+
/** Profile of file is too new. Therefore file cannot be opened. */
|
|
39700
|
+
DbResult[DbResult["BE_SQLITE_ERROR_ProfileTooNew"] = 201326602] = "BE_SQLITE_ERROR_ProfileTooNew";
|
|
39701
|
+
/** attempt to commit with active changetrack */
|
|
39702
|
+
DbResult[DbResult["BE_SQLITE_ERROR_ChangeTrackError"] = 218103818] = "BE_SQLITE_ERROR_ChangeTrackError";
|
|
39703
|
+
/** invalid version of the revision file is being imported */
|
|
39704
|
+
DbResult[DbResult["BE_SQLITE_ERROR_InvalidChangeSetVersion"] = 234881034] = "BE_SQLITE_ERROR_InvalidChangeSetVersion";
|
|
39705
|
+
/** The schemas found in the database need to be upgraded */
|
|
39706
|
+
DbResult[DbResult["BE_SQLITE_ERROR_SchemaUpgradeRequired"] = 251658250] = "BE_SQLITE_ERROR_SchemaUpgradeRequired";
|
|
39707
|
+
/** The schemas found in the database are too new, and the application needs to be upgraded. */
|
|
39708
|
+
DbResult[DbResult["BE_SQLITE_ERROR_SchemaTooNew"] = 268435466] = "BE_SQLITE_ERROR_SchemaTooNew";
|
|
39709
|
+
/** The schemas found in the database are too old, and the DgnDb needs to be upgraded. */
|
|
39710
|
+
DbResult[DbResult["BE_SQLITE_ERROR_SchemaTooOld"] = 285212682] = "BE_SQLITE_ERROR_SchemaTooOld";
|
|
39711
|
+
/** Error acquiring a lock on the schemas before upgrade. */
|
|
39712
|
+
DbResult[DbResult["BE_SQLITE_ERROR_SchemaLockFailed"] = 301989898] = "BE_SQLITE_ERROR_SchemaLockFailed";
|
|
39713
|
+
/** Error upgrading the schemas in the database. */
|
|
39714
|
+
DbResult[DbResult["BE_SQLITE_ERROR_SchemaUpgradeFailed"] = 318767114] = "BE_SQLITE_ERROR_SchemaUpgradeFailed";
|
|
39715
|
+
/** Error importing the schemas into the database. */
|
|
39716
|
+
DbResult[DbResult["BE_SQLITE_ERROR_SchemaImportFailed"] = 335544330] = "BE_SQLITE_ERROR_SchemaImportFailed";
|
|
39717
|
+
/** Error acquiring locks or codes */
|
|
39718
|
+
DbResult[DbResult["BE_SQLITE_ERROR_CouldNotAcquireLocksOrCodes"] = 352321546] = "BE_SQLITE_ERROR_CouldNotAcquireLocksOrCodes";
|
|
39719
|
+
/** Recommended that the schemas found in the database be upgraded */
|
|
39720
|
+
DbResult[DbResult["BE_SQLITE_ERROR_SchemaUpgradeRecommended"] = 369098762] = "BE_SQLITE_ERROR_SchemaUpgradeRecommended";
|
|
39721
|
+
DbResult[DbResult["BE_SQLITE_LOCKED_SHAREDCACHE"] = 262] = "BE_SQLITE_LOCKED_SHAREDCACHE";
|
|
39722
|
+
DbResult[DbResult["BE_SQLITE_BUSY_RECOVERY"] = 261] = "BE_SQLITE_BUSY_RECOVERY";
|
|
39723
|
+
DbResult[DbResult["BE_SQLITE_CANTOPEN_NOTEMPDIR"] = 270] = "BE_SQLITE_CANTOPEN_NOTEMPDIR";
|
|
39724
|
+
DbResult[DbResult["BE_SQLITE_CANTOPEN_ISDIR"] = 526] = "BE_SQLITE_CANTOPEN_ISDIR";
|
|
39725
|
+
DbResult[DbResult["BE_SQLITE_CANTOPEN_FULLPATH"] = 782] = "BE_SQLITE_CANTOPEN_FULLPATH";
|
|
39726
|
+
DbResult[DbResult["BE_SQLITE_CORRUPT_VTAB"] = 267] = "BE_SQLITE_CORRUPT_VTAB";
|
|
39727
|
+
DbResult[DbResult["BE_SQLITE_READONLY_RECOVERY"] = 264] = "BE_SQLITE_READONLY_RECOVERY";
|
|
39728
|
+
DbResult[DbResult["BE_SQLITE_READONLY_CANTLOCK"] = 520] = "BE_SQLITE_READONLY_CANTLOCK";
|
|
39729
|
+
DbResult[DbResult["BE_SQLITE_READONLY_ROLLBACK"] = 776] = "BE_SQLITE_READONLY_ROLLBACK";
|
|
39730
|
+
DbResult[DbResult["BE_SQLITE_ABORT_ROLLBACK"] = 516] = "BE_SQLITE_ABORT_ROLLBACK";
|
|
39731
|
+
DbResult[DbResult["BE_SQLITE_CONSTRAINT_CHECK"] = 275] = "BE_SQLITE_CONSTRAINT_CHECK";
|
|
39732
|
+
DbResult[DbResult["BE_SQLITE_CONSTRAINT_COMMITHOOK"] = 531] = "BE_SQLITE_CONSTRAINT_COMMITHOOK";
|
|
39733
|
+
DbResult[DbResult["BE_SQLITE_CONSTRAINT_FOREIGNKEY"] = 787] = "BE_SQLITE_CONSTRAINT_FOREIGNKEY";
|
|
39734
|
+
DbResult[DbResult["BE_SQLITE_CONSTRAINT_FUNCTION"] = 1043] = "BE_SQLITE_CONSTRAINT_FUNCTION";
|
|
39735
|
+
DbResult[DbResult["BE_SQLITE_CONSTRAINT_NOTNULL"] = 1299] = "BE_SQLITE_CONSTRAINT_NOTNULL";
|
|
39736
|
+
DbResult[DbResult["BE_SQLITE_CONSTRAINT_PRIMARYKEY"] = 1555] = "BE_SQLITE_CONSTRAINT_PRIMARYKEY";
|
|
39737
|
+
DbResult[DbResult["BE_SQLITE_CONSTRAINT_TRIGGER"] = 1811] = "BE_SQLITE_CONSTRAINT_TRIGGER";
|
|
39738
|
+
DbResult[DbResult["BE_SQLITE_CONSTRAINT_UNIQUE"] = 2067] = "BE_SQLITE_CONSTRAINT_UNIQUE";
|
|
39739
|
+
DbResult[DbResult["BE_SQLITE_CONSTRAINT_VTAB"] = 2323] = "BE_SQLITE_CONSTRAINT_VTAB";
|
|
39740
|
+
})(DbResult = exports.DbResult || (exports.DbResult = {}));
|
|
39741
|
+
/* eslint-enable @typescript-eslint/naming-convention */
|
|
39742
|
+
|
|
39743
|
+
|
|
39744
|
+
/***/ }),
|
|
39745
|
+
|
|
39746
|
+
/***/ "../../core/bentley/lib/cjs/BentleyError.js":
|
|
39747
|
+
/*!**********************************************************!*\
|
|
39748
|
+
!*** D:/vsts_a/1/s/core/bentley/lib/cjs/BentleyError.js ***!
|
|
39749
|
+
\**********************************************************/
|
|
39750
|
+
/*! no static exports found */
|
|
39751
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
39752
|
+
|
|
39753
|
+
"use strict";
|
|
39754
|
+
|
|
39755
|
+
/*---------------------------------------------------------------------------------------------
|
|
39756
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
39757
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
39758
|
+
*--------------------------------------------------------------------------------------------*/
|
|
39759
|
+
/** @packageDocumentation
|
|
39760
|
+
* @module Errors
|
|
39761
|
+
*/
|
|
39762
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39763
|
+
exports.BentleyError = exports.RealityDataStatus = exports.GeoServiceStatus = exports.IModelHubStatus = exports.HttpStatus = exports.RepositoryStatus = exports.ChangeSetStatus = exports.RpcInterfaceStatus = exports.BriefcaseStatus = exports.IModelStatus = exports.BentleyStatus = void 0;
|
|
39764
|
+
const BeSQLite_1 = __webpack_require__(/*! ./BeSQLite */ "../../core/bentley/lib/cjs/BeSQLite.js");
|
|
39765
|
+
/** Standard status code.
|
|
39766
|
+
* This status code should be rarely used.
|
|
39767
|
+
* Prefer to throw an exception to indicate an error, rather than returning a special status code.
|
|
39768
|
+
* If a status code is to be returned, prefer to return a more specific error status type such as IModelStatus or DbResult.
|
|
39769
|
+
* @public
|
|
39770
|
+
*/
|
|
39771
|
+
var BentleyStatus;
|
|
39772
|
+
(function (BentleyStatus) {
|
|
39773
|
+
BentleyStatus[BentleyStatus["SUCCESS"] = 0] = "SUCCESS";
|
|
39774
|
+
BentleyStatus[BentleyStatus["ERROR"] = 32768] = "ERROR";
|
|
39775
|
+
})(BentleyStatus = exports.BentleyStatus || (exports.BentleyStatus = {}));
|
|
39776
|
+
/** Status codes that are used in conjunction with [[BentleyError]].
|
|
39777
|
+
* 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.
|
|
39778
|
+
* @public
|
|
39779
|
+
*/
|
|
39780
|
+
var IModelStatus;
|
|
39781
|
+
(function (IModelStatus) {
|
|
39782
|
+
IModelStatus[IModelStatus["IMODEL_ERROR_BASE"] = 65536] = "IMODEL_ERROR_BASE";
|
|
39783
|
+
IModelStatus[IModelStatus["Success"] = 0] = "Success";
|
|
39784
|
+
IModelStatus[IModelStatus["AlreadyLoaded"] = 65537] = "AlreadyLoaded";
|
|
39785
|
+
IModelStatus[IModelStatus["AlreadyOpen"] = 65538] = "AlreadyOpen";
|
|
39786
|
+
IModelStatus[IModelStatus["BadArg"] = 65539] = "BadArg";
|
|
39787
|
+
IModelStatus[IModelStatus["BadElement"] = 65540] = "BadElement";
|
|
39788
|
+
IModelStatus[IModelStatus["BadModel"] = 65541] = "BadModel";
|
|
39789
|
+
IModelStatus[IModelStatus["BadRequest"] = 65542] = "BadRequest";
|
|
39790
|
+
IModelStatus[IModelStatus["BadSchema"] = 65543] = "BadSchema";
|
|
39791
|
+
IModelStatus[IModelStatus["CannotUndo"] = 65544] = "CannotUndo";
|
|
39792
|
+
IModelStatus[IModelStatus["CodeNotReserved"] = 65545] = "CodeNotReserved";
|
|
39793
|
+
IModelStatus[IModelStatus["DeletionProhibited"] = 65546] = "DeletionProhibited";
|
|
39794
|
+
IModelStatus[IModelStatus["DuplicateCode"] = 65547] = "DuplicateCode";
|
|
39795
|
+
IModelStatus[IModelStatus["DuplicateName"] = 65548] = "DuplicateName";
|
|
39796
|
+
IModelStatus[IModelStatus["ElementBlockedChange"] = 65549] = "ElementBlockedChange";
|
|
39797
|
+
IModelStatus[IModelStatus["FileAlreadyExists"] = 65550] = "FileAlreadyExists";
|
|
39798
|
+
IModelStatus[IModelStatus["FileNotFound"] = 65551] = "FileNotFound";
|
|
39799
|
+
IModelStatus[IModelStatus["FileNotLoaded"] = 65552] = "FileNotLoaded";
|
|
39800
|
+
IModelStatus[IModelStatus["ForeignKeyConstraint"] = 65553] = "ForeignKeyConstraint";
|
|
39801
|
+
IModelStatus[IModelStatus["IdExists"] = 65554] = "IdExists";
|
|
39802
|
+
IModelStatus[IModelStatus["InDynamicTransaction"] = 65555] = "InDynamicTransaction";
|
|
39803
|
+
IModelStatus[IModelStatus["InvalidCategory"] = 65556] = "InvalidCategory";
|
|
39804
|
+
IModelStatus[IModelStatus["InvalidCode"] = 65557] = "InvalidCode";
|
|
39805
|
+
IModelStatus[IModelStatus["InvalidCodeSpec"] = 65558] = "InvalidCodeSpec";
|
|
39806
|
+
IModelStatus[IModelStatus["InvalidId"] = 65559] = "InvalidId";
|
|
39807
|
+
IModelStatus[IModelStatus["InvalidName"] = 65560] = "InvalidName";
|
|
39808
|
+
IModelStatus[IModelStatus["InvalidParent"] = 65561] = "InvalidParent";
|
|
39809
|
+
IModelStatus[IModelStatus["InvalidProfileVersion"] = 65562] = "InvalidProfileVersion";
|
|
39810
|
+
IModelStatus[IModelStatus["IsCreatingChangeSet"] = 65563] = "IsCreatingChangeSet";
|
|
39811
|
+
IModelStatus[IModelStatus["LockNotHeld"] = 65564] = "LockNotHeld";
|
|
39812
|
+
IModelStatus[IModelStatus["Mismatch2d3d"] = 65565] = "Mismatch2d3d";
|
|
39813
|
+
IModelStatus[IModelStatus["MismatchGcs"] = 65566] = "MismatchGcs";
|
|
39814
|
+
IModelStatus[IModelStatus["MissingDomain"] = 65567] = "MissingDomain";
|
|
39815
|
+
IModelStatus[IModelStatus["MissingHandler"] = 65568] = "MissingHandler";
|
|
39816
|
+
IModelStatus[IModelStatus["MissingId"] = 65569] = "MissingId";
|
|
39817
|
+
IModelStatus[IModelStatus["NoGeometry"] = 65570] = "NoGeometry";
|
|
39818
|
+
IModelStatus[IModelStatus["NoMultiTxnOperation"] = 65571] = "NoMultiTxnOperation";
|
|
39819
|
+
IModelStatus[IModelStatus["NotEnabled"] = 65573] = "NotEnabled";
|
|
39820
|
+
IModelStatus[IModelStatus["NotFound"] = 65574] = "NotFound";
|
|
39821
|
+
IModelStatus[IModelStatus["NotOpen"] = 65575] = "NotOpen";
|
|
39822
|
+
IModelStatus[IModelStatus["NotOpenForWrite"] = 65576] = "NotOpenForWrite";
|
|
39823
|
+
IModelStatus[IModelStatus["NotSameUnitBase"] = 65577] = "NotSameUnitBase";
|
|
39824
|
+
IModelStatus[IModelStatus["NothingToRedo"] = 65578] = "NothingToRedo";
|
|
39825
|
+
IModelStatus[IModelStatus["NothingToUndo"] = 65579] = "NothingToUndo";
|
|
39826
|
+
IModelStatus[IModelStatus["ParentBlockedChange"] = 65580] = "ParentBlockedChange";
|
|
39827
|
+
IModelStatus[IModelStatus["ReadError"] = 65581] = "ReadError";
|
|
39828
|
+
IModelStatus[IModelStatus["ReadOnly"] = 65582] = "ReadOnly";
|
|
39829
|
+
IModelStatus[IModelStatus["ReadOnlyDomain"] = 65583] = "ReadOnlyDomain";
|
|
39830
|
+
IModelStatus[IModelStatus["RepositoryManagerError"] = 65584] = "RepositoryManagerError";
|
|
39831
|
+
IModelStatus[IModelStatus["SQLiteError"] = 65585] = "SQLiteError";
|
|
39832
|
+
IModelStatus[IModelStatus["TransactionActive"] = 65586] = "TransactionActive";
|
|
39833
|
+
IModelStatus[IModelStatus["UnitsMissing"] = 65587] = "UnitsMissing";
|
|
39834
|
+
IModelStatus[IModelStatus["UnknownFormat"] = 65588] = "UnknownFormat";
|
|
39835
|
+
IModelStatus[IModelStatus["UpgradeFailed"] = 65589] = "UpgradeFailed";
|
|
39836
|
+
IModelStatus[IModelStatus["ValidationFailed"] = 65590] = "ValidationFailed";
|
|
39837
|
+
IModelStatus[IModelStatus["VersionTooNew"] = 65591] = "VersionTooNew";
|
|
39838
|
+
IModelStatus[IModelStatus["VersionTooOld"] = 65592] = "VersionTooOld";
|
|
39839
|
+
IModelStatus[IModelStatus["ViewNotFound"] = 65593] = "ViewNotFound";
|
|
39840
|
+
IModelStatus[IModelStatus["WriteError"] = 65594] = "WriteError";
|
|
39841
|
+
IModelStatus[IModelStatus["WrongClass"] = 65595] = "WrongClass";
|
|
39842
|
+
IModelStatus[IModelStatus["WrongIModel"] = 65596] = "WrongIModel";
|
|
39843
|
+
IModelStatus[IModelStatus["WrongDomain"] = 65597] = "WrongDomain";
|
|
39844
|
+
IModelStatus[IModelStatus["WrongElement"] = 65598] = "WrongElement";
|
|
39845
|
+
IModelStatus[IModelStatus["WrongHandler"] = 65599] = "WrongHandler";
|
|
39846
|
+
IModelStatus[IModelStatus["WrongModel"] = 65600] = "WrongModel";
|
|
39847
|
+
IModelStatus[IModelStatus["ConstraintNotUnique"] = 65601] = "ConstraintNotUnique";
|
|
39848
|
+
IModelStatus[IModelStatus["NoGeoLocation"] = 65602] = "NoGeoLocation";
|
|
39849
|
+
IModelStatus[IModelStatus["ServerTimeout"] = 65603] = "ServerTimeout";
|
|
39850
|
+
IModelStatus[IModelStatus["NoContent"] = 65604] = "NoContent";
|
|
39851
|
+
IModelStatus[IModelStatus["NotRegistered"] = 65605] = "NotRegistered";
|
|
39852
|
+
IModelStatus[IModelStatus["FunctionNotFound"] = 65606] = "FunctionNotFound";
|
|
39853
|
+
IModelStatus[IModelStatus["NoActiveCommand"] = 65607] = "NoActiveCommand";
|
|
39854
|
+
})(IModelStatus = exports.IModelStatus || (exports.IModelStatus = {}));
|
|
39855
|
+
/** Error status from various briefcase operations
|
|
39856
|
+
* @beta Should these be internal?
|
|
39857
|
+
*/
|
|
39858
|
+
var BriefcaseStatus;
|
|
39859
|
+
(function (BriefcaseStatus) {
|
|
39860
|
+
BriefcaseStatus[BriefcaseStatus["BRIEFCASE_STATUS_BASE"] = 131072] = "BRIEFCASE_STATUS_BASE";
|
|
39861
|
+
BriefcaseStatus[BriefcaseStatus["CannotAcquire"] = 131072] = "CannotAcquire";
|
|
39862
|
+
BriefcaseStatus[BriefcaseStatus["CannotDownload"] = 131073] = "CannotDownload";
|
|
39863
|
+
BriefcaseStatus[BriefcaseStatus["CannotUpload"] = 131074] = "CannotUpload";
|
|
39864
|
+
BriefcaseStatus[BriefcaseStatus["CannotCopy"] = 131075] = "CannotCopy";
|
|
39865
|
+
BriefcaseStatus[BriefcaseStatus["CannotDelete"] = 131076] = "CannotDelete";
|
|
39866
|
+
BriefcaseStatus[BriefcaseStatus["VersionNotFound"] = 131077] = "VersionNotFound";
|
|
39867
|
+
BriefcaseStatus[BriefcaseStatus["CannotApplyChanges"] = 131078] = "CannotApplyChanges";
|
|
39868
|
+
BriefcaseStatus[BriefcaseStatus["DownloadCancelled"] = 131079] = "DownloadCancelled";
|
|
39869
|
+
BriefcaseStatus[BriefcaseStatus["ContainsDeletedChangeSets"] = 131080] = "ContainsDeletedChangeSets";
|
|
39870
|
+
})(BriefcaseStatus = exports.BriefcaseStatus || (exports.BriefcaseStatus = {}));
|
|
39871
|
+
/** RpcInterface status codes
|
|
39872
|
+
* @beta Should these be internal?
|
|
39873
|
+
*/
|
|
39874
|
+
var RpcInterfaceStatus;
|
|
39875
|
+
(function (RpcInterfaceStatus) {
|
|
39876
|
+
RpcInterfaceStatus[RpcInterfaceStatus["Success"] = 0] = "Success";
|
|
39877
|
+
RpcInterfaceStatus[RpcInterfaceStatus["RPC_INTERFACE_ERROR_BASE"] = 135168] = "RPC_INTERFACE_ERROR_BASE";
|
|
39878
|
+
/** The RpcInterface implemented by the server is incompatible with the interface requested by the client. */
|
|
39879
|
+
RpcInterfaceStatus[RpcInterfaceStatus["IncompatibleVersion"] = 135168] = "IncompatibleVersion";
|
|
39880
|
+
})(RpcInterfaceStatus = exports.RpcInterfaceStatus || (exports.RpcInterfaceStatus = {}));
|
|
39881
|
+
/** Error status from various Changeset operations
|
|
39882
|
+
* @beta Should these be internal?
|
|
39883
|
+
*/
|
|
39884
|
+
var ChangeSetStatus;
|
|
39885
|
+
(function (ChangeSetStatus) {
|
|
39886
|
+
ChangeSetStatus[ChangeSetStatus["Success"] = 0] = "Success";
|
|
39887
|
+
ChangeSetStatus[ChangeSetStatus["CHANGESET_ERROR_BASE"] = 90112] = "CHANGESET_ERROR_BASE";
|
|
39888
|
+
/** Error applying a change set when reversing or reinstating it */
|
|
39889
|
+
ChangeSetStatus[ChangeSetStatus["ApplyError"] = 90113] = "ApplyError";
|
|
39890
|
+
/** Change tracking has not been enabled. The ChangeSet API mandates this. */
|
|
39891
|
+
ChangeSetStatus[ChangeSetStatus["ChangeTrackingNotEnabled"] = 90114] = "ChangeTrackingNotEnabled";
|
|
39892
|
+
/** Contents of the change stream are corrupted and does not match the ChangeSet */
|
|
39893
|
+
ChangeSetStatus[ChangeSetStatus["CorruptedChangeStream"] = 90115] = "CorruptedChangeStream";
|
|
39894
|
+
/** File containing the changes to the change set is not found */
|
|
39895
|
+
ChangeSetStatus[ChangeSetStatus["FileNotFound"] = 90116] = "FileNotFound";
|
|
39896
|
+
/** Error writing the contents of the change set to the backing change stream file */
|
|
39897
|
+
ChangeSetStatus[ChangeSetStatus["FileWriteError"] = 90117] = "FileWriteError";
|
|
39898
|
+
/** Cannot perform the operation since the Db has local changes */
|
|
39899
|
+
ChangeSetStatus[ChangeSetStatus["HasLocalChanges"] = 90118] = "HasLocalChanges";
|
|
39900
|
+
/** Cannot perform the operation since current transaction has uncommitted changes */
|
|
39901
|
+
ChangeSetStatus[ChangeSetStatus["HasUncommittedChanges"] = 90119] = "HasUncommittedChanges";
|
|
39902
|
+
/** Invalid ChangeSet Id */
|
|
39903
|
+
ChangeSetStatus[ChangeSetStatus["InvalidId"] = 90120] = "InvalidId";
|
|
39904
|
+
/** Invalid version of the change set */
|
|
39905
|
+
ChangeSetStatus[ChangeSetStatus["InvalidVersion"] = 90121] = "InvalidVersion";
|
|
39906
|
+
/** Cannot perform the operation since system is in the middle of a dynamic transaction */
|
|
39907
|
+
ChangeSetStatus[ChangeSetStatus["InDynamicTransaction"] = 90122] = "InDynamicTransaction";
|
|
39908
|
+
/** Cannot perform operation since system is in the middle of a creating a change set */
|
|
39909
|
+
ChangeSetStatus[ChangeSetStatus["IsCreatingChangeSet"] = 90123] = "IsCreatingChangeSet";
|
|
39910
|
+
/** Cannot perform operation since the system is not creating a change set */
|
|
39911
|
+
ChangeSetStatus[ChangeSetStatus["IsNotCreatingChangeSet"] = 90124] = "IsNotCreatingChangeSet";
|
|
39912
|
+
/** Error propagating the changes after the merge */
|
|
39913
|
+
ChangeSetStatus[ChangeSetStatus["MergePropagationError"] = 90125] = "MergePropagationError";
|
|
39914
|
+
/** No change sets to merge */
|
|
39915
|
+
ChangeSetStatus[ChangeSetStatus["NothingToMerge"] = 90126] = "NothingToMerge";
|
|
39916
|
+
/** No transactions are available to create a change set */
|
|
39917
|
+
ChangeSetStatus[ChangeSetStatus["NoTransactions"] = 90127] = "NoTransactions";
|
|
39918
|
+
/** Parent change set of the Db does not match the parent id of the change set */
|
|
39919
|
+
ChangeSetStatus[ChangeSetStatus["ParentMismatch"] = 90128] = "ParentMismatch";
|
|
39920
|
+
/** Error performing a SQLite operation on the Db */
|
|
39921
|
+
ChangeSetStatus[ChangeSetStatus["SQLiteError"] = 90129] = "SQLiteError";
|
|
39922
|
+
/** ChangeSet originated in a different Db */
|
|
39923
|
+
ChangeSetStatus[ChangeSetStatus["WrongDgnDb"] = 90130] = "WrongDgnDb";
|
|
39924
|
+
/** Could not open the DgnDb to merge change set */
|
|
39925
|
+
ChangeSetStatus[ChangeSetStatus["CouldNotOpenDgnDb"] = 90131] = "CouldNotOpenDgnDb";
|
|
39926
|
+
/** Cannot merge changes in in an open DgnDb. Close the DgnDb, and process the operation when it is opened. */
|
|
39927
|
+
ChangeSetStatus[ChangeSetStatus["MergeSchemaChangesOnOpen"] = 90132] = "MergeSchemaChangesOnOpen";
|
|
39928
|
+
/** Cannot reverse or reinstate schema changes. */
|
|
39929
|
+
ChangeSetStatus[ChangeSetStatus["ReverseOrReinstateSchemaChanges"] = 90133] = "ReverseOrReinstateSchemaChanges";
|
|
39930
|
+
/** Cannot process changes schema changes in an open DgnDb. Close the DgnDb, and process the operation when it is opened. */
|
|
39931
|
+
ChangeSetStatus[ChangeSetStatus["ProcessSchemaChangesOnOpen"] = 90134] = "ProcessSchemaChangesOnOpen";
|
|
39932
|
+
/** Cannot merge changes into a Readonly DgnDb. */
|
|
39933
|
+
ChangeSetStatus[ChangeSetStatus["CannotMergeIntoReadonly"] = 90135] = "CannotMergeIntoReadonly";
|
|
39934
|
+
/** Cannot merge changes into a Master DgnDb. */
|
|
39935
|
+
ChangeSetStatus[ChangeSetStatus["CannotMergeIntoMaster"] = 90136] = "CannotMergeIntoMaster";
|
|
39936
|
+
/** Cannot merge changes into a DgnDb that has reversed change sets. */
|
|
39937
|
+
ChangeSetStatus[ChangeSetStatus["CannotMergeIntoReversed"] = 90137] = "CannotMergeIntoReversed";
|
|
39938
|
+
})(ChangeSetStatus = exports.ChangeSetStatus || (exports.ChangeSetStatus = {}));
|
|
39939
|
+
/** Return codes for methods which perform repository management operations
|
|
39940
|
+
* @beta Should these be internal?
|
|
39941
|
+
*/
|
|
39942
|
+
var RepositoryStatus;
|
|
39943
|
+
(function (RepositoryStatus) {
|
|
39944
|
+
RepositoryStatus[RepositoryStatus["Success"] = 0] = "Success";
|
|
39945
|
+
/** The repository server did not respond to a request */
|
|
39946
|
+
RepositoryStatus[RepositoryStatus["ServerUnavailable"] = 86017] = "ServerUnavailable";
|
|
39947
|
+
/** A requested lock was already held by another briefcase */
|
|
39948
|
+
RepositoryStatus[RepositoryStatus["LockAlreadyHeld"] = 86018] = "LockAlreadyHeld";
|
|
39949
|
+
/** Failed to sync briefcase manager with server */
|
|
39950
|
+
RepositoryStatus[RepositoryStatus["SyncError"] = 86019] = "SyncError";
|
|
39951
|
+
/** Response from server not understood */
|
|
39952
|
+
RepositoryStatus[RepositoryStatus["InvalidResponse"] = 86020] = "InvalidResponse";
|
|
39953
|
+
/** An operation requires local changes to be committed or abandoned */
|
|
39954
|
+
RepositoryStatus[RepositoryStatus["PendingTransactions"] = 86021] = "PendingTransactions";
|
|
39955
|
+
/** A lock cannot be relinquished because the associated object has been modified */
|
|
39956
|
+
RepositoryStatus[RepositoryStatus["LockUsed"] = 86022] = "LockUsed";
|
|
39957
|
+
/** An operation required creation of a ChangeSet, which failed */
|
|
39958
|
+
RepositoryStatus[RepositoryStatus["CannotCreateChangeSet"] = 86023] = "CannotCreateChangeSet";
|
|
39959
|
+
/** Request to server not understood */
|
|
39960
|
+
RepositoryStatus[RepositoryStatus["InvalidRequest"] = 86024] = "InvalidRequest";
|
|
39961
|
+
/** A change set committed to the server must be integrated into the briefcase before the operation can be completed */
|
|
39962
|
+
RepositoryStatus[RepositoryStatus["ChangeSetRequired"] = 86025] = "ChangeSetRequired";
|
|
39963
|
+
/** A requested DgnCode is reserved by another briefcase or in use */
|
|
39964
|
+
RepositoryStatus[RepositoryStatus["CodeUnavailable"] = 86026] = "CodeUnavailable";
|
|
39965
|
+
/** A DgnCode cannot be released because it has not been reserved by the requesting briefcase */
|
|
39966
|
+
RepositoryStatus[RepositoryStatus["CodeNotReserved"] = 86027] = "CodeNotReserved";
|
|
39967
|
+
/** A DgnCode cannot be relinquished because it has been used locally */
|
|
39968
|
+
RepositoryStatus[RepositoryStatus["CodeUsed"] = 86028] = "CodeUsed";
|
|
39969
|
+
/** A required lock is not held by this briefcase */
|
|
39970
|
+
RepositoryStatus[RepositoryStatus["LockNotHeld"] = 86029] = "LockNotHeld";
|
|
39971
|
+
/** Repository is currently locked, no changes allowed */
|
|
39972
|
+
RepositoryStatus[RepositoryStatus["RepositoryIsLocked"] = 86030] = "RepositoryIsLocked";
|
|
39973
|
+
/** Channel write constraint violation, such as an attempt to write outside the designated channel. */
|
|
39974
|
+
RepositoryStatus[RepositoryStatus["ChannelConstraintViolation"] = 86031] = "ChannelConstraintViolation";
|
|
39975
|
+
})(RepositoryStatus = exports.RepositoryStatus || (exports.RepositoryStatus = {}));
|
|
39976
|
+
/** Status from returned HTTP status code
|
|
39977
|
+
* @beta Should these be internal?
|
|
39978
|
+
*/
|
|
39979
|
+
var HttpStatus;
|
|
39980
|
+
(function (HttpStatus) {
|
|
39981
|
+
/** 2xx Success */
|
|
39982
|
+
HttpStatus[HttpStatus["Success"] = 0] = "Success";
|
|
39983
|
+
/** 1xx Informational responses */
|
|
39984
|
+
HttpStatus[HttpStatus["Info"] = 94209] = "Info";
|
|
39985
|
+
/** 3xx Redirection */
|
|
39986
|
+
HttpStatus[HttpStatus["Redirection"] = 94210] = "Redirection";
|
|
39987
|
+
/** 4xx Client errors */
|
|
39988
|
+
HttpStatus[HttpStatus["ClientError"] = 94211] = "ClientError";
|
|
39989
|
+
/** 5xx Server errors */
|
|
39990
|
+
HttpStatus[HttpStatus["ServerError"] = 94212] = "ServerError";
|
|
39991
|
+
})(HttpStatus = exports.HttpStatus || (exports.HttpStatus = {}));
|
|
39992
|
+
/** iModelHub Services Errors
|
|
39993
|
+
* @beta Right package?
|
|
39994
|
+
*/
|
|
39995
|
+
var IModelHubStatus;
|
|
39996
|
+
(function (IModelHubStatus) {
|
|
39997
|
+
IModelHubStatus[IModelHubStatus["Success"] = 0] = "Success";
|
|
39998
|
+
IModelHubStatus[IModelHubStatus["IMODELHUBERROR_BASE"] = 102400] = "IMODELHUBERROR_BASE";
|
|
39999
|
+
IModelHubStatus[IModelHubStatus["IMODELHUBERROR_REQUESTERRORBASE"] = 102656] = "IMODELHUBERROR_REQUESTERRORBASE";
|
|
40000
|
+
IModelHubStatus[IModelHubStatus["Unknown"] = 102401] = "Unknown";
|
|
40001
|
+
IModelHubStatus[IModelHubStatus["MissingRequiredProperties"] = 102402] = "MissingRequiredProperties";
|
|
40002
|
+
IModelHubStatus[IModelHubStatus["InvalidPropertiesValues"] = 102403] = "InvalidPropertiesValues";
|
|
40003
|
+
IModelHubStatus[IModelHubStatus["UserDoesNotHavePermission"] = 102404] = "UserDoesNotHavePermission";
|
|
40004
|
+
IModelHubStatus[IModelHubStatus["UserDoesNotHaveAccess"] = 102405] = "UserDoesNotHaveAccess";
|
|
40005
|
+
IModelHubStatus[IModelHubStatus["InvalidBriefcase"] = 102406] = "InvalidBriefcase";
|
|
40006
|
+
IModelHubStatus[IModelHubStatus["BriefcaseDoesNotExist"] = 102407] = "BriefcaseDoesNotExist";
|
|
40007
|
+
IModelHubStatus[IModelHubStatus["BriefcaseDoesNotBelongToUser"] = 102408] = "BriefcaseDoesNotBelongToUser";
|
|
40008
|
+
IModelHubStatus[IModelHubStatus["AnotherUserPushing"] = 102409] = "AnotherUserPushing";
|
|
40009
|
+
IModelHubStatus[IModelHubStatus["ChangeSetAlreadyExists"] = 102410] = "ChangeSetAlreadyExists";
|
|
40010
|
+
IModelHubStatus[IModelHubStatus["ChangeSetDoesNotExist"] = 102411] = "ChangeSetDoesNotExist";
|
|
40011
|
+
IModelHubStatus[IModelHubStatus["FileIsNotUploaded"] = 102412] = "FileIsNotUploaded";
|
|
40012
|
+
IModelHubStatus[IModelHubStatus["iModelIsNotInitialized"] = 102413] = "iModelIsNotInitialized";
|
|
40013
|
+
IModelHubStatus[IModelHubStatus["ChangeSetPointsToBadSeed"] = 102414] = "ChangeSetPointsToBadSeed";
|
|
40014
|
+
IModelHubStatus[IModelHubStatus["OperationFailed"] = 102415] = "OperationFailed";
|
|
40015
|
+
IModelHubStatus[IModelHubStatus["PullIsRequired"] = 102416] = "PullIsRequired";
|
|
40016
|
+
IModelHubStatus[IModelHubStatus["MaximumNumberOfBriefcasesPerUser"] = 102417] = "MaximumNumberOfBriefcasesPerUser";
|
|
40017
|
+
IModelHubStatus[IModelHubStatus["MaximumNumberOfBriefcasesPerUserPerMinute"] = 102418] = "MaximumNumberOfBriefcasesPerUserPerMinute";
|
|
40018
|
+
IModelHubStatus[IModelHubStatus["DatabaseTemporarilyLocked"] = 102419] = "DatabaseTemporarilyLocked";
|
|
40019
|
+
IModelHubStatus[IModelHubStatus["iModelIsLocked"] = 102420] = "iModelIsLocked";
|
|
40020
|
+
IModelHubStatus[IModelHubStatus["CodesExist"] = 102421] = "CodesExist";
|
|
40021
|
+
IModelHubStatus[IModelHubStatus["LocksExist"] = 102422] = "LocksExist";
|
|
40022
|
+
IModelHubStatus[IModelHubStatus["iModelAlreadyExists"] = 102423] = "iModelAlreadyExists";
|
|
40023
|
+
IModelHubStatus[IModelHubStatus["iModelDoesNotExist"] = 102424] = "iModelDoesNotExist";
|
|
40024
|
+
IModelHubStatus[IModelHubStatus["FileDoesNotExist"] = 102425] = "FileDoesNotExist";
|
|
40025
|
+
IModelHubStatus[IModelHubStatus["FileAlreadyExists"] = 102426] = "FileAlreadyExists";
|
|
40026
|
+
IModelHubStatus[IModelHubStatus["LockDoesNotExist"] = 102427] = "LockDoesNotExist";
|
|
40027
|
+
IModelHubStatus[IModelHubStatus["LockOwnedByAnotherBriefcase"] = 102428] = "LockOwnedByAnotherBriefcase";
|
|
40028
|
+
IModelHubStatus[IModelHubStatus["CodeStateInvalid"] = 102429] = "CodeStateInvalid";
|
|
40029
|
+
IModelHubStatus[IModelHubStatus["CodeReservedByAnotherBriefcase"] = 102430] = "CodeReservedByAnotherBriefcase";
|
|
40030
|
+
IModelHubStatus[IModelHubStatus["CodeDoesNotExist"] = 102431] = "CodeDoesNotExist";
|
|
40031
|
+
IModelHubStatus[IModelHubStatus["EventTypeDoesNotExist"] = 102432] = "EventTypeDoesNotExist";
|
|
40032
|
+
IModelHubStatus[IModelHubStatus["EventSubscriptionDoesNotExist"] = 102433] = "EventSubscriptionDoesNotExist";
|
|
40033
|
+
IModelHubStatus[IModelHubStatus["EventSubscriptionAlreadyExists"] = 102434] = "EventSubscriptionAlreadyExists";
|
|
40034
|
+
IModelHubStatus[IModelHubStatus["ITwinIdIsNotSpecified"] = 102435] = "ITwinIdIsNotSpecified";
|
|
40035
|
+
IModelHubStatus[IModelHubStatus["FailedToGetITwinPermissions"] = 102436] = "FailedToGetITwinPermissions";
|
|
40036
|
+
IModelHubStatus[IModelHubStatus["FailedToGetITwinMembers"] = 102437] = "FailedToGetITwinMembers";
|
|
40037
|
+
IModelHubStatus[IModelHubStatus["ChangeSetAlreadyHasVersion"] = 102438] = "ChangeSetAlreadyHasVersion";
|
|
40038
|
+
IModelHubStatus[IModelHubStatus["VersionAlreadyExists"] = 102439] = "VersionAlreadyExists";
|
|
40039
|
+
IModelHubStatus[IModelHubStatus["JobSchedulingFailed"] = 102440] = "JobSchedulingFailed";
|
|
40040
|
+
IModelHubStatus[IModelHubStatus["ConflictsAggregate"] = 102441] = "ConflictsAggregate";
|
|
40041
|
+
IModelHubStatus[IModelHubStatus["FailedToGetITwinById"] = 102442] = "FailedToGetITwinById";
|
|
40042
|
+
IModelHubStatus[IModelHubStatus["DatabaseOperationFailed"] = 102443] = "DatabaseOperationFailed";
|
|
40043
|
+
IModelHubStatus[IModelHubStatus["SeedFileInitializationFailed"] = 102444] = "SeedFileInitializationFailed";
|
|
40044
|
+
IModelHubStatus[IModelHubStatus["FailedToGetAssetPermissions"] = 102445] = "FailedToGetAssetPermissions";
|
|
40045
|
+
IModelHubStatus[IModelHubStatus["FailedToGetAssetMembers"] = 102446] = "FailedToGetAssetMembers";
|
|
40046
|
+
IModelHubStatus[IModelHubStatus["ITwinDoesNotExist"] = 102447] = "ITwinDoesNotExist";
|
|
40047
|
+
IModelHubStatus[IModelHubStatus["LockChunkDoesNotExist"] = 102449] = "LockChunkDoesNotExist";
|
|
40048
|
+
IModelHubStatus[IModelHubStatus["CheckpointAlreadyExists"] = 102450] = "CheckpointAlreadyExists";
|
|
40049
|
+
IModelHubStatus[IModelHubStatus["CheckpointDoesNotExist"] = 102451] = "CheckpointDoesNotExist";
|
|
40050
|
+
// Errors that are returned for incorrect iModelHub request.
|
|
40051
|
+
IModelHubStatus[IModelHubStatus["UndefinedArgumentError"] = 102657] = "UndefinedArgumentError";
|
|
40052
|
+
IModelHubStatus[IModelHubStatus["InvalidArgumentError"] = 102658] = "InvalidArgumentError";
|
|
40053
|
+
IModelHubStatus[IModelHubStatus["MissingDownloadUrlError"] = 102659] = "MissingDownloadUrlError";
|
|
40054
|
+
IModelHubStatus[IModelHubStatus["NotSupportedInBrowser"] = 102660] = "NotSupportedInBrowser";
|
|
40055
|
+
IModelHubStatus[IModelHubStatus["FileHandlerNotSet"] = 102661] = "FileHandlerNotSet";
|
|
40056
|
+
IModelHubStatus[IModelHubStatus["FileNotFound"] = 102662] = "FileNotFound";
|
|
40057
|
+
IModelHubStatus[IModelHubStatus["InitializationTimeout"] = 102663] = "InitializationTimeout";
|
|
40058
|
+
})(IModelHubStatus = exports.IModelHubStatus || (exports.IModelHubStatus = {}));
|
|
40059
|
+
/** GeoServiceStatus errors
|
|
40060
|
+
* @public
|
|
40061
|
+
*/
|
|
40062
|
+
var GeoServiceStatus;
|
|
40063
|
+
(function (GeoServiceStatus) {
|
|
40064
|
+
GeoServiceStatus[GeoServiceStatus["Success"] = 0] = "Success";
|
|
40065
|
+
GeoServiceStatus[GeoServiceStatus["GEOSERVICESTATUS_BASE"] = 147456] = "GEOSERVICESTATUS_BASE";
|
|
40066
|
+
// Error mapped from 'IModelStatus'
|
|
40067
|
+
GeoServiceStatus[GeoServiceStatus["NoGeoLocation"] = 65602] = "NoGeoLocation";
|
|
40068
|
+
// Following errors are mapped from 'GeoCoordStatus'
|
|
40069
|
+
GeoServiceStatus[GeoServiceStatus["OutOfUsefulRange"] = 147457] = "OutOfUsefulRange";
|
|
40070
|
+
GeoServiceStatus[GeoServiceStatus["OutOfMathematicalDomain"] = 147458] = "OutOfMathematicalDomain";
|
|
40071
|
+
GeoServiceStatus[GeoServiceStatus["NoDatumConverter"] = 147459] = "NoDatumConverter";
|
|
40072
|
+
GeoServiceStatus[GeoServiceStatus["VerticalDatumConvertError"] = 147460] = "VerticalDatumConvertError";
|
|
40073
|
+
GeoServiceStatus[GeoServiceStatus["CSMapError"] = 147461] = "CSMapError";
|
|
40074
|
+
GeoServiceStatus[GeoServiceStatus["Pending"] = 147462] = "Pending";
|
|
40075
|
+
})(GeoServiceStatus = exports.GeoServiceStatus || (exports.GeoServiceStatus = {}));
|
|
40076
|
+
/** Error status from various reality data operations
|
|
40077
|
+
* @alpha
|
|
40078
|
+
*/
|
|
40079
|
+
var RealityDataStatus;
|
|
40080
|
+
(function (RealityDataStatus) {
|
|
40081
|
+
RealityDataStatus[RealityDataStatus["Success"] = 0] = "Success";
|
|
40082
|
+
RealityDataStatus[RealityDataStatus["REALITYDATA_ERROR_BASE"] = 151552] = "REALITYDATA_ERROR_BASE";
|
|
40083
|
+
RealityDataStatus[RealityDataStatus["InvalidData"] = 151553] = "InvalidData";
|
|
40084
|
+
})(RealityDataStatus = exports.RealityDataStatus || (exports.RealityDataStatus = {}));
|
|
40085
|
+
function isObject(obj) {
|
|
40086
|
+
return typeof obj === "object" && obj !== null;
|
|
40087
|
+
}
|
|
40088
|
+
/** Base exception class for iTwin.js exceptions.
|
|
40089
|
+
* @public
|
|
40090
|
+
*/
|
|
40091
|
+
class BentleyError extends Error {
|
|
40092
|
+
/**
|
|
40093
|
+
* @param errorNumber The a number that identifies of the problem.
|
|
40094
|
+
* @param message message that describes the problem (should not be localized).
|
|
40095
|
+
* @param metaData metaData about the exception.
|
|
40096
|
+
*/
|
|
40097
|
+
constructor(errorNumber, message, metaData) {
|
|
40098
|
+
super(message);
|
|
40099
|
+
this.errorNumber = errorNumber;
|
|
40100
|
+
this.errorNumber = errorNumber;
|
|
40101
|
+
this._metaData = metaData;
|
|
40102
|
+
this.name = this._initName();
|
|
40103
|
+
}
|
|
40104
|
+
/** Returns true if this BentleyError includes (optional) metadata. */
|
|
40105
|
+
get hasMetaData() { return undefined !== this._metaData; }
|
|
40106
|
+
/** get the meta data associated with this BentleyError, if any. */
|
|
40107
|
+
getMetaData() {
|
|
40108
|
+
return BentleyError.getMetaData(this._metaData);
|
|
40109
|
+
}
|
|
40110
|
+
/** get the metadata object associated with an ExceptionMetaData, if any. */
|
|
40111
|
+
static getMetaData(metaData) {
|
|
40112
|
+
return (typeof metaData === "function") ? metaData() : metaData;
|
|
40113
|
+
}
|
|
40114
|
+
/** This function returns the name of each error status. Override this method to handle more error status codes. */
|
|
40115
|
+
_initName() {
|
|
40116
|
+
switch (this.errorNumber) {
|
|
40117
|
+
case IModelStatus.AlreadyLoaded: return "Already Loaded";
|
|
40118
|
+
case IModelStatus.AlreadyOpen: return "Already Open";
|
|
40119
|
+
case IModelStatus.BadArg: return "Bad Arg";
|
|
40120
|
+
case IModelStatus.BadElement: return "Bad Element";
|
|
40121
|
+
case IModelStatus.BadModel: return "Bad Model";
|
|
40122
|
+
case IModelStatus.BadRequest: return "Bad Request";
|
|
40123
|
+
case IModelStatus.BadSchema: return "Bad Schema";
|
|
40124
|
+
case IModelStatus.CannotUndo: return "Can not Undo";
|
|
40125
|
+
case IModelStatus.CodeNotReserved: return "Code Not Reserved";
|
|
40126
|
+
case IModelStatus.DeletionProhibited: return "Deletion Prohibited";
|
|
40127
|
+
case IModelStatus.DuplicateCode: return "Duplicate Code";
|
|
40128
|
+
case IModelStatus.DuplicateName: return "Duplicate Name";
|
|
40129
|
+
case IModelStatus.ElementBlockedChange: return "Element Blocked Change";
|
|
40130
|
+
case IModelStatus.FileAlreadyExists: return "File Already Exists";
|
|
40131
|
+
case IModelStatus.FileNotFound: return "File Not Found";
|
|
40132
|
+
case IModelStatus.FileNotLoaded: return "File Not Loaded";
|
|
40133
|
+
case IModelStatus.ForeignKeyConstraint: return "ForeignKey Constraint";
|
|
40134
|
+
case IModelStatus.IdExists: return "Id Exists";
|
|
40135
|
+
case IModelStatus.InDynamicTransaction: return "InDynamicTransaction";
|
|
40136
|
+
case IModelStatus.InvalidCategory: return "Invalid Category";
|
|
40137
|
+
case IModelStatus.InvalidCode: return "Invalid Code";
|
|
40138
|
+
case IModelStatus.InvalidCodeSpec: return "Invalid CodeSpec";
|
|
40139
|
+
case IModelStatus.InvalidId: return "Invalid Id";
|
|
40140
|
+
case IModelStatus.InvalidName: return "Invalid Name";
|
|
40141
|
+
case IModelStatus.InvalidParent: return "Invalid Parent";
|
|
40142
|
+
case IModelStatus.InvalidProfileVersion: return "Invalid Profile Version";
|
|
40143
|
+
case IModelStatus.IsCreatingChangeSet: return "IsCreatingChangeSet";
|
|
40144
|
+
case IModelStatus.LockNotHeld: return "Lock Not Held";
|
|
40145
|
+
case IModelStatus.Mismatch2d3d: return "Mismatch 2d3d";
|
|
40146
|
+
case IModelStatus.MismatchGcs: return "Mismatch Gcs";
|
|
40147
|
+
case IModelStatus.MissingDomain: return "Missing Domain";
|
|
40148
|
+
case IModelStatus.MissingHandler: return "Missing Handler";
|
|
40149
|
+
case IModelStatus.MissingId: return "Missing Id";
|
|
40150
|
+
case IModelStatus.NoGeometry: return "No Geometry";
|
|
40151
|
+
case IModelStatus.NoMultiTxnOperation: return "NoMultiTxnOperation";
|
|
40152
|
+
case IModelStatus.NotEnabled: return "Not Enabled";
|
|
40153
|
+
case IModelStatus.NotFound: return "Not Found";
|
|
40154
|
+
case IModelStatus.NotOpen: return "Not Open";
|
|
40155
|
+
case IModelStatus.NotOpenForWrite: return "Not Open For Write";
|
|
40156
|
+
case IModelStatus.NotSameUnitBase: return "Not Same Unit Base";
|
|
40157
|
+
case IModelStatus.NothingToRedo: return "Nothing To Redo";
|
|
40158
|
+
case IModelStatus.NothingToUndo: return "Nothing To Undo";
|
|
40159
|
+
case IModelStatus.ParentBlockedChange: return "Parent Blocked Change";
|
|
40160
|
+
case IModelStatus.ReadError: return "Read Error";
|
|
40161
|
+
case IModelStatus.ReadOnly: return "ReadOnly";
|
|
40162
|
+
case IModelStatus.ReadOnlyDomain: return "ReadOnlyDomain";
|
|
40163
|
+
case IModelStatus.RepositoryManagerError: return "RepositoryManagerError";
|
|
40164
|
+
case IModelStatus.SQLiteError: return "SQLiteError";
|
|
40165
|
+
case IModelStatus.TransactionActive: return "Transaction Active";
|
|
40166
|
+
case IModelStatus.UnitsMissing: return "Units Missing";
|
|
40167
|
+
case IModelStatus.UnknownFormat: return "Unknown Format";
|
|
40168
|
+
case IModelStatus.UpgradeFailed: return "Upgrade Failed";
|
|
40169
|
+
case IModelStatus.ValidationFailed: return "Validation Failed";
|
|
40170
|
+
case IModelStatus.VersionTooNew: return "Version Too New";
|
|
40171
|
+
case IModelStatus.VersionTooOld: return "Version Too Old";
|
|
40172
|
+
case IModelStatus.ViewNotFound: return "View Not Found";
|
|
40173
|
+
case IModelStatus.WriteError: return "Write Error";
|
|
40174
|
+
case IModelStatus.WrongClass: return "Wrong Class";
|
|
40175
|
+
case IModelStatus.WrongIModel: return "Wrong IModel";
|
|
40176
|
+
case IModelStatus.WrongDomain: return "Wrong Domain";
|
|
40177
|
+
case IModelStatus.WrongElement: return "Wrong Element";
|
|
40178
|
+
case IModelStatus.WrongHandler: return "Wrong Handler";
|
|
40179
|
+
case IModelStatus.WrongModel: return "Wrong Model";
|
|
40180
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR: return "BE_SQLITE_ERROR";
|
|
40181
|
+
case BeSQLite_1.DbResult.BE_SQLITE_INTERNAL: return "BE_SQLITE_INTERNAL";
|
|
40182
|
+
case BeSQLite_1.DbResult.BE_SQLITE_PERM: return "BE_SQLITE_PERM";
|
|
40183
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ABORT: return "BE_SQLITE_ABORT";
|
|
40184
|
+
case BeSQLite_1.DbResult.BE_SQLITE_BUSY: return "Db is busy";
|
|
40185
|
+
case BeSQLite_1.DbResult.BE_SQLITE_LOCKED: return "Db is Locked";
|
|
40186
|
+
case BeSQLite_1.DbResult.BE_SQLITE_NOMEM: return "BE_SQLITE_NOMEM";
|
|
40187
|
+
case BeSQLite_1.DbResult.BE_SQLITE_READONLY: return "Readonly";
|
|
40188
|
+
case BeSQLite_1.DbResult.BE_SQLITE_INTERRUPT: return "BE_SQLITE_INTERRUPT";
|
|
40189
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR: return "BE_SQLITE_IOERR";
|
|
40190
|
+
case BeSQLite_1.DbResult.BE_SQLITE_CORRUPT: return "BE_SQLITE_CORRUPT";
|
|
40191
|
+
case BeSQLite_1.DbResult.BE_SQLITE_NOTFOUND: return "Not Found";
|
|
40192
|
+
case BeSQLite_1.DbResult.BE_SQLITE_FULL: return "BE_SQLITE_FULL";
|
|
40193
|
+
case BeSQLite_1.DbResult.BE_SQLITE_CANTOPEN: return "Can't open";
|
|
40194
|
+
case BeSQLite_1.DbResult.BE_SQLITE_PROTOCOL: return "BE_SQLITE_PROTOCOL";
|
|
40195
|
+
case BeSQLite_1.DbResult.BE_SQLITE_EMPTY: return "BE_SQLITE_EMPTY";
|
|
40196
|
+
case BeSQLite_1.DbResult.BE_SQLITE_SCHEMA: return "BE_SQLITE_SCHEMA";
|
|
40197
|
+
case BeSQLite_1.DbResult.BE_SQLITE_TOOBIG: return "BE_SQLITE_TOOBIG";
|
|
40198
|
+
case BeSQLite_1.DbResult.BE_SQLITE_MISMATCH: return "BE_SQLITE_MISMATCH";
|
|
40199
|
+
case BeSQLite_1.DbResult.BE_SQLITE_MISUSE: return "BE_SQLITE_MISUSE";
|
|
40200
|
+
case BeSQLite_1.DbResult.BE_SQLITE_NOLFS: return "BE_SQLITE_NOLFS";
|
|
40201
|
+
case BeSQLite_1.DbResult.BE_SQLITE_AUTH: return "BE_SQLITE_AUTH";
|
|
40202
|
+
case BeSQLite_1.DbResult.BE_SQLITE_FORMAT: return "BE_SQLITE_FORMAT";
|
|
40203
|
+
case BeSQLite_1.DbResult.BE_SQLITE_RANGE: return "BE_SQLITE_RANGE";
|
|
40204
|
+
case BeSQLite_1.DbResult.BE_SQLITE_NOTADB: return "Not a Database";
|
|
40205
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_READ: return "BE_SQLITE_IOERR_READ";
|
|
40206
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_SHORT_READ: return "BE_SQLITE_IOERR_SHORT_READ";
|
|
40207
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_WRITE: return "BE_SQLITE_IOERR_WRITE";
|
|
40208
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_FSYNC: return "BE_SQLITE_IOERR_FSYNC";
|
|
40209
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_DIR_FSYNC: return "BE_SQLITE_IOERR_DIR_FSYNC";
|
|
40210
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_TRUNCATE: return "BE_SQLITE_IOERR_TRUNCATE";
|
|
40211
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_FSTAT: return "BE_SQLITE_IOERR_FSTAT";
|
|
40212
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_UNLOCK: return "BE_SQLITE_IOERR_UNLOCK";
|
|
40213
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_RDLOCK: return "BE_SQLITE_IOERR_RDLOCK";
|
|
40214
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_DELETE: return "BE_SQLITE_IOERR_DELETE";
|
|
40215
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_BLOCKED: return "BE_SQLITE_IOERR_BLOCKED";
|
|
40216
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_NOMEM: return "BE_SQLITE_IOERR_NOMEM";
|
|
40217
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_ACCESS: return "BE_SQLITE_IOERR_ACCESS";
|
|
40218
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_CHECKRESERVEDLOCK: return "BE_SQLITE_IOERR_CHECKRESERVEDLOCK";
|
|
40219
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_LOCK: return "BE_SQLITE_IOERR_LOCK";
|
|
40220
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_CLOSE: return "BE_SQLITE_IOERR_CLOSE";
|
|
40221
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_DIR_CLOSE: return "BE_SQLITE_IOERR_DIR_CLOSE";
|
|
40222
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_SHMOPEN: return "BE_SQLITE_IOERR_SHMOPEN";
|
|
40223
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_SHMSIZE: return "BE_SQLITE_IOERR_SHMSIZE";
|
|
40224
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_SHMLOCK: return "BE_SQLITE_IOERR_SHMLOCK";
|
|
40225
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_SHMMAP: return "BE_SQLITE_IOERR_SHMMAP";
|
|
40226
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_SEEK: return "BE_SQLITE_IOERR_SEEK";
|
|
40227
|
+
case BeSQLite_1.DbResult.BE_SQLITE_IOERR_DELETE_NOENT: return "BE_SQLITE_IOERR_DELETE_NOENT";
|
|
40228
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR_FileExists: return "File Exists";
|
|
40229
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR_AlreadyOpen: return "Already Open";
|
|
40230
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR_NoPropertyTable: return "No Property Table";
|
|
40231
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR_FileNotFound: return "File Not Found";
|
|
40232
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR_NoTxnActive: return "No Txn Active";
|
|
40233
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR_BadDbProfile: return "Bad Db Profile";
|
|
40234
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR_InvalidProfileVersion: return "Invalid Profile Version";
|
|
40235
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR_ProfileUpgradeFailed: return "Profile Upgrade Failed";
|
|
40236
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR_ProfileTooOldForReadWrite: return "Profile Too Old For ReadWrite";
|
|
40237
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR_ProfileTooOld: return "Profile Too Old";
|
|
40238
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR_ProfileTooNewForReadWrite: return "Profile Too New For ReadWrite";
|
|
40239
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR_ProfileTooNew: return "Profile Too New";
|
|
40240
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR_ChangeTrackError: return "ChangeTrack Error";
|
|
40241
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR_InvalidChangeSetVersion: return "Invalid ChangeSet Version";
|
|
40242
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR_SchemaUpgradeRequired: return "Schema Upgrade Required";
|
|
40243
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR_SchemaTooNew: return "Schema Too New";
|
|
40244
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR_SchemaTooOld: return "Schema Too Old";
|
|
40245
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR_SchemaLockFailed: return "Schema Lock Failed";
|
|
40246
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR_SchemaUpgradeFailed: return "Schema Upgrade Failed";
|
|
40247
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR_SchemaImportFailed: return "Schema Import Failed";
|
|
40248
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR_CouldNotAcquireLocksOrCodes: return "Could Not Acquire Locks Or Codes";
|
|
40249
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ERROR_SchemaUpgradeRecommended: return "Recommended that the schemas found in the database be upgraded";
|
|
40250
|
+
case BeSQLite_1.DbResult.BE_SQLITE_LOCKED_SHAREDCACHE: return "BE_SQLITE_LOCKED_SHAREDCACHE";
|
|
40251
|
+
case BeSQLite_1.DbResult.BE_SQLITE_BUSY_RECOVERY: return "BE_SQLITE_BUSY_RECOVERY";
|
|
40252
|
+
case BeSQLite_1.DbResult.BE_SQLITE_CANTOPEN_NOTEMPDIR: return "SQLite No Temp Dir";
|
|
40253
|
+
case BeSQLite_1.DbResult.BE_SQLITE_CANTOPEN_ISDIR: return "BE_SQLITE_CANTOPEN_ISDIR";
|
|
40254
|
+
case BeSQLite_1.DbResult.BE_SQLITE_CANTOPEN_FULLPATH: return "BE_SQLITE_CANTOPEN_FULLPATH";
|
|
40255
|
+
case BeSQLite_1.DbResult.BE_SQLITE_CORRUPT_VTAB: return "BE_SQLITE_CORRUPT_VTAB";
|
|
40256
|
+
case BeSQLite_1.DbResult.BE_SQLITE_READONLY_RECOVERY: return "BE_SQLITE_READONLY_RECOVERY";
|
|
40257
|
+
case BeSQLite_1.DbResult.BE_SQLITE_READONLY_CANTLOCK: return "BE_SQLITE_READONLY_CANTLOCK";
|
|
40258
|
+
case BeSQLite_1.DbResult.BE_SQLITE_READONLY_ROLLBACK: return "BE_SQLITE_READONLY_ROLLBACK";
|
|
40259
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ABORT_ROLLBACK: return "BE_SQLITE_ABORT_ROLLBACK";
|
|
40260
|
+
case BeSQLite_1.DbResult.BE_SQLITE_CONSTRAINT_CHECK: return "BE_SQLITE_CONSTRAINT_CHECK";
|
|
40261
|
+
case BeSQLite_1.DbResult.BE_SQLITE_CONSTRAINT_COMMITHOOK: return "CommitHook Constraint Error";
|
|
40262
|
+
case BeSQLite_1.DbResult.BE_SQLITE_CONSTRAINT_FOREIGNKEY: return "Foreign Key Constraint Error";
|
|
40263
|
+
case BeSQLite_1.DbResult.BE_SQLITE_CONSTRAINT_FUNCTION: return "Function Constraint Error";
|
|
40264
|
+
case BeSQLite_1.DbResult.BE_SQLITE_CONSTRAINT_NOTNULL: return "NotNull Constraint Error";
|
|
40265
|
+
case BeSQLite_1.DbResult.BE_SQLITE_CONSTRAINT_PRIMARYKEY: return "Primary Key Constraint Error";
|
|
40266
|
+
case BeSQLite_1.DbResult.BE_SQLITE_CONSTRAINT_TRIGGER: return "Trigger Constraint Error";
|
|
40267
|
+
case BeSQLite_1.DbResult.BE_SQLITE_CONSTRAINT_UNIQUE: return "Unique Constraint Error";
|
|
40268
|
+
case BeSQLite_1.DbResult.BE_SQLITE_CONSTRAINT_VTAB: return "VTable Constraint Error";
|
|
40269
|
+
case BentleyStatus.ERROR: return "Error";
|
|
40270
|
+
case BriefcaseStatus.CannotAcquire: return "CannotAcquire";
|
|
40271
|
+
case BriefcaseStatus.CannotDownload: return "CannotDownload";
|
|
40272
|
+
case BriefcaseStatus.CannotCopy: return "CannotCopy";
|
|
40273
|
+
case BriefcaseStatus.CannotDelete: return "CannotDelete";
|
|
40274
|
+
case BriefcaseStatus.VersionNotFound: return "VersionNotFound";
|
|
40275
|
+
case BriefcaseStatus.DownloadCancelled: return "DownloadCancelled";
|
|
40276
|
+
case BriefcaseStatus.ContainsDeletedChangeSets: return "ContainsDeletedChangeSets";
|
|
40277
|
+
case RpcInterfaceStatus.IncompatibleVersion: return "RpcInterfaceStatus.IncompatibleVersion";
|
|
40278
|
+
case ChangeSetStatus.ApplyError: return "Error applying a change set";
|
|
40279
|
+
case ChangeSetStatus.ChangeTrackingNotEnabled: return "Change tracking has not been enabled. The ChangeSet API mandates this";
|
|
40280
|
+
case ChangeSetStatus.CorruptedChangeStream: return "Contents of the change stream are corrupted and does not match the ChangeSet";
|
|
40281
|
+
case ChangeSetStatus.FileNotFound: return "File containing the changes was not found";
|
|
40282
|
+
case ChangeSetStatus.FileWriteError: return "Error writing the contents of the change set to the backing change stream file";
|
|
40283
|
+
case ChangeSetStatus.HasLocalChanges: return "Cannot perform the operation since the Db has local changes";
|
|
40284
|
+
case ChangeSetStatus.HasUncommittedChanges: return "Cannot perform the operation since current transaction has uncommitted changes";
|
|
40285
|
+
case ChangeSetStatus.InvalidId: return "Invalid ChangeSet Id";
|
|
40286
|
+
case ChangeSetStatus.InvalidVersion: return "Invalid version of the change set";
|
|
40287
|
+
case ChangeSetStatus.InDynamicTransaction: return "Cannot perform the operation since system is in the middle of a dynamic transaction";
|
|
40288
|
+
case ChangeSetStatus.IsCreatingChangeSet: return "Cannot perform operation since system is in the middle of a creating a change set";
|
|
40289
|
+
case ChangeSetStatus.IsNotCreatingChangeSet: return "Cannot perform operation since the system is not creating a change set";
|
|
40290
|
+
case ChangeSetStatus.MergePropagationError: return "Error propagating the changes after the merge";
|
|
40291
|
+
case ChangeSetStatus.NothingToMerge: return "No change sets to merge";
|
|
40292
|
+
case ChangeSetStatus.NoTransactions: return "No transactions are available to create a change set";
|
|
40293
|
+
case ChangeSetStatus.ParentMismatch: return "Parent change set of the Db does not match the parent id of the change set";
|
|
40294
|
+
case ChangeSetStatus.SQLiteError: return "Error performing a SQLite operation on the Db";
|
|
40295
|
+
case ChangeSetStatus.WrongDgnDb: return "ChangeSet originated in a different Db";
|
|
40296
|
+
case ChangeSetStatus.CouldNotOpenDgnDb: return "Could not open the DgnDb to merge change set";
|
|
40297
|
+
case ChangeSetStatus.MergeSchemaChangesOnOpen: return "Cannot merge changes in in an open DgnDb. Close the DgnDb, and process the operation when it is opened";
|
|
40298
|
+
case ChangeSetStatus.ReverseOrReinstateSchemaChanges: return "Cannot reverse or reinstate schema changes.";
|
|
40299
|
+
case ChangeSetStatus.ProcessSchemaChangesOnOpen: return "Cannot process changes schema changes in an open DgnDb. Close the DgnDb, and process the operation when it is opened";
|
|
40300
|
+
case ChangeSetStatus.CannotMergeIntoReadonly: return "Cannot merge changes into a Readonly DgnDb";
|
|
40301
|
+
case ChangeSetStatus.CannotMergeIntoMaster: return "Cannot merge changes into a Master DgnDb";
|
|
40302
|
+
case ChangeSetStatus.CannotMergeIntoReversed: return "Cannot merge changes into a DgnDb that has reversed change sets";
|
|
40303
|
+
case RepositoryStatus.ServerUnavailable: return "ServerUnavailable";
|
|
40304
|
+
case RepositoryStatus.LockAlreadyHeld: return "LockAlreadyHeld";
|
|
40305
|
+
case RepositoryStatus.SyncError: return "SyncError";
|
|
40306
|
+
case RepositoryStatus.InvalidResponse: return "InvalidResponse";
|
|
40307
|
+
case RepositoryStatus.PendingTransactions: return "PendingTransactions";
|
|
40308
|
+
case RepositoryStatus.LockUsed: return "LockUsed";
|
|
40309
|
+
case RepositoryStatus.CannotCreateChangeSet: return "CannotCreateChangeSet";
|
|
40310
|
+
case RepositoryStatus.InvalidRequest: return "InvalidRequest";
|
|
40311
|
+
case RepositoryStatus.ChangeSetRequired: return "ChangeSetRequired";
|
|
40312
|
+
case RepositoryStatus.CodeUnavailable: return "CodeUnavailable";
|
|
40313
|
+
case RepositoryStatus.CodeNotReserved: return "CodeNotReserved";
|
|
40314
|
+
case RepositoryStatus.CodeUsed: return "CodeUsed";
|
|
40315
|
+
case RepositoryStatus.LockNotHeld: return "LockNotHeld";
|
|
40316
|
+
case RepositoryStatus.RepositoryIsLocked: return "RepositoryIsLocked";
|
|
40317
|
+
case RepositoryStatus.ChannelConstraintViolation: return "ChannelConstraintViolation";
|
|
40318
|
+
case HttpStatus.Info: return "HTTP Info";
|
|
40319
|
+
case HttpStatus.Redirection: return "HTTP Redirection";
|
|
40320
|
+
case HttpStatus.ClientError: return "HTTP Client error";
|
|
40321
|
+
case HttpStatus.ServerError: return "HTTP Server error";
|
|
40322
|
+
case IModelHubStatus.Unknown: return "Unknown error";
|
|
40323
|
+
case IModelHubStatus.MissingRequiredProperties: return "Missing required properties";
|
|
40324
|
+
case IModelHubStatus.InvalidPropertiesValues: return "Invalid properties values";
|
|
40325
|
+
case IModelHubStatus.UserDoesNotHavePermission: return "User does not have permission";
|
|
40326
|
+
case IModelHubStatus.UserDoesNotHaveAccess: return "User does not have access";
|
|
40327
|
+
case IModelHubStatus.InvalidBriefcase: return "Invalid briefcase";
|
|
40328
|
+
case IModelHubStatus.BriefcaseDoesNotExist: return "Briefcase does not exist";
|
|
40329
|
+
case IModelHubStatus.BriefcaseDoesNotBelongToUser: return "Briefcase does not belong to user";
|
|
40330
|
+
case IModelHubStatus.AnotherUserPushing: return "Another user pushing";
|
|
40331
|
+
case IModelHubStatus.ChangeSetAlreadyExists: return "ChangeSet already exists";
|
|
40332
|
+
case IModelHubStatus.ChangeSetDoesNotExist: return "ChangeSet does not exist";
|
|
40333
|
+
case IModelHubStatus.FileIsNotUploaded: return "File is not uploaded";
|
|
40334
|
+
case IModelHubStatus.iModelIsNotInitialized: return "iModel is not initialized";
|
|
40335
|
+
case IModelHubStatus.ChangeSetPointsToBadSeed: return "ChangeSet points to a bad seed file";
|
|
40336
|
+
case IModelHubStatus.OperationFailed: return "iModelHub operation has failed";
|
|
40337
|
+
case IModelHubStatus.PullIsRequired: return "Pull is required";
|
|
40338
|
+
case IModelHubStatus.MaximumNumberOfBriefcasesPerUser: return "Limit of briefcases per user was reached";
|
|
40339
|
+
case IModelHubStatus.MaximumNumberOfBriefcasesPerUserPerMinute: return "Limit of briefcases per user per minute was reached";
|
|
40340
|
+
case IModelHubStatus.DatabaseTemporarilyLocked: return "Database is temporarily locked";
|
|
40341
|
+
case IModelHubStatus.iModelIsLocked: return "iModel is locked";
|
|
40342
|
+
case IModelHubStatus.CodesExist: return "Code already exists";
|
|
40343
|
+
case IModelHubStatus.LocksExist: return "Lock already exists";
|
|
40344
|
+
case IModelHubStatus.iModelAlreadyExists: return "iModel already exists";
|
|
40345
|
+
case IModelHubStatus.iModelDoesNotExist: return "iModel does not exist";
|
|
40346
|
+
case IModelHubStatus.LockDoesNotExist: return "Lock does not exist";
|
|
40347
|
+
case IModelHubStatus.LockChunkDoesNotExist: return "Lock chunk does not exist";
|
|
40348
|
+
case IModelHubStatus.LockOwnedByAnotherBriefcase: return "Lock is owned by another briefcase";
|
|
40349
|
+
case IModelHubStatus.CodeStateInvalid: return "Code state is invalid";
|
|
40350
|
+
case IModelHubStatus.CodeReservedByAnotherBriefcase: return "Code is reserved by another briefcase";
|
|
40351
|
+
case IModelHubStatus.CodeDoesNotExist: return "Code does not exist";
|
|
40352
|
+
case IModelHubStatus.FileDoesNotExist: return "File does not exist";
|
|
40353
|
+
case IModelHubStatus.FileAlreadyExists: return "File already exists";
|
|
40354
|
+
case IModelHubStatus.EventTypeDoesNotExist: return "Event type does not exist";
|
|
40355
|
+
case IModelHubStatus.EventSubscriptionDoesNotExist: return "Event subscription does not exist";
|
|
40356
|
+
case IModelHubStatus.EventSubscriptionAlreadyExists: return "Event subscription already exists";
|
|
40357
|
+
case IModelHubStatus.ITwinIdIsNotSpecified: return "ITwin Id is not specified";
|
|
40358
|
+
case IModelHubStatus.FailedToGetITwinPermissions: return "Failed to get iTwin permissions";
|
|
40359
|
+
case IModelHubStatus.FailedToGetITwinMembers: return "Failed to get iTwin members";
|
|
40360
|
+
case IModelHubStatus.FailedToGetAssetPermissions: return "Failed to get asset permissions";
|
|
40361
|
+
case IModelHubStatus.FailedToGetAssetMembers: return "Failed to get asset members";
|
|
40362
|
+
case IModelHubStatus.ChangeSetAlreadyHasVersion: return "ChangeSet already has version";
|
|
40363
|
+
case IModelHubStatus.VersionAlreadyExists: return "Version already exists";
|
|
40364
|
+
case IModelHubStatus.JobSchedulingFailed: return "Failed to schedule a background job";
|
|
40365
|
+
case IModelHubStatus.ConflictsAggregate: return "Codes or locks are owned by another briefcase";
|
|
40366
|
+
case IModelHubStatus.FailedToGetITwinById: return "Failed to query iTwin by its id";
|
|
40367
|
+
case IModelHubStatus.DatabaseOperationFailed: return "Database operation has failed";
|
|
40368
|
+
case IModelHubStatus.ITwinDoesNotExist: return "ITwin does not exist";
|
|
40369
|
+
case IModelHubStatus.UndefinedArgumentError: return "Undefined argument";
|
|
40370
|
+
case IModelHubStatus.InvalidArgumentError: return "Invalid argument";
|
|
40371
|
+
case IModelHubStatus.MissingDownloadUrlError: return "Missing download url";
|
|
40372
|
+
case IModelHubStatus.NotSupportedInBrowser: return "Not supported in browser";
|
|
40373
|
+
case IModelHubStatus.FileHandlerNotSet: return "File handler is not set";
|
|
40374
|
+
case IModelHubStatus.FileNotFound: return "File not found";
|
|
40375
|
+
case GeoServiceStatus.NoGeoLocation: return "No GeoLocation";
|
|
40376
|
+
case GeoServiceStatus.OutOfUsefulRange: return "Out of useful range";
|
|
40377
|
+
case GeoServiceStatus.OutOfMathematicalDomain: return "Out of mathematical domain";
|
|
40378
|
+
case GeoServiceStatus.NoDatumConverter: return "No datum converter";
|
|
40379
|
+
case GeoServiceStatus.VerticalDatumConvertError: return "Vertical datum convert error";
|
|
40380
|
+
case GeoServiceStatus.CSMapError: return "CSMap error";
|
|
40381
|
+
case GeoServiceStatus.Pending: return "Pending";
|
|
40382
|
+
case RealityDataStatus.InvalidData: return "Invalid or unknown data";
|
|
40383
|
+
case IModelStatus.Success:
|
|
40384
|
+
case BeSQLite_1.DbResult.BE_SQLITE_OK:
|
|
40385
|
+
case BeSQLite_1.DbResult.BE_SQLITE_ROW:
|
|
40386
|
+
case BeSQLite_1.DbResult.BE_SQLITE_DONE:
|
|
40387
|
+
case BentleyStatus.SUCCESS:
|
|
40388
|
+
return "Success";
|
|
40389
|
+
default:
|
|
40390
|
+
return `Error (${this.errorNumber})`;
|
|
40391
|
+
}
|
|
40392
|
+
}
|
|
40393
|
+
/** Use run-time type checking to safely get a useful string summary of an unknown error value, or `""` if none exists.
|
|
40394
|
+
* @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof Error`
|
|
40395
|
+
* @public
|
|
40396
|
+
*/
|
|
40397
|
+
static getErrorMessage(error) {
|
|
40398
|
+
if (typeof error === "string")
|
|
40399
|
+
return error;
|
|
40400
|
+
if (error instanceof Error)
|
|
40401
|
+
return error.toString();
|
|
40402
|
+
if (isObject(error)) {
|
|
40403
|
+
if (typeof error.message === "string")
|
|
40404
|
+
return error.message;
|
|
40405
|
+
if (typeof error.msg === "string")
|
|
40406
|
+
return error.msg;
|
|
40407
|
+
if (error.toString() !== "[object Object]")
|
|
40408
|
+
return error.toString();
|
|
40409
|
+
}
|
|
40410
|
+
return "";
|
|
40411
|
+
}
|
|
40412
|
+
/** Use run-time type checking to safely get the call stack of an unknown error value, if possible.
|
|
40413
|
+
* @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof Error`
|
|
40414
|
+
* @public
|
|
40415
|
+
*/
|
|
40416
|
+
static getErrorStack(error) {
|
|
40417
|
+
if (isObject(error) && typeof error.stack === "string")
|
|
40418
|
+
return error.stack;
|
|
40419
|
+
return undefined;
|
|
40420
|
+
}
|
|
40421
|
+
/** Use run-time type checking to safely get the metadata with an unknown error value, if possible.
|
|
40422
|
+
* @note It's recommended to use this function in `catch` clauses, where a caught value cannot be assumed to be `instanceof BentleyError`
|
|
40423
|
+
* @see [[BentleyError.getMetaData]]
|
|
40424
|
+
* @public
|
|
40425
|
+
*/
|
|
40426
|
+
static getErrorMetadata(error) {
|
|
40427
|
+
if (isObject(error) && typeof error.getMetaData === "function") {
|
|
40428
|
+
const metadata = error.getMetaData();
|
|
40429
|
+
if (typeof metadata === "object" && metadata !== null)
|
|
40430
|
+
return metadata;
|
|
40431
|
+
}
|
|
40432
|
+
return undefined;
|
|
40433
|
+
}
|
|
40434
|
+
/** Returns a new `ErrorProps` object representing an unknown error value. Useful for logging or wrapping/re-throwing caught errors.
|
|
40435
|
+
* @note Unlike `Error` objects (which lose messages and call stacks when serialized to JSON), objects
|
|
40436
|
+
* returned by this are plain old JavaScript objects, and can be easily logged/serialized to JSON.
|
|
40437
|
+
* @public
|
|
40438
|
+
*/
|
|
40439
|
+
static getErrorProps(error) {
|
|
40440
|
+
const serialized = {
|
|
40441
|
+
message: BentleyError.getErrorMessage(error),
|
|
40442
|
+
};
|
|
40443
|
+
const stack = BentleyError.getErrorStack(error);
|
|
40444
|
+
if (stack)
|
|
40445
|
+
serialized.stack = stack;
|
|
40446
|
+
const metadata = BentleyError.getErrorMetadata(error);
|
|
40447
|
+
if (metadata)
|
|
40448
|
+
serialized.metadata = metadata;
|
|
40449
|
+
return serialized;
|
|
40450
|
+
}
|
|
40451
|
+
}
|
|
40452
|
+
exports.BentleyError = BentleyError;
|
|
40453
|
+
|
|
40454
|
+
|
|
40455
|
+
/***/ }),
|
|
40456
|
+
|
|
40457
|
+
/***/ "../../core/bentley/lib/cjs/BentleyLoggerCategory.js":
|
|
40458
|
+
/*!*******************************************************************!*\
|
|
40459
|
+
!*** D:/vsts_a/1/s/core/bentley/lib/cjs/BentleyLoggerCategory.js ***!
|
|
40460
|
+
\*******************************************************************/
|
|
40461
|
+
/*! no static exports found */
|
|
40462
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
40463
|
+
|
|
40464
|
+
"use strict";
|
|
40465
|
+
|
|
40466
|
+
/*---------------------------------------------------------------------------------------------
|
|
40467
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
40468
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
40469
|
+
*--------------------------------------------------------------------------------------------*/
|
|
40470
|
+
/** @packageDocumentation
|
|
40471
|
+
* @module Logging
|
|
40472
|
+
*/
|
|
40473
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40474
|
+
exports.BentleyLoggerCategory = void 0;
|
|
40475
|
+
/** Logger categories used by this package
|
|
40476
|
+
* @see [Logger]($bentley)
|
|
40477
|
+
* @public
|
|
40478
|
+
*/
|
|
40479
|
+
var BentleyLoggerCategory;
|
|
40480
|
+
(function (BentleyLoggerCategory) {
|
|
40481
|
+
/** The logger category used by common classes relating to ElementProps. */
|
|
40482
|
+
BentleyLoggerCategory["Performance"] = "Performance";
|
|
40483
|
+
})(BentleyLoggerCategory = exports.BentleyLoggerCategory || (exports.BentleyLoggerCategory = {}));
|
|
40484
|
+
|
|
40485
|
+
|
|
40486
|
+
/***/ }),
|
|
40487
|
+
|
|
40488
|
+
/***/ "../../core/bentley/lib/cjs/Logger.js":
|
|
40489
|
+
/*!****************************************************!*\
|
|
40490
|
+
!*** D:/vsts_a/1/s/core/bentley/lib/cjs/Logger.js ***!
|
|
40491
|
+
\****************************************************/
|
|
40492
|
+
/*! no static exports found */
|
|
40493
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
40494
|
+
|
|
40495
|
+
"use strict";
|
|
40496
|
+
|
|
40497
|
+
/*---------------------------------------------------------------------------------------------
|
|
40498
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
40499
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
40500
|
+
*--------------------------------------------------------------------------------------------*/
|
|
40501
|
+
/** @packageDocumentation
|
|
40502
|
+
* @module Logging
|
|
40503
|
+
*/
|
|
40504
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40505
|
+
exports.PerfLogger = exports.Logger = exports.LogLevel = void 0;
|
|
40506
|
+
const BentleyError_1 = __webpack_require__(/*! ./BentleyError */ "../../core/bentley/lib/cjs/BentleyError.js");
|
|
40507
|
+
const BentleyLoggerCategory_1 = __webpack_require__(/*! ./BentleyLoggerCategory */ "../../core/bentley/lib/cjs/BentleyLoggerCategory.js");
|
|
40508
|
+
/** Use to categorize logging messages by severity.
|
|
40509
|
+
* @public
|
|
40510
|
+
*/
|
|
40511
|
+
var LogLevel;
|
|
40512
|
+
(function (LogLevel) {
|
|
40513
|
+
/** Tracing and debugging - low level */
|
|
40514
|
+
LogLevel[LogLevel["Trace"] = 0] = "Trace";
|
|
40515
|
+
/** Information - mid level */
|
|
40516
|
+
LogLevel[LogLevel["Info"] = 1] = "Info";
|
|
40517
|
+
/** Warnings - high level */
|
|
40518
|
+
LogLevel[LogLevel["Warning"] = 2] = "Warning";
|
|
40519
|
+
/** Errors - highest level */
|
|
40520
|
+
LogLevel[LogLevel["Error"] = 3] = "Error";
|
|
40521
|
+
/** Higher than any real logging level. This is used to turn a category off. */
|
|
40522
|
+
LogLevel[LogLevel["None"] = 4] = "None";
|
|
40523
|
+
})(LogLevel = exports.LogLevel || (exports.LogLevel = {}));
|
|
40524
|
+
/** Logger allows libraries and apps to report potentially useful information about operations, and it allows apps and users to control
|
|
40525
|
+
* how or if the logged information is displayed or collected. See [Learning about Logging]($docs/learning/common/Logging.md).
|
|
40526
|
+
* @public
|
|
40527
|
+
*/
|
|
40528
|
+
class Logger {
|
|
40529
|
+
/** Initialize the logger streams. Should be called at application initialization time. */
|
|
40530
|
+
static initialize(logError, logWarning, logInfo, logTrace) {
|
|
40531
|
+
Logger._logError = logError;
|
|
40532
|
+
Logger._logWarning = logWarning;
|
|
40533
|
+
Logger._logInfo = logInfo;
|
|
40534
|
+
Logger._logTrace = logTrace;
|
|
40535
|
+
Logger.turnOffLevelDefault();
|
|
40536
|
+
Logger.turnOffCategories();
|
|
40537
|
+
}
|
|
40538
|
+
/** Initialize the logger to output to the console. */
|
|
40539
|
+
static initializeToConsole() {
|
|
40540
|
+
const logConsole = (level) => (category, message, metaData) => console.log(`${level} | ${category} | ${message} ${Logger.stringifyMetaData(metaData)}`); // eslint-disable-line no-console
|
|
40541
|
+
Logger.initialize(logConsole("Error"), logConsole("Warning"), logConsole("Info"), logConsole("Trace"));
|
|
40542
|
+
}
|
|
40543
|
+
/** merge the supplied metadata with all static metadata into one object */
|
|
40544
|
+
static getMetaData(metaData) {
|
|
40545
|
+
const metaObj = {};
|
|
40546
|
+
for (const meta of Logger.staticMetaData) {
|
|
40547
|
+
const val = BentleyError_1.BentleyError.getMetaData(meta[1]);
|
|
40548
|
+
if (val)
|
|
40549
|
+
Object.assign(metaObj, val);
|
|
40550
|
+
}
|
|
40551
|
+
Object.assign(metaObj, BentleyError_1.BentleyError.getMetaData(metaData)); // do this last so user supplied values take precedence
|
|
40552
|
+
return metaObj;
|
|
40553
|
+
}
|
|
40554
|
+
/** 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. */
|
|
40555
|
+
static stringifyMetaData(metaData) {
|
|
40556
|
+
const metaObj = this.getMetaData(metaData);
|
|
40557
|
+
return Object.keys(metaObj).length > 0 ? JSON.stringify(metaObj) : "";
|
|
40558
|
+
}
|
|
40559
|
+
/** Set the least severe level at which messages should be displayed by default. Call setLevel to override this default setting for specific categories. */
|
|
40560
|
+
static setLevelDefault(minLevel) {
|
|
40561
|
+
Logger._minLevel = minLevel;
|
|
40562
|
+
}
|
|
40563
|
+
/** Set the minimum logging level for the specified category. The minimum level is least severe level at which messages in the
|
|
40564
|
+
* specified category should be displayed.
|
|
40565
|
+
*/
|
|
40566
|
+
static setLevel(category, minLevel) {
|
|
40567
|
+
Logger._categoryFilter.set(category, minLevel);
|
|
40568
|
+
}
|
|
40569
|
+
/** Interpret a string as the name of a LogLevel */
|
|
40570
|
+
static parseLogLevel(str) {
|
|
40571
|
+
switch (str.toUpperCase()) {
|
|
40572
|
+
case "EXCEPTION": return LogLevel.Error;
|
|
40573
|
+
case "FATAL": return LogLevel.Error;
|
|
40574
|
+
case "ERROR": return LogLevel.Error;
|
|
40575
|
+
case "WARNING": return LogLevel.Warning;
|
|
40576
|
+
case "INFO": return LogLevel.Info;
|
|
40577
|
+
case "TRACE": return LogLevel.Trace;
|
|
40578
|
+
case "DEBUG": return LogLevel.Trace;
|
|
40579
|
+
}
|
|
40580
|
+
return LogLevel.None;
|
|
40581
|
+
}
|
|
40582
|
+
/** Set the log level for multiple categories at once. Also see [[validateProps]] */
|
|
40583
|
+
static configureLevels(cfg) {
|
|
40584
|
+
Logger.validateProps(cfg);
|
|
40585
|
+
if (cfg.defaultLevel !== undefined) {
|
|
40586
|
+
this.setLevelDefault(Logger.parseLogLevel(cfg.defaultLevel));
|
|
40587
|
+
}
|
|
40588
|
+
if (cfg.categoryLevels !== undefined) {
|
|
40589
|
+
for (const cl of cfg.categoryLevels) {
|
|
40590
|
+
this.setLevel(cl.category, Logger.parseLogLevel(cl.logLevel));
|
|
40591
|
+
}
|
|
40592
|
+
}
|
|
40593
|
+
}
|
|
40594
|
+
static isLogLevel(v) {
|
|
40595
|
+
return LogLevel.hasOwnProperty(v);
|
|
40596
|
+
}
|
|
40597
|
+
/** Check that the specified object is a valid LoggerLevelsConfig. This is useful when reading a config from a .json file. */
|
|
40598
|
+
static validateProps(config) {
|
|
40599
|
+
const validProps = ["defaultLevel", "categoryLevels"];
|
|
40600
|
+
for (const prop of Object.keys(config)) {
|
|
40601
|
+
if (!validProps.includes(prop))
|
|
40602
|
+
throw new BentleyError_1.BentleyError(BentleyError_1.IModelStatus.BadArg, `LoggerLevelsConfig - unrecognized property: ${prop}`);
|
|
40603
|
+
if (prop === "defaultLevel") {
|
|
40604
|
+
if (!Logger.isLogLevel(config.defaultLevel))
|
|
40605
|
+
throw new BentleyError_1.BentleyError(BentleyError_1.IModelStatus.BadArg, `LoggerLevelsConfig.defaultLevel must be a LogLevel. Invalid value: ${JSON.stringify(config.defaultLevel)}`);
|
|
40606
|
+
}
|
|
40607
|
+
else if (prop === "categoryLevels") {
|
|
40608
|
+
const value = config[prop];
|
|
40609
|
+
if (!Array.isArray(value))
|
|
40610
|
+
throw new BentleyError_1.BentleyError(BentleyError_1.IModelStatus.BadArg, `LoggerLevelsConfig.categoryLevels must be an array. Invalid value: ${JSON.stringify(value)}`);
|
|
40611
|
+
for (const item of config[prop]) {
|
|
40612
|
+
if (!item.hasOwnProperty("category") || !item.hasOwnProperty("logLevel"))
|
|
40613
|
+
throw new BentleyError_1.BentleyError(BentleyError_1.IModelStatus.BadArg, `LoggerLevelsConfig.categoryLevels - each item must be a LoggerCategoryAndLevel {category: logLevel:}. Invalid value: ${JSON.stringify(item)}`);
|
|
40614
|
+
if (!Logger.isLogLevel(item.logLevel))
|
|
40615
|
+
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)}`);
|
|
40616
|
+
}
|
|
40617
|
+
}
|
|
40618
|
+
}
|
|
40619
|
+
}
|
|
40620
|
+
/** Get the minimum logging level for the specified category. */
|
|
40621
|
+
static getLevel(category) {
|
|
40622
|
+
// Prefer the level set for this category specifically
|
|
40623
|
+
const minLevelForThisCategory = Logger._categoryFilter.get(category);
|
|
40624
|
+
if (minLevelForThisCategory !== undefined)
|
|
40625
|
+
return minLevelForThisCategory;
|
|
40626
|
+
// Fall back on the level set for the parent of this category.
|
|
40627
|
+
const parent = category.lastIndexOf(".");
|
|
40628
|
+
if (parent !== -1)
|
|
40629
|
+
return Logger.getLevel(category.slice(0, parent));
|
|
40630
|
+
// Fall back on the default level.
|
|
40631
|
+
return Logger._minLevel;
|
|
40632
|
+
}
|
|
40633
|
+
/** Turns off the least severe level at which messages should be displayed by default.
|
|
40634
|
+
* This turns off logging for all messages for which no category minimum level is defined.
|
|
40635
|
+
*/
|
|
40636
|
+
static turnOffLevelDefault() {
|
|
40637
|
+
Logger._minLevel = undefined;
|
|
40638
|
+
}
|
|
40639
|
+
/** Turns off all category level filters previously defined with [[Logger.setLevel]].
|
|
40640
|
+
*/
|
|
40641
|
+
static turnOffCategories() {
|
|
40642
|
+
Logger._categoryFilter.clear();
|
|
40643
|
+
}
|
|
40644
|
+
/** Check if messages in the specified category should be displayed at this level of severity. */
|
|
40645
|
+
static isEnabled(category, level) {
|
|
40646
|
+
const minLevel = Logger.getLevel(category);
|
|
40647
|
+
return (minLevel !== undefined) && (level >= minLevel);
|
|
40648
|
+
}
|
|
40649
|
+
/** Log the specified message to the **error** stream.
|
|
40650
|
+
* @param category The category of the message.
|
|
40651
|
+
* @param message The message.
|
|
40652
|
+
* @param metaData Optional data for the message
|
|
40653
|
+
*/
|
|
40654
|
+
static logError(category, message, metaData) {
|
|
40655
|
+
if (Logger._logError && Logger.isEnabled(category, LogLevel.Error))
|
|
40656
|
+
Logger._logError(category, message, metaData);
|
|
40657
|
+
}
|
|
40658
|
+
static getExceptionMessage(err) {
|
|
40659
|
+
const stack = Logger.logExceptionCallstacks ? `\n${BentleyError_1.BentleyError.getErrorStack(err)}` : "";
|
|
40660
|
+
return BentleyError_1.BentleyError.getErrorMessage(err) + stack;
|
|
40661
|
+
}
|
|
40662
|
+
/** Log the specified exception. The special "ExceptionType" property will be added as metadata,
|
|
40663
|
+
* in addition to any other metadata that may be supplied by the caller, unless the
|
|
40664
|
+
* metadata supplied by the caller already includes this property.
|
|
40665
|
+
* @param category The category of the message.
|
|
40666
|
+
* @param err The exception object.
|
|
40667
|
+
* @param log The logger output function to use - defaults to Logger.logError
|
|
40668
|
+
* @param metaData Optional data for the message
|
|
40669
|
+
*/
|
|
40670
|
+
static logException(category, err, log = Logger.logError) {
|
|
40671
|
+
log(category, Logger.getExceptionMessage(err), () => {
|
|
40672
|
+
return { ...BentleyError_1.BentleyError.getErrorMetadata(err), exceptionType: err.constructor.name };
|
|
40673
|
+
});
|
|
40674
|
+
}
|
|
40675
|
+
/** Log the specified message to the **warning** stream.
|
|
40676
|
+
* @param category The category of the message.
|
|
40677
|
+
* @param message The message.
|
|
40678
|
+
* @param metaData Optional data for the message
|
|
40679
|
+
*/
|
|
40680
|
+
static logWarning(category, message, metaData) {
|
|
40681
|
+
if (Logger._logWarning && Logger.isEnabled(category, LogLevel.Warning))
|
|
40682
|
+
Logger._logWarning(category, message, metaData);
|
|
40683
|
+
}
|
|
40684
|
+
/** Log the specified message to the **info** stream.
|
|
40685
|
+
* @param category The category of the message.
|
|
40686
|
+
* @param message The message.
|
|
40687
|
+
* @param metaData Optional data for the message
|
|
40688
|
+
*/
|
|
40689
|
+
static logInfo(category, message, metaData) {
|
|
40690
|
+
if (Logger._logInfo && Logger.isEnabled(category, LogLevel.Info))
|
|
40691
|
+
Logger._logInfo(category, message, metaData);
|
|
40692
|
+
}
|
|
40693
|
+
/** Log the specified message to the **trace** stream.
|
|
40694
|
+
* @param category The category of the message.
|
|
40695
|
+
* @param message The message.
|
|
40696
|
+
* @param metaData Optional data for the message
|
|
40697
|
+
*/
|
|
40698
|
+
static logTrace(category, message, metaData) {
|
|
40699
|
+
if (Logger._logTrace && Logger.isEnabled(category, LogLevel.Trace))
|
|
40700
|
+
Logger._logTrace(category, message, metaData);
|
|
40701
|
+
}
|
|
40702
|
+
}
|
|
40703
|
+
exports.Logger = Logger;
|
|
40704
|
+
Logger._categoryFilter = new Map();
|
|
40705
|
+
Logger._minLevel = undefined;
|
|
40706
|
+
/** Should the call stack be included when an exception is logged? */
|
|
40707
|
+
Logger.logExceptionCallstacks = false;
|
|
40708
|
+
/** All static metadata is combined with per-call metadata and stringified in every log message.
|
|
40709
|
+
* Static metadata can either be an object or a function that returns an object.
|
|
40710
|
+
* Use a key to identify entries in the map so the can be removed individually.
|
|
40711
|
+
* @internal */
|
|
40712
|
+
Logger.staticMetaData = new Map();
|
|
40713
|
+
/** Simple performance diagnostics utility.
|
|
40714
|
+
* It measures the time from construction to disposal. On disposal it logs the routine name along with
|
|
40715
|
+
* the duration in milliseconds.
|
|
40716
|
+
* It also logs the routine name at construction time so that nested calls can be disambiguated.
|
|
40717
|
+
*
|
|
40718
|
+
* The timings are logged using the log category **Performance** and log severity [[LogLevel.INFO]].
|
|
40719
|
+
* Enable those, if you want to capture timings.
|
|
40720
|
+
* @public
|
|
40721
|
+
*/
|
|
40722
|
+
class PerfLogger {
|
|
40723
|
+
constructor(operation, metaData) {
|
|
40724
|
+
this._operation = operation;
|
|
40725
|
+
this._metaData = metaData;
|
|
40726
|
+
if (!Logger.isEnabled(BentleyLoggerCategory_1.BentleyLoggerCategory.Performance, PerfLogger._severity)) {
|
|
40727
|
+
this._startTimeStamp = 0;
|
|
40728
|
+
return;
|
|
40729
|
+
}
|
|
40730
|
+
Logger.logInfo(BentleyLoggerCategory_1.BentleyLoggerCategory.Performance, `${this._operation},START`, this._metaData);
|
|
40731
|
+
this._startTimeStamp = new Date().getTime(); // take timestamp
|
|
40732
|
+
}
|
|
40733
|
+
logMessage() {
|
|
40734
|
+
const endTimeStamp = new Date().getTime();
|
|
40735
|
+
if (!Logger.isEnabled(BentleyLoggerCategory_1.BentleyLoggerCategory.Performance, PerfLogger._severity))
|
|
40736
|
+
return;
|
|
40737
|
+
Logger.logInfo(BentleyLoggerCategory_1.BentleyLoggerCategory.Performance, `${this._operation},END`, () => {
|
|
40738
|
+
const mdata = this._metaData ? BentleyError_1.BentleyError.getMetaData(this._metaData) : {};
|
|
40739
|
+
return {
|
|
40740
|
+
...mdata, TimeElapsed: endTimeStamp - this._startTimeStamp, // eslint-disable-line @typescript-eslint/naming-convention
|
|
40741
|
+
};
|
|
40742
|
+
});
|
|
40743
|
+
}
|
|
40744
|
+
dispose() {
|
|
40745
|
+
this.logMessage();
|
|
40746
|
+
}
|
|
40747
|
+
}
|
|
40748
|
+
exports.PerfLogger = PerfLogger;
|
|
40749
|
+
PerfLogger._severity = LogLevel.Info;
|
|
40750
|
+
|
|
40751
|
+
|
|
39549
40752
|
/***/ }),
|
|
39550
40753
|
|
|
39551
40754
|
/***/ "../../core/bentley/lib/esm/AccessToken.js":
|
|
@@ -40044,7 +41247,7 @@ var DbResult;
|
|
|
40044
41247
|
/*!**********************************************************!*\
|
|
40045
41248
|
!*** D:/vsts_a/1/s/core/bentley/lib/esm/BentleyError.js ***!
|
|
40046
41249
|
\**********************************************************/
|
|
40047
|
-
/*! exports provided: BentleyStatus, IModelStatus, BriefcaseStatus, RpcInterfaceStatus, ChangeSetStatus, RepositoryStatus, HttpStatus, IModelHubStatus,
|
|
41250
|
+
/*! exports provided: BentleyStatus, IModelStatus, BriefcaseStatus, RpcInterfaceStatus, ChangeSetStatus, RepositoryStatus, HttpStatus, IModelHubStatus, GeoServiceStatus, RealityDataStatus, BentleyError */
|
|
40048
41251
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
40049
41252
|
|
|
40050
41253
|
"use strict";
|
|
@@ -40057,7 +41260,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
40057
41260
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RepositoryStatus", function() { return RepositoryStatus; });
|
|
40058
41261
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpStatus", function() { return HttpStatus; });
|
|
40059
41262
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IModelHubStatus", function() { return IModelHubStatus; });
|
|
40060
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthStatus", function() { return AuthStatus; });
|
|
40061
41263
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeoServiceStatus", function() { return GeoServiceStatus; });
|
|
40062
41264
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RealityDataStatus", function() { return RealityDataStatus; });
|
|
40063
41265
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BentleyError", function() { return BentleyError; });
|
|
@@ -40364,15 +41566,6 @@ var IModelHubStatus;
|
|
|
40364
41566
|
IModelHubStatus[IModelHubStatus["FileNotFound"] = 102662] = "FileNotFound";
|
|
40365
41567
|
IModelHubStatus[IModelHubStatus["InitializationTimeout"] = 102663] = "InitializationTimeout";
|
|
40366
41568
|
})(IModelHubStatus || (IModelHubStatus = {}));
|
|
40367
|
-
/** Authentication Errors
|
|
40368
|
-
* @beta Internal? Right package?
|
|
40369
|
-
*/
|
|
40370
|
-
var AuthStatus;
|
|
40371
|
-
(function (AuthStatus) {
|
|
40372
|
-
AuthStatus[AuthStatus["Success"] = 0] = "Success";
|
|
40373
|
-
AuthStatus[AuthStatus["AUTHSTATUS_BASE"] = 139264] = "AUTHSTATUS_BASE";
|
|
40374
|
-
AuthStatus[AuthStatus["Error"] = 139264] = "Error";
|
|
40375
|
-
})(AuthStatus || (AuthStatus = {}));
|
|
40376
41569
|
/** GeoServiceStatus errors
|
|
40377
41570
|
* @public
|
|
40378
41571
|
*/
|
|
@@ -40689,7 +41882,6 @@ class BentleyError extends Error {
|
|
|
40689
41882
|
case IModelHubStatus.NotSupportedInBrowser: return "Not supported in browser";
|
|
40690
41883
|
case IModelHubStatus.FileHandlerNotSet: return "File handler is not set";
|
|
40691
41884
|
case IModelHubStatus.FileNotFound: return "File not found";
|
|
40692
|
-
case AuthStatus.Error: return "Authorization error";
|
|
40693
41885
|
case GeoServiceStatus.NoGeoLocation: return "No GeoLocation";
|
|
40694
41886
|
case GeoServiceStatus.OutOfUsefulRange: return "Out of useful range";
|
|
40695
41887
|
case GeoServiceStatus.OutOfMathematicalDomain: return "Out of mathematical domain";
|
|
@@ -44822,8 +46014,6 @@ function lookupCategory(error) {
|
|
|
44822
46014
|
case _BentleyError__WEBPACK_IMPORTED_MODULE_0__["IModelHubStatus"].FileHandlerNotSet: return new NotImplemented();
|
|
44823
46015
|
case _BentleyError__WEBPACK_IMPORTED_MODULE_0__["IModelHubStatus"].FileNotFound: return new NotFound();
|
|
44824
46016
|
case _BentleyError__WEBPACK_IMPORTED_MODULE_0__["IModelHubStatus"].InitializationTimeout: return new Timeout();
|
|
44825
|
-
case _BentleyError__WEBPACK_IMPORTED_MODULE_0__["AuthStatus"].Success: return new Success();
|
|
44826
|
-
case _BentleyError__WEBPACK_IMPORTED_MODULE_0__["AuthStatus"].Error: return new UnknownError();
|
|
44827
46017
|
case _BentleyError__WEBPACK_IMPORTED_MODULE_0__["GeoServiceStatus"].Success: return new Success();
|
|
44828
46018
|
case _BentleyError__WEBPACK_IMPORTED_MODULE_0__["GeoServiceStatus"].NoGeoLocation: return new ValidationError();
|
|
44829
46019
|
case _BentleyError__WEBPACK_IMPORTED_MODULE_0__["GeoServiceStatus"].OutOfUsefulRange: return new ValidationError();
|
|
@@ -45452,7 +46642,7 @@ class YieldManager {
|
|
|
45452
46642
|
/*!**********************************************************!*\
|
|
45453
46643
|
!*** D:/vsts_a/1/s/core/bentley/lib/esm/core-bentley.js ***!
|
|
45454
46644
|
\**********************************************************/
|
|
45455
|
-
/*! exports provided: assert, AsyncMutex, BeEvent, BeUiEvent, BeEventList, BentleyStatus, IModelStatus, BriefcaseStatus, RpcInterfaceStatus, ChangeSetStatus, RepositoryStatus, HttpStatus, IModelHubStatus,
|
|
46645
|
+
/*! 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 */
|
|
45456
46646
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
45457
46647
|
|
|
45458
46648
|
"use strict";
|
|
@@ -45488,8 +46678,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
45488
46678
|
|
|
45489
46679
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IModelHubStatus", function() { return _BentleyError__WEBPACK_IMPORTED_MODULE_4__["IModelHubStatus"]; });
|
|
45490
46680
|
|
|
45491
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthStatus", function() { return _BentleyError__WEBPACK_IMPORTED_MODULE_4__["AuthStatus"]; });
|
|
45492
|
-
|
|
45493
46681
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GeoServiceStatus", function() { return _BentleyError__WEBPACK_IMPORTED_MODULE_4__["GeoServiceStatus"]; });
|
|
45494
46682
|
|
|
45495
46683
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RealityDataStatus", function() { return _BentleyError__WEBPACK_IMPORTED_MODULE_4__["RealityDataStatus"]; });
|
|
@@ -53635,7 +54823,7 @@ IModel.dictionaryId = "0x10";
|
|
|
53635
54823
|
/*!********************************************************!*\
|
|
53636
54824
|
!*** D:/vsts_a/1/s/core/common/lib/esm/IModelError.js ***!
|
|
53637
54825
|
\********************************************************/
|
|
53638
|
-
/*! exports provided: BentleyStatus, BentleyError, IModelStatus, BriefcaseStatus, DbResult,
|
|
54826
|
+
/*! exports provided: BentleyStatus, BentleyError, IModelStatus, BriefcaseStatus, DbResult, RepositoryStatus, ChangeSetStatus, RpcInterfaceStatus, IModelError, ServerError, ServerTimeoutError, BackendError, ChannelConstraintError, NoContentError */
|
|
53639
54827
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
53640
54828
|
|
|
53641
54829
|
"use strict";
|
|
@@ -53657,8 +54845,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
53657
54845
|
|
|
53658
54846
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DbResult", function() { return _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["DbResult"]; });
|
|
53659
54847
|
|
|
53660
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthStatus", function() { return _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["AuthStatus"]; });
|
|
53661
|
-
|
|
53662
54848
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RepositoryStatus", function() { return _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["RepositoryStatus"]; });
|
|
53663
54849
|
|
|
53664
54850
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChangeSetStatus", function() { return _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["ChangeSetStatus"]; });
|
|
@@ -60718,7 +61904,7 @@ WhiteOnWhiteReversalSettings._ignore = new WhiteOnWhiteReversalSettings(false);
|
|
|
60718
61904
|
/*!********************************************************!*\
|
|
60719
61905
|
!*** D:/vsts_a/1/s/core/common/lib/esm/core-common.js ***!
|
|
60720
61906
|
\********************************************************/
|
|
60721
|
-
/*! 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,
|
|
61907
|
+
/*! 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 */
|
|
60722
61908
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
60723
61909
|
|
|
60724
61910
|
"use strict";
|
|
@@ -61065,8 +62251,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61065
62251
|
|
|
61066
62252
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DbResult", function() { return _IModelError__WEBPACK_IMPORTED_MODULE_61__["DbResult"]; });
|
|
61067
62253
|
|
|
61068
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthStatus", function() { return _IModelError__WEBPACK_IMPORTED_MODULE_61__["AuthStatus"]; });
|
|
61069
|
-
|
|
61070
62254
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RepositoryStatus", function() { return _IModelError__WEBPACK_IMPORTED_MODULE_61__["RepositoryStatus"]; });
|
|
61071
62255
|
|
|
61072
62256
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChangeSetStatus", function() { return _IModelError__WEBPACK_IMPORTED_MODULE_61__["ChangeSetStatus"]; });
|
|
@@ -76147,6 +77331,13 @@ class SchemaCache {
|
|
|
76147
77331
|
}
|
|
76148
77332
|
}
|
|
76149
77333
|
}
|
|
77334
|
+
/**
|
|
77335
|
+
* Gets all the schemas from the schema cache.
|
|
77336
|
+
* @returns An array of Schema objects.
|
|
77337
|
+
*/
|
|
77338
|
+
getAllSchemas() {
|
|
77339
|
+
return this._schema;
|
|
77340
|
+
}
|
|
76150
77341
|
}
|
|
76151
77342
|
exports.SchemaCache = SchemaCache;
|
|
76152
77343
|
/**
|
|
@@ -76250,6 +77441,15 @@ class SchemaContext {
|
|
|
76250
77441
|
getSchemaItems() {
|
|
76251
77442
|
return this._knownSchemas.getSchemaItems();
|
|
76252
77443
|
}
|
|
77444
|
+
/**
|
|
77445
|
+
* Gets all the Schemas known by the context. This includes schemas added to the
|
|
77446
|
+
* context using [[SchemaContext.addSchema]]. This does not include schemas that
|
|
77447
|
+
* can be located by an ISchemaLocater instance added to the context.
|
|
77448
|
+
* @returns An array of Schema objects.
|
|
77449
|
+
*/
|
|
77450
|
+
getKnownSchemas() {
|
|
77451
|
+
return this._knownSchemas.getAllSchemas();
|
|
77452
|
+
}
|
|
76253
77453
|
}
|
|
76254
77454
|
exports.SchemaContext = SchemaContext;
|
|
76255
77455
|
|
|
@@ -134114,7 +135314,7 @@ class Uniform {
|
|
|
134114
135314
|
compile(prog) {
|
|
134115
135315
|
Object(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["assert"])(!this.isValid);
|
|
134116
135316
|
if (undefined !== prog.glProgram) {
|
|
134117
|
-
this._handle = _UniformHandle__WEBPACK_IMPORTED_MODULE_4__["UniformHandle"].create(prog
|
|
135317
|
+
this._handle = _UniformHandle__WEBPACK_IMPORTED_MODULE_4__["UniformHandle"].create(prog, this._name);
|
|
134118
135318
|
}
|
|
134119
135319
|
return this.isValid;
|
|
134120
135320
|
}
|
|
@@ -140073,7 +141273,10 @@ function _getGradientDimension() {
|
|
|
140073
141273
|
__webpack_require__.r(__webpack_exports__);
|
|
140074
141274
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UniformHandle", function() { return UniformHandle; });
|
|
140075
141275
|
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
140076
|
-
/* harmony import */ var
|
|
141276
|
+
/* 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");
|
|
141277
|
+
/* 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__);
|
|
141278
|
+
/* harmony import */ var _FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../FrontendLoggerCategory */ "../../core/frontend/lib/esm/FrontendLoggerCategory.js");
|
|
141279
|
+
/* harmony import */ var _System__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./System */ "../../core/frontend/lib/esm/render/webgl/System.js");
|
|
140077
141280
|
/*---------------------------------------------------------------------------------------------
|
|
140078
141281
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
140079
141282
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -140083,6 +141286,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
140083
141286
|
*/
|
|
140084
141287
|
|
|
140085
141288
|
|
|
141289
|
+
|
|
141290
|
+
|
|
140086
141291
|
/** A handle to the location of a uniform within a shader program
|
|
140087
141292
|
* @internal
|
|
140088
141293
|
*/
|
|
@@ -140093,9 +141298,19 @@ class UniformHandle {
|
|
|
140093
141298
|
this._location = location;
|
|
140094
141299
|
}
|
|
140095
141300
|
static create(program, name) {
|
|
140096
|
-
|
|
140097
|
-
if (
|
|
140098
|
-
|
|
141301
|
+
let location = null;
|
|
141302
|
+
if (undefined !== program.glProgram) {
|
|
141303
|
+
location = _System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.context.getUniformLocation(program.glProgram, name);
|
|
141304
|
+
}
|
|
141305
|
+
if (null === location) {
|
|
141306
|
+
const errMsg = `uniform ${name} not found in ${program.description}.`;
|
|
141307
|
+
if (_System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.options.errorOnMissingUniform) {
|
|
141308
|
+
throw new Error(errMsg);
|
|
141309
|
+
}
|
|
141310
|
+
else {
|
|
141311
|
+
_itwin_core_bentley_lib_cjs_Logger__WEBPACK_IMPORTED_MODULE_1__["Logger"].logError(_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_2__["FrontendLoggerCategory"].Render, errMsg);
|
|
141312
|
+
}
|
|
141313
|
+
}
|
|
140099
141314
|
return new UniformHandle(location);
|
|
140100
141315
|
}
|
|
140101
141316
|
updateData(type, data) {
|
|
@@ -140125,46 +141340,46 @@ class UniformHandle {
|
|
|
140125
141340
|
}
|
|
140126
141341
|
setMatrix3(mat) {
|
|
140127
141342
|
if (this.updateData(1 /* Mat3 */, mat.data))
|
|
140128
|
-
|
|
141343
|
+
_System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.context.uniformMatrix3fv(this._location, false, mat.data);
|
|
140129
141344
|
}
|
|
140130
141345
|
setMatrix4(mat) {
|
|
140131
141346
|
if (this.updateData(2 /* Mat4 */, mat.data))
|
|
140132
|
-
|
|
141347
|
+
_System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.context.uniformMatrix4fv(this._location, false, mat.data);
|
|
140133
141348
|
}
|
|
140134
141349
|
setUniform1iv(data) {
|
|
140135
141350
|
if (this.updateData(9 /* IntArray */, data))
|
|
140136
|
-
|
|
141351
|
+
_System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.context.uniform1iv(this._location, data);
|
|
140137
141352
|
}
|
|
140138
141353
|
setUniform1fv(data) {
|
|
140139
141354
|
if (this.updateData(4 /* FloatArray */, data))
|
|
140140
|
-
|
|
141355
|
+
_System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.context.uniform1fv(this._location, data);
|
|
140141
141356
|
}
|
|
140142
141357
|
setUniform2fv(data) {
|
|
140143
141358
|
if (this.updateData(5 /* Vec2 */, data))
|
|
140144
|
-
|
|
141359
|
+
_System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.context.uniform2fv(this._location, data);
|
|
140145
141360
|
}
|
|
140146
141361
|
setUniform3fv(data) {
|
|
140147
141362
|
if (this.updateData(6 /* Vec3 */, data))
|
|
140148
|
-
|
|
141363
|
+
_System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.context.uniform3fv(this._location, data);
|
|
140149
141364
|
}
|
|
140150
141365
|
setUniform4fv(data) {
|
|
140151
141366
|
if (this.updateData(7 /* Vec4 */, data))
|
|
140152
|
-
|
|
141367
|
+
_System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.context.uniform4fv(this._location, data);
|
|
140153
141368
|
}
|
|
140154
141369
|
setUniform1i(data) {
|
|
140155
141370
|
if (this.updateDatum(8 /* Int */, data))
|
|
140156
|
-
|
|
141371
|
+
_System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.context.uniform1i(this._location, data);
|
|
140157
141372
|
}
|
|
140158
141373
|
setUniform1f(data) {
|
|
140159
141374
|
if (this.updateDatum(3 /* Float */, data))
|
|
140160
|
-
|
|
141375
|
+
_System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.context.uniform1f(this._location, data);
|
|
140161
141376
|
}
|
|
140162
141377
|
setUniform1ui(data) {
|
|
140163
141378
|
if (this.updateDatum(10 /* Uint */, data))
|
|
140164
|
-
|
|
141379
|
+
_System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.context.uniform1ui(this._location, data);
|
|
140165
141380
|
}
|
|
140166
141381
|
setUniformBitflags(data) {
|
|
140167
|
-
if (
|
|
141382
|
+
if (_System__WEBPACK_IMPORTED_MODULE_3__["System"].instance.capabilities.isWebGL2)
|
|
140168
141383
|
this.setUniform1ui(data);
|
|
140169
141384
|
else
|
|
140170
141385
|
this.setUniform1f(data);
|
|
@@ -179214,7 +180429,7 @@ SetupWalkCameraTool.iconSpec = "icon-camera-location";
|
|
|
179214
180429
|
/*! exports provided: name, version, description, main, module, typings, license, scripts, repository, keywords, author, peerDependencies, //devDependencies, devDependencies, //dependencies, dependencies, nyc, eslintConfig, default */
|
|
179215
180430
|
/***/ (function(module) {
|
|
179216
180431
|
|
|
179217
|
-
module.exports = JSON.parse("{\"name\":\"@itwin/core-frontend\",\"version\":\"3.3.0-dev.
|
|
180432
|
+
module.exports = JSON.parse("{\"name\":\"@itwin/core-frontend\",\"version\":\"3.3.0-dev.27\",\"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.27\",\"@itwin/core-bentley\":\"workspace:^3.3.0-dev.27\",\"@itwin/core-common\":\"workspace:^3.3.0-dev.27\",\"@itwin/core-geometry\":\"workspace:^3.3.0-dev.27\",\"@itwin/core-orbitgt\":\"workspace:^3.3.0-dev.27\",\"@itwin/core-quantity\":\"workspace:^3.3.0-dev.27\",\"@itwin/webgl-compatibility\":\"workspace:^3.3.0-dev.27\"},\"//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\"}}]}}");
|
|
179218
180433
|
|
|
179219
180434
|
/***/ }),
|
|
179220
180435
|
|