@itwin/rpcinterface-full-stack-tests 3.3.0-dev.88 → 3.3.0
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/_c41d.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +57 -41
- 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_2_5_node_modules_loaders_gl_draco_di-e0b0bc.bundled-tests.js.map +1 -1
- package/package.json +14 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_c41d.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\
|
|
1
|
+
{"version":3,"file":"_c41d.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\279\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.2.5\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
|
|
@@ -89939,6 +89939,9 @@ class BentleyCloudRpcProtocol extends _WebAppRpcProtocol__WEBPACK_IMPORTED_MODUL
|
|
|
89939
89939
|
const components = url.pathname.split("/").filter((x) => x); // filter out empty segments
|
|
89940
89940
|
const operationComponent = components.slice(-1)[0];
|
|
89941
89941
|
const encodedRequest = url.searchParams.get("parameters") || "";
|
|
89942
|
+
// The encodedRequest should be base64 - fail now if any other characters detected.
|
|
89943
|
+
if (/[^A-z0-9=+\/]/.test(encodedRequest))
|
|
89944
|
+
throw new _IModelError__WEBPACK_IMPORTED_MODULE_1__.IModelError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.ERROR, `Invalid request: Malformed URL parameters detected.`);
|
|
89942
89945
|
const firstHyphen = operationComponent.indexOf("-");
|
|
89943
89946
|
const lastHyphen = operationComponent.lastIndexOf("-");
|
|
89944
89947
|
const interfaceDefinition = operationComponent.slice(0, firstHyphen);
|
|
@@ -90330,11 +90333,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
90330
90333
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
90331
90334
|
/* harmony export */ "WebAppRpcProtocol": () => (/* binding */ WebAppRpcProtocol)
|
|
90332
90335
|
/* harmony export */ });
|
|
90333
|
-
/* harmony import */ var
|
|
90334
|
-
/* harmony import */ var
|
|
90335
|
-
/* harmony import */ var
|
|
90336
|
-
/* harmony import */ var
|
|
90337
|
-
/* harmony import */ var
|
|
90336
|
+
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
90337
|
+
/* harmony import */ var _CommonLoggerCategory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../CommonLoggerCategory */ "../../core/common/lib/esm/CommonLoggerCategory.js");
|
|
90338
|
+
/* harmony import */ var _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/RpcConstants */ "../../core/common/lib/esm/rpc/core/RpcConstants.js");
|
|
90339
|
+
/* harmony import */ var _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/RpcProtocol */ "../../core/common/lib/esm/rpc/core/RpcProtocol.js");
|
|
90340
|
+
/* harmony import */ var _OpenAPI__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./OpenAPI */ "../../core/common/lib/esm/rpc/web/OpenAPI.js");
|
|
90341
|
+
/* harmony import */ var _WebAppRpcLogging__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./WebAppRpcLogging */ "../../core/common/lib/esm/rpc/web/WebAppRpcLogging.js");
|
|
90342
|
+
/* harmony import */ var _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./WebAppRpcRequest */ "../../core/common/lib/esm/rpc/web/WebAppRpcRequest.js");
|
|
90338
90343
|
/*---------------------------------------------------------------------------------------------
|
|
90339
90344
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
90340
90345
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -90347,10 +90352,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
90347
90352
|
|
|
90348
90353
|
|
|
90349
90354
|
|
|
90355
|
+
|
|
90356
|
+
|
|
90350
90357
|
/** The HTTP application protocol.
|
|
90351
90358
|
* @internal
|
|
90352
90359
|
*/
|
|
90353
|
-
class WebAppRpcProtocol extends
|
|
90360
|
+
class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_3__.RpcProtocol {
|
|
90354
90361
|
/** Constructs an HTTP protocol. */
|
|
90355
90362
|
constructor(configuration) {
|
|
90356
90363
|
super(configuration);
|
|
@@ -90358,9 +90365,9 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__.R
|
|
|
90358
90365
|
/** An optional prefix for RPC operation URI paths. */
|
|
90359
90366
|
this.pathPrefix = "";
|
|
90360
90367
|
/** The RPC request class for this protocol. */
|
|
90361
|
-
this.requestType =
|
|
90368
|
+
this.requestType = _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_6__.WebAppRpcRequest;
|
|
90362
90369
|
this.supportsStatusCategory = true;
|
|
90363
|
-
this.events.addListener(
|
|
90370
|
+
this.events.addListener(_WebAppRpcLogging__WEBPACK_IMPORTED_MODULE_5__.WebAppRpcLogging.logProtocolEvent);
|
|
90364
90371
|
}
|
|
90365
90372
|
/** Convenience handler for an RPC operation get request for an HTTP server. */
|
|
90366
90373
|
async handleOperationGetRequest(req, res) {
|
|
@@ -90368,9 +90375,19 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__.R
|
|
|
90368
90375
|
}
|
|
90369
90376
|
/** Convenience handler for an RPC operation post request for an HTTP server. */
|
|
90370
90377
|
async handleOperationPostRequest(req, res) {
|
|
90371
|
-
|
|
90378
|
+
let request;
|
|
90379
|
+
try {
|
|
90380
|
+
request = await _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_6__.WebAppRpcRequest.parseRequest(this, req);
|
|
90381
|
+
}
|
|
90382
|
+
catch (error) {
|
|
90383
|
+
const message = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getErrorMessage(error);
|
|
90384
|
+
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logError(_CommonLoggerCategory__WEBPACK_IMPORTED_MODULE_1__.CommonLoggerCategory.RpcInterfaceBackend, `Failed to parse request: ${message}`, _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getErrorMetadata(error));
|
|
90385
|
+
res.status(400);
|
|
90386
|
+
res.send(JSON.stringify({ message, isError: true }));
|
|
90387
|
+
return;
|
|
90388
|
+
}
|
|
90372
90389
|
const fulfillment = await this.fulfill(request);
|
|
90373
|
-
await
|
|
90390
|
+
await _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_6__.WebAppRpcRequest.sendResponse(this, request, fulfillment, req, res);
|
|
90374
90391
|
}
|
|
90375
90392
|
/** Convenience handler for an OpenAPI description request for an HTTP server. */
|
|
90376
90393
|
handleOpenApiDescriptionRequest(_req, res) {
|
|
@@ -90380,45 +90397,45 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__.R
|
|
|
90380
90397
|
/** Converts an HTTP content type value to an RPC content type value. */
|
|
90381
90398
|
static computeContentType(httpType) {
|
|
90382
90399
|
if (!httpType)
|
|
90383
|
-
return
|
|
90384
|
-
if (httpType.indexOf(
|
|
90385
|
-
return
|
|
90400
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Unknown;
|
|
90401
|
+
if (httpType.indexOf(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.WEB_RPC_CONSTANTS.ANY_TEXT) === 0) {
|
|
90402
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Text;
|
|
90386
90403
|
}
|
|
90387
|
-
else if (httpType.indexOf(
|
|
90388
|
-
return
|
|
90404
|
+
else if (httpType.indexOf(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.WEB_RPC_CONSTANTS.BINARY) === 0) {
|
|
90405
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Binary;
|
|
90389
90406
|
}
|
|
90390
|
-
else if (httpType.indexOf(
|
|
90391
|
-
return
|
|
90407
|
+
else if (httpType.indexOf(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.WEB_RPC_CONSTANTS.MULTIPART) === 0) {
|
|
90408
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Multipart;
|
|
90392
90409
|
}
|
|
90393
90410
|
else {
|
|
90394
|
-
return
|
|
90411
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Unknown;
|
|
90395
90412
|
}
|
|
90396
90413
|
}
|
|
90397
90414
|
/** Supplies the status corresponding to a protocol-specific code value. */
|
|
90398
90415
|
getStatus(code) {
|
|
90399
90416
|
switch (code) {
|
|
90400
|
-
case 404: return
|
|
90401
|
-
case 202: return
|
|
90402
|
-
case 200: return
|
|
90403
|
-
case 500: return
|
|
90404
|
-
case 204: return
|
|
90405
|
-
case 502: return
|
|
90406
|
-
case 503: return
|
|
90407
|
-
case 504: return
|
|
90408
|
-
default: return
|
|
90417
|
+
case 404: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.NotFound;
|
|
90418
|
+
case 202: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Pending;
|
|
90419
|
+
case 200: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Resolved;
|
|
90420
|
+
case 500: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Rejected;
|
|
90421
|
+
case 204: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.NoContent;
|
|
90422
|
+
case 502: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.BadGateway;
|
|
90423
|
+
case 503: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.ServiceUnavailable;
|
|
90424
|
+
case 504: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.GatewayTimeout;
|
|
90425
|
+
default: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Unknown;
|
|
90409
90426
|
}
|
|
90410
90427
|
}
|
|
90411
90428
|
/** Supplies the protocol-specific code corresponding to a status value. */
|
|
90412
90429
|
getCode(status) {
|
|
90413
90430
|
switch (status) {
|
|
90414
|
-
case
|
|
90415
|
-
case
|
|
90416
|
-
case
|
|
90417
|
-
case
|
|
90418
|
-
case
|
|
90419
|
-
case
|
|
90420
|
-
case
|
|
90421
|
-
case
|
|
90431
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.NotFound: return 404;
|
|
90432
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Pending: return 202;
|
|
90433
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Resolved: return 200;
|
|
90434
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Rejected: return 500;
|
|
90435
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.NoContent: return 204;
|
|
90436
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.BadGateway: return 502;
|
|
90437
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.ServiceUnavailable: return 503;
|
|
90438
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.GatewayTimeout: return 504;
|
|
90422
90439
|
default: return 501;
|
|
90423
90440
|
}
|
|
90424
90441
|
}
|
|
@@ -90429,7 +90446,7 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__.R
|
|
|
90429
90446
|
/** An OpenAPI-compatible description of this protocol.
|
|
90430
90447
|
* @internal
|
|
90431
90448
|
*/
|
|
90432
|
-
get openAPIDescription() { return new
|
|
90449
|
+
get openAPIDescription() { return new _OpenAPI__WEBPACK_IMPORTED_MODULE_4__.RpcOpenAPIDescription(this); }
|
|
90433
90450
|
}
|
|
90434
90451
|
|
|
90435
90452
|
|
|
@@ -90530,7 +90547,7 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_6__.Rpc
|
|
|
90530
90547
|
}
|
|
90531
90548
|
}
|
|
90532
90549
|
if (!request.id) {
|
|
90533
|
-
throw new _IModelError__WEBPACK_IMPORTED_MODULE_2__.IModelError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.ERROR, `Invalid request.`);
|
|
90550
|
+
throw new _IModelError__WEBPACK_IMPORTED_MODULE_2__.IModelError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.ERROR, `Invalid request: Missing required activity ID.`);
|
|
90534
90551
|
}
|
|
90535
90552
|
return request;
|
|
90536
90553
|
}
|
|
@@ -136619,8 +136636,6 @@ class RealityMeshGeometry extends _CachedGeometry__WEBPACK_IMPORTED_MODULE_7__.I
|
|
|
136619
136636
|
}
|
|
136620
136637
|
get techniqueId() { return 7 /* RealityMesh */; }
|
|
136621
136638
|
getPass(target) {
|
|
136622
|
-
if (target.isDrawingShadowMap)
|
|
136623
|
-
return "none";
|
|
136624
136639
|
if (this._baseIsTransparent || (target.wantThematicDisplay && target.uniforms.thematic.wantIsoLines))
|
|
136625
136640
|
return "translucent";
|
|
136626
136641
|
return "opaque";
|
|
@@ -163043,6 +163058,7 @@ class RealityTileTree extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTree {
|
|
|
163043
163058
|
const preloadDebugBuilder = (debugControl && debugControl.displayRealityTilePreload) ? args.context.createSceneGraphicBuilder() : undefined;
|
|
163044
163059
|
const graphicTypeBranches = new Map();
|
|
163045
163060
|
const selectedTiles = this.selectRealityTiles(args, displayedTileDescendants, preloadDebugBuilder);
|
|
163061
|
+
args.processSelectedTiles(selectedTiles);
|
|
163046
163062
|
let sortIndices;
|
|
163047
163063
|
if (!this.parentsAndChildrenExclusive) {
|
|
163048
163064
|
sortIndices = selectedTiles.map((_x, i) => i);
|
|
@@ -287093,7 +287109,7 @@ class TestContext {
|
|
|
287093
287109
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
287094
287110
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${(_a = process.env.IMJS_URL_PREFIX) !== null && _a !== void 0 ? _a : ""}api.bentley.com/imodels` } });
|
|
287095
287111
|
await core_frontend_1.NoRenderApp.startup({
|
|
287096
|
-
applicationVersion: "3.3.0
|
|
287112
|
+
applicationVersion: "3.3.0",
|
|
287097
287113
|
applicationId: this.settings.gprid,
|
|
287098
287114
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
287099
287115
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -305550,7 +305566,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
305550
305566
|
/***/ ((module) => {
|
|
305551
305567
|
|
|
305552
305568
|
"use strict";
|
|
305553
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.3.0
|
|
305569
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.3.0","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","@itwin/core-bentley":"workspace:^3.3.0","@itwin/core-common":"workspace:^3.3.0","@itwin/core-geometry":"workspace:^3.3.0","@itwin/core-orbitgt":"workspace:^3.3.0","@itwin/core-quantity":"workspace:^3.3.0","@itwin/webgl-compatibility":"workspace:^3.3.0"},"//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.3.1","@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":"^7.3.9","@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":"^4.0.0","typescript":"~4.4.0","webpack":"^5.64.4"},"//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":"^7.3.5","superagent":"7.1.3","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"}}]}}');
|
|
305554
305570
|
|
|
305555
305571
|
/***/ }),
|
|
305556
305572
|
|