@itwin/ecschema-rpcinterface-tests 5.11.0-dev.4 → 5.11.0-dev.6
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 +21 -2
- 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_cross-fetch_4_0_0_node_modules_cross-fetch_dist_browser-24291b.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_4_3_4__loaders_gl_core_4_3_4_node_modu-4c1fc9.bundled-tests.js.map +1 -1
- package/package.json +16 -16
|
@@ -29017,18 +29017,33 @@ var DbResponseKind;
|
|
|
29017
29017
|
/** @internal */
|
|
29018
29018
|
var DbResponseStatus;
|
|
29019
29019
|
(function (DbResponseStatus) {
|
|
29020
|
+
/** Query ran to completion. */
|
|
29020
29021
|
DbResponseStatus[DbResponseStatus["Done"] = 1] = "Done";
|
|
29022
|
+
/** Requested by user. */
|
|
29021
29023
|
DbResponseStatus[DbResponseStatus["Cancel"] = 2] = "Cancel";
|
|
29024
|
+
/** Query was running but ran out of quota. */
|
|
29022
29025
|
DbResponseStatus[DbResponseStatus["Partial"] = 3] = "Partial";
|
|
29026
|
+
/** Query time quota expired while it was in queue. */
|
|
29023
29027
|
DbResponseStatus[DbResponseStatus["Timeout"] = 4] = "Timeout";
|
|
29028
|
+
/** Could not submit the query because the queue was full. */
|
|
29024
29029
|
DbResponseStatus[DbResponseStatus["QueueFull"] = 5] = "QueueFull";
|
|
29030
|
+
/** Shutdown is in progress. */
|
|
29025
29031
|
DbResponseStatus[DbResponseStatus["ShuttingDown"] = 6] = "ShuttingDown";
|
|
29032
|
+
/** iModel is not open. */
|
|
29033
|
+
DbResponseStatus[DbResponseStatus["NotOpen"] = 7] = "NotOpen";
|
|
29034
|
+
/** Generic error. */
|
|
29026
29035
|
DbResponseStatus[DbResponseStatus["Error"] = 100] = "Error";
|
|
29036
|
+
/** ECSQL prepare failed. */
|
|
29027
29037
|
DbResponseStatus[DbResponseStatus["Error_ECSql_PreparedFailed"] = 101] = "Error_ECSql_PreparedFailed";
|
|
29038
|
+
/** ECSQL step failed. */
|
|
29028
29039
|
DbResponseStatus[DbResponseStatus["Error_ECSql_StepFailed"] = 102] = "Error_ECSql_StepFailed";
|
|
29040
|
+
/** ECSQL failed to serialize row to JSON. */
|
|
29029
29041
|
DbResponseStatus[DbResponseStatus["Error_ECSql_RowToJsonFailed"] = 103] = "Error_ECSql_RowToJsonFailed";
|
|
29042
|
+
/** ECSQL binding failed. */
|
|
29030
29043
|
DbResponseStatus[DbResponseStatus["Error_ECSql_BindingFailed"] = 104] = "Error_ECSql_BindingFailed";
|
|
29044
|
+
/** Class, property, or instance specified was not found, or property is not of type blob. */
|
|
29031
29045
|
DbResponseStatus[DbResponseStatus["Error_BlobIO_OpenFailed"] = 105] = "Error_BlobIO_OpenFailed";
|
|
29046
|
+
/** Range specified is invalid based on size of blob. */
|
|
29032
29047
|
DbResponseStatus[DbResponseStatus["Error_BlobIO_OutOfRange"] = 106] = "Error_BlobIO_OutOfRange";
|
|
29033
29048
|
})(DbResponseStatus || (DbResponseStatus = {}));
|
|
29034
29049
|
/** @internal */
|
|
@@ -31129,7 +31144,7 @@ class ECSqlReader extends _ECSqlReaderBase__WEBPACK_IMPORTED_MODULE_1__.ECSqlRea
|
|
|
31129
31144
|
request.includeMetaData = this._props.length > 0 ? false : true;
|
|
31130
31145
|
request.limit = { offset: this._globalOffset, count: this._globalCount < 1 ? -1 : this._globalCount };
|
|
31131
31146
|
const resp = await this.runWithRetry(request);
|
|
31132
|
-
this._globalDone = resp.status === _ConcurrentQuery__WEBPACK_IMPORTED_MODULE_0__.DbResponseStatus.Done;
|
|
31147
|
+
this._globalDone = resp.status === _ConcurrentQuery__WEBPACK_IMPORTED_MODULE_0__.DbResponseStatus.Done || resp.status === _ConcurrentQuery__WEBPACK_IMPORTED_MODULE_0__.DbResponseStatus.NotOpen;
|
|
31133
31148
|
if (this._props.length === 0 && resp.meta.length > 0) {
|
|
31134
31149
|
this._props = new _ECSqlReaderBase__WEBPACK_IMPORTED_MODULE_1__.PropertyMetaDataMap(resp.meta);
|
|
31135
31150
|
}
|
|
@@ -91707,6 +91722,10 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
|
|
|
91707
91722
|
createQueryReader(ecsql, params, config) {
|
|
91708
91723
|
const executor = {
|
|
91709
91724
|
execute: async (request) => {
|
|
91725
|
+
// Best-effort guard for the common case where the connection closes before iteration starts.
|
|
91726
|
+
if (!this.isOpen) {
|
|
91727
|
+
return { status: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.DbResponseStatus.NotOpen, data: [], meta: [], rowCount: 0, stats: { cpuTime: 0, totalTime: 0, memUsed: 0, prepareTime: 0, timeLimit: 0, memLimit: 0 }, kind: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.DbResponseKind.ECSql };
|
|
91728
|
+
}
|
|
91710
91729
|
return _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(this.routingContext.token).queryRows(this.getRpcProps(), request);
|
|
91711
91730
|
},
|
|
91712
91731
|
};
|
|
@@ -331671,7 +331690,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
331671
331690
|
/***/ ((module) => {
|
|
331672
331691
|
|
|
331673
331692
|
"use strict";
|
|
331674
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.11.0-dev.
|
|
331693
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.11.0-dev.6","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 && npm run -s copy:draco","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 ES2022 --outDir lib/esm","clean":"rimraf -g 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","copy:draco":"cpx \\"./node_modules/@loaders.gl/draco/dist/libs/*\\" ./lib/public/scripts","docs":"betools docs --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts && npm run -s extract","extract":"betools extract --fileExt=ts --extractFrom=./src/test/example-code --recursive --out=../../generated-docs/extract","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","lint-deprecation":"eslint --fix -f visualstudio --no-inline-config -c ../../common/config/eslint/eslint.config.deprecation-policy.js \\"./src/**/*.ts\\"","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","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:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*"},"//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":{"@bentley/aec-units-schema":"^1.0.3","@bentley/formats-schema":"^1.0.0","@bentley/units-schema":"^1.0.10","@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/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*","@itwin/object-storage-core":"^3.0.4","@itwin/eslint-plugin":"^6.0.0","@types/chai-as-promised":"^7","@types/draco3d":"^1.4.10","@types/sinon":"^17.0.2","@vitest/browser":"^3.0.6","@vitest/coverage-v8":"^3.0.6","cpx2":"^8.0.0","eslint":"^9.31.0","glob":"^10.5.0","playwright":"~1.56.1","rimraf":"^6.0.1","sinon":"^17.0.2","source-map-loader":"^5.0.0","typescript":"~5.6.2","vitest":"^3.0.6","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"2.2.0","webpack":"^5.97.1"},"//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/webgl-compatibility":"workspace:*","@loaders.gl/core":"~4.3.4","@loaders.gl/draco":"~4.3.4","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
|
|
331675
331694
|
|
|
331676
331695
|
/***/ })
|
|
331677
331696
|
|