@itwin/ecschema-rpcinterface-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 +56 -40
- 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 +16 -16
|
@@ -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":""}
|
|
@@ -89602,6 +89602,9 @@ class BentleyCloudRpcProtocol extends _WebAppRpcProtocol__WEBPACK_IMPORTED_MODUL
|
|
|
89602
89602
|
const components = url.pathname.split("/").filter((x) => x); // filter out empty segments
|
|
89603
89603
|
const operationComponent = components.slice(-1)[0];
|
|
89604
89604
|
const encodedRequest = url.searchParams.get("parameters") || "";
|
|
89605
|
+
// The encodedRequest should be base64 - fail now if any other characters detected.
|
|
89606
|
+
if (/[^A-z0-9=+\/]/.test(encodedRequest))
|
|
89607
|
+
throw new _IModelError__WEBPACK_IMPORTED_MODULE_1__.IModelError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.ERROR, `Invalid request: Malformed URL parameters detected.`);
|
|
89605
89608
|
const firstHyphen = operationComponent.indexOf("-");
|
|
89606
89609
|
const lastHyphen = operationComponent.lastIndexOf("-");
|
|
89607
89610
|
const interfaceDefinition = operationComponent.slice(0, firstHyphen);
|
|
@@ -89993,11 +89996,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
89993
89996
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
89994
89997
|
/* harmony export */ "WebAppRpcProtocol": () => (/* binding */ WebAppRpcProtocol)
|
|
89995
89998
|
/* harmony export */ });
|
|
89996
|
-
/* harmony import */ var
|
|
89997
|
-
/* harmony import */ var
|
|
89998
|
-
/* harmony import */ var
|
|
89999
|
-
/* harmony import */ var
|
|
90000
|
-
/* harmony import */ var
|
|
89999
|
+
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
90000
|
+
/* harmony import */ var _CommonLoggerCategory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../CommonLoggerCategory */ "../../core/common/lib/esm/CommonLoggerCategory.js");
|
|
90001
|
+
/* harmony import */ var _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/RpcConstants */ "../../core/common/lib/esm/rpc/core/RpcConstants.js");
|
|
90002
|
+
/* harmony import */ var _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/RpcProtocol */ "../../core/common/lib/esm/rpc/core/RpcProtocol.js");
|
|
90003
|
+
/* harmony import */ var _OpenAPI__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./OpenAPI */ "../../core/common/lib/esm/rpc/web/OpenAPI.js");
|
|
90004
|
+
/* harmony import */ var _WebAppRpcLogging__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./WebAppRpcLogging */ "../../core/common/lib/esm/rpc/web/WebAppRpcLogging.js");
|
|
90005
|
+
/* harmony import */ var _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./WebAppRpcRequest */ "../../core/common/lib/esm/rpc/web/WebAppRpcRequest.js");
|
|
90001
90006
|
/*---------------------------------------------------------------------------------------------
|
|
90002
90007
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
90003
90008
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -90010,10 +90015,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
90010
90015
|
|
|
90011
90016
|
|
|
90012
90017
|
|
|
90018
|
+
|
|
90019
|
+
|
|
90013
90020
|
/** The HTTP application protocol.
|
|
90014
90021
|
* @internal
|
|
90015
90022
|
*/
|
|
90016
|
-
class WebAppRpcProtocol extends
|
|
90023
|
+
class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_3__.RpcProtocol {
|
|
90017
90024
|
/** Constructs an HTTP protocol. */
|
|
90018
90025
|
constructor(configuration) {
|
|
90019
90026
|
super(configuration);
|
|
@@ -90021,9 +90028,9 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__.R
|
|
|
90021
90028
|
/** An optional prefix for RPC operation URI paths. */
|
|
90022
90029
|
this.pathPrefix = "";
|
|
90023
90030
|
/** The RPC request class for this protocol. */
|
|
90024
|
-
this.requestType =
|
|
90031
|
+
this.requestType = _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_6__.WebAppRpcRequest;
|
|
90025
90032
|
this.supportsStatusCategory = true;
|
|
90026
|
-
this.events.addListener(
|
|
90033
|
+
this.events.addListener(_WebAppRpcLogging__WEBPACK_IMPORTED_MODULE_5__.WebAppRpcLogging.logProtocolEvent);
|
|
90027
90034
|
}
|
|
90028
90035
|
/** Convenience handler for an RPC operation get request for an HTTP server. */
|
|
90029
90036
|
async handleOperationGetRequest(req, res) {
|
|
@@ -90031,9 +90038,19 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__.R
|
|
|
90031
90038
|
}
|
|
90032
90039
|
/** Convenience handler for an RPC operation post request for an HTTP server. */
|
|
90033
90040
|
async handleOperationPostRequest(req, res) {
|
|
90034
|
-
|
|
90041
|
+
let request;
|
|
90042
|
+
try {
|
|
90043
|
+
request = await _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_6__.WebAppRpcRequest.parseRequest(this, req);
|
|
90044
|
+
}
|
|
90045
|
+
catch (error) {
|
|
90046
|
+
const message = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getErrorMessage(error);
|
|
90047
|
+
_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));
|
|
90048
|
+
res.status(400);
|
|
90049
|
+
res.send(JSON.stringify({ message, isError: true }));
|
|
90050
|
+
return;
|
|
90051
|
+
}
|
|
90035
90052
|
const fulfillment = await this.fulfill(request);
|
|
90036
|
-
await
|
|
90053
|
+
await _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_6__.WebAppRpcRequest.sendResponse(this, request, fulfillment, req, res);
|
|
90037
90054
|
}
|
|
90038
90055
|
/** Convenience handler for an OpenAPI description request for an HTTP server. */
|
|
90039
90056
|
handleOpenApiDescriptionRequest(_req, res) {
|
|
@@ -90043,45 +90060,45 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__.R
|
|
|
90043
90060
|
/** Converts an HTTP content type value to an RPC content type value. */
|
|
90044
90061
|
static computeContentType(httpType) {
|
|
90045
90062
|
if (!httpType)
|
|
90046
|
-
return
|
|
90047
|
-
if (httpType.indexOf(
|
|
90048
|
-
return
|
|
90063
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Unknown;
|
|
90064
|
+
if (httpType.indexOf(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.WEB_RPC_CONSTANTS.ANY_TEXT) === 0) {
|
|
90065
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Text;
|
|
90049
90066
|
}
|
|
90050
|
-
else if (httpType.indexOf(
|
|
90051
|
-
return
|
|
90067
|
+
else if (httpType.indexOf(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.WEB_RPC_CONSTANTS.BINARY) === 0) {
|
|
90068
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Binary;
|
|
90052
90069
|
}
|
|
90053
|
-
else if (httpType.indexOf(
|
|
90054
|
-
return
|
|
90070
|
+
else if (httpType.indexOf(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.WEB_RPC_CONSTANTS.MULTIPART) === 0) {
|
|
90071
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Multipart;
|
|
90055
90072
|
}
|
|
90056
90073
|
else {
|
|
90057
|
-
return
|
|
90074
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Unknown;
|
|
90058
90075
|
}
|
|
90059
90076
|
}
|
|
90060
90077
|
/** Supplies the status corresponding to a protocol-specific code value. */
|
|
90061
90078
|
getStatus(code) {
|
|
90062
90079
|
switch (code) {
|
|
90063
|
-
case 404: return
|
|
90064
|
-
case 202: return
|
|
90065
|
-
case 200: return
|
|
90066
|
-
case 500: return
|
|
90067
|
-
case 204: return
|
|
90068
|
-
case 502: return
|
|
90069
|
-
case 503: return
|
|
90070
|
-
case 504: return
|
|
90071
|
-
default: return
|
|
90080
|
+
case 404: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.NotFound;
|
|
90081
|
+
case 202: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Pending;
|
|
90082
|
+
case 200: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Resolved;
|
|
90083
|
+
case 500: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Rejected;
|
|
90084
|
+
case 204: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.NoContent;
|
|
90085
|
+
case 502: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.BadGateway;
|
|
90086
|
+
case 503: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.ServiceUnavailable;
|
|
90087
|
+
case 504: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.GatewayTimeout;
|
|
90088
|
+
default: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Unknown;
|
|
90072
90089
|
}
|
|
90073
90090
|
}
|
|
90074
90091
|
/** Supplies the protocol-specific code corresponding to a status value. */
|
|
90075
90092
|
getCode(status) {
|
|
90076
90093
|
switch (status) {
|
|
90077
|
-
case
|
|
90078
|
-
case
|
|
90079
|
-
case
|
|
90080
|
-
case
|
|
90081
|
-
case
|
|
90082
|
-
case
|
|
90083
|
-
case
|
|
90084
|
-
case
|
|
90094
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.NotFound: return 404;
|
|
90095
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Pending: return 202;
|
|
90096
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Resolved: return 200;
|
|
90097
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Rejected: return 500;
|
|
90098
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.NoContent: return 204;
|
|
90099
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.BadGateway: return 502;
|
|
90100
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.ServiceUnavailable: return 503;
|
|
90101
|
+
case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.GatewayTimeout: return 504;
|
|
90085
90102
|
default: return 501;
|
|
90086
90103
|
}
|
|
90087
90104
|
}
|
|
@@ -90092,7 +90109,7 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__.R
|
|
|
90092
90109
|
/** An OpenAPI-compatible description of this protocol.
|
|
90093
90110
|
* @internal
|
|
90094
90111
|
*/
|
|
90095
|
-
get openAPIDescription() { return new
|
|
90112
|
+
get openAPIDescription() { return new _OpenAPI__WEBPACK_IMPORTED_MODULE_4__.RpcOpenAPIDescription(this); }
|
|
90096
90113
|
}
|
|
90097
90114
|
|
|
90098
90115
|
|
|
@@ -90193,7 +90210,7 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_6__.Rpc
|
|
|
90193
90210
|
}
|
|
90194
90211
|
}
|
|
90195
90212
|
if (!request.id) {
|
|
90196
|
-
throw new _IModelError__WEBPACK_IMPORTED_MODULE_2__.IModelError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.ERROR, `Invalid request.`);
|
|
90213
|
+
throw new _IModelError__WEBPACK_IMPORTED_MODULE_2__.IModelError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.ERROR, `Invalid request: Missing required activity ID.`);
|
|
90197
90214
|
}
|
|
90198
90215
|
return request;
|
|
90199
90216
|
}
|
|
@@ -145837,8 +145854,6 @@ class RealityMeshGeometry extends _CachedGeometry__WEBPACK_IMPORTED_MODULE_7__.I
|
|
|
145837
145854
|
}
|
|
145838
145855
|
get techniqueId() { return 7 /* RealityMesh */; }
|
|
145839
145856
|
getPass(target) {
|
|
145840
|
-
if (target.isDrawingShadowMap)
|
|
145841
|
-
return "none";
|
|
145842
145857
|
if (this._baseIsTransparent || (target.wantThematicDisplay && target.uniforms.thematic.wantIsoLines))
|
|
145843
145858
|
return "translucent";
|
|
145844
145859
|
return "opaque";
|
|
@@ -172261,6 +172276,7 @@ class RealityTileTree extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTree {
|
|
|
172261
172276
|
const preloadDebugBuilder = (debugControl && debugControl.displayRealityTilePreload) ? args.context.createSceneGraphicBuilder() : undefined;
|
|
172262
172277
|
const graphicTypeBranches = new Map();
|
|
172263
172278
|
const selectedTiles = this.selectRealityTiles(args, displayedTileDescendants, preloadDebugBuilder);
|
|
172279
|
+
args.processSelectedTiles(selectedTiles);
|
|
172264
172280
|
let sortIndices;
|
|
172265
172281
|
if (!this.parentsAndChildrenExclusive) {
|
|
172266
172282
|
sortIndices = selectedTiles.map((_x, i) => i);
|
|
@@ -305240,7 +305256,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
305240
305256
|
/***/ ((module) => {
|
|
305241
305257
|
|
|
305242
305258
|
"use strict";
|
|
305243
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.3.0
|
|
305259
|
+
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"}}]}}');
|
|
305244
305260
|
|
|
305245
305261
|
/***/ })
|
|
305246
305262
|
|