@itwin/rpcinterface-full-stack-tests 5.0.0-dev.0 → 5.0.0-dev.2
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 +17 -9
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +13 -13
|
@@ -62033,6 +62033,7 @@ const unknownIModelId = (req) => ({ iModelId: "undefined", key: req.parameters[0
|
|
|
62033
62033
|
/** The RPC interface for working with *snapshot* iModels.
|
|
62034
62034
|
* This interface is intended for desktop and mobile products. Web products are discouraged from registering this interface.
|
|
62035
62035
|
* @internal
|
|
62036
|
+
* @deprecated in 5.0. Check [[IpcAppFunctions]] or [[CheckpointConnection]] for replacements.
|
|
62036
62037
|
*/
|
|
62037
62038
|
class SnapshotIModelRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_0__.RpcInterface {
|
|
62038
62039
|
/** Returns the SnapshotIModelRpcInterface client instance for the frontend. */
|
|
@@ -62043,11 +62044,17 @@ class SnapshotIModelRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_
|
|
|
62043
62044
|
NOTE: Any add/remove/change to the methods below requires an update of the interface version.
|
|
62044
62045
|
NOTE: Please consult the README in this folder for the semantic versioning rules.
|
|
62045
62046
|
===========================================================================================*/
|
|
62047
|
+
/**
|
|
62048
|
+
* @deprecated in 5.0. Use [[IpcAppFunctions.openSnapshot]] in IPC applications, no replacement for Web applications.
|
|
62049
|
+
*/
|
|
62046
62050
|
async openFile(_filePath, _opts) { return this.forward(arguments); }
|
|
62047
62051
|
/**
|
|
62048
62052
|
* @deprecated in 4.10. Use [[CheckpointConnection.openRemote]].
|
|
62049
62053
|
*/
|
|
62050
62054
|
async openRemote(_key, _opts) { return this.forward(arguments); }
|
|
62055
|
+
/**
|
|
62056
|
+
* @deprecated in 5.0. Use [[IpcAppFunctions.closeIModel]] in IPC applications, no replacement for Web applications.
|
|
62057
|
+
*/
|
|
62051
62058
|
async close(_iModelRpcProps) { return this.forward(arguments); }
|
|
62052
62059
|
}
|
|
62053
62060
|
/** The immutable name of the interface. */
|
|
@@ -89021,6 +89028,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
89021
89028
|
/* harmony import */ var _Tiles__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Tiles */ "../../core/frontend/lib/esm/Tiles.js");
|
|
89022
89029
|
/* harmony import */ var _ViewState__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ViewState */ "../../core/frontend/lib/esm/ViewState.js");
|
|
89023
89030
|
/* harmony import */ var _common_internal_Symbols__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./common/internal/Symbols */ "../../core/frontend/lib/esm/common/internal/Symbols.js");
|
|
89031
|
+
/* harmony import */ var _IpcApp__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./IpcApp */ "../../core/frontend/lib/esm/IpcApp.js");
|
|
89024
89032
|
/*---------------------------------------------------------------------------------------------
|
|
89025
89033
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
89026
89034
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -89042,6 +89050,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
89042
89050
|
|
|
89043
89051
|
|
|
89044
89052
|
|
|
89053
|
+
|
|
89045
89054
|
const loggerCategory = _common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_3__.FrontendLoggerCategory.IModelConnection;
|
|
89046
89055
|
/** A connection to a [IModelDb]($backend) hosted on the backend.
|
|
89047
89056
|
* @public
|
|
@@ -89631,15 +89640,14 @@ class SnapshotConnection extends IModelConnection {
|
|
|
89631
89640
|
*/
|
|
89632
89641
|
get isRemote() { return this._isRemote ? true : false; }
|
|
89633
89642
|
/** Open an IModelConnection to a read-only snapshot iModel from a file name.
|
|
89634
|
-
* @note This method is intended for desktop or mobile applications and
|
|
89643
|
+
* @note This method is intended for desktop or mobile applications and is not available for web applications.
|
|
89635
89644
|
*/
|
|
89636
89645
|
static async openFile(filePath) {
|
|
89637
|
-
|
|
89638
|
-
|
|
89639
|
-
const openResponse = await _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.SnapshotIModelRpcInterface.getClientForRouting(routingContext.token).openFile(filePath);
|
|
89646
|
+
if (!_IpcApp__WEBPACK_IMPORTED_MODULE_14__.IpcApp.isValid)
|
|
89647
|
+
throw new Error("IPC required to open a snapshot");
|
|
89640
89648
|
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logTrace(loggerCategory, "SnapshotConnection.openFile", () => ({ filePath }));
|
|
89641
|
-
const
|
|
89642
|
-
connection
|
|
89649
|
+
const connectionProps = await _IpcApp__WEBPACK_IMPORTED_MODULE_14__.IpcApp.appFunctionIpc.openSnapshot(filePath);
|
|
89650
|
+
const connection = new SnapshotConnection(connectionProps);
|
|
89643
89651
|
IModelConnection.onOpen.raiseEvent(connection);
|
|
89644
89652
|
return connection;
|
|
89645
89653
|
}
|
|
@@ -89669,7 +89677,7 @@ class SnapshotConnection extends IModelConnection {
|
|
|
89669
89677
|
this.beforeClose();
|
|
89670
89678
|
try {
|
|
89671
89679
|
if (!this.isRemote) {
|
|
89672
|
-
await
|
|
89680
|
+
await _IpcApp__WEBPACK_IMPORTED_MODULE_14__.IpcApp.appFunctionIpc.closeIModel(this.key);
|
|
89673
89681
|
}
|
|
89674
89682
|
}
|
|
89675
89683
|
finally {
|
|
@@ -296813,7 +296821,7 @@ class TestContext {
|
|
|
296813
296821
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
296814
296822
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
296815
296823
|
await core_frontend_1.NoRenderApp.startup({
|
|
296816
|
-
applicationVersion: "5.0.0-dev.
|
|
296824
|
+
applicationVersion: "5.0.0-dev.2",
|
|
296817
296825
|
applicationId: this.settings.gprid,
|
|
296818
296826
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
296819
296827
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -321676,7 +321684,7 @@ function __disposeResources(env) {
|
|
|
321676
321684
|
/***/ ((module) => {
|
|
321677
321685
|
|
|
321678
321686
|
"use strict";
|
|
321679
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"5.0.0-dev.
|
|
321687
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"5.0.0-dev.2","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run webpackTestWorker && vitest --run","cover":"npm run webpackTestWorker && vitest --run --coverage","test:debug":"vitest --run","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^5.0.0-dev.2","@itwin/core-bentley":"workspace:^5.0.0-dev.2","@itwin/core-common":"workspace:^5.0.0-dev.2","@itwin/core-geometry":"workspace:^5.0.0-dev.2","@itwin/core-orbitgt":"workspace:^5.0.0-dev.2","@itwin/core-quantity":"workspace:^5.0.0-dev.2"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/eslint-plugin":"5.0.0-dev.1","@types/chai-as-promised":"^7","@vitest/browser":"^2.1.0","@vitest/coverage-v8":"^2.1.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","cpx2":"^3.0.0","eslint":"^9.13.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^3.0.2","source-map-loader":"^4.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^2.1.0","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"1.0.6","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.2.4","@itwin/object-storage-core":"^2.2.5","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","meshoptimizer":"~0.20.0","wms-capabilities":"0.4.0"}}');
|
|
321680
321688
|
|
|
321681
321689
|
/***/ }),
|
|
321682
321690
|
|