@itwin/ecschema-rpcinterface-tests 3.7.9 → 3.7.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.
@@ -83281,6 +83281,8 @@ function consumeNextChunk(stream) {
83281
83281
  return undefined;
83282
83282
  const offset = stream.curPos + 8;
83283
83283
  const length = stream.readUint32();
83284
+ if (stream.isAtTheEnd)
83285
+ return undefined;
83284
83286
  const type = stream.readUint32();
83285
83287
  stream.advance(length);
83286
83288
  return stream.isPastTheEnd ? false : { offset, length, type };
@@ -160816,6 +160818,9 @@ class GltfReader {
160816
160818
  }
160817
160819
  let componentCount = 1;
160818
160820
  switch (accessor.type) {
160821
+ case "VEC4":
160822
+ componentCount = 4;
160823
+ break;
160819
160824
  case "VEC3":
160820
160825
  componentCount = 3;
160821
160826
  break;
@@ -161095,7 +161100,7 @@ class GltfReader {
161095
161100
  }
161096
161101
  }
161097
161102
  const uvs = (_e = draco.attributes.TEXCOORD_0) === null || _e === void 0 ? void 0 : _e.value;
161098
- if (uvs && (uvs.length & 2) === 0)
161103
+ if (uvs && (uvs.length % 2) === 0)
161099
161104
  for (let i = 0; i < uvs.length; i += 2)
161100
161105
  mesh.uvParams.push(new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point2d(uvs[i], uvs[i + 1]));
161101
161106
  const batchIds = (_f = draco.attributes._BATCHID) === null || _f === void 0 ? void 0 : _f.value;
@@ -167084,7 +167089,7 @@ class RealityTileTree extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTree {
167084
167089
  const reprojectChildren = new Array();
167085
167090
  for (const child of children) {
167086
167091
  const realityChild = child;
167087
- const childRange = realityChild.rangeCorners ? _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d.createTransformedArray(rootToDb, realityChild.rangeCorners) : rootToDb.multiplyRange(realityChild.contentRange, scratchRange);
167092
+ const childRange = rootToDb.multiplyRange(realityChild.contentRange, scratchRange);
167088
167093
  const dbCenter = childRange.center;
167089
167094
  const ecefCenter = dbToEcef.multiplyPoint3d(dbCenter);
167090
167095
  const dbPoints = [dbCenter, dbCenter.plusXYZ(1), dbCenter.plusXYZ(0, 1), dbCenter.plusXYZ(0, 0, 1)];
@@ -172399,7 +172404,7 @@ class ArcGISImageryProvider extends _internal__WEBPACK_IMPORTED_MODULE_0__.MapLa
172399
172404
  tmpUrl.searchParams.append("f", "json");
172400
172405
  response = await fetch(tmpUrl.toString(), options);
172401
172406
  }
172402
- errorCode = await _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGisUtilities.checkForResponseErrorCode(response.clone());
172407
+ errorCode = await _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGisUtilities.checkForResponseErrorCode(response);
172403
172408
  if (errorCode !== undefined &&
172404
172409
  (errorCode === _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGisErrorCode.TokenRequired || errorCode === _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGisErrorCode.InvalidToken)) {
172405
172410
  if (this._settings.userName && this._settings.userName.length > 0 && this._lastAccessToken) {
@@ -172417,7 +172422,7 @@ class ArcGISImageryProvider extends _internal__WEBPACK_IMPORTED_MODULE_0__.MapLa
172417
172422
  }
172418
172423
  // Make a second attempt with refreshed token
172419
172424
  response = await fetch(urlObj2.toString(), options);
172420
- errorCode = await _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGisUtilities.checkForResponseErrorCode(response.clone());
172425
+ errorCode = await _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGisUtilities.checkForResponseErrorCode(response);
172421
172426
  }
172422
172427
  if (errorCode === _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGisErrorCode.TokenRequired || errorCode === _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGisErrorCode.InvalidToken) {
172423
172428
  // Looks like the initially generated token has expired.
@@ -294639,112 +294644,112 @@ __webpack_require__.r(__webpack_exports__);
294639
294644
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
294640
294645
 
294641
294646
  "use strict";
294642
-
294643
- Object.defineProperty(exports, "__esModule", ({ value: true }));
294644
- exports.Settings = exports.getRpcInterfaces = void 0;
294645
- /*---------------------------------------------------------------------------------------------
294646
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
294647
- * See LICENSE.md in the project root for license terms and full copyright notice.
294648
- *--------------------------------------------------------------------------------------------*/
294649
- const core_bentley_1 = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
294650
- const core_common_1 = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
294651
- const ecschema_rpcinterface_common_1 = __webpack_require__(/*! @itwin/ecschema-rpcinterface-common */ "../../core/ecschema-rpc/common/lib/cjs/ecschema-rpc-interface.js");
294652
- function getRpcInterfaces() {
294653
- const rpcInterfaces = [];
294654
- rpcInterfaces.push(core_common_1.IModelReadRpcInterface);
294655
- rpcInterfaces.push(ecschema_rpcinterface_common_1.ECSchemaRpcInterface);
294656
- return rpcInterfaces;
294657
- }
294658
- exports.getRpcInterfaces = getRpcInterfaces;
294659
- class Settings {
294660
- constructor(env) {
294661
- this._backend = {};
294662
- this.users = [];
294663
- this.iModel = {};
294664
- const isFrontend = (typeof (process) === "undefined");
294665
- if (!isFrontend && undefined === env.TF_BUILD) {
294666
- const path = __webpack_require__(/*! path */ "../../common/temp/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js"); // eslint-disable-line @typescript-eslint/no-var-requires
294667
- const dotenv = __webpack_require__(/*! dotenv */ "../../common/temp/node_modules/.pnpm/dotenv@10.0.0/node_modules/dotenv/lib/main.js"); // eslint-disable-line @typescript-eslint/no-var-requires
294668
- const dotenvExpand = __webpack_require__(/*! dotenv-expand */ "../../common/temp/node_modules/.pnpm/dotenv-expand@5.1.0/node_modules/dotenv-expand/lib/main.js"); // eslint-disable-line @typescript-eslint/no-var-requires
294669
- // First check in process.cwd() for the config
294670
- let result = dotenv.config();
294671
- if (result.error) {
294672
- const potential = path.resolve(process.cwd(), "..", "..", "..", "imodeljs-config", ".env");
294673
- result = dotenv.config({ path: potential });
294674
- if (result.error)
294675
- throw result.error;
294676
- }
294677
- dotenvExpand(result);
294678
- }
294679
- if (isFrontend)
294680
- globalThis.process = { browser: true, env };
294681
- // Loads the config out of the environment.
294682
- this.load();
294683
- }
294684
- // eslint-disable-next-line @typescript-eslint/naming-convention
294685
- get Backend() { return this._backend; }
294686
- get user() { return this.users[0]; }
294687
- /** Loads the necessary variables from `process.env`.
294688
- */
294689
- load() {
294690
- // Parse OIDC
294691
- if (undefined === process.env.OIDC_CLIENT_ID)
294692
- throw new Error("Missing the 'OIDC_CLIENT_ID' setting.");
294693
- this.oidcClientId = process.env.OIDC_CLIENT_ID;
294694
- if (undefined === process.env.OIDC_SCOPES)
294695
- throw new Error("Missing the 'OIDC_SCOPES' setting");
294696
- this.oidcScopes = process.env.OIDC_SCOPES;
294697
- if (process.env.OIDC_AUTHORITY)
294698
- this.oidcAuthority = process.env.OIDC_AUTHORITY;
294699
- this.oidcRedirect = (undefined === process.env.OIDC_REDIRECT) ? "http://localhost:5000" : process.env.OIDC_REDIRECT;
294700
- // Parse GPRId
294701
- if (undefined !== process.env.GPRID)
294702
- this.gprid = process.env.GPRID;
294703
- // Parse the iModel variables
294704
- if (!process.env.IMODEL_PROJECTID && !process.env.IMODEL_PROJECTNAME)
294705
- throw new Error("Missing the 'IMODEL_PROJECTID' or 'IMODEL_PROJECTNAME' setting.");
294706
- if (!process.env.IMODEL_IMODELID && !process.env.IMODEL_IMODELNAME)
294707
- throw new Error("Missing the 'IMODEL_IMODELID' or 'IMODEL_IMODELNAME' setting.");
294708
- this.iModel = {
294709
- useName: !process.env.IMODEL_IMODELID,
294710
- id: process.env.IMODEL_IMODELID,
294711
- name: process.env.IMODEL_IMODELNAME,
294712
- useITwinName: !process.env.IMODEL_PROJECTID,
294713
- iTwinId: process.env.IMODEL_PROJECTID,
294714
- iTwinName: process.env.IMODEL_PROJECTNAME,
294715
- changesetId: process.env.IMODEL_CHANGESETID,
294716
- };
294717
- // Parse logging level
294718
- if (undefined !== process.env.LOG_LEVEL) {
294719
- const level = parseInt(process.env.LOG_LEVEL, 10);
294720
- if (!isNaN(level) && undefined !== core_bentley_1.LogLevel[level])
294721
- this.logLevel = level;
294722
- }
294723
- // Get backend data
294724
- if (undefined === process.env.BACKEND_LOCATION)
294725
- throw new Error("Missing the 'BACKEND_LOCATION' setting.");
294726
- this._backend.location = process.env.BACKEND_LOCATION;
294727
- if (undefined === process.env.BACKEND_VERSION)
294728
- throw new Error("Missing the 'BACKEND_VERSION' setting.");
294729
- this._backend.version = process.env.BACKEND_VERSION;
294730
- if (undefined === process.env.BACKEND_NAME)
294731
- throw new Error("Missing the 'BACKEND_NAME' setting.");
294732
- this._backend.name = process.env.BACKEND_NAME;
294733
- // Get users
294734
- this.users.push({
294735
- email: process.env.USER_WITH_ACCESS_USERNAME || "",
294736
- password: process.env.USER_WITH_ACCESS_PASSWORD || "",
294737
- });
294738
- }
294739
- toString() {
294740
- return `Configurations:
294741
- oidc client id: ${this.oidcClientId},
294742
- oidc scopes: ${this.oidcScopes},
294743
- applicationId: ${this.gprid},
294744
- log level: ${this.logLevel}`;
294745
- }
294746
- }
294747
- exports.Settings = Settings;
294647
+
294648
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
294649
+ exports.Settings = exports.getRpcInterfaces = void 0;
294650
+ /*---------------------------------------------------------------------------------------------
294651
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
294652
+ * See LICENSE.md in the project root for license terms and full copyright notice.
294653
+ *--------------------------------------------------------------------------------------------*/
294654
+ const core_bentley_1 = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
294655
+ const core_common_1 = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
294656
+ const ecschema_rpcinterface_common_1 = __webpack_require__(/*! @itwin/ecschema-rpcinterface-common */ "../../core/ecschema-rpc/common/lib/cjs/ecschema-rpc-interface.js");
294657
+ function getRpcInterfaces() {
294658
+ const rpcInterfaces = [];
294659
+ rpcInterfaces.push(core_common_1.IModelReadRpcInterface);
294660
+ rpcInterfaces.push(ecschema_rpcinterface_common_1.ECSchemaRpcInterface);
294661
+ return rpcInterfaces;
294662
+ }
294663
+ exports.getRpcInterfaces = getRpcInterfaces;
294664
+ class Settings {
294665
+ constructor(env) {
294666
+ this._backend = {};
294667
+ this.users = [];
294668
+ this.iModel = {};
294669
+ const isFrontend = (typeof (process) === "undefined");
294670
+ if (!isFrontend && undefined === env.TF_BUILD) {
294671
+ const path = __webpack_require__(/*! path */ "../../common/temp/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js"); // eslint-disable-line @typescript-eslint/no-var-requires
294672
+ const dotenv = __webpack_require__(/*! dotenv */ "../../common/temp/node_modules/.pnpm/dotenv@10.0.0/node_modules/dotenv/lib/main.js"); // eslint-disable-line @typescript-eslint/no-var-requires
294673
+ const dotenvExpand = __webpack_require__(/*! dotenv-expand */ "../../common/temp/node_modules/.pnpm/dotenv-expand@5.1.0/node_modules/dotenv-expand/lib/main.js"); // eslint-disable-line @typescript-eslint/no-var-requires
294674
+ // First check in process.cwd() for the config
294675
+ let result = dotenv.config();
294676
+ if (result.error) {
294677
+ const potential = path.resolve(process.cwd(), "..", "..", "..", "imodeljs-config", ".env");
294678
+ result = dotenv.config({ path: potential });
294679
+ if (result.error)
294680
+ throw result.error;
294681
+ }
294682
+ dotenvExpand(result);
294683
+ }
294684
+ if (isFrontend)
294685
+ globalThis.process = { browser: true, env };
294686
+ // Loads the config out of the environment.
294687
+ this.load();
294688
+ }
294689
+ // eslint-disable-next-line @typescript-eslint/naming-convention
294690
+ get Backend() { return this._backend; }
294691
+ get user() { return this.users[0]; }
294692
+ /** Loads the necessary variables from `process.env`.
294693
+ */
294694
+ load() {
294695
+ // Parse OIDC
294696
+ if (undefined === process.env.OIDC_CLIENT_ID)
294697
+ throw new Error("Missing the 'OIDC_CLIENT_ID' setting.");
294698
+ this.oidcClientId = process.env.OIDC_CLIENT_ID;
294699
+ if (undefined === process.env.OIDC_SCOPES)
294700
+ throw new Error("Missing the 'OIDC_SCOPES' setting");
294701
+ this.oidcScopes = process.env.OIDC_SCOPES;
294702
+ if (process.env.OIDC_AUTHORITY)
294703
+ this.oidcAuthority = process.env.OIDC_AUTHORITY;
294704
+ this.oidcRedirect = (undefined === process.env.OIDC_REDIRECT) ? "http://localhost:5000" : process.env.OIDC_REDIRECT;
294705
+ // Parse GPRId
294706
+ if (undefined !== process.env.GPRID)
294707
+ this.gprid = process.env.GPRID;
294708
+ // Parse the iModel variables
294709
+ if (!process.env.IMODEL_PROJECTID && !process.env.IMODEL_PROJECTNAME)
294710
+ throw new Error("Missing the 'IMODEL_PROJECTID' or 'IMODEL_PROJECTNAME' setting.");
294711
+ if (!process.env.IMODEL_IMODELID && !process.env.IMODEL_IMODELNAME)
294712
+ throw new Error("Missing the 'IMODEL_IMODELID' or 'IMODEL_IMODELNAME' setting.");
294713
+ this.iModel = {
294714
+ useName: !process.env.IMODEL_IMODELID,
294715
+ id: process.env.IMODEL_IMODELID,
294716
+ name: process.env.IMODEL_IMODELNAME,
294717
+ useITwinName: !process.env.IMODEL_PROJECTID,
294718
+ iTwinId: process.env.IMODEL_PROJECTID,
294719
+ iTwinName: process.env.IMODEL_PROJECTNAME,
294720
+ changesetId: process.env.IMODEL_CHANGESETID,
294721
+ };
294722
+ // Parse logging level
294723
+ if (undefined !== process.env.LOG_LEVEL) {
294724
+ const level = parseInt(process.env.LOG_LEVEL, 10);
294725
+ if (!isNaN(level) && undefined !== core_bentley_1.LogLevel[level])
294726
+ this.logLevel = level;
294727
+ }
294728
+ // Get backend data
294729
+ if (undefined === process.env.BACKEND_LOCATION)
294730
+ throw new Error("Missing the 'BACKEND_LOCATION' setting.");
294731
+ this._backend.location = process.env.BACKEND_LOCATION;
294732
+ if (undefined === process.env.BACKEND_VERSION)
294733
+ throw new Error("Missing the 'BACKEND_VERSION' setting.");
294734
+ this._backend.version = process.env.BACKEND_VERSION;
294735
+ if (undefined === process.env.BACKEND_NAME)
294736
+ throw new Error("Missing the 'BACKEND_NAME' setting.");
294737
+ this._backend.name = process.env.BACKEND_NAME;
294738
+ // Get users
294739
+ this.users.push({
294740
+ email: process.env.USER_WITH_ACCESS_USERNAME || "",
294741
+ password: process.env.USER_WITH_ACCESS_PASSWORD || "",
294742
+ });
294743
+ }
294744
+ toString() {
294745
+ return `Configurations:
294746
+ oidc client id: ${this.oidcClientId},
294747
+ oidc scopes: ${this.oidcScopes},
294748
+ applicationId: ${this.gprid},
294749
+ log level: ${this.logLevel}`;
294750
+ }
294751
+ }
294752
+ exports.Settings = Settings;
294748
294753
 
294749
294754
 
294750
294755
  /***/ }),
@@ -294756,25 +294761,25 @@ exports.Settings = Settings;
294756
294761
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
294757
294762
 
294758
294763
  "use strict";
294759
-
294760
- Object.defineProperty(exports, "__esModule", ({ value: true }));
294761
- exports.getProcessEnvFromBackend = exports.exposeBackendCallbacks = void 0;
294762
- /*---------------------------------------------------------------------------------------------
294763
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
294764
- * See LICENSE.md in the project root for license terms and full copyright notice.
294765
- *--------------------------------------------------------------------------------------------*/
294766
- const CallbackUtils_1 = __webpack_require__(/*! @itwin/certa/lib/utils/CallbackUtils */ "../../tools/certa/lib/utils/CallbackUtils.js");
294767
- const getEnvCallbackName = "getEnv";
294768
- function exposeBackendCallbacks() {
294769
- (0, CallbackUtils_1.registerBackendCallback)(getEnvCallbackName, () => {
294770
- return JSON.stringify(process.env);
294771
- });
294772
- }
294773
- exports.exposeBackendCallbacks = exposeBackendCallbacks;
294774
- async function getProcessEnvFromBackend() {
294775
- return JSON.parse(await (0, CallbackUtils_1.executeBackendCallback)(getEnvCallbackName));
294776
- }
294777
- exports.getProcessEnvFromBackend = getProcessEnvFromBackend;
294764
+
294765
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
294766
+ exports.getProcessEnvFromBackend = exports.exposeBackendCallbacks = void 0;
294767
+ /*---------------------------------------------------------------------------------------------
294768
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
294769
+ * See LICENSE.md in the project root for license terms and full copyright notice.
294770
+ *--------------------------------------------------------------------------------------------*/
294771
+ const CallbackUtils_1 = __webpack_require__(/*! @itwin/certa/lib/utils/CallbackUtils */ "../../tools/certa/lib/utils/CallbackUtils.js");
294772
+ const getEnvCallbackName = "getEnv";
294773
+ function exposeBackendCallbacks() {
294774
+ (0, CallbackUtils_1.registerBackendCallback)(getEnvCallbackName, () => {
294775
+ return JSON.stringify(process.env);
294776
+ });
294777
+ }
294778
+ exports.exposeBackendCallbacks = exposeBackendCallbacks;
294779
+ async function getProcessEnvFromBackend() {
294780
+ return JSON.parse(await (0, CallbackUtils_1.executeBackendCallback)(getEnvCallbackName));
294781
+ }
294782
+ exports.getProcessEnvFromBackend = getProcessEnvFromBackend;
294778
294783
 
294779
294784
 
294780
294785
  /***/ }),
@@ -294786,84 +294791,84 @@ exports.getProcessEnvFromBackend = getProcessEnvFromBackend;
294786
294791
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
294787
294792
 
294788
294793
  "use strict";
294789
-
294790
- Object.defineProperty(exports, "__esModule", ({ value: true }));
294791
- exports.IModelSession = void 0;
294792
- /*---------------------------------------------------------------------------------------------
294793
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
294794
- * See LICENSE.md in the project root for license terms and full copyright notice.
294795
- *--------------------------------------------------------------------------------------------*/
294796
- const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js");
294797
- const core_frontend_1 = __webpack_require__(/*! @itwin/core-frontend */ "../../core/frontend/lib/esm/core-frontend.js");
294798
- const imodels_client_management_1 = __webpack_require__(/*! @itwin/imodels-client-management */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@3.0.0/node_modules/@itwin/imodels-client-management/lib/esm/index.js");
294799
- const projects_client_1 = __webpack_require__(/*! @itwin/projects-client */ "../../common/temp/node_modules/.pnpm/@itwin+projects-client@0.6.0/node_modules/@itwin/projects-client/lib/esm/projects-client.js");
294800
- const imodels_access_frontend_1 = __webpack_require__(/*! @itwin/imodels-access-frontend */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.0/node_modules/@itwin/imodels-access-frontend/lib/esm/index.js");
294801
- class IModelSession {
294802
- constructor(iModelId, iTwinId, changesetId) {
294803
- this.iTwinId = iTwinId;
294804
- this.iModelId = iModelId;
294805
- this.changesetId = changesetId;
294806
- }
294807
- static async create(accessToken, iModelData) {
294808
- var _a;
294809
- let iTwinId;
294810
- let imodelId;
294811
- // Turn the iTwin name into an id
294812
- if (iModelData.useITwinName && iModelData.iTwinName) {
294813
- const client = new projects_client_1.ProjectsAccessClient();
294814
- const iTwinList = await client.getAll(accessToken, {
294815
- search: {
294816
- searchString: iModelData.iTwinName,
294817
- propertyName: projects_client_1.ProjectsSearchableProperty.Name,
294818
- exactMatch: true,
294819
- },
294820
- });
294821
- if (iTwinList.length === 0)
294822
- throw new Error(`ITwin ${iModelData.iTwinName} was not found for the user.`);
294823
- else if (iTwinList.length > 1)
294824
- throw new Error(`Multiple iTwins named ${iModelData.iTwinName} were found for the user.`);
294825
- iTwinId = iTwinList[0].id;
294826
- }
294827
- else
294828
- iTwinId = iModelData.iTwinId;
294829
- if (iModelData.useName) {
294830
- 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` } });
294831
- const iModels = imodelClient.iModels.getRepresentationList({
294832
- authorization: imodels_access_frontend_1.AccessTokenAdapter.toAuthorizationCallback(accessToken),
294833
- urlParams: {
294834
- iTwinId,
294835
- name: iModelData.name,
294836
- },
294837
- });
294838
- for await (const iModel of iModels) {
294839
- imodelId = iModel.id;
294840
- break;
294841
- }
294842
- if (!imodelId)
294843
- throw new Error(`The iModel ${iModelData.name} does not exist in iTwin ${iTwinId}.`);
294844
- }
294845
- else
294846
- imodelId = iModelData.id;
294847
- console.log(`Using iModel { name:${iModelData.name}, id:${imodelId}, iTwinId:${iTwinId}, changesetId:${iModelData.changesetId} }`); // eslint-disable-line no-console
294848
- return new IModelSession(imodelId, iTwinId, iModelData.changesetId);
294849
- }
294850
- async getConnection() {
294851
- return undefined === this._iModel ? this.open() : this._iModel;
294852
- }
294853
- async open() {
294854
- try {
294855
- // eslint-disable-next-line no-console
294856
- console.log(`Environment: ${process.env.IMJS_URL_PREFIX}`);
294857
- this._iModel = await core_frontend_1.CheckpointConnection.openRemote(this.iTwinId, this.iModelId);
294858
- (0, chai_1.expect)(this._iModel).to.exist;
294859
- }
294860
- catch (e) {
294861
- throw new Error(`Failed to open test iModel. Error: ${e.message}`);
294862
- }
294863
- return this._iModel;
294864
- }
294865
- }
294866
- exports.IModelSession = IModelSession;
294794
+
294795
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
294796
+ exports.IModelSession = void 0;
294797
+ /*---------------------------------------------------------------------------------------------
294798
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
294799
+ * See LICENSE.md in the project root for license terms and full copyright notice.
294800
+ *--------------------------------------------------------------------------------------------*/
294801
+ const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js");
294802
+ const core_frontend_1 = __webpack_require__(/*! @itwin/core-frontend */ "../../core/frontend/lib/esm/core-frontend.js");
294803
+ const imodels_client_management_1 = __webpack_require__(/*! @itwin/imodels-client-management */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@3.0.0/node_modules/@itwin/imodels-client-management/lib/esm/index.js");
294804
+ const projects_client_1 = __webpack_require__(/*! @itwin/projects-client */ "../../common/temp/node_modules/.pnpm/@itwin+projects-client@0.6.0/node_modules/@itwin/projects-client/lib/esm/projects-client.js");
294805
+ const imodels_access_frontend_1 = __webpack_require__(/*! @itwin/imodels-access-frontend */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.0/node_modules/@itwin/imodels-access-frontend/lib/esm/index.js");
294806
+ class IModelSession {
294807
+ constructor(iModelId, iTwinId, changesetId) {
294808
+ this.iTwinId = iTwinId;
294809
+ this.iModelId = iModelId;
294810
+ this.changesetId = changesetId;
294811
+ }
294812
+ static async create(accessToken, iModelData) {
294813
+ var _a;
294814
+ let iTwinId;
294815
+ let imodelId;
294816
+ // Turn the iTwin name into an id
294817
+ if (iModelData.useITwinName && iModelData.iTwinName) {
294818
+ const client = new projects_client_1.ProjectsAccessClient();
294819
+ const iTwinList = await client.getAll(accessToken, {
294820
+ search: {
294821
+ searchString: iModelData.iTwinName,
294822
+ propertyName: projects_client_1.ProjectsSearchableProperty.Name,
294823
+ exactMatch: true,
294824
+ },
294825
+ });
294826
+ if (iTwinList.length === 0)
294827
+ throw new Error(`ITwin ${iModelData.iTwinName} was not found for the user.`);
294828
+ else if (iTwinList.length > 1)
294829
+ throw new Error(`Multiple iTwins named ${iModelData.iTwinName} were found for the user.`);
294830
+ iTwinId = iTwinList[0].id;
294831
+ }
294832
+ else
294833
+ iTwinId = iModelData.iTwinId;
294834
+ if (iModelData.useName) {
294835
+ 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` } });
294836
+ const iModels = imodelClient.iModels.getRepresentationList({
294837
+ authorization: imodels_access_frontend_1.AccessTokenAdapter.toAuthorizationCallback(accessToken),
294838
+ urlParams: {
294839
+ iTwinId,
294840
+ name: iModelData.name,
294841
+ },
294842
+ });
294843
+ for await (const iModel of iModels) {
294844
+ imodelId = iModel.id;
294845
+ break;
294846
+ }
294847
+ if (!imodelId)
294848
+ throw new Error(`The iModel ${iModelData.name} does not exist in iTwin ${iTwinId}.`);
294849
+ }
294850
+ else
294851
+ imodelId = iModelData.id;
294852
+ console.log(`Using iModel { name:${iModelData.name}, id:${imodelId}, iTwinId:${iTwinId}, changesetId:${iModelData.changesetId} }`); // eslint-disable-line no-console
294853
+ return new IModelSession(imodelId, iTwinId, iModelData.changesetId);
294854
+ }
294855
+ async getConnection() {
294856
+ return undefined === this._iModel ? this.open() : this._iModel;
294857
+ }
294858
+ async open() {
294859
+ try {
294860
+ // eslint-disable-next-line no-console
294861
+ console.log(`Environment: ${process.env.IMJS_URL_PREFIX}`);
294862
+ this._iModel = await core_frontend_1.CheckpointConnection.openRemote(this.iTwinId, this.iModelId);
294863
+ (0, chai_1.expect)(this._iModel).to.exist;
294864
+ }
294865
+ catch (e) {
294866
+ throw new Error(`Failed to open test iModel. Error: ${e.message}`);
294867
+ }
294868
+ return this._iModel;
294869
+ }
294870
+ }
294871
+ exports.IModelSession = IModelSession;
294867
294872
 
294868
294873
 
294869
294874
  /***/ }),
@@ -294875,74 +294880,74 @@ exports.IModelSession = IModelSession;
294875
294880
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
294876
294881
 
294877
294882
  "use strict";
294878
-
294879
- /*---------------------------------------------------------------------------------------------
294880
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
294881
- * See LICENSE.md in the project root for license terms and full copyright notice.
294882
- *--------------------------------------------------------------------------------------------*/
294883
- Object.defineProperty(exports, "__esModule", ({ value: true }));
294884
- exports.TestContext = void 0;
294885
- const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js");
294886
- const core_bentley_1 = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
294887
- const core_frontend_1 = __webpack_require__(/*! @itwin/core-frontend */ "../../core/frontend/lib/esm/core-frontend.js");
294888
- const frontend_1 = __webpack_require__(/*! @itwin/oidc-signin-tool/lib/cjs/frontend */ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.1/node_modules/@itwin/oidc-signin-tool/lib/cjs/frontend.js");
294889
- const Settings_1 = __webpack_require__(/*! ../../common/Settings */ "./lib/common/Settings.js");
294890
- const SideChannels_1 = __webpack_require__(/*! ../../common/SideChannels */ "./lib/common/SideChannels.js");
294891
- const IModelSession_1 = __webpack_require__(/*! ./IModelSession */ "./lib/frontend/setup/IModelSession.js");
294892
- const core_common_1 = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
294893
- const imodels_access_frontend_1 = __webpack_require__(/*! @itwin/imodels-access-frontend */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.0/node_modules/@itwin/imodels-access-frontend/lib/esm/index.js");
294894
- const imodels_client_management_1 = __webpack_require__(/*! @itwin/imodels-client-management */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@3.0.0/node_modules/@itwin/imodels-client-management/lib/esm/index.js");
294895
- class TestContext {
294896
- constructor(env) {
294897
- this.settings = new Settings_1.Settings(env);
294898
- }
294899
- static async instance() {
294900
- if (this._instance === undefined) {
294901
- this._instance = new TestContext(await (0, SideChannels_1.getProcessEnvFromBackend)());
294902
- await this._instance.initialize();
294903
- }
294904
- return this._instance;
294905
- }
294906
- /** Initialize configuration for the rpc interfaces used by the application. */
294907
- initializeRpcInterfaces(info) {
294908
- // Url without trailing slash
294909
- const uriPrefix = this.settings.Backend.location.replace(/\/$/, "");
294910
- core_common_1.BentleyCloudRpcManager.initializeClient({ info, uriPrefix }, (0, Settings_1.getRpcInterfaces)());
294911
- }
294912
- async initialize() {
294913
- var _a;
294914
- (0, chai_1.expect)(this.settings.users.length).to.be.gte(1, `Unexpected number of users found in settings - got ${this.settings.users.length}, expected at least 2`);
294915
- // Print out the configuration
294916
- console.log(this.settings.toString()); // eslint-disable-line
294917
- // Configure iTwin.js frontend logging to go to the console
294918
- core_bentley_1.Logger.initializeToConsole();
294919
- core_bentley_1.Logger.setLevelDefault(this.settings.logLevel === undefined ? core_bentley_1.LogLevel.Warning : this.settings.logLevel);
294920
- if (undefined !== this.settings.oidcClientId) {
294921
- this.adminUserAccessToken = await (0, frontend_1.getAccessTokenFromBackend)({
294922
- email: this.settings.users[0].email,
294923
- password: this.settings.users[0].password,
294924
- }, {
294925
- clientId: this.settings.oidcClientId,
294926
- redirectUri: this.settings.oidcRedirect,
294927
- scope: this.settings.oidcScopes,
294928
- authority: this.settings.oidcAuthority,
294929
- });
294930
- }
294931
- const iModelData = this.settings.iModel;
294932
- this.iModelWithChangesets = await IModelSession_1.IModelSession.create(this.adminUserAccessToken, iModelData);
294933
- this.iTwinId = this.iModelWithChangesets.iTwinId;
294934
- this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
294935
- 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` } });
294936
- await core_frontend_1.NoRenderApp.startup({
294937
- applicationId: this.settings.gprid,
294938
- authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
294939
- hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
294940
- });
294941
- console.log("TestSetup: Done"); // eslint-disable-line
294942
- }
294943
- }
294944
- exports.TestContext = TestContext;
294945
- TestContext._instance = undefined;
294883
+
294884
+ /*---------------------------------------------------------------------------------------------
294885
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
294886
+ * See LICENSE.md in the project root for license terms and full copyright notice.
294887
+ *--------------------------------------------------------------------------------------------*/
294888
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
294889
+ exports.TestContext = void 0;
294890
+ const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js");
294891
+ const core_bentley_1 = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
294892
+ const core_frontend_1 = __webpack_require__(/*! @itwin/core-frontend */ "../../core/frontend/lib/esm/core-frontend.js");
294893
+ const frontend_1 = __webpack_require__(/*! @itwin/oidc-signin-tool/lib/cjs/frontend */ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.1/node_modules/@itwin/oidc-signin-tool/lib/cjs/frontend.js");
294894
+ const Settings_1 = __webpack_require__(/*! ../../common/Settings */ "./lib/common/Settings.js");
294895
+ const SideChannels_1 = __webpack_require__(/*! ../../common/SideChannels */ "./lib/common/SideChannels.js");
294896
+ const IModelSession_1 = __webpack_require__(/*! ./IModelSession */ "./lib/frontend/setup/IModelSession.js");
294897
+ const core_common_1 = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
294898
+ const imodels_access_frontend_1 = __webpack_require__(/*! @itwin/imodels-access-frontend */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@3.0.0/node_modules/@itwin/imodels-access-frontend/lib/esm/index.js");
294899
+ const imodels_client_management_1 = __webpack_require__(/*! @itwin/imodels-client-management */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@3.0.0/node_modules/@itwin/imodels-client-management/lib/esm/index.js");
294900
+ class TestContext {
294901
+ constructor(env) {
294902
+ this.settings = new Settings_1.Settings(env);
294903
+ }
294904
+ static async instance() {
294905
+ if (this._instance === undefined) {
294906
+ this._instance = new TestContext(await (0, SideChannels_1.getProcessEnvFromBackend)());
294907
+ await this._instance.initialize();
294908
+ }
294909
+ return this._instance;
294910
+ }
294911
+ /** Initialize configuration for the rpc interfaces used by the application. */
294912
+ initializeRpcInterfaces(info) {
294913
+ // Url without trailing slash
294914
+ const uriPrefix = this.settings.Backend.location.replace(/\/$/, "");
294915
+ core_common_1.BentleyCloudRpcManager.initializeClient({ info, uriPrefix }, (0, Settings_1.getRpcInterfaces)());
294916
+ }
294917
+ async initialize() {
294918
+ var _a;
294919
+ (0, chai_1.expect)(this.settings.users.length).to.be.gte(1, `Unexpected number of users found in settings - got ${this.settings.users.length}, expected at least 2`);
294920
+ // Print out the configuration
294921
+ console.log(this.settings.toString()); // eslint-disable-line
294922
+ // Configure iTwin.js frontend logging to go to the console
294923
+ core_bentley_1.Logger.initializeToConsole();
294924
+ core_bentley_1.Logger.setLevelDefault(this.settings.logLevel === undefined ? core_bentley_1.LogLevel.Warning : this.settings.logLevel);
294925
+ if (undefined !== this.settings.oidcClientId) {
294926
+ this.adminUserAccessToken = await (0, frontend_1.getAccessTokenFromBackend)({
294927
+ email: this.settings.users[0].email,
294928
+ password: this.settings.users[0].password,
294929
+ }, {
294930
+ clientId: this.settings.oidcClientId,
294931
+ redirectUri: this.settings.oidcRedirect,
294932
+ scope: this.settings.oidcScopes,
294933
+ authority: this.settings.oidcAuthority,
294934
+ });
294935
+ }
294936
+ const iModelData = this.settings.iModel;
294937
+ this.iModelWithChangesets = await IModelSession_1.IModelSession.create(this.adminUserAccessToken, iModelData);
294938
+ this.iTwinId = this.iModelWithChangesets.iTwinId;
294939
+ this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
294940
+ 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` } });
294941
+ await core_frontend_1.NoRenderApp.startup({
294942
+ applicationId: this.settings.gprid,
294943
+ authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
294944
+ hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
294945
+ });
294946
+ console.log("TestSetup: Done"); // eslint-disable-line
294947
+ }
294948
+ }
294949
+ exports.TestContext = TestContext;
294950
+ TestContext._instance = undefined;
294946
294951
 
294947
294952
 
294948
294953
  /***/ }),
@@ -305324,7 +305329,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
305324
305329
  /***/ ((module) => {
305325
305330
 
305326
305331
  "use strict";
305327
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.7.9","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":"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","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.7.9","@itwin/core-bentley":"workspace:^3.7.9","@itwin/core-common":"workspace:^3.7.9","@itwin/core-geometry":"workspace:^3.7.9","@itwin/core-orbitgt":"workspace:^3.7.9","@itwin/core-quantity":"workspace:^3.7.9","@itwin/webgl-compatibility":"workspace:^3.7.9"},"//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":"18.11.5","@types/qs":"^6.5.0","@types/semver":"7.3.10","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","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.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/object-storage-azure":"^2.0.0","@itwin/cloud-agnostic-core":"^2.0.0","@itwin/object-storage-core":"^2.0.0","@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","inversify":"~6.0.1","lodash":"^4.17.10","qs":"^6.5.3","semver":"^7.3.5","superagent":"^7.1.5","wms-capabilities":"0.4.0","reflect-metadata":"^0.1.13"},"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"}}]}}');
305332
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.7.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","build:ci":"npm run -s build && npm run -s build:esm","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","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.7.12","@itwin/core-bentley":"workspace:^3.7.12","@itwin/core-common":"workspace:^3.7.12","@itwin/core-geometry":"workspace:^3.7.12","@itwin/core-orbitgt":"workspace:^3.7.12","@itwin/core-quantity":"workspace:^3.7.12","@itwin/webgl-compatibility":"workspace:^3.7.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/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":"18.11.5","@types/qs":"^6.5.0","@types/semver":"7.3.10","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","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.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/object-storage-azure":"^2.0.0","@itwin/cloud-agnostic-core":"^2.0.0","@itwin/object-storage-core":"^2.0.0","@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","inversify":"~6.0.1","lodash":"^4.17.10","qs":"^6.5.3","semver":"^7.3.5","superagent":"^7.1.5","wms-capabilities":"0.4.0","reflect-metadata":"^0.1.13"},"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"}}]}}');
305328
305333
 
305329
305334
  /***/ })
305330
305335
 
@@ -305638,37 +305643,37 @@ var exports = __webpack_exports__;
305638
305643
  /*!*************************************************!*\
305639
305644
  !*** ./lib/frontend/SchemaRpcInterface.test.js ***!
305640
305645
  \*************************************************/
305641
-
305642
- /*---------------------------------------------------------------------------------------------
305643
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
305644
- * See LICENSE.md in the project root for license terms and full copyright notice.
305645
- *--------------------------------------------------------------------------------------------*/
305646
- Object.defineProperty(exports, "__esModule", ({ value: true }));
305647
- const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js");
305648
- const ecschema_rpcinterface_common_1 = __webpack_require__(/*! @itwin/ecschema-rpcinterface-common */ "../../core/ecschema-rpc/common/lib/cjs/ecschema-rpc-interface.js");
305649
- const TestContext_1 = __webpack_require__(/*! ./setup/TestContext */ "./lib/frontend/setup/TestContext.js");
305650
- const ecschema_metadata_1 = __webpack_require__(/*! @itwin/ecschema-metadata */ "../../core/ecschema-metadata/lib/cjs/ecschema-metadata.js");
305651
- describe("Schema RPC Interface", () => {
305652
- let iModel;
305653
- let testContext;
305654
- before(async () => {
305655
- testContext = await TestContext_1.TestContext.instance();
305656
- iModel = await testContext.iModelWithChangesets.getConnection();
305657
- });
305658
- it("should get schema keys", async () => {
305659
- const schemaKeys = [];
305660
- const props = await ecschema_rpcinterface_common_1.ECSchemaRpcInterface.getClient().getSchemaKeys(iModel.getRpcProps());
305661
- props.forEach((prop) => schemaKeys.push(ecschema_metadata_1.SchemaKey.fromJSON(prop)));
305662
- (0, chai_1.expect)(schemaKeys).to.not.be.undefined;
305663
- });
305664
- it("should get schema JSON", async () => {
305665
- const schemaKeys = [];
305666
- const props = await ecschema_rpcinterface_common_1.ECSchemaRpcInterface.getClient().getSchemaKeys(iModel.getRpcProps());
305667
- props.forEach((prop) => schemaKeys.push(ecschema_metadata_1.SchemaKey.fromJSON(prop)));
305668
- const schemaJSON = await ecschema_rpcinterface_common_1.ECSchemaRpcInterface.getClient().getSchemaJSON(iModel.getRpcProps(), schemaKeys[0].name);
305669
- (0, chai_1.expect)(schemaJSON).to.not.be.undefined;
305670
- });
305671
- });
305646
+
305647
+ /*---------------------------------------------------------------------------------------------
305648
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
305649
+ * See LICENSE.md in the project root for license terms and full copyright notice.
305650
+ *--------------------------------------------------------------------------------------------*/
305651
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
305652
+ const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js");
305653
+ const ecschema_rpcinterface_common_1 = __webpack_require__(/*! @itwin/ecschema-rpcinterface-common */ "../../core/ecschema-rpc/common/lib/cjs/ecschema-rpc-interface.js");
305654
+ const TestContext_1 = __webpack_require__(/*! ./setup/TestContext */ "./lib/frontend/setup/TestContext.js");
305655
+ const ecschema_metadata_1 = __webpack_require__(/*! @itwin/ecschema-metadata */ "../../core/ecschema-metadata/lib/cjs/ecschema-metadata.js");
305656
+ describe("Schema RPC Interface", () => {
305657
+ let iModel;
305658
+ let testContext;
305659
+ before(async () => {
305660
+ testContext = await TestContext_1.TestContext.instance();
305661
+ iModel = await testContext.iModelWithChangesets.getConnection();
305662
+ });
305663
+ it("should get schema keys", async () => {
305664
+ const schemaKeys = [];
305665
+ const props = await ecschema_rpcinterface_common_1.ECSchemaRpcInterface.getClient().getSchemaKeys(iModel.getRpcProps());
305666
+ props.forEach((prop) => schemaKeys.push(ecschema_metadata_1.SchemaKey.fromJSON(prop)));
305667
+ (0, chai_1.expect)(schemaKeys).to.not.be.undefined;
305668
+ });
305669
+ it("should get schema JSON", async () => {
305670
+ const schemaKeys = [];
305671
+ const props = await ecschema_rpcinterface_common_1.ECSchemaRpcInterface.getClient().getSchemaKeys(iModel.getRpcProps());
305672
+ props.forEach((prop) => schemaKeys.push(ecschema_metadata_1.SchemaKey.fromJSON(prop)));
305673
+ const schemaJSON = await ecschema_rpcinterface_common_1.ECSchemaRpcInterface.getClient().getSchemaJSON(iModel.getRpcProps(), schemaKeys[0].name);
305674
+ (0, chai_1.expect)(schemaJSON).to.not.be.undefined;
305675
+ });
305676
+ });
305672
305677
 
305673
305678
  })();
305674
305679