@itwin/rpcinterface-full-stack-tests 3.4.0-dev.20 → 3.4.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.
@@ -21,9 +21,9 @@
21
21
 
22
22
  /***/ }),
23
23
 
24
- /***/ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.8/node_modules/@itwin/certa/lib/utils/CallbackUtils.js":
24
+ /***/ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.3.0/node_modules/@itwin/certa/lib/utils/CallbackUtils.js":
25
25
  /*!********************************************************************************************************************!*\
26
- !*** ../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.8/node_modules/@itwin/certa/lib/utils/CallbackUtils.js ***!
26
+ !*** ../../common/temp/node_modules/.pnpm/@itwin+certa@3.3.0/node_modules/@itwin/certa/lib/utils/CallbackUtils.js ***!
27
27
  \********************************************************************************************************************/
28
28
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
29
29
 
@@ -2296,7 +2296,7 @@ exports.getAccessTokenFromBackend = exports.getTokenCallbackName = void 0;
2296
2296
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2297
2297
  * See LICENSE.md in the project root for license terms and full copyright notice.
2298
2298
  *--------------------------------------------------------------------------------------------*/
2299
- const CallbackUtils_1 = __webpack_require__(/*! @itwin/certa/lib/utils/CallbackUtils */ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.8/node_modules/@itwin/certa/lib/utils/CallbackUtils.js");
2299
+ const CallbackUtils_1 = __webpack_require__(/*! @itwin/certa/lib/utils/CallbackUtils */ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.3.0/node_modules/@itwin/certa/lib/utils/CallbackUtils.js");
2300
2300
  // Shared by both the frontend and backend side of the tests
2301
2301
  exports.getTokenCallbackName = "getToken";
2302
2302
  async function getAccessTokenFromBackend(user, oidcConfig) {
@@ -61631,7 +61631,10 @@ class Tracing {
61631
61631
  static withOpenTelemetry(base, isError = false) {
61632
61632
  return (category, message, metaData) => {
61633
61633
  var _a, _b;
61634
- (_b = (_a = Tracing._openTelemetry) === null || _a === void 0 ? void 0 : _a.trace.getSpan(Tracing._openTelemetry.context.active())) === null || _b === void 0 ? void 0 : _b.addEvent(message, { ...flattenObject(_Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.getMetaData(metaData)), error: isError });
61634
+ try {
61635
+ (_b = (_a = Tracing._openTelemetry) === null || _a === void 0 ? void 0 : _a.trace.getSpan(Tracing._openTelemetry.context.active())) === null || _b === void 0 ? void 0 : _b.addEvent(message, { ...flattenObject(_Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.getMetaData(metaData)), error: isError });
61636
+ }
61637
+ catch (_e) { } // avoid throwing random errors (with stack trace mangled by async hooks) when openTelemetry collector doesn't work
61635
61638
  base(category, message, metaData);
61636
61639
  };
61637
61640
  }
@@ -194605,8 +194608,8 @@ var ClipMaskXYZRangePlanes;
194605
194608
  * * isMask === true means the plane sets should cover the outside of its polygon.
194606
194609
  * * Note that the ClipShape's `isMask` property and the ClipPrimitive's `isInvisible` property are distinct controls.
194607
194610
  * * In normal usage, callers get "outside" clip behavior using ONLY the ClipShape isMask property.
194608
- * * The ClipShape happens to pass the _invisible bit down to ClipPlane's that it creates.
194609
- * * At that level, it controls whether the cut edges are produce on the plane
194611
+ * * The ClipShape happens to pass the _invisible bit down to ClipPlanes that it creates.
194612
+ * * At that level, the flag controls whether the cut edges are produced on the plane
194610
194613
  * * This seems like an confused overloading of the meaning.
194611
194614
  * @public
194612
194615
  */
@@ -194625,7 +194628,7 @@ class ClipPrimitive {
194625
194628
  /**
194626
194629
  * Create a ClipPrimitive, capturing the supplied plane set as the clip planes.
194627
194630
  * @param planes clipper
194628
- * @param isInvisible true to invert sense of the test
194631
+ * @param isInvisible set the invisible flag on the ClipPrimitive
194629
194632
  */
194630
194633
  static createCapture(planes, isInvisible = false) {
194631
194634
  let planeData;
@@ -195511,7 +195514,7 @@ class ClipUtilities {
195511
195514
  * * `ClipVector` -- intersection of the ranges of its `ClipPrimitive`.
195512
195515
  * * `undefined` -- entire input range.
195513
195516
  * * If `observeInvisibleFlag` is false, the "invisible" properties are ignored, and this effectively returns the range of the edge work of the members
195514
- * * If `observeInvisibleFlag` is false, the "invisible" properties are observed, and "invisible" parts do not restrict the range.
195517
+ * * If `observeInvisibleFlag` is true, the "invisible" properties are observed, and "invisible" parts do not restrict the range.
195515
195518
  * @param clipper
195516
195519
  * @param range non-null range.
195517
195520
  * @param observeInvisibleFlag indicates how "invisible" bit is applied for ClipPrimitive.
@@ -196073,7 +196076,7 @@ __webpack_require__.r(__webpack_exports__);
196073
196076
 
196074
196077
  /** Class holding an array structure of shapes defined by `ClipPrimitive`
196075
196078
  * * The `ClipVector` defines an intersection of the member `ClipPrimitive` regions.
196076
- * * In the most common usage, one of the `ClipPrimitive` will be an outer region, and all others are holes with marker flag indicating that they outside of each hole is live.
196079
+ * * In the most common usage, one of the `ClipPrimitive` will be an outer region, and all others are holes with marker flag indicating that the outside of each hole is live.
196077
196080
  * @public
196078
196081
  */
196079
196082
  class ClipVector {
@@ -287145,7 +287148,7 @@ class TestContext {
287145
287148
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
287146
287149
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${(_a = process.env.IMJS_URL_PREFIX) !== null && _a !== void 0 ? _a : ""}api.bentley.com/imodels` } });
287147
287150
  await core_frontend_1.NoRenderApp.startup({
287148
- applicationVersion: "3.4.0-dev.20",
287151
+ applicationVersion: "3.4.0-dev.23",
287149
287152
  applicationId: this.settings.gprid,
287150
287153
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
287151
287154
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
@@ -287212,12 +287215,6 @@ describe("Basic Scenarios", async () => {
287212
287215
  const iModelId = testContext.iModelWithChangesets.iModelId;
287213
287216
  await openIModelAndQueryPage(iTwinId, iModelId);
287214
287217
  });
287215
- // imodeljs does not allow this -- changesetid must be non-empty for routing purposes.
287216
- it.skip("should successfully open a new IModel without changesets for read and Get Properties for an Element TestCase:872675", async () => {
287217
- const iTwinId = testContext.iTwinId;
287218
- const iModelId = testContext.iModelWithChangesets.iModelId;
287219
- await openIModelAndQueryPage(iTwinId, iModelId);
287220
- });
287221
287218
  it("should open iModel and Execute Query TestCase:819343", async () => {
287222
287219
  var e_1, _a;
287223
287220
  const iModel = await testContext.iModelWithChangesets.getConnection();
@@ -287237,52 +287234,6 @@ describe("Basic Scenarios", async () => {
287237
287234
  }
287238
287235
  expect(rows).not.to.be.empty;
287239
287236
  });
287240
- /* This test is wrong. If two users open the same imodel using the same mode in the same backend, then they
287241
- will share a single briefcase in the backend. When either user closes the imodel, then the briefcase will
287242
- be closed. The backend does not maintain some kind of ref count that would keep the briefcase open
287243
- for the second connection.
287244
- it("should not affect other users when iModel is closed TestCase:819344 #orchestrator", async () => {
287245
- const iModelId = testContext.iModelWithChangesets.iModelId;
287246
- const iTwinId = testContext.iModelWithChangesets.iTwinId;
287247
- const openMode = OpenMode.Readonly;
287248
-
287249
- const originalAppAuth = TestRpcClientManager.configuration.applicationAuthorizationValue;
287250
-
287251
- try {
287252
- // Get access token of user that does not have permission to read given iModel
287253
- const user1accessToken = await testContext.regularUser1.getAccessToken();
287254
- const user1accessTokenString = user1accessToken.toTokenString() || "";
287255
-
287256
- TestRpcClientManager.configuration.applicationAuthorizationValue = user1accessTokenString;
287257
- const iModel1 = await IModelConnection.open(user1accessToken, iTwinId, iModelId, openMode);
287258
-
287259
- // Open the same imodel for another user
287260
- const user2accessToken = await testContext.regularUser2.getAccessToken();
287261
- const user2accessTokenString = user2accessToken.toTokenString() || "";
287262
-
287263
- TestRpcClientManager.configuration.applicationAuthorizationValue = user2accessTokenString;
287264
- const iModel2 = await IModelConnection.open(user2accessToken, iTwinId, iModelId, openMode);
287265
- const query = "SELECT ECInstanceId AS id FROM BisCore.Element";
287266
-
287267
- // Act: Close the iModel for the same user
287268
- {
287269
- TestRpcClientManager.configuration.applicationAuthorizationValue = user1accessTokenString;
287270
- const rows = await iModel1.queryPage(query);
287271
- expect(rows).to.exist.and.be.not.empty;
287272
- await iModel1.close(user1accessToken);
287273
- }
287274
-
287275
- // Assert: Previous session close should not affect other users
287276
- {
287277
- TestRpcClientManager.configuration.applicationAuthorizationValue = user2accessTokenString;
287278
- const rows = await iModel2.queryPage(query);
287279
- expect(rows).to.exist.and.be.not.empty;
287280
- }
287281
- } finally {
287282
- TestRpcClientManager.configuration.applicationAuthorizationValue = originalAppAuth;
287283
- }
287284
- });
287285
- */
287286
287237
  });
287287
287238
 
287288
287239
 
@@ -287667,7 +287618,10 @@ __webpack_require__.r(__webpack_exports__);
287667
287618
  /** @packageDocumentation
287668
287619
  * @module Core
287669
287620
  */
287670
- /** @alpha */
287621
+ /**
287622
+ * Functions related to diagnostics log entry.
287623
+ * @beta
287624
+ */
287671
287625
  var DiagnosticsLogEntry;
287672
287626
  (function (DiagnosticsLogEntry) {
287673
287627
  function isMessage(entry) {
@@ -292798,7 +292752,8 @@ __webpack_require__.r(__webpack_exports__);
292798
292752
  */
292799
292753
 
292800
292754
  /**
292801
- * @alpha
292755
+ * A function which logs messages to the console.
292756
+ * @beta
292802
292757
  */
292803
292758
  function consoleDiagnosticsHandler(diagnostics) {
292804
292759
  // eslint-disable-next-line no-console
@@ -292813,7 +292768,8 @@ function consoleDiagnosticsHandler(diagnostics) {
292813
292768
  });
292814
292769
  }
292815
292770
  /**
292816
- * @alpha
292771
+ * A function which calls all diagnostics handlers passed to it.
292772
+ * @beta
292817
292773
  */
292818
292774
  function createCombinedDiagnosticsHandler(handlers) {
292819
292775
  return (diagnostics) => {
@@ -305604,7 +305560,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
305604
305560
  /***/ ((module) => {
305605
305561
 
305606
305562
  "use strict";
305607
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.20","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","build:ci":"npm run -s build && npm run -s build:esm","build:cjs":"tsc 1>&2 --outDir lib/cjs","build:esm":"tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/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-eslintrc -c \\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -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"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^3.4.0-dev.20","@itwin/core-bentley":"workspace:^3.4.0-dev.20","@itwin/core-common":"workspace:^3.4.0-dev.20","@itwin/core-geometry":"workspace:^3.4.0-dev.20","@itwin/core-orbitgt":"workspace:^3.4.0-dev.20","@itwin/core-quantity":"workspace:^3.4.0-dev.20","@itwin/webgl-compatibility":"workspace:^3.4.0-dev.20"},"//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":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.0","@types/lodash":"^4.14.0","@types/mocha":"^8.2.2","@types/node":"16.11.7","@types/qs":"^6.5.0","@types/semver":"7.3.10","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^7.11.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~4.4.0","webpack":"^5.64.4"},"//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/core-telemetry":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","lodash":"^4.17.10","qs":"^6.5.1","semver":"^7.3.5","superagent":"7.1.3","wms-capabilities":"0.4.0","xml-js":"~1.6.11"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
305563
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.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","build:ci":"npm run -s build && npm run -s build:esm","build:cjs":"tsc 1>&2 --outDir lib/cjs","build:esm":"tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/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-eslintrc -c \\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -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"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^3.4.0-dev.23","@itwin/core-bentley":"workspace:^3.4.0-dev.23","@itwin/core-common":"workspace:^3.4.0-dev.23","@itwin/core-geometry":"workspace:^3.4.0-dev.23","@itwin/core-orbitgt":"workspace:^3.4.0-dev.23","@itwin/core-quantity":"workspace:^3.4.0-dev.23","@itwin/webgl-compatibility":"workspace:^3.4.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":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.0","@types/lodash":"^4.14.0","@types/mocha":"^8.2.2","@types/node":"16.11.7","@types/qs":"^6.5.0","@types/semver":"7.3.10","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^7.11.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~4.4.0","webpack":"^5.64.4"},"//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/core-telemetry":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","lodash":"^4.17.10","qs":"^6.5.1","semver":"^7.3.5","superagent":"7.1.3","wms-capabilities":"0.4.0","xml-js":"~1.6.11"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
305608
305564
 
305609
305565
  /***/ }),
305610
305566