@itwin/rpcinterface-full-stack-tests 4.5.0-dev.7 → 4.5.0-dev.9
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/_bea9.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +34 -26
- package/lib/dist/bundled-tests.js.map +1 -1
- package/lib/dist/core_frontend_lib_esm_ApproximateTerrainHeightsProps_js.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_1_6_node_modules_loaders_gl_draco_di-0642a6.bundled-tests.js.map +1 -1
- package/package.json +13 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\
|
|
1
|
+
{"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\10\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.1.6\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
|
|
@@ -28228,7 +28228,6 @@ class BentleyError extends Error {
|
|
|
28228
28228
|
case GeoServiceStatus.CSMapError: return "CSMap error";
|
|
28229
28229
|
case GeoServiceStatus.Pending: return "Pending";
|
|
28230
28230
|
case RealityDataStatus.InvalidData: return "Invalid or unknown data";
|
|
28231
|
-
case IModelStatus.Success:
|
|
28232
28231
|
case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_OK:
|
|
28233
28232
|
case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_ROW:
|
|
28234
28233
|
case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_DONE:
|
|
@@ -81788,6 +81787,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
81788
81787
|
/* harmony import */ var _IModelApp__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./IModelApp */ "../../core/frontend/lib/esm/IModelApp.js");
|
|
81789
81788
|
/* harmony import */ var _IModelConnection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./IModelConnection */ "../../core/frontend/lib/esm/IModelConnection.js");
|
|
81790
81789
|
/* harmony import */ var _IModelRoutingContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./IModelRoutingContext */ "../../core/frontend/lib/esm/IModelRoutingContext.js");
|
|
81790
|
+
/* harmony import */ var _IpcApp__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./IpcApp */ "../../core/frontend/lib/esm/IpcApp.js");
|
|
81791
81791
|
/*---------------------------------------------------------------------------------------------
|
|
81792
81792
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
81793
81793
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -81801,17 +81801,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
81801
81801
|
|
|
81802
81802
|
|
|
81803
81803
|
|
|
81804
|
+
|
|
81804
81805
|
const loggerCategory = _common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_2__.FrontendLoggerCategory.IModelConnection;
|
|
81805
81806
|
/**
|
|
81806
|
-
* An IModelConnection to a
|
|
81807
|
-
*
|
|
81808
|
-
* at servicing requests at the same time. For this reason, this type of connection may only be used with Checkpoint iModels that are
|
|
81809
|
-
* guaranteed to be the same on every backend. Obviously Checkpoint iModels only allow readonly access.
|
|
81807
|
+
* An IModelConnection to a Checkpoint of an iModel.
|
|
81808
|
+
* @see [CheckpointConnection]($docs/learning/frontend/IModelConnection)
|
|
81810
81809
|
* @public
|
|
81811
81810
|
*/
|
|
81812
81811
|
class CheckpointConnection extends _IModelConnection__WEBPACK_IMPORTED_MODULE_4__.IModelConnection {
|
|
81813
|
-
|
|
81814
|
-
|
|
81812
|
+
/** The Guid that identifies the iTwin that owns this iModel. */
|
|
81813
|
+
get iTwinId() { return super.iTwinId; }
|
|
81814
|
+
/** The Guid that identifies this iModel. */
|
|
81815
|
+
get iModelId() { return super.iModelId; }
|
|
81816
|
+
/** Returns `true` if [[close]] has already been called. */
|
|
81817
|
+
get isClosed() { return this._isClosed ? true : false; }
|
|
81818
|
+
constructor(props, fromIpc) {
|
|
81819
|
+
super(props);
|
|
81815
81820
|
this._reopenConnectionHandler = async (request, response, resubmit, reject) => {
|
|
81816
81821
|
if (!response.hasOwnProperty("isIModelNotFoundResponse"))
|
|
81817
81822
|
return;
|
|
@@ -81834,30 +81839,30 @@ class CheckpointConnection extends _IModelConnection__WEBPACK_IMPORTED_MODULE_4_
|
|
|
81834
81839
|
request.parameters[0] = this.getRpcProps(); // Modify the token of the original request before resubmitting it.
|
|
81835
81840
|
resubmit();
|
|
81836
81841
|
};
|
|
81842
|
+
this._fromIpc = fromIpc;
|
|
81837
81843
|
}
|
|
81838
|
-
/** The Guid that identifies the iTwin that owns this iModel. */
|
|
81839
|
-
get iTwinId() { return super.iTwinId; }
|
|
81840
|
-
/** The Guid that identifies this iModel. */
|
|
81841
|
-
get iModelId() { return super.iModelId; }
|
|
81842
|
-
/** Returns `true` if [[close]] has already been called. */
|
|
81843
|
-
get isClosed() { return this._isClosed ? true : false; }
|
|
81844
81844
|
/** Type guard for instanceof [[CheckpointConnection]] */
|
|
81845
81845
|
isCheckpointConnection() { return true; }
|
|
81846
81846
|
/**
|
|
81847
|
-
* Open a readonly IModelConnection to an iModel
|
|
81847
|
+
* Open a readonly IModelConnection to a Checkpoint of an iModel.
|
|
81848
81848
|
*/
|
|
81849
81849
|
static async openRemote(iTwinId, iModelId, version = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelVersion.latest()) {
|
|
81850
|
-
const routingContext = _IModelRoutingContext__WEBPACK_IMPORTED_MODULE_5__.IModelRoutingContext.current || _IModelRoutingContext__WEBPACK_IMPORTED_MODULE_5__.IModelRoutingContext["default"];
|
|
81851
|
-
const accessToken = await _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.getAccessToken();
|
|
81852
81850
|
if (undefined === _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.hubAccess)
|
|
81853
|
-
throw new Error("Missing an implementation of
|
|
81851
|
+
throw new Error("Missing an implementation of IModelApp.hubAccess");
|
|
81852
|
+
const accessToken = await _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.getAccessToken();
|
|
81854
81853
|
const changeset = await _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.hubAccess.getChangesetFromVersion({ accessToken, iModelId, version });
|
|
81855
|
-
|
|
81856
|
-
const
|
|
81857
|
-
|
|
81858
|
-
|
|
81859
|
-
|
|
81860
|
-
|
|
81854
|
+
let connection;
|
|
81855
|
+
const iModelProps = { iTwinId, iModelId, changeset };
|
|
81856
|
+
if (_IpcApp__WEBPACK_IMPORTED_MODULE_6__.IpcApp.isValid) {
|
|
81857
|
+
connection = new this(await _IpcApp__WEBPACK_IMPORTED_MODULE_6__.IpcApp.appFunctionIpc.openCheckpoint(iModelProps), true);
|
|
81858
|
+
}
|
|
81859
|
+
else {
|
|
81860
|
+
const routingContext = _IModelRoutingContext__WEBPACK_IMPORTED_MODULE_5__.IModelRoutingContext.current || _IModelRoutingContext__WEBPACK_IMPORTED_MODULE_5__.IModelRoutingContext["default"];
|
|
81861
|
+
connection = new this(await this.callOpen(iModelProps, routingContext), false);
|
|
81862
|
+
_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcManager.setIModel(connection);
|
|
81863
|
+
connection.routingContext = routingContext;
|
|
81864
|
+
_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcRequest.notFoundHandlers.addListener(connection._reopenConnectionHandler);
|
|
81865
|
+
}
|
|
81861
81866
|
_IModelConnection__WEBPACK_IMPORTED_MODULE_4__.IModelConnection.onOpen.raiseEvent(connection);
|
|
81862
81867
|
return connection;
|
|
81863
81868
|
}
|
|
@@ -81905,7 +81910,10 @@ class CheckpointConnection extends _IModelConnection__WEBPACK_IMPORTED_MODULE_4_
|
|
|
81905
81910
|
if (this.isClosed)
|
|
81906
81911
|
return;
|
|
81907
81912
|
this.beforeClose();
|
|
81908
|
-
|
|
81913
|
+
if (this._fromIpc)
|
|
81914
|
+
await _IpcApp__WEBPACK_IMPORTED_MODULE_6__.IpcApp.appFunctionIpc.closeIModel(this._fileKey);
|
|
81915
|
+
else
|
|
81916
|
+
_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcRequest.notFoundHandlers.removeListener(this._reopenConnectionHandler);
|
|
81909
81917
|
this._isClosed = true;
|
|
81910
81918
|
}
|
|
81911
81919
|
}
|
|
@@ -288809,7 +288817,7 @@ class TestContext {
|
|
|
288809
288817
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
288810
288818
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
288811
288819
|
await core_frontend_1.NoRenderApp.startup({
|
|
288812
|
-
applicationVersion: "4.5.0-dev.
|
|
288820
|
+
applicationVersion: "4.5.0-dev.9",
|
|
288813
288821
|
applicationId: this.settings.gprid,
|
|
288814
288822
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
288815
288823
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -307642,7 +307650,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
307642
307650
|
/***/ ((module) => {
|
|
307643
307651
|
|
|
307644
307652
|
"use strict";
|
|
307645
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.5.0-dev.
|
|
307653
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.5.0-dev.9","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^4.5.0-dev.9","@itwin/core-bentley":"workspace:^4.5.0-dev.9","@itwin/core-common":"workspace:^4.5.0-dev.9","@itwin/core-geometry":"workspace:^4.5.0-dev.9","@itwin/core-orbitgt":"workspace:^4.5.0-dev.9","@itwin/core-quantity":"workspace:^4.5.0-dev.9"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"4.0.0-dev.44","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^10.0.6","@types/sinon":"^17.0.2","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7.1.1","cpx2":"^3.0.0","eslint":"^8.44.0","glob":"^7.1.2","mocha":"^10.2.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^17.0.1","source-map-loader":"^4.0.0","typescript":"~5.0.2","typemoq":"^2.1.0","webpack":"^5.76.0"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/cloud-agnostic-core":"^2.1.0","@itwin/object-storage-core":"^2.2.2","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"}}');
|
|
307646
307654
|
|
|
307647
307655
|
/***/ }),
|
|
307648
307656
|
|