@itwin/rpcinterface-full-stack-tests 5.3.0-dev.21 → 5.3.0-dev.23

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.
@@ -48756,6 +48756,10 @@ var DbResult;
48756
48756
  DbResult[DbResult["BE_SQLITE_ERROR_SchemaUpgradeRecommended"] = 369098762] = "BE_SQLITE_ERROR_SchemaUpgradeRecommended";
48757
48757
  /** schema update require data transform */
48758
48758
  DbResult[DbResult["BE_SQLITE_ERROR_DataTransformRequired"] = 385875978] = "BE_SQLITE_ERROR_DataTransformRequired";
48759
+ /** Db not open */
48760
+ DbResult[DbResult["BE_SQLITE_ERROR_NOTOPEN"] = 16777217] = "BE_SQLITE_ERROR_NOTOPEN";
48761
+ /** Error propagating changes during commit */
48762
+ DbResult[DbResult["BE_SQLITE_ERROR_PropagateChangesFailed"] = 33554433] = "BE_SQLITE_ERROR_PropagateChangesFailed";
48759
48763
  DbResult[DbResult["BE_SQLITE_LOCKED_SHAREDCACHE"] = 262] = "BE_SQLITE_LOCKED_SHAREDCACHE";
48760
48764
  DbResult[DbResult["BE_SQLITE_BUSY_RECOVERY"] = 261] = "BE_SQLITE_BUSY_RECOVERY";
48761
48765
  DbResult[DbResult["BE_SQLITE_CANTOPEN_NOTEMPDIR"] = 270] = "BE_SQLITE_CANTOPEN_NOTEMPDIR";
@@ -74886,6 +74890,7 @@ __webpack_require__.r(__webpack_exports__);
74886
74890
  /* harmony export */ GeometrySummaryVerbosity: () => (/* reexport safe */ _GeometrySummary__WEBPACK_IMPORTED_MODULE_60__.GeometrySummaryVerbosity),
74887
74891
  /* harmony export */ GlbHeader: () => (/* reexport safe */ _tile_GltfTileIO__WEBPACK_IMPORTED_MODULE_153__.GlbHeader),
74888
74892
  /* harmony export */ GlobeMode: () => (/* reexport safe */ _BackgroundMapSettings__WEBPACK_IMPORTED_MODULE_11__.GlobeMode),
74893
+ /* harmony export */ GltfHeader: () => (/* reexport safe */ _tile_GltfTileIO__WEBPACK_IMPORTED_MODULE_153__.GltfHeader),
74889
74894
  /* harmony export */ GltfV2ChunkTypes: () => (/* reexport safe */ _tile_GltfTileIO__WEBPACK_IMPORTED_MODULE_153__.GltfV2ChunkTypes),
74890
74895
  /* harmony export */ GltfVersions: () => (/* reexport safe */ _tile_GltfTileIO__WEBPACK_IMPORTED_MODULE_153__.GltfVersions),
74891
74896
  /* harmony export */ Gradient: () => (/* reexport safe */ _Gradient__WEBPACK_IMPORTED_MODULE_61__.Gradient),
@@ -89963,6 +89968,7 @@ __webpack_require__.r(__webpack_exports__);
89963
89968
  __webpack_require__.r(__webpack_exports__);
89964
89969
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
89965
89970
  /* harmony export */ GlbHeader: () => (/* binding */ GlbHeader),
89971
+ /* harmony export */ GltfHeader: () => (/* binding */ GltfHeader),
89966
89972
  /* harmony export */ GltfV2ChunkTypes: () => (/* binding */ GltfV2ChunkTypes),
89967
89973
  /* harmony export */ GltfVersions: () => (/* binding */ GltfVersions)
89968
89974
  /* harmony export */ });
@@ -90076,6 +90082,48 @@ class GlbHeader extends _TileIO__WEBPACK_IMPORTED_MODULE_1__.TileHeader {
90076
90082
  }
90077
90083
  }
90078
90084
  }
90085
+ /** @internal */
90086
+ class GltfHeader extends _TileIO__WEBPACK_IMPORTED_MODULE_1__.TileHeader {
90087
+ gltfLength;
90088
+ scenePosition = 0;
90089
+ sceneStrLength = 0;
90090
+ binaryPosition = 0;
90091
+ get isValid() { return _TileIO__WEBPACK_IMPORTED_MODULE_1__.TileFormat.Gltf === this.format; }
90092
+ constructor(stream) {
90093
+ super(stream);
90094
+ this.gltfLength = stream.readUint32();
90095
+ this.sceneStrLength = stream.readUint32();
90096
+ const value5 = stream.readUint32();
90097
+ // Early versions of the reality data tile publisher incorrectly put version 2 into header - handle these old tiles
90098
+ // validating the chunk type.
90099
+ if (this.version === GltfVersions.Version2 && value5 === GltfVersions.Gltf1SceneFormat)
90100
+ this.version = GltfVersions.Version1;
90101
+ if (this.version === GltfVersions.Version1) {
90102
+ const gltfSceneFormat = value5;
90103
+ if (GltfVersions.Gltf1SceneFormat !== gltfSceneFormat) {
90104
+ this.invalidate();
90105
+ return;
90106
+ }
90107
+ this.scenePosition = stream.curPos;
90108
+ this.binaryPosition = stream.curPos + this.sceneStrLength;
90109
+ }
90110
+ else if (this.version === GltfVersions.Version2) {
90111
+ const sceneChunkType = value5;
90112
+ this.scenePosition = stream.curPos;
90113
+ stream.curPos = stream.curPos + this.sceneStrLength;
90114
+ const binaryLength = stream.readUint32();
90115
+ const binaryChunkType = stream.readUint32();
90116
+ if (GltfV2ChunkTypes.JSON !== sceneChunkType || GltfV2ChunkTypes.Binary !== binaryChunkType || 0 === binaryLength) {
90117
+ this.invalidate();
90118
+ return;
90119
+ }
90120
+ this.binaryPosition = stream.curPos;
90121
+ }
90122
+ else {
90123
+ this.invalidate();
90124
+ }
90125
+ }
90126
+ }
90079
90127
 
90080
90128
 
90081
90129
  /***/ }),
@@ -134518,48 +134566,6 @@ __webpack_require__.r(__webpack_exports__);
134518
134566
 
134519
134567
 
134520
134568
 
134521
- /** Header preceding "glTF" data in iMdl tile. */
134522
- class GltfHeader extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.TileHeader {
134523
- gltfLength;
134524
- scenePosition = 0;
134525
- sceneStrLength = 0;
134526
- binaryPosition = 0;
134527
- get isValid() { return _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.TileFormat.Gltf === this.format; }
134528
- constructor(stream) {
134529
- super(stream);
134530
- this.gltfLength = stream.readUint32();
134531
- this.sceneStrLength = stream.readUint32();
134532
- const value5 = stream.readUint32();
134533
- // Early versions of the reality data tile publisher incorrectly put version 2 into header - handle these old tiles
134534
- // validating the chunk type.
134535
- if (this.version === _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GltfVersions.Version2 && value5 === _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GltfVersions.Gltf1SceneFormat)
134536
- this.version = _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GltfVersions.Version1;
134537
- if (this.version === _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GltfVersions.Version1) {
134538
- const gltfSceneFormat = value5;
134539
- if (_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GltfVersions.Gltf1SceneFormat !== gltfSceneFormat) {
134540
- this.invalidate();
134541
- return;
134542
- }
134543
- this.scenePosition = stream.curPos;
134544
- this.binaryPosition = stream.curPos + this.sceneStrLength;
134545
- }
134546
- else if (this.version === _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GltfVersions.Version2) {
134547
- const sceneChunkType = value5;
134548
- this.scenePosition = stream.curPos;
134549
- stream.curPos = stream.curPos + this.sceneStrLength;
134550
- const binaryLength = stream.readUint32();
134551
- const binaryChunkType = stream.readUint32();
134552
- if (_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GltfV2ChunkTypes.JSON !== sceneChunkType || _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GltfV2ChunkTypes.Binary !== binaryChunkType || 0 === binaryLength) {
134553
- this.invalidate();
134554
- return;
134555
- }
134556
- this.binaryPosition = stream.curPos;
134557
- }
134558
- else {
134559
- this.invalidate();
134560
- }
134561
- }
134562
- }
134563
134569
  const nodeIdRegex = /Node_(.*)/;
134564
134570
  function extractNodeId(nodeName) {
134565
134571
  const match = nodeName.match(nodeIdRegex);
@@ -135602,7 +135608,7 @@ async function parseImdlDocument(options) {
135602
135608
  return _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.TileReadStatus.InvalidFeatureTable;
135603
135609
  stream.curPos = ftStartPos + ftHeader.length;
135604
135610
  // A glTF header follows the feature table
135605
- const gltfHeader = new GltfHeader(stream);
135611
+ const gltfHeader = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GltfHeader(stream);
135606
135612
  if (!gltfHeader.isValid)
135607
135613
  return _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.TileReadStatus.InvalidTileData;
135608
135614
  stream.curPos = gltfHeader.scenePosition;
@@ -338673,7 +338679,7 @@ class TestContext {
338673
338679
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
338674
338680
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
338675
338681
  await core_frontend_1.NoRenderApp.startup({
338676
- applicationVersion: "5.3.0-dev.21",
338682
+ applicationVersion: "5.3.0-dev.23",
338677
338683
  applicationId: this.settings.gprid,
338678
338684
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.serviceAuthToken),
338679
338685
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
@@ -351858,13 +351864,13 @@ class FavoritePropertiesManager {
351858
351864
  if (missingClasses.size === 0) {
351859
351865
  return baseClasses;
351860
351866
  }
351861
- const query = `
351862
- SELECT (derivedSchema.Name || ':' || derivedClass.Name) AS "ClassFullName", (baseSchema.Name || ':' || baseClass.Name) AS "BaseClassFullName"
351863
- FROM ECDbMeta.ClassHasAllBaseClasses baseClassRels
351864
- INNER JOIN ECDbMeta.ECClassDef derivedClass ON derivedClass.ECInstanceId = baseClassRels.SourceECInstanceId
351865
- INNER JOIN ECDbMeta.ECSchemaDef derivedSchema ON derivedSchema.ECInstanceId = derivedClass.Schema.Id
351866
- INNER JOIN ECDbMeta.ECClassDef baseClass ON baseClass.ECInstanceId = baseClassRels.TargetECInstanceId
351867
- INNER JOIN ECDbMeta.ECSchemaDef baseSchema ON baseSchema.ECInstanceId = baseClass.Schema.Id
351867
+ const query = `
351868
+ SELECT (derivedSchema.Name || ':' || derivedClass.Name) AS "ClassFullName", (baseSchema.Name || ':' || baseClass.Name) AS "BaseClassFullName"
351869
+ FROM ECDbMeta.ClassHasAllBaseClasses baseClassRels
351870
+ INNER JOIN ECDbMeta.ECClassDef derivedClass ON derivedClass.ECInstanceId = baseClassRels.SourceECInstanceId
351871
+ INNER JOIN ECDbMeta.ECSchemaDef derivedSchema ON derivedSchema.ECInstanceId = derivedClass.Schema.Id
351872
+ INNER JOIN ECDbMeta.ECClassDef baseClass ON baseClass.ECInstanceId = baseClassRels.TargetECInstanceId
351873
+ INNER JOIN ECDbMeta.ECSchemaDef baseSchema ON baseSchema.ECInstanceId = baseClass.Schema.Id
351868
351874
  WHERE (derivedSchema.Name || ':' || derivedClass.Name) IN (${[...missingClasses].map((className) => `'${className}'`).join(",")})`;
351869
351875
  const reader = imodel.createQueryReader(query, undefined, { rowFormat: core_common_1.QueryRowFormat.UseJsPropertyNames });
351870
351876
  while (await reader.step()) {
@@ -363940,7 +363946,7 @@ var loadLanguages = instance.loadLanguages;
363940
363946
  /***/ ((module) => {
363941
363947
 
363942
363948
  "use strict";
363943
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.3.0-dev.21","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","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":{"@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":"5.2.2-dev.2","@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.3.12","playwright":"~1.47.1","rimraf":"^6.0.1","sinon":"^17.0.2","source-map-loader":"^5.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","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"}}');
363949
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.3.0-dev.23","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","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":{"@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":"5.2.2-dev.2","@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.3.12","playwright":"~1.47.1","rimraf":"^6.0.1","sinon":"^17.0.2","source-map-loader":"^5.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","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"}}');
363944
363950
 
363945
363951
  /***/ }),
363946
363952