@itwin/rpcinterface-full-stack-tests 5.12.0-dev.11 → 5.12.0-dev.12
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 +19 -24
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +15 -15
|
@@ -117612,14 +117612,13 @@ class DrawingViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_14__.ViewStat
|
|
|
117612
117612
|
let displaySpatialView = false;
|
|
117613
117613
|
try {
|
|
117614
117614
|
const ecsql = `
|
|
117615
|
-
SELECT spatialView,
|
|
117615
|
+
SELECT spatialView.Id as spatialViewId,
|
|
117616
117616
|
json_extract(jsonProperties, '$.drawingToSpatialTransform') as drawingToSpatialTransform,
|
|
117617
117617
|
CAST(json_extract(jsonProperties, '$.displaySpatialView') as BOOLEAN) as displaySpatialView
|
|
117618
117618
|
FROM bis.SectionDrawing
|
|
117619
117619
|
WHERE ECInstanceId=${this.baseModelId}`;
|
|
117620
|
-
|
|
117621
|
-
|
|
117622
|
-
spatialView = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.fromJSON(row.spatialView?.id);
|
|
117620
|
+
for await (const row of this.iModel.createQueryReader(ecsql, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseECSqlPropertyNames })) {
|
|
117621
|
+
spatialView = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.fromJSON(row.spatialViewId);
|
|
117623
117622
|
displaySpatialView = !!row.displaySpatialView;
|
|
117624
117623
|
try {
|
|
117625
117624
|
drawingToSpatialTransform = JSON.parse(row.drawingToSpatialTransform);
|
|
@@ -122842,24 +122841,24 @@ class SnapshotConnection extends IModelConnection {
|
|
|
122842
122841
|
return [];
|
|
122843
122842
|
const select3d = `
|
|
122844
122843
|
SELECT
|
|
122845
|
-
ECInstanceId,
|
|
122844
|
+
ECInstanceId as id,
|
|
122846
122845
|
Origin.x as x, Origin.y as y, Origin.z as z,
|
|
122847
122846
|
BBoxLow.x as lx, BBoxLow.y as ly, BBoxLow.z as lz,
|
|
122848
122847
|
BBoxHigh.x as hx, BBoxHigh.y as hy, BBoxHigh.z as hz,
|
|
122849
|
-
Yaw, Pitch, Roll,
|
|
122850
|
-
NULL as
|
|
122848
|
+
Yaw as yaw, Pitch as pitch, Roll as roll,
|
|
122849
|
+
NULL as rotation
|
|
122851
122850
|
FROM bis.GeometricElement3d
|
|
122852
122851
|
WHERE Origin IS NOT NULL AND BBoxLow IS NOT NULL AND BBoxHigh IS NOT NULL`;
|
|
122853
122852
|
// Note: For the UNION ALL statement, the column aliases in select2d are ignored - so they
|
|
122854
122853
|
// must match those in select3d.
|
|
122855
122854
|
const select2d = `
|
|
122856
122855
|
SELECT
|
|
122857
|
-
ECInstanceId,
|
|
122856
|
+
ECInstanceId as id,
|
|
122858
122857
|
Origin.x as x, Origin.y as y, NULL as z,
|
|
122859
122858
|
BBoxLow.x as lx, BBoxLow.y as ly, NULL as lz,
|
|
122860
122859
|
BBoxHigh.x as hx, BBoxHigh.y as hy, NULL as hz,
|
|
122861
122860
|
NULL as yaw, NULL as pitch, NULL as roll,
|
|
122862
|
-
Rotation
|
|
122861
|
+
Rotation as rotation
|
|
122863
122862
|
FROM bis.GeometricElement2d
|
|
122864
122863
|
WHERE Origin IS NOT NULL AND BBoxLow IS NOT NULL AND BBoxHigh IS NOT NULL`;
|
|
122865
122864
|
const idCriterion = `ECInstanceId IN (${ids.join(",")})`;
|
|
@@ -122881,8 +122880,7 @@ class SnapshotConnection extends IModelConnection {
|
|
|
122881
122880
|
break;
|
|
122882
122881
|
}
|
|
122883
122882
|
const placements = new Array();
|
|
122884
|
-
|
|
122885
|
-
for await (const queryRow of this._iModel.createQueryReader(ecsql, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames })) {
|
|
122883
|
+
for await (const queryRow of this._iModel.createQueryReader(ecsql, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseECSqlPropertyNames })) {
|
|
122886
122884
|
const row = queryRow.toRow();
|
|
122887
122885
|
const origin = [row.x, row.y, row.z];
|
|
122888
122886
|
const bbox = {
|
|
@@ -129697,10 +129695,9 @@ class ViewCreator2d {
|
|
|
129697
129695
|
async _addSheetViewProps(modelId, props) {
|
|
129698
129696
|
let width = 0;
|
|
129699
129697
|
let height = 0;
|
|
129700
|
-
|
|
129701
|
-
|
|
129702
|
-
|
|
129703
|
-
height = row.height;
|
|
129698
|
+
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.UseECSqlPropertyNames })) {
|
|
129699
|
+
width = row.Width;
|
|
129700
|
+
height = row.Height;
|
|
129704
129701
|
break;
|
|
129705
129702
|
}
|
|
129706
129703
|
const sheetProps = {
|
|
@@ -129744,7 +129741,7 @@ class ViewCreator2d {
|
|
|
129744
129741
|
* @param modelId of target model.
|
|
129745
129742
|
*/
|
|
129746
129743
|
async _getViewDefinitionsIdForModel(modelId) {
|
|
129747
|
-
const query = `SELECT ECInstanceId from Bis.ViewDefinition2D WHERE BaseModel.Id = ${modelId} AND isPrivate = false LIMIT 1`;
|
|
129744
|
+
const query = `SELECT ECInstanceId as id from Bis.ViewDefinition2D WHERE BaseModel.Id = ${modelId} AND isPrivate = false LIMIT 1`;
|
|
129748
129745
|
const viewDefinitionsId = await this._executeQuery(query);
|
|
129749
129746
|
return (viewDefinitionsId.length) > 0 ? viewDefinitionsId[0] : undefined;
|
|
129750
129747
|
}
|
|
@@ -129752,7 +129749,7 @@ class ViewCreator2d {
|
|
|
129752
129749
|
* Get all drawing categories
|
|
129753
129750
|
*/
|
|
129754
129751
|
async _getAllCategories() {
|
|
129755
|
-
const query = "SELECT ECInstanceId from BisCore.DrawingCategory";
|
|
129752
|
+
const query = "SELECT ECInstanceId as id from BisCore.DrawingCategory";
|
|
129756
129753
|
const categories = await this._executeQuery(query);
|
|
129757
129754
|
return categories;
|
|
129758
129755
|
}
|
|
@@ -129761,7 +129758,7 @@ class ViewCreator2d {
|
|
|
129761
129758
|
* @param modelId of target model.
|
|
129762
129759
|
*/
|
|
129763
129760
|
async _getSheetAttachments(modelId) {
|
|
129764
|
-
const query = `SELECT ECInstanceId FROM Bis.ViewAttachment WHERE Model.Id = ${modelId}`;
|
|
129761
|
+
const query = `SELECT ECInstanceId as id FROM Bis.ViewAttachment WHERE Model.Id = ${modelId}`;
|
|
129765
129762
|
const attachments = await this._executeQuery(query);
|
|
129766
129763
|
return attachments;
|
|
129767
129764
|
}
|
|
@@ -129771,8 +129768,7 @@ class ViewCreator2d {
|
|
|
129771
129768
|
*/
|
|
129772
129769
|
_executeQuery = async (query) => {
|
|
129773
129770
|
const rows = [];
|
|
129774
|
-
|
|
129775
|
-
for await (const row of this._imodel.createQueryReader(query, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames }))
|
|
129771
|
+
for await (const row of this._imodel.createQueryReader(query, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseECSqlPropertyNames }))
|
|
129776
129772
|
rows.push(row.id);
|
|
129777
129773
|
return rows;
|
|
129778
129774
|
};
|
|
@@ -211984,8 +211980,7 @@ class ElementSetTool extends _PrimitiveTool__WEBPACK_IMPORTED_MODULE_9__.Primiti
|
|
|
211984
211980
|
// When assembly parent is selected, pick all geometric elements with it as the parent.
|
|
211985
211981
|
// When assembly member is selected, pick the parent as well as all the other members.
|
|
211986
211982
|
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}))`;
|
|
211987
|
-
|
|
211988
|
-
for await (const row of this.iModel.createQueryReader(ecsql, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames })) {
|
|
211983
|
+
for await (const row of this.iModel.createQueryReader(ecsql, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseECSqlPropertyNames })) {
|
|
211989
211984
|
ids.add(row.parentId);
|
|
211990
211985
|
ids.add(row.id);
|
|
211991
211986
|
}
|
|
@@ -349055,7 +349050,7 @@ class TestContext {
|
|
|
349055
349050
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
349056
349051
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
349057
349052
|
await core_frontend_1.NoRenderApp.startup({
|
|
349058
|
-
applicationVersion: "5.12.0-dev.
|
|
349053
|
+
applicationVersion: "5.12.0-dev.12",
|
|
349059
349054
|
applicationId: this.settings.gprid,
|
|
349060
349055
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.serviceAuthToken),
|
|
349061
349056
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -376013,7 +376008,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
376013
376008
|
/***/ ((module) => {
|
|
376014
376009
|
|
|
376015
376010
|
"use strict";
|
|
376016
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.12.0-dev.
|
|
376011
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.12.0-dev.12","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/node":"~20.17.0","@types/sinon":"^17.0.2","@vitest/browser-playwright":"^4.1.8","@vitest/coverage-v8":"^4.1.8","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":"^4.1.8","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"}}');
|
|
376017
376012
|
|
|
376018
376013
|
/***/ }),
|
|
376019
376014
|
|