@itwin/rpcinterface-full-stack-tests 4.6.0-dev.23 → 4.6.0-dev.24

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.
@@ -1 +1 @@
1
- {"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\17\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.1.6\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|E:\\vsts_b\\65\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.1.6\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
@@ -38780,6 +38780,7 @@ class PropertyMetaData {
38780
38780
  */
38781
38781
  class EntityMetaData {
38782
38782
  constructor(jsonObj) {
38783
+ this.classId = jsonObj.classId;
38783
38784
  this.ecclass = jsonObj.ecclass;
38784
38785
  this.description = jsonObj.description;
38785
38786
  this.modifier = jsonObj.modifier;
@@ -81619,6 +81620,7 @@ __webpack_require__.r(__webpack_exports__);
81619
81620
  /* harmony import */ var _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
81620
81621
  /* harmony import */ var _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @itwin/core-geometry */ "../../core/geometry/lib/esm/core-geometry.js");
81621
81622
  /* harmony import */ var _IpcApp__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./IpcApp */ "../../core/frontend/lib/esm/IpcApp.js");
81623
+ /* harmony import */ var _TxnEntityChanges__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TxnEntityChanges */ "../../core/frontend/lib/esm/TxnEntityChanges.js");
81622
81624
  /*---------------------------------------------------------------------------------------------
81623
81625
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
81624
81626
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -81630,6 +81632,7 @@ __webpack_require__.r(__webpack_exports__);
81630
81632
 
81631
81633
 
81632
81634
 
81635
+
81633
81636
  /**
81634
81637
  * Base class for notification handlers for events from the backend that are specific to a [[BriefcaseConnection]].
81635
81638
  * @see [[BriefcaseTxns]].
@@ -81805,11 +81808,11 @@ class BriefcaseTxns extends BriefcaseNotificationHandler {
81805
81808
  }
81806
81809
  /** @internal */
81807
81810
  notifyElementsChanged(changed) {
81808
- this.onElementsChanged.raiseEvent(changed);
81811
+ this.onElementsChanged.raiseEvent(new _TxnEntityChanges__WEBPACK_IMPORTED_MODULE_4__.EntityChanges(changed));
81809
81812
  }
81810
81813
  /** @internal */
81811
81814
  notifyModelsChanged(changed) {
81812
- this.onModelsChanged.raiseEvent(changed);
81815
+ this.onModelsChanged.raiseEvent(new _TxnEntityChanges__WEBPACK_IMPORTED_MODULE_4__.EntityChanges(changed));
81813
81816
  }
81814
81817
  /** @internal */
81815
81818
  notifyGeometryGuidsChanged(changes) {
@@ -94227,6 +94230,96 @@ class Tiles {
94227
94230
  }
94228
94231
 
94229
94232
 
94233
+ /***/ }),
94234
+
94235
+ /***/ "../../core/frontend/lib/esm/TxnEntityChanges.js":
94236
+ /*!*******************************************************!*\
94237
+ !*** ../../core/frontend/lib/esm/TxnEntityChanges.js ***!
94238
+ \*******************************************************/
94239
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
94240
+
94241
+ "use strict";
94242
+ __webpack_require__.r(__webpack_exports__);
94243
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
94244
+ /* harmony export */ "EntityChanges": () => (/* binding */ EntityChanges),
94245
+ /* harmony export */ "Metadata": () => (/* binding */ Metadata)
94246
+ /* harmony export */ });
94247
+ /* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
94248
+ /*---------------------------------------------------------------------------------------------
94249
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
94250
+ * See LICENSE.md in the project root for license terms and full copyright notice.
94251
+ *--------------------------------------------------------------------------------------------*/
94252
+ /** @packageDocumentation
94253
+ * @module IModelConnection
94254
+ */
94255
+
94256
+ class Metadata {
94257
+ constructor(name) {
94258
+ this.baseClasses = [];
94259
+ this.classFullName = name;
94260
+ }
94261
+ is(baseName) {
94262
+ return baseName === this.classFullName || this.baseClasses.some((base) => base.is(baseName));
94263
+ }
94264
+ }
94265
+ function* entityChangesIterator(changes, options) {
94266
+ let excludedMetaIndices;
94267
+ if (options?.includeMetadata) {
94268
+ for (let i = 0; i < changes.metadata.length; i++) {
94269
+ if (!options.includeMetadata(changes.metadata[i])) {
94270
+ excludedMetaIndices = excludedMetaIndices ?? new Set();
94271
+ excludedMetaIndices.add(i);
94272
+ }
94273
+ }
94274
+ }
94275
+ function* process(type) {
94276
+ if (options?.includeTypes && !options.includeTypes.includes(type)) {
94277
+ return;
94278
+ }
94279
+ const ids = changes[type];
94280
+ if (undefined === ids) {
94281
+ return;
94282
+ }
94283
+ const metaIndices = changes.args[`${type}Meta`];
94284
+ let index = 0;
94285
+ for (const id of _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.CompressedId64Set.iterable(ids)) {
94286
+ const metaIndex = metaIndices[index++];
94287
+ if (excludedMetaIndices && excludedMetaIndices.has(metaIndex)) {
94288
+ continue;
94289
+ }
94290
+ const metadata = changes.metadata[metaIndex];
94291
+ yield { type, id, metadata };
94292
+ }
94293
+ }
94294
+ yield* process("inserted");
94295
+ yield* process("deleted");
94296
+ yield* process("updated");
94297
+ }
94298
+ class EntityChanges {
94299
+ constructor(args) {
94300
+ this.args = args;
94301
+ this.metadata = args.meta.map((x) => new Metadata(x.name));
94302
+ for (let i = 0; i < this.metadata.length; i++) {
94303
+ const meta = this.metadata[i];
94304
+ for (const baseIndex of args.meta[i].bases) {
94305
+ meta.baseClasses.push(this.metadata[baseIndex]);
94306
+ }
94307
+ }
94308
+ }
94309
+ get inserted() { return this.args.inserted; }
94310
+ get deleted() { return this.args.deleted; }
94311
+ get updated() { return this.args.updated; }
94312
+ [Symbol.iterator]() {
94313
+ return entityChangesIterator(this);
94314
+ }
94315
+ filter(options) {
94316
+ return {
94317
+ [Symbol.iterator]: () => entityChangesIterator(this, options),
94318
+ };
94319
+ }
94320
+ }
94321
+
94322
+
94230
94323
  /***/ }),
94231
94324
 
94232
94325
  /***/ "../../core/frontend/lib/esm/UserPreferences.js":
@@ -289896,7 +289989,7 @@ class TestContext {
289896
289989
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
289897
289990
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
289898
289991
  await core_frontend_1.NoRenderApp.startup({
289899
- applicationVersion: "4.6.0-dev.23",
289992
+ applicationVersion: "4.6.0-dev.24",
289900
289993
  applicationId: this.settings.gprid,
289901
289994
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
289902
289995
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
@@ -313933,7 +314026,7 @@ function __disposeResources(env) {
313933
314026
  /***/ ((module) => {
313934
314027
 
313935
314028
  "use strict";
313936
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.6.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","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 --includes=../../generated-docs/extract --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 -f visualstudio \\"./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 -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","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.6.0-dev.23","@itwin/core-bentley":"workspace:^4.6.0-dev.23","@itwin/core-common":"workspace:^4.6.0-dev.23","@itwin/core-geometry":"workspace:^4.6.0-dev.23","@itwin/core-orbitgt":"workspace:^4.6.0-dev.23","@itwin/core-quantity":"workspace:^4.6.0-dev.23"},"//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/certa":"workspace:*","@itwin/eslint-plugin":"4.0.0-dev.52","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^10.0.6","@types/sinon":"^17.0.2","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7.1.1","cpx2":"^3.0.0","eslint":"^8.44.0","glob":"^10.3.12","mocha":"^10.2.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^17.0.1","source-map-loader":"^4.0.0","typescript":"~5.3.3","typemoq":"^2.1.0","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.1.0","@itwin/object-storage-core":"^2.2.2","@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"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"}}');
314029
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.6.0-dev.24","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 --includes=../../generated-docs/extract --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 -f visualstudio \\"./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 -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","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.6.0-dev.24","@itwin/core-bentley":"workspace:^4.6.0-dev.24","@itwin/core-common":"workspace:^4.6.0-dev.24","@itwin/core-geometry":"workspace:^4.6.0-dev.24","@itwin/core-orbitgt":"workspace:^4.6.0-dev.24","@itwin/core-quantity":"workspace:^4.6.0-dev.24"},"//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/certa":"workspace:*","@itwin/eslint-plugin":"4.0.0-dev.52","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^10.0.6","@types/sinon":"^17.0.2","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7.1.1","cpx2":"^3.0.0","eslint":"^8.44.0","glob":"^10.3.12","mocha":"^10.2.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^17.0.1","source-map-loader":"^4.0.0","typescript":"~5.3.3","typemoq":"^2.1.0","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.1.0","@itwin/object-storage-core":"^2.2.2","@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"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"}}');
313937
314030
 
313938
314031
  /***/ }),
313939
314032