@itwin/rpcinterface-full-stack-tests 5.10.0-dev.20 → 5.10.0-dev.22
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 +27 -15
- package/lib/dist/bundled-tests.js.map +1 -1
- package/lib/frontend/Elements.test.js +1 -0
- package/lib/frontend/Elements.test.js.map +1 -1
- package/lib/frontend/workflows/BasicScenarios.test.js +1 -0
- package/lib/frontend/workflows/BasicScenarios.test.js.map +1 -1
- package/package.json +15 -15
|
@@ -65312,7 +65312,7 @@ var QueryRowFormat;
|
|
|
65312
65312
|
QueryRowFormat[QueryRowFormat["UseECSqlPropertyIndexes"] = 1] = "UseECSqlPropertyIndexes";
|
|
65313
65313
|
/** Each row is an object in which each non-null column value can be accessed by a [remapped property name]($docs/learning/ECSqlRowFormat.md).
|
|
65314
65314
|
* This format is backwards-compatible with the format produced by iTwin.js 2.x. Null values are omitted.
|
|
65315
|
-
* @
|
|
65315
|
+
* @deprecated in 4.11 - will not be removed until after 2026-06-13. Switch to UseECSqlPropertyIndexes for best performance, and UseECSqlPropertyNames if you want a JSON object as the result.
|
|
65316
65316
|
*/
|
|
65317
65317
|
QueryRowFormat[QueryRowFormat["UseJsPropertyNames"] = 2] = "UseJsPropertyNames";
|
|
65318
65318
|
})(QueryRowFormat || (QueryRowFormat = {}));
|
|
@@ -67957,6 +67957,7 @@ class ECSqlReader extends _ECSqlReaderBase__WEBPACK_IMPORTED_MODULE_1__.ECSqlRea
|
|
|
67957
67957
|
if (this._globalCount === 0) {
|
|
67958
67958
|
return [];
|
|
67959
67959
|
}
|
|
67960
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
67960
67961
|
const valueFormat = this._options.rowFormat === _ConcurrentQuery__WEBPACK_IMPORTED_MODULE_0__.QueryRowFormat.UseJsPropertyNames ? _ConcurrentQuery__WEBPACK_IMPORTED_MODULE_0__.DbValueFormat.JsNames : _ConcurrentQuery__WEBPACK_IMPORTED_MODULE_0__.DbValueFormat.ECSqlNames;
|
|
67961
67962
|
const request = {
|
|
67962
67963
|
...this._options,
|
|
@@ -68276,6 +68277,7 @@ class ECSqlReaderBase {
|
|
|
68276
68277
|
}
|
|
68277
68278
|
const formattedRow = {};
|
|
68278
68279
|
for (const prop of this._props) {
|
|
68280
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
68279
68281
|
const propName = this._rowFormat === _ConcurrentQuery__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames ? prop.jsonName : prop.name;
|
|
68280
68282
|
const val = this.getRowInternal()[prop.index];
|
|
68281
68283
|
if (typeof val !== "undefined" && val !== null) {
|
|
@@ -124068,6 +124070,7 @@ class DrawingViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_14__.ViewStat
|
|
|
124068
124070
|
CAST(json_extract(jsonProperties, '$.displaySpatialView') as BOOLEAN) as displaySpatialView
|
|
124069
124071
|
FROM bis.SectionDrawing
|
|
124070
124072
|
WHERE ECInstanceId=${this.baseModelId}`;
|
|
124073
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
124071
124074
|
for await (const row of this.iModel.createQueryReader(ecsql, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames })) {
|
|
124072
124075
|
spatialView = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.fromJSON(row.spatialView?.id);
|
|
124073
124076
|
displaySpatialView = !!row.displaySpatialView;
|
|
@@ -129196,6 +129199,7 @@ class SnapshotConnection extends IModelConnection {
|
|
|
129196
129199
|
break;
|
|
129197
129200
|
}
|
|
129198
129201
|
const placements = new Array();
|
|
129202
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
129199
129203
|
for await (const queryRow of this._iModel.createQueryReader(ecsql, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames })) {
|
|
129200
129204
|
const row = queryRow.toRow();
|
|
129201
129205
|
const origin = [row.x, row.y, row.z];
|
|
@@ -135923,6 +135927,7 @@ class ViewCreator2d {
|
|
|
135923
135927
|
async _addSheetViewProps(modelId, props) {
|
|
135924
135928
|
let width = 0;
|
|
135925
135929
|
let height = 0;
|
|
135930
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
135926
135931
|
for await (const row of this._imodel.createQueryReader(`SELECT Width, Height FROM bis.Sheet WHERE ECInstanceId = ?`, _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryBinder.from([modelId]), { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames })) {
|
|
135927
135932
|
width = row.width;
|
|
135928
135933
|
height = row.height;
|
|
@@ -135996,6 +136001,7 @@ class ViewCreator2d {
|
|
|
135996
136001
|
*/
|
|
135997
136002
|
_executeQuery = async (query) => {
|
|
135998
136003
|
const rows = [];
|
|
136004
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
135999
136005
|
for await (const row of this._imodel.createQueryReader(query, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames }))
|
|
136000
136006
|
rows.push(row.id);
|
|
136001
136007
|
return rows;
|
|
@@ -217650,6 +217656,7 @@ class ElementSetTool extends _PrimitiveTool__WEBPACK_IMPORTED_MODULE_9__.Primiti
|
|
|
217650
217656
|
// When assembly parent is selected, pick all geometric elements with it as the parent.
|
|
217651
217657
|
// When assembly member is selected, pick the parent as well as all the other members.
|
|
217652
217658
|
const ecsql = `SELECT ECInstanceId as id, Parent.Id as parentId FROM BisCore.GeometricElement WHERE Parent.Id IN (SELECT Parent.Id as parentId FROM BisCore.GeometricElement WHERE (parent.Id IS NOT NULL AND ECInstanceId IN (${id})) OR parent.Id IN (${id}))`;
|
|
217659
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
217653
217660
|
for await (const row of this.iModel.createQueryReader(ecsql, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames })) {
|
|
217654
217661
|
ids.add(row.parentId);
|
|
217655
217662
|
ids.add(row.id);
|
|
@@ -354541,7 +354548,7 @@ class TestContext {
|
|
|
354541
354548
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
354542
354549
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
354543
354550
|
await core_frontend_1.NoRenderApp.startup({
|
|
354544
|
-
applicationVersion: "5.10.0-dev.
|
|
354551
|
+
applicationVersion: "5.10.0-dev.22",
|
|
354545
354552
|
applicationId: this.settings.gprid,
|
|
354546
354553
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.serviceAuthToken),
|
|
354547
354554
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -369274,20 +369281,23 @@ class FavoritePropertiesManager {
|
|
|
369274
369281
|
return baseClasses;
|
|
369275
369282
|
}
|
|
369276
369283
|
const query = `
|
|
369277
|
-
|
|
369278
|
-
|
|
369279
|
-
|
|
369280
|
-
|
|
369281
|
-
|
|
369282
|
-
|
|
369283
|
-
|
|
369284
|
-
|
|
369284
|
+
SELECT
|
|
369285
|
+
ec_classname(baseClassRels.SourceECInstanceId, "s:c"),
|
|
369286
|
+
ec_classname(baseClassRels.TargetECInstanceId, "s:c")
|
|
369287
|
+
FROM ECDbMeta.ClassHasAllBaseClasses baseClassRels
|
|
369288
|
+
INNER JOIN ECDbMeta.ECClassDef derivedClass ON derivedClass.ECInstanceId = baseClassRels.SourceECInstanceId
|
|
369289
|
+
INNER JOIN ECDbMeta.ECSchemaDef derivedSchema ON derivedSchema.ECInstanceId = derivedClass.Schema.Id
|
|
369290
|
+
INNER JOIN ECDbMeta.ECClassDef baseClass ON baseClass.ECInstanceId = baseClassRels.TargetECInstanceId
|
|
369291
|
+
INNER JOIN ECDbMeta.ECSchemaDef baseSchema ON baseSchema.ECInstanceId = baseClass.Schema.Id
|
|
369292
|
+
WHERE ec_classname(baseClassRels.SourceECInstanceId, "s:c") IN (${[...missingClasses].map((className) => `'${className}'`).join(",")})
|
|
369293
|
+
`;
|
|
369294
|
+
const reader = imodel.createQueryReader(query, undefined, { rowFormat: core_common_1.QueryRowFormat.UseECSqlPropertyIndexes });
|
|
369285
369295
|
while (await reader.step()) {
|
|
369286
|
-
const
|
|
369287
|
-
if (!(
|
|
369288
|
-
baseClasses[
|
|
369296
|
+
const [derivedClassName, baseClassName] = reader.current.toArray();
|
|
369297
|
+
if (!(derivedClassName in baseClasses)) {
|
|
369298
|
+
baseClasses[derivedClassName] = [];
|
|
369289
369299
|
}
|
|
369290
|
-
baseClasses[
|
|
369300
|
+
baseClasses[derivedClassName].push(baseClassName);
|
|
369291
369301
|
}
|
|
369292
369302
|
return baseClasses;
|
|
369293
369303
|
};
|
|
@@ -382309,7 +382319,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
382309
382319
|
/***/ ((module) => {
|
|
382310
382320
|
|
|
382311
382321
|
"use strict";
|
|
382312
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.10.0-dev.
|
|
382322
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.10.0-dev.22","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"}}');
|
|
382313
382323
|
|
|
382314
382324
|
/***/ }),
|
|
382315
382325
|
|
|
@@ -383357,6 +383367,7 @@ describe("Operational: Execute Query", () => {
|
|
|
383357
383367
|
const iModel = await testContext.iModelWithChangesets.getConnection();
|
|
383358
383368
|
const query = "select count(*) nRows from(SELECT ECInstanceId FROM Bis.Element LIMIT 50)";
|
|
383359
383369
|
const rows = [];
|
|
383370
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
383360
383371
|
for await (const row of iModel.createQueryReader(query, undefined, { rowFormat: core_common_1.QueryRowFormat.UseJsPropertyNames }))
|
|
383361
383372
|
rows.push(row);
|
|
383362
383373
|
expect(rows).to.be.not.empty;
|
|
@@ -383469,6 +383480,7 @@ describe("Basic Scenarios", async () => {
|
|
|
383469
383480
|
it("should open iModel and Execute Query TestCase:819343", async () => {
|
|
383470
383481
|
const iModel = await testContext.iModelWithChangesets.getConnection();
|
|
383471
383482
|
const rows = [];
|
|
383483
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
383472
383484
|
for await (const row of iModel.createQueryReader("SELECT ECInstanceId AS id FROM BisCore.Element", undefined, { rowFormat: core_common_1.QueryRowFormat.UseJsPropertyNames, limit: { count: 10 } }))
|
|
383473
383485
|
rows.push(row);
|
|
383474
383486
|
expect(rows).not.to.be.empty;
|