@itwin/rpcinterface-full-stack-tests 4.10.11 → 4.10.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.
@@ -79961,6 +79961,10 @@ class Schema {
79961
79961
  get originalECSpecMinorVersion() { return this._originalECSpecMinorVersion; }
79962
79962
  static get currentECSpecMajorVersion() { return parseInt(Schema._currentECSpecVersion.split(".")[0], 10); }
79963
79963
  static get currentECSpecMinorVersion() { return parseInt(Schema._currentECSpecVersion.split(".")[1], 10); }
79964
+ get _isECSpecVersionUnsupported() {
79965
+ return (this.originalECSpecMajorVersion !== 3 || this.originalECSpecMinorVersion === undefined
79966
+ || (this.originalECSpecMinorVersion < 2 || this.originalECSpecMinorVersion > Schema.currentECSpecMinorVersion));
79967
+ }
79964
79968
  get alias() {
79965
79969
  if (this._alias === undefined || this._alias === null) {
79966
79970
  throw new _Exception__WEBPACK_IMPORTED_MODULE_4__.ECObjectsError(_Exception__WEBPACK_IMPORTED_MODULE_4__.ECObjectsStatus.InvalidECJson, `The Schema ${this.name} does not have the required 'alias' attribute.`);
@@ -80321,7 +80325,7 @@ class Schema {
80321
80325
  * Save this Schema's properties to an object for serializing to JSON.
80322
80326
  */
80323
80327
  toJSON() {
80324
- if (!this.isECSpecVersionSupported())
80328
+ if (this._isECSpecVersionUnsupported)
80325
80329
  throw new _Exception__WEBPACK_IMPORTED_MODULE_4__.ECObjectsError(_Exception__WEBPACK_IMPORTED_MODULE_4__.ECObjectsStatus.NewerECSpecVersion, `The Schema '${this.name}' has an unsupported ECSpecVersion and cannot be serialized.`);
80326
80330
  const schemaJson = {};
80327
80331
  schemaJson.$schema = SCHEMAURL3_2_JSON; // $schema is required
@@ -80350,7 +80354,7 @@ class Schema {
80350
80354
  * @param schemaXml An empty DOM document to which the schema will be written
80351
80355
  */
80352
80356
  async toXml(schemaXml) {
80353
- if (!this.isECSpecVersionSupported())
80357
+ if (this._isECSpecVersionUnsupported)
80354
80358
  throw new _Exception__WEBPACK_IMPORTED_MODULE_4__.ECObjectsError(_Exception__WEBPACK_IMPORTED_MODULE_4__.ECObjectsStatus.NewerECSpecVersion, `The Schema '${this.name}' has an unsupported ECSpecVersion and cannot be serialized.`);
80355
80359
  const schemaMetadata = schemaXml.createElement("ECSchema");
80356
80360
  schemaMetadata.setAttribute("xmlns", SCHEMAURL3_2_XML);
@@ -80386,33 +80390,6 @@ class Schema {
80386
80390
  schemaXml.appendChild(schemaMetadata);
80387
80391
  return schemaXml;
80388
80392
  }
80389
- // Check if the ECSpecVersion read-version is greater than the current ECSpecVersion supported.
80390
- // If a specific ECSpecVersion is given, check against that version.
80391
- // If no argument is given, check against the original ECSpecVersion of the schema.
80392
- isECSpecMajorVersionSupported(ecSpecMajorVersionToCheck) {
80393
- // If argument is supplied, check the argument against the current ECSpecVersion supported
80394
- if (ecSpecMajorVersionToCheck !== undefined)
80395
- return (Schema.currentECSpecMajorVersion >= ecSpecMajorVersionToCheck);
80396
- // If argument is not supplied, check against the original ECSpecVersion of the schema
80397
- if (this.originalECSpecMajorVersion === undefined)
80398
- return false;
80399
- return (Schema.currentECSpecMajorVersion >= this.originalECSpecMajorVersion);
80400
- }
80401
- // Check if the full ECSpecVersion is greater than the current ECSpecVersion supported.
80402
- // If a specific ECSpecVersion is given, check against that version.
80403
- // If no argument is given, check against the original ECSpecVersion of the schema.
80404
- isECSpecVersionSupported(ecSpecMajorVersionToCheck, ecSpecMinorVersionToCheck) {
80405
- // If arguments are supplied, check the arguments against the current ECSpecVersion supported
80406
- if (ecSpecMajorVersionToCheck !== undefined && ecSpecMinorVersionToCheck !== undefined) {
80407
- if (!this.isECSpecMajorVersionSupported(ecSpecMajorVersionToCheck))
80408
- return false;
80409
- return (Schema.currentECSpecMinorVersion >= ecSpecMinorVersionToCheck);
80410
- }
80411
- // If arguments are not supplied, check against the original ECSpecVersion of the schema
80412
- if (!this.isECSpecMajorVersionSupported() || this.originalECSpecMinorVersion === undefined)
80413
- return false;
80414
- return (Schema.currentECSpecMinorVersion >= this.originalECSpecMinorVersion);
80415
- }
80416
80393
  /**
80417
80394
  * Loads the schema header (name, version alias, label and description) from the input SchemaProps
80418
80395
  */
@@ -80438,10 +80415,10 @@ class Schema {
80438
80415
  else {
80439
80416
  ecVersion = { readVersion: schemaProps.ecSpecMajorVersion, writeVersion: schemaProps.ecSpecMinorVersion };
80440
80417
  }
80441
- this._originalECSpecMajorVersion = ecVersion?.readVersion;
80442
- this._originalECSpecMinorVersion = ecVersion?.writeVersion;
80443
- if (!this.isECSpecMajorVersionSupported(ecVersion?.readVersion))
80444
- throw new _Exception__WEBPACK_IMPORTED_MODULE_4__.ECObjectsError(_Exception__WEBPACK_IMPORTED_MODULE_4__.ECObjectsStatus.NewerECSpecVersion, `The Schema '${this.name}' has an unsupported ECVersion and cannot be loaded.`);
80418
+ this._originalECSpecMajorVersion = ecVersion.readVersion;
80419
+ this._originalECSpecMinorVersion = ecVersion.writeVersion;
80420
+ if (ecVersion.readVersion !== 3 || (ecVersion.readVersion === 3 && ecVersion.writeVersion < 2))
80421
+ throw new _Exception__WEBPACK_IMPORTED_MODULE_4__.ECObjectsError(_Exception__WEBPACK_IMPORTED_MODULE_4__.ECObjectsStatus.InvalidECVersion, `The Schema '${this.name}' has an unsupported ECVersion ${ecVersion.readVersion}.${ecVersion.writeVersion} and cannot be loaded.`);
80445
80422
  if (_ECName__WEBPACK_IMPORTED_MODULE_6__.ECName.validate(schemaProps.alias)) {
80446
80423
  this._alias = schemaProps.alias;
80447
80424
  }
@@ -302025,7 +302002,7 @@ class TestContext {
302025
302002
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
302026
302003
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
302027
302004
  await core_frontend_1.NoRenderApp.startup({
302028
- applicationVersion: "4.10.11",
302005
+ applicationVersion: "4.10.12",
302029
302006
  applicationId: this.settings.gprid,
302030
302007
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
302031
302008
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
@@ -329630,7 +329607,7 @@ function __rewriteRelativeImportExtension(path, preserveJsx) {
329630
329607
  /***/ ((module) => {
329631
329608
 
329632
329609
  "use strict";
329633
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.10.11","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","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 ES2020 --outDir lib/esm","clean":"rimraf 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","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","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","test:debug":"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:^4.10.11","@itwin/core-bentley":"workspace:^4.10.11","@itwin/core-common":"workspace:^4.10.11","@itwin/core-geometry":"workspace:^4.10.11","@itwin/core-orbitgt":"workspace:^4.10.11","@itwin/core-quantity":"workspace:^4.10.11"},"//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/eslint-plugin":"5.0.0-dev.1","@types/chai-as-promised":"^7","@vitest/browser":"^2.1.9","@vitest/coverage-v8":"^2.1.9","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","cpx2":"^3.0.0","eslint":"^9.13.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^3.0.2","source-map-loader":"^4.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^2.1.9","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"1.0.6","webpack":"^5.76.0"},"//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/cloud-agnostic-core":"^2.2.4","@itwin/object-storage-core":"^2.3.0","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","meshoptimizer":"~0.20.0","wms-capabilities":"0.4.0"}}');
329610
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.10.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","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 ES2020 --outDir lib/esm","clean":"rimraf 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","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","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","test:debug":"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:^4.10.12","@itwin/core-bentley":"workspace:^4.10.12","@itwin/core-common":"workspace:^4.10.12","@itwin/core-geometry":"workspace:^4.10.12","@itwin/core-orbitgt":"workspace:^4.10.12","@itwin/core-quantity":"workspace:^4.10.12"},"//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/eslint-plugin":"5.0.0-dev.1","@types/chai-as-promised":"^7","@vitest/browser":"^2.1.9","@vitest/coverage-v8":"^2.1.9","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","cpx2":"^3.0.0","eslint":"^9.13.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^3.0.2","source-map-loader":"^4.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^2.1.9","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"1.0.6","webpack":"^5.76.0"},"//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/cloud-agnostic-core":"^2.2.4","@itwin/object-storage-core":"^2.3.0","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","meshoptimizer":"~0.20.0","wms-capabilities":"0.4.0"}}');
329634
329611
 
329635
329612
  /***/ }),
329636
329613